/* ============================================================
   VA HORIZON — SMS & AI Voice Systems
   Premium AI-product dark mode. Near-black + charcoal greys,
   gold as the single accent. Real product UI, no gimmicks.
   ============================================================ */

/* =====================================================
   TOKENS
   ===================================================== */
:root {
    --bg:        #0a0b0d;   /* page base, near-black     */
    --bg-soft:   #101216;   /* alternating section       */
    --surface:   #15171b;   /* lifted section / charcoal */
    --card:      rgba(255,255,255,0.03);
    --card-2:    rgba(255,255,255,0.045);
    --card-hover:rgba(255,255,255,0.055);

    --line:      rgba(255,255,255,0.10);
    --line-soft: rgba(255,255,255,0.06);

    --gold:       #D4A02F;
    --gold-light: #f0c84a;
    --gold-deep:  #C39A26;
    --gold-line:  rgba(212,160,47,0.22);
    --gold-line-2:rgba(212,160,47,0.42);
    --gold-wash:  rgba(212,160,47,0.08);

    --ink:   #f7f8f9;
    --ink-2: rgba(255,255,255,0.66);
    --ink-3: rgba(255,255,255,0.44);
    --ink-4: rgba(255,255,255,0.26);

    --green: #4ee07f;
    --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body.ai-automations {
    background-color: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Fine film grain — premium texture */
.ai-automations::after {
    content: '';
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.ai-automations .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.ai-automations .measure    { max-width: 40rem; }
.ai-automations .measure-lg { max-width: 48rem; }

/* =====================================================
   NAVBAR
   ===================================================== */
.ai-automations .ai-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.ai-automations .ai-nav.scrolled {
    background: rgba(11,12,14,0.72);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border-bottom-color: var(--line);
}
.ai-automations .ai-nav-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.ai-automations .ai-nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.ai-automations .ai-nav-brand img { height: 32px; width: auto; }
.ai-automations .ai-nav-divider { width: 1px; height: 20px; background: var(--gold-line-2); }
.ai-automations .ai-nav-product {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--gold);
}
.ai-automations .ai-nav-links { display: flex; align-items: center; gap: 2.25rem; }
.ai-automations .ai-nav-link {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--ink-3);
    text-decoration: none; position: relative;
    transition: color 0.25s var(--ease);
}
.ai-automations .ai-nav-link:hover { color: var(--ink); }
.ai-automations .ai-nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 1px; background: var(--gold);
    transition: width 0.3s var(--ease);
}
.ai-automations .ai-nav-link:hover::after { width: 100%; }
.ai-automations .ai-nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: #0b0c0e;
    background: var(--gold); border-radius: 7px; text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.ai-automations .ai-nav-cta:hover {
    transform: translateY(-1px); background: var(--gold-light);
    box-shadow: 0 10px 30px rgba(212,160,47,0.28);
}
.ai-automations .ai-nav-toggle {
    display: none; background: none;
    border: 1px solid var(--gold-line); border-radius: 7px;
    padding: 0.45rem; color: var(--gold); cursor: pointer;
}
.ai-automations .ai-nav-toggle:hover { background: var(--gold-wash); }
.ai-automations .ai-nav-toggle svg { display: block; }
.ai-automations .ai-mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(11,12,14,0.97);
    -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
    flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.ai-automations .ai-mobile-menu.open { display: flex; }
.ai-automations .ai-mobile-menu a {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-2); text-decoration: none;
    transition: color 0.2s var(--ease);
}
.ai-automations .ai-mobile-menu a:hover { color: var(--gold); }
.ai-automations .ai-mobile-close {
    position: absolute; top: 1.25rem; right: 1.25rem; background: none;
    border: 1px solid var(--gold-line); border-radius: 7px;
    padding: 0.45rem; color: var(--gold); cursor: pointer;
}
@media (max-width: 860px) {
    .ai-automations .ai-nav-links { display: none; }
    .ai-automations .ai-nav-toggle { display: block; }
}

/* =====================================================
   TYPE
   ===================================================== */
.ai-automations .eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em;
    text-transform: uppercase; color: var(--gold);
}
.ai-automations .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); opacity: 0.6; }
.ai-automations .eyebrow--plain::before { display: none; }

