/* Markyto EMS landing — Calendly-inspired product marketing */

body.homepage {
    background: #fff;
    color: #0f172a;
}

.homepage main {
    overflow-x: hidden;
}

/* ── Hero ── */
.ems-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}

.ems-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.ems-hero-blob-1 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -80px;
    background: rgba(31, 164, 99, 0.12);
}

.ems-hero-blob-2 {
    width: 360px;
    height: 360px;
    bottom: 0;
    left: -100px;
    background: rgba(15, 95, 50, 0.08);
}

.ems-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.ems-hero h1 {
    font-size: clamp(2.25rem, 3.5vw + 1rem, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: #0f172a;
}

.ems-hero-lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.65;
    max-width: 32rem;
    margin: 0 0 1.75rem;
}

.ems-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.ems-hero-note {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.ems-hero-note a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero carousel */
.ems-hero-visual {
    position: relative;
}

.ems-hero-slides {
    position: relative;
    min-height: 480px;
}

.ems-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.ems-hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ems-hero-slide[data-slide-theme="green"] .ems-slide-glow { background: radial-gradient(circle, rgba(31,164,99,.22), transparent 70%); }
.ems-hero-slide[data-slide-theme="blue"] .ems-slide-glow { background: radial-gradient(circle, rgba(59,130,246,.22), transparent 70%); }
.ems-hero-slide[data-slide-theme="purple"] .ems-slide-glow { background: radial-gradient(circle, rgba(139,92,246,.24), transparent 70%); }

.ems-slide-glow {
    position: absolute;
    inset: -20px -10px auto;
    height: 220px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.ems-slide-hype {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.ems-slide-hype strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ems-slide-hype span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.ems-slide-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 8px 20px rgba(31,164,99,.3);
}

.ems-slide-icon svg {
    width: 22px;
    height: 22px;
}

.ems-hero-slide[data-slide-theme="blue"] .ems-slide-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 20px rgba(59,130,246,.3);
}

.ems-hero-slide[data-slide-theme="purple"] .ems-slide-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 20px rgba(139,92,246,.35);
}

.ems-mock-live,
.ems-mock-pill {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.ems-mock-live {
    background: #dcfce7;
    color: #15803d;
    animation: emsLivePulse 2s ease-in-out infinite;
}

.ems-mock-pill.ai {
    background: #dbeafe;
    color: #1d4ed8;
}

.ems-mock-pill.voice {
    background: #ede9fe;
    color: #6d28d9;
    animation: emsLivePulse 1.8s ease-in-out infinite;
}

@keyframes emsLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.96); }
}