.ai-automations .display-xl { font-size: clamp(2.9rem, 7vw, 5.8rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; }
.ai-automations .display-lg { font-size: clamp(2.05rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.028em; }
.ai-automations .display-md { font-size: clamp(1.6rem, 2.9vw, 2.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; }
.ai-automations .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 400; line-height: 1.72; color: var(--ink-2); }
.ai-automations .body { color: var(--ink-2); line-height: 1.7; }
.ai-automations .gold { color: var(--gold); }
.ai-automations .text-ink-2 { color: var(--ink-2); }

/* Hero gradient text accent (kept subtle) */
.ai-automations .grad {
    background: linear-gradient(100deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Pill badge */
.ai-automations .badge {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--ink-2);
}
.ai-automations .badge .gd {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 10px rgba(212,160,47,0.7);
    animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.ai-automations .section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; background: var(--gold-wash);
    border: 1px solid var(--gold-line); border-radius: 999px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
}
.ai-automations .section-label-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(212,160,47,0.6); animation: dotPulse 2.6s ease-in-out infinite; }

.ai-automations .rule-gold { display: block; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* Trust strip under hero */
.ai-automations .trust {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.75rem 1.75rem;
    font-size: 0.74rem; font-weight: 600; color: var(--ink-3);
    letter-spacing: 0.02em;
}
.ai-automations .trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ai-automations .trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.8; }

/* =====================================================
   SURFACES & RHYTHM
   ===================================================== */
.ai-automations .surface-base { background: var(--bg);      position: relative; }
.ai-automations .surface-soft { background: var(--bg-soft); position: relative; }
.ai-automations .surface-lift { background: var(--surface);  position: relative; }

.ai-automations .topline::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.ai-automations .topglow::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(520px, 80%); height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line-2), transparent);
}
.ai-automations .pad-section    { padding-top: clamp(4.5rem, 9vw, 8rem); padding-bottom: clamp(4.5rem, 9vw, 8rem); }
.ai-automations .pad-section-sm { padding-top: clamp(3.5rem, 6vw, 5.5rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }

/* =====================================================
   HERO — centered, confident, no status card
   ===================================================== */
.ai-automations .hero-ai {
    background: var(--bg);
    position: relative; overflow: hidden;
    padding-top: clamp(9rem, 18vh, 13rem);
    padding-bottom: clamp(4.5rem, 9vw, 7rem);
    text-align: center;
}
.ai-automations .hero-ai::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 720px 460px at 50% -5%, rgba(212,160,47,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 900px 500px at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 55%);
    pointer-events: none;
}
.ai-automations .hero-ai::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}
.ai-automations .hero-inner { position: relative; z-index: 2; }

/* =====================================================
   STATS STRIP
   ===================================================== */
.ai-automations .stats-bar {
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    position: relative; z-index: 3;
}
.ai-automations .stats-bar .stat-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.9rem 2rem; border-right: 1px solid var(--line-soft); flex: 1;
}
.ai-automations .stats-bar .stat-item:last-child { border-right: none; }
.ai-automations .stats-bar .stat-num {
    font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 900; color: var(--ink);
    line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.ai-automations .stats-bar .stat-num span { color: var(--gold); }
.ai-automations .stats-bar .stat-label {
    font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--ink-3); margin-top: 0.55rem; text-align: center;
}

/* =====================================================
   SECTION NAV
   ===================================================== */
.ai-automations .section-nav {
    position: sticky; top: 64px; z-index: 40;
    background: rgba(10,11,13,0.9);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}
.ai-automations .section-nav__tab {
    padding: 1rem 0; margin-right: 2.5rem;
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-3);
    border-bottom: 2px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
    cursor: pointer; text-decoration: none; display: inline-block;
}
.ai-automations .section-nav__tab:hover,
.ai-automations .section-nav__tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* =====================================================
   INTRO ROW
   ===================================================== */
.ai-automations .intro-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
}
@media (max-width: 900px) { .ai-automations .intro-grid { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; } }

.ai-automations .metric-inline { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.ai-automations .metric-inline .m-num { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ai-automations .metric-inline .m-num span { color: var(--gold); }
.ai-automations .metric-inline .m-label { margin-top: 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.ai-automations .metric-inline .m-sub { color: var(--ink-4); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* =====================================================
   SHOWCASE — SMS conversation thread (real product UI)
   ===================================================== */
.ai-automations .showcase-grid {
    display: grid; grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .ai-automations .showcase-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.ai-automations .thread {
    background: linear-gradient(180deg, #141619, #0e1013);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.04);
    max-width: 420px; margin: 0 auto; width: 100%;
}
.ai-automations .thread-head {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.4rem 0.5rem 1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1rem;
}
.ai-automations .thread-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #2a2d31, #16181b);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-2); font-weight: 700; font-size: 0.85rem;
}
.ai-automations .thread-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.ai-automations .thread-meta { font-size: 0.66rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 0.4rem; }
.ai-automations .thread-meta .gd { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(78,224,127,0.6); }

.ai-automations .bubble {
    max-width: 78%; padding: 0.7rem 0.95rem; border-radius: 16px;
    font-size: 0.875rem; line-height: 1.5; margin-bottom: 0.6rem;
    opacity: 0; transform: translateY(8px);
}
.ai-automations.js-loaded .thread.visible .bubble,
html.js-loaded .ai-automations .thread.visible .bubble { animation: bubbleIn 0.5s var(--ease) forwards; }
html:not(.js-loaded) .ai-automations .bubble { opacity: 1; transform: none; }
.ai-automations .bubble.in {
    background: #1c1f23; color: var(--ink); border: 1px solid var(--line-soft);
    border-bottom-left-radius: 5px; margin-right: auto;
}
.ai-automations .bubble.out {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1206; font-weight: 500;
    border-bottom-right-radius: 5px; margin-left: auto;
}
.ai-automations .thread.visible .bubble:nth-child(2) { animation-delay: 0.05s; }
.ai-automations .thread.visible .bubble:nth-child(3) { animation-delay: 0.45s; }
.ai-automations .thread.visible .bubble:nth-child(4) { animation-delay: 0.85s; }
.ai-automations .thread.visible .bubble:nth-child(5) { animation-delay: 1.25s; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.ai-automations .thread-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.6rem; padding: 0.45rem 0.85rem;
    background: rgba(78,224,127,0.08); border: 1px solid rgba(78,224,127,0.22);
    border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: var(--green);
    letter-spacing: 0.04em;
}
.ai-automations .thread-tag svg { width: 13px; height: 13px; }

/* =====================================================
   PANELS / CARDS
   ===================================================== */
.ai-automations .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px; position: relative; overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ai-automations .panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.ai-automations .panel:hover {
    transform: translateY(-4px); border-color: var(--gold-line-2);
    background: var(--card-hover);
    box-shadow: 0 30px 70px -45px rgba(0,0,0,0.9);
}
.ai-automations .panel:hover::before { transform: scaleX(1); }
.ai-automations .panel--gold { border-left: 2px solid var(--gold); }
.ai-automations .panel--gold::before { transform: scaleX(1); }
.ai-automations .panel--muted { border-left: 2px solid rgba(255,255,255,0.16); }

.ai-automations .icon-box {
    width: 46px; height: 46px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-wash); border: 1px solid var(--gold-line);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ai-automations .panel:hover .icon-box { background: rgba(212,160,47,0.14); border-color: rgba(212,160,47,0.34); }

/* =====================================================
   STEPS (dark)
   ===================================================== */
.ai-automations .steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden;
}
@media (max-width: 820px) { .ai-automations .steps { grid-template-columns: 1fr; } }
.ai-automations .step {
    background: var(--surface); padding: 2.4rem 2rem; position: relative;
    transition: background 0.3s var(--ease);
}
.ai-automations .step:hover { background: #181a1e; }
.ai-automations .step-num { font-size: 2.8rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.08); letter-spacing: -0.02em; }
.ai-automations .step-num sup { color: var(--gold); font-size: 1rem; }
.ai-automations .step h4 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 1rem 0 0.6rem; letter-spacing: -0.01em; }
.ai-automations .step p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; }

/* =====================================================
   TRANSCRIPT CARDS
   ===================================================== */
.ai-automations .transcript-line {
    display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
    padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem;
}
.ai-automations .transcript-line:last-child { border-bottom: none; }
.ai-automations .transcript-speaker { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding-top: 0.2rem; white-space: nowrap; }
.ai-automations .transcript-text { color: var(--ink-2); line-height: 1.6; }
.ai-automations .panel--gold .transcript-line:last-child .transcript-text::after {
    content: '|'; color: var(--gold); animation: blink 1.1s step-end infinite; margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.ai-automations .verdict { margin-top: 1.25rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.ai-automations .verdict--ok  { color: var(--gold); }
.ai-automations .verdict--bad { color: #e0635b; }
.ai-automations .verdict--neutral { color: var(--ink-3); }

/* =====================================================
   VOICE — call card
   ===================================================== */
.ai-automations .call-card {
    background: linear-gradient(180deg, #141619, #0e1013);
    border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
    box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.ai-automations .call-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.ai-automations .call-id { display: flex; align-items: center; gap: 0.8rem; }
.ai-automations .call-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-wash); border: 1px solid var(--gold-line);
    color: var(--gold); font-weight: 800; font-size: 0.95rem;
}
.ai-automations .call-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.ai-automations .call-sub  { font-size: 0.68rem; color: var(--ink-3); letter-spacing: 0.06em; }
.ai-automations .eq { display: flex; align-items: center; gap: 4px; height: 26px; }
.ai-automations .eq span { width: 3px; border-radius: 2px; background: linear-gradient(to top, var(--gold-deep), var(--gold-light)); animation: eq 1.1s ease-in-out infinite; }
.ai-automations .eq span:nth-child(1){ animation-delay: 0s;    height: 40%; }
.ai-automations .eq span:nth-child(2){ animation-delay: 0.15s; height: 80%; }
.ai-automations .eq span:nth-child(3){ animation-delay: 0.3s;  height: 55%; }
.ai-automations .eq span:nth-child(4){ animation-delay: 0.1s;  height: 100%; }
.ai-automations .eq span:nth-child(5){ animation-delay: 0.35s; height: 60%; }
.ai-automations .eq span:nth-child(6){ animation-delay: 0.2s;  height: 85%; }
.ai-automations .eq span:nth-child(7){ animation-delay: 0.05s; height: 45%; }
@keyframes eq { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.ai-automations .call-line { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; }
.ai-automations .call-line:last-child { border-bottom: none; }
.ai-automations .call-who { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; flex: 0 0 3rem; padding-top: 0.15rem; }
.ai-automations .call-who.lena { color: var(--gold); }
.ai-automations .call-who.lead { color: var(--ink-4); }
.ai-automations .call-said { color: var(--ink-2); line-height: 1.55; }

.ai-automations .live-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem; background: rgba(78,224,127,0.06);
    border: 1px solid rgba(78,224,127,0.2); border-radius: 999px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--green);
}
.ai-automations .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(78,224,127,0.6); animation: pulse-green 2.4s infinite; }
@keyframes pulse-green { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

/* =====================================================
   PRICING
   ===================================================== */
.ai-automations .pricing-grid { display: grid; gap: 0; }
.ai-automations .pricing-col {
    border: 1px solid var(--line); padding: 2.4rem;
    background: var(--card); transition: background 0.3s var(--ease);
}
.ai-automations .pricing-col:first-child { border-radius: 16px 0 0 16px; }
.ai-automations .pricing-col:last-child  { border-radius: 0 16px 16px 0; }
.ai-automations .pricing-col--featured {
    border: 2px solid var(--gold-line-2); background: var(--card-2); position: relative;
}
.ai-automations .pricing-col--featured::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 16px 16px 0 0;
}
.ai-automations .pricing-tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.ai-automations .pricing-price { font-size: 2.6rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ai-automations .pricing-unit { font-size: 0.9rem; color: var(--ink-3); font-weight: 400; }
.ai-automations .pricing-note { font-size: 0.72rem; color: var(--ink-4); }
.ai-automations .pricing-check { color: var(--gold); margin-right: 0.6rem; }
@media (max-width: 820px) {
    .ai-automations .pricing-col { border-radius: 0; border-top: none; }
    .ai-automations .pricing-col:first-child { border-radius: 16px 16px 0 0; border-top: 1px solid var(--line); }
    .ai-automations .pricing-col:last-child  { border-radius: 0 0 16px 16px; }
    .ai-automations .pricing-col--featured { border-top: 2px solid var(--gold-line-2); }
}

/* =====================================================
   DIVIDER
   ===================================================== */
.ai-automations .section-divider { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.ai-automations .section-divider::before,
.ai-automations .section-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.ai-automations .section-divider span { color: var(--gold); font-size: 0.7rem; opacity: 0.6; }

/* =====================================================
   FAQ
   ===================================================== */
.ai-automations .faq-section-ai { background: var(--bg); position: relative; overflow: hidden; }
.ai-automations .faq-section-ai::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 680px 480px at 12% 0%, rgba(212,160,47,0.06), transparent 64%),
        radial-gradient(ellipse 600px 440px at 88% 100%, rgba(212,160,47,0.04), transparent 70%);
    pointer-events: none;
}
.ai-automations .faq-section-ai > .container { position: relative; z-index: 2; }
.ai-automations .faq-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ai-automations .faq-item[data-state="open"] {
    background: var(--card-2); border-color: var(--gold-line-2);
    box-shadow: 0 18px 48px -36px rgba(212,160,47,0.4);
}
.ai-automations .faq-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem; background: transparent; border: 0; text-align: left; cursor: pointer; font-family: inherit;
}
.ai-automations .faq-trigger-text { color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.ai-automations .faq-icon {
    width: 2rem; height: 2rem; border-radius: 999px; background: var(--gold-wash); color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.ai-automations .faq-item[data-state="open"] .faq-icon { transform: rotate(45deg); background: var(--gold); color: #0b0c0e; }
.ai-automations .faq-body { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.ai-automations .faq-body-inner { padding: 0 1.5rem 1.3rem; color: var(--ink-2); line-height: 1.75; font-size: 0.94rem; }

/* =====================================================
   CTA
   ===================================================== */
.ai-automations .cta-section-ai { background: var(--bg); position: relative; overflow: hidden; }
.ai-automations .cta-section-ai::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 640px 380px at 50% 100%, rgba(212,160,47,0.12) 0%, transparent 62%);
    pointer-events: none;
}
.ai-automations .cta-section-ai::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
}
.ai-automations .cta-inner-ai { position: relative; z-index: 2; }
.ai-automations .gold-rule-cta { display: block; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 0 auto 2rem; }

/* =====================================================
   REVEAL & ENTRANCE
   ===================================================== */
.ai-automations.js-loaded .reveal,
html.js-loaded .ai-automations .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.ai-automations .reveal.visible,
html.js-loaded .ai-automations .reveal.visible,
html:not(.js-loaded) .ai-automations .reveal { opacity: 1; transform: translateY(0); }
.ai-automations .reveal-delay-1 { transition-delay: 0.12s; }
.ai-automations .reveal-delay-2 { transition-delay: 0.24s; }
.ai-automations .reveal-delay-3 { transition-delay: 0.36s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s var(--ease) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes glowIn { from { opacity: 0; transform: translateY(34px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.glow-in { animation: glowIn 1s var(--ease) both; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .ai-automations .transcript-line { grid-template-columns: 1fr; gap: 0.2rem; }
    .ai-automations .section-nav__tab { margin-right: 1.5rem; font-size: 0.58rem; }
    .ai-automations .stats-bar .stat-item { padding: 1.3rem 1rem; border-right: none; border-bottom: 1px solid var(--line-soft); }
    .ai-automations .stats-bar .stat-item:last-child { border-bottom: none; }
    .ai-automations .metric-inline { gap: 1.75rem; }
}
@media (max-width: 480px) {
    .ai-automations .section-nav { overflow-x: auto; }
    .ai-automations .section-nav > div { min-width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-automations .reveal { transition: none; opacity: 1; transform: none; }
    .ai-automations .badge .gd, .ai-automations .section-label-dot, .ai-automations .live-dot, .ai-automations .eq span { animation: none; }
    .ai-automations .bubble { opacity: 1; transform: none; animation: none !important; }
    .ai-automations .panel--gold .transcript-line:last-child .transcript-text::after { animation: none; }
    .fade-up, .glow-in { animation: none; opacity: 1; transform: none; filter: none; }
}