.ems-mock-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.ems-mock-stat {
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ems-mock-stat strong {
    display: block;
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.1;
}

.ems-mock-stat span {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.ems-mock-stat.hot {
    background: linear-gradient(135deg, rgba(31,164,99,.12), rgba(31,164,99,.04));
    border-color: rgba(31,164,99,.25);
}

.ems-mock-stat.hot strong { color: var(--primary-color); }

.ems-mock-ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ems-mock-ico.green { background: #dcfce7; color: #15803d; }
.ems-mock-ico.amber { background: #fef3c7; color: #b45309; }
.ems-mock-ico.blue { background: #dbeafe; color: #1d4ed8; }

.ems-mock-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
}

.ems-mock-inbox-card {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    border: 1px solid #e2e8f0;
}

.ems-mock-inbox-card.new {
    background: #fff;
}

.ems-mock-inbox-card.ai-reply {
    position: relative;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-color: rgba(59,130,246,.2);
    overflow: hidden;
}

.ems-mock-inbox-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ems-mock-inbox-top strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.ems-mock-inbox-top span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.ems-mock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ems-mock-ai-spark {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    font-size: 1.25rem;
    color: #3b82f6;
    opacity: 0.7;
    animation: emsSpark 2.5s ease-in-out infinite;
}

@keyframes emsSpark {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.15) rotate(12deg); opacity: 1; }
}

.ems-mock-inbox-card.ai-reply strong {
    display: block;
    font-size: 0.8rem;
    color: #1e40af;
    margin-bottom: 0.35rem;
}

.ems-mock-inbox-card.ai-reply p {
    font-size: 0.78rem;
    color: #334155;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.ems-mock-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid rgba(31,164,99,.3);
}

.ems-mock-mic-ring {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(139,92,246,.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -72%);
    animation: emsMicRing 2s ease-out infinite;
}

@keyframes emsMicRing {
    0% { transform: translate(-50%, -72%) scale(0.85); opacity: 0.9; }
    100% { transform: translate(-50%, -72%) scale(1.35); opacity: 0; }
}

.ems-mock-voice {
    position: relative;
}

.ems-voice-quote {
    font-size: 0.95rem !important;
    font-weight: 600;
    color: #334155 !important;
}

.ems-hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.ems-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.ems-hero-dot.is-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* UI mockup cards */
.ems-mock {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px -16px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.ems-mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ems-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ems-mock-dot.red { background: #ff5f57; }
.ems-mock-dot.yel { background: #febc2e; }
.ems-mock-dot.grn { background: #28c840; }

.ems-mock-title {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ems-mock-body {
    padding: 1.25rem;
}

.ems-mock-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.ems-mock-row:last-child { margin-bottom: 0; }

.ems-mock-row.highlight {
    background: rgba(31, 164, 99, 0.1);
    border: 1px solid rgba(31, 164, 99, 0.25);
}

.ems-mock-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.ems-mock-check.done {
    background: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
}

.ems-mock-check.done::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ems-mock-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ems-mock-badge.green { background: #dcfce7; color: #15803d; }
.ems-mock-badge.blue { background: #dbeafe; color: #1d4ed8; }
.ems-mock-badge.amber { background: #fef3c7; color: #b45309; }

.ems-mock-cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.75rem;
}

.ems-mock-panel {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
}

.ems-mock-panel h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.ems-mock-voice {
    text-align: center;
    padding: 1.5rem 1rem;
}

.ems-mock-mic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(31, 164, 99, 0.35);
    animation: emsPulse 2s ease-in-out infinite;
}

@keyframes emsPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(31, 164, 99, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(31, 164, 99, 0.55); }
}

.ems-mock-mic svg { width: 28px; height: 28px; fill: #fff; }

.ems-mock-voice p {
    font-size: 0.9rem;
    color: #334155;
    font-style: italic;
    margin: 0;
}

.ems-mock-reply {
    margin-top: 0.85rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #166534;
    text-align: left;
}

/* ── Capability strip ── */
.ems-cap-strip {
    padding: 2.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.ems-cap-strip p {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ems-cap-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.ems-cap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.ems-cap-pill svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ── Tabbed walkthrough (Calendly-style) ── */
.ems-walkthrough {
    padding: 5rem 0;
}

.ems-walkthrough-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.ems-walkthrough-intro h2 {
    font-size: clamp(1.85rem, 2.5vw + 1rem, 2.75rem);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.ems-walkthrough-intro p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.ems-walkthrough-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 3rem;
    align-items: start;
}

.ems-tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ems-tab-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.15rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ems-tab-btn:hover {
    background: #f8fafc;
}

.ems-tab-btn.is-active {
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.ems-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(31, 164, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.ems-tab-btn.is-active .ems-tab-icon {
    background: var(--primary-color);
    color: #fff;
}

.ems-tab-icon svg { width: 20px; height: 20px; }

.ems-tab-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.ems-tab-text span {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.ems-tab-panel-wrap {
    position: relative;
    min-height: 380px;
}

.ems-tab-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.ems-tab-panel.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ems-tab-panel-inner {
    position: relative;
    padding: 1.5rem;
}

.ems-tab-panel-blob {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    top: -40px;
    right: -40px;
}

.ems-tab-panel-blob.green { background: rgba(31, 164, 99, 0.15); }
.ems-tab-panel-blob.blue { background: rgba(59, 130, 246, 0.12); }
.ems-tab-panel-blob.purple { background: rgba(139, 92, 246, 0.12); }
.ems-tab-panel-blob.amber { background: rgba(245, 158, 11, 0.12); }

.ems-tab-panel .ems-mock {
    position: relative;
    z-index: 1;
}

.ems-tab-desc {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    max-width: 36rem;
}

/* ── Stack comparison ── */
.ems-stack {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.ems-stack-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.ems-stack-col h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 1rem;
    text-align: center;
}

.ems-stack-tools {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ems-stack-tool {
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

.ems-stack-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.ems-stack-unified {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgba(31, 164, 99, 0.3);
}

.ems-stack-unified strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.ems-stack-unified span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ── How it works ── */
.ems-steps {
    padding: 4.5rem 0;
}

.ems-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ems-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.ems-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 164, 99, 0.12);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.ems-step h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.ems-step p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Integrations marquee ── */
.ems-integrations {
    padding: 4rem 0;
    background: #fafbfc;
}

.ems-int-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.ems-int-pill {
    padding: 0.6rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ems-int-pill:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(31, 164, 99, 0.12);
}

/* ── Stats band ── */
.ems-stats {
    padding: 3.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.ems-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.ems-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.ems-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .ems-hero-grid,
    .ems-walkthrough-grid,
    .ems-stack-grid {
        grid-template-columns: 1fr;
    }

    .ems-stack-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .ems-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ems-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-nav-links {
        display: none;
    }

    .ems-tab-panel-wrap {
        min-height: 0;
    }

    .ems-tab-panel {
        position: relative;
        display: none;
        opacity: 1;
        transform: none;
    }

    .ems-tab-panel.is-active {
        display: block;
    }

    .ems-hero-slides {
        min-height: 320px;
    }
}

.ems-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ems-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .ems-hero { padding-top: 3rem; }
    .ems-stats-grid { grid-template-columns: 1fr; }
    .ems-tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
    .ems-tab-btn { min-width: 200px; flex-shrink: 0; }
    .ems-walkthrough-grid { gap: 1.5rem; }
    .ems-tab-panel-wrap { min-height: 340px; }
}
