/* =====================================================================
   MakeBOF Redesign Preview — shared stylesheet
   Carries forward the existing design tokens (#050505, #fe2c55, Inter)
   ===================================================================== */

/* ── 1. Tokens ──────────────────────────────────────────────────────── */
:root {
    --bg: #050505;
    --bg-2: #0a0a0d;
    --surface: #161618;
    --surface-2: #1e1e22;
    --border: rgba(255, 255, 255, 0.1);
    --border-soft: rgba(255, 255, 255, 0.05);
    --text: #f0f0f8;
    --text-secondary: rgba(240, 240, 248, 0.65);
    --text-muted: rgba(240, 240, 248, 0.4);
    --accent: #fe2c55;
    --accent-2: #ff6b81;
    --accent-glow: rgba(254, 44, 85, 0.35);
    --gradient-accent: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%);
    --blue: #0172C1;
    --purple: #7B2FF7;
    --success: #25F4A8;
    --prussian: #0B1E49;
    --steel: #4C81B5;
    --warning: #ffb200;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'Fira Code', 'SF Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

[data-theme="light"] {
    --bg: #f5f6f8;
    --bg-2: #ebecf0;
    --surface: #ffffff;
    --surface-2: #f0f0f2;
    --border: rgba(0, 0, 0, 0.09);
    --border-soft: rgba(0, 0, 0, 0.04);
    --text: #111118;
    --text-secondary: #555;
    --text-muted: #888;
    --accent-glow: rgba(254, 44, 85, 0.2);
}

/* ── 2. Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    /* Clears the fixed nav pill (top:16 + height:64) so #anchor jumps
       don't land the section heading underneath it. */
    scroll-padding-top: 96px;
}
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Stops iOS Safari inflating body copy when the phone is rotated */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(254, 44, 85, 0.15);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ── 3. Ambient backdrop (carries forward from current site) ───────── */
.orb-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    overflow: hidden;
}
.orb-bg::before, .orb-bg::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(120px);
}
.orb-bg::before {
    width: 480px; height: 480px;
    background: rgba(254, 44, 85, 0.18);
    top: -120px; left: -120px;
    animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb-bg::after {
    width: 540px; height: 540px;
    background: rgba(123, 47, 247, 0.14);
    bottom: -180px; right: -180px;
    animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 40px); }
}

/* Nav — rounded floating pill (sits in a margin from the viewport top edge) */
.nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 8px 8px 22px; height: 64px; gap: 24px;
    width: min(1180px, calc(100% - 32px));
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: top 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.5px; min-width: 0; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; flex-shrink: 0; }
.nav-logo > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-actions .btn { border-radius: 999px; padding: 9px 16px; }
.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--text-secondary);
    transition: all .25s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: rgba(254,44,85,.08); transform: rotate(15deg); }

/* Mobile nav — hamburger + dropdown panel.
   Below --nav-collapse the links and auth buttons no longer fit inside the
   pill (they need ~700px), so they move into the panel. */
.nav-burger {
    display: none;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); color: var(--text);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px; flex-shrink: 0;
    transition: border-color .2s ease, color .2s ease;
}
.nav-burger:hover,
.nav-burger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.nav-burger span {
    display: block; width: 17px; height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sibling of .nav (not a child) so its backdrop-filter samples the page
   rather than the nav's own blurred backdrop. Insets match the nav pill:
   width:min(1180px, 100% - 32px) centred == 16px each side below 1212px. */
.mobile-menu {
    position: fixed; top: 90px; left: 16px; right: 16px; z-index: 49;
    padding: 10px;
    background: rgba(10, 10, 13, 0.92);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu .mm-link {
    display: flex; align-items: center; min-height: 46px;
    padding: 0 14px; border-radius: 12px;
    font-size: 15px; font-weight: 600; color: var(--text);
}
.mobile-menu .mm-link:active { background: rgba(255, 255, 255, 0.07); }
[data-theme="light"] .mobile-menu .mm-link:active { background: rgba(0, 0, 0, 0.05); }
.mobile-menu .mm-actions {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 8px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.mobile-menu .mm-actions .btn {
    width: 100%; justify-content: center;
    min-height: 46px; border-radius: 12px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* Spacer for the fixed floating nav (top:16px + height:64px + breathing room = ~96px) */
.nav-spacer { height: 96px; }

/* ── 5. Section primitives ─────────────────────────────────────────── */
.section { padding: 96px 32px; max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(254, 44, 85, 0.1); border: 1px solid rgba(254, 44, 85, 0.3);
    font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.section-title em { font-style: normal; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
.section-sub { font-size: 18px; color: var(--text-secondary); max-width: 640px; line-height: 1.55; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Glass card */
.glass {
    background: rgba(22, 22, 24, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
[data-theme="light"] .glass { background: rgba(255, 255, 255, 0.7); }

/* =====================================================================
   DIRECTION 1 — EDITORIAL PIPELINE SHOWCASE
   ===================================================================== */
.editorial-hero {
    padding: 80px 32px 64px; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.editorial-hero .headline {
    font-size: clamp(48px, 7vw, 96px); font-weight: 800; line-height: 0.95;
    letter-spacing: -3px; margin-bottom: 24px;
}
.editorial-hero .headline em { font-style: normal; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.editorial-hero .sub { font-size: 19px; color: var(--text-secondary); max-width: 520px; margin-bottom: 32px; }
.editorial-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Phone mockup — iPhone 17 Pro Max proportions.
   Body 78.0 x 163.4 mm; display 1320 x 2868 px (440 x 956 pt), 2.55 mm border
   per side. Display corners are 62 pt (10.27 mm); the body corner is concentric
   with it (10.27 + 2.55 = 12.82 mm). Dynamic Island 126 x 37 pt, 11 pt from the top.
   Everything scales off --pw (body width) so the ratios hold at any size. */
.phone-frame {
    --pw: 360px;
    --bezel: calc(var(--pw) * 0.0327);           /* 2.55 / 78 */
    --screen-w: calc(var(--pw) - 2 * var(--bezel));
    --pt: calc(var(--screen-w) / 440);
    position: relative; width: min(var(--pw), 100%); margin: 0 auto;
    padding: var(--bezel);
    border-radius: calc(var(--pw) * 0.1644);     /* 12.82 / 78 */
    background: #000;
    box-shadow:
        inset 0 0 0 calc(var(--pw) * 0.0095) #2b2b30,   /* ~0.75 mm aluminum band */
        inset 0 0 0 calc(var(--pw) * 0.0105) rgba(255, 255, 255, 0.14),
        0 30px 80px rgba(0, 0, 0, 0.6);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform .6s ease;
}
.phone-frame:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.phone-screen {
    width: 100%; aspect-ratio: 1320 / 2868;
    border-radius: calc(var(--pt) * 62);
    overflow: hidden; background: #000;
    position: relative;
}
.phone-screen::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: calc(var(--pt) * 83); background: #000;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Feed fills the display above an 83 pt bottom bar (TikTok's tab-bar height) */
.phone-feed { height: calc(100% - var(--pt) * 83); will-change: transform; }
.phone-feed.is-sliding { transition: transform .7s cubic-bezier(.65, 0, .35, 1); transform: translateY(-100%); }
.phone-slide { height: 100%; background: #000; }
.phone-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-notch {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(var(--bezel) + var(--pt) * 11);
    width: calc(var(--pt) * 126); height: calc(var(--pt) * 37);
    background: #000; border-radius: 999px; z-index: 2;
}
.phone-overlay-tile {
    position: absolute; bottom: calc(var(--bezel) + var(--pt) * 12); left: calc(var(--bezel) + var(--pt) * 12); right: calc(var(--bezel) + var(--pt) * 12);
    padding: 12px 14px; border-radius: 14px;
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff; font-size: 12px; display: flex; align-items: center; gap: 10px;
}
.phone-overlay-tile .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(37, 244, 168, .2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(37,244,168,.2); } 50% { box-shadow: 0 0 0 8px rgba(37,244,168,.05); } }

/* Stats strip (Direction 1) */
.stats-strip {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.stats-strip-inner { max-width: 1280px; margin: 0 auto; padding: 28px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; letter-spacing: -1px; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Feature blocks (Direction 1) — alternating */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; }
.feat-row.reverse .feat-text { order: 2; }
.feat-row .feat-text h3 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.feat-row .feat-text p { font-size: 17px; color: var(--text-secondary); margin-bottom: 16px; }
.feat-row .feat-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.feat-row .feat-bullets li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--text); }
.feat-row .feat-bullets li::before {
    content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
    background: var(--gradient-accent); display: inline-block; margin-top: 3px;
    box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.15);
}
.feat-shot {
    aspect-ratio: 4/3; border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--border); position: relative;
    background: var(--bg-2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.feat-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feat-shot .annot {
    position: absolute; padding: 8px 12px; border-radius: 10px;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    border: 1px solid var(--border); font-size: 12px; color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.feat-shot .annot.tl { top: 16px; left: 16px; }
.feat-shot .annot.br { bottom: 16px; right: 16px; }
.feat-shot .annot .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 6px; box-shadow: 0 0 0 3px rgba(37,244,168,.2); }

/* Pricing (shared) */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }

/* CTA banner */
.cta-banner {
    margin: 96px auto 0; max-width: 1280px;
    padding: 80px 56px; border-radius: var(--radius-2xl);
    background:
        radial-gradient(circle at top right, rgba(254, 44, 85, 0.12), transparent 60%),
        radial-gradient(circle at bottom left, rgba(123, 47, 247, 0.08), transparent 60%),
        var(--surface);
    border: 1px solid rgba(254, 44, 85, 0.25);
    position: relative; overflow: hidden; text-align: center;
}
.cta-banner::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.45), transparent 70%);
    filter: blur(40px);
}
.cta-banner h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; position: relative; }
.cta-banner .ctas { display: flex; gap: 12px; justify-content: center; position: relative; flex-wrap: wrap; }

/* Footer */
.footer { padding: 56px 32px 32px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-inner h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 14px; }
.footer-inner a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.footer-inner a:hover { color: var(--text); }
.footer-bottom { max-width: 1280px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* =====================================================================
   DIRECTION 2 — GLASS DASHBOARD HERO
   ===================================================================== */

/* Direction 2 — vertical timeline */
.vt { max-width: 760px; margin: 56px auto 0; position: relative; }
.vt::before { content: ''; position: absolute; left: 28px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--purple) 100%); border-radius: 2px; }

/* =====================================================================
   DIRECTION 3 — VERTICAL STORY SCROLL
   ===================================================================== */
.story { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 80px 64px; max-width: 1440px; margin: 0 auto; gap: 64px; }
.story.reverse { background: var(--bg-2); }

/* =====================================================================
   WORKFLOW ANIMATION SECTION
   ===================================================================== */
.workflow-section {
    padding: 120px 32px 80px;
    max-width: 1280px; margin: 0 auto;
}
.workflow-head {
    text-align: center; margin-bottom: 64px;
}
.workflow-head .section-eyebrow { display: inline-flex; }
.workflow-head h2 {
    font-size: clamp(36px, 5vw, 60px); font-weight: 800;
    letter-spacing: -2px; line-height: 1.05;
    margin-bottom: 14px;
}
.workflow-head h2 em {
    font-style: normal;
    background: var(--gradient-accent);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.workflow-head p {
    font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

.workflow-stage {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center;
    padding: 80px 0; min-height: 540px;
    border-top: 1px solid var(--border-soft);
}
.workflow-stage:first-of-type { border-top: 0; }

.workflow-text { position: relative; }
.workflow-text .step-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(254, 44, 85, 0.1); border: 1px solid rgba(254, 44, 85, 0.3);
    font-size: 11px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 18px;
}
.workflow-text .step-pill .num {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--gradient-accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
}
.workflow-text h3 {
    font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
    letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px;
}
.workflow-text p {
    font-size: 17px; color: var(--text-secondary); margin-bottom: 24px; max-width: 460px;
}
.workflow-text .replay-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
    color: var(--text); font-size: 13px; font-weight: 600;
    transition: all 0.2s;
}
.workflow-text .replay-btn:hover { border-color: var(--accent); color: var(--accent); }
.workflow-text .replay-btn svg { transition: transform 0.4s ease; }
.workflow-text .replay-btn:hover svg { transform: rotate(-90deg); }

.workflow-demo {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Browser chrome (used on Stage 2 / Stage 3 demo panels) */
.demo-browser-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.demo-browser-bar .traffic { display: flex; gap: 6px; }
.demo-browser-bar .traffic span { width: 11px; height: 11px; border-radius: 50%; }
.demo-browser-bar .traffic span:nth-child(1) { background: #ff5f57; }
.demo-browser-bar .traffic span:nth-child(2) { background: #febc2e; }
.demo-browser-bar .traffic span:nth-child(3) { background: #28c840; }
.demo-browser-bar .url {
    flex: 1; margin-left: 12px; padding: 4px 12px;
    border-radius: 6px; background: var(--bg);
    color: var(--text-muted); font-size: 11px; font-family: var(--font-mono);
}

/* === Stage 1: Scrape === */
.stage-scrape { display: flex; flex-direction: column; }
.stage-scrape .scrape-toolbar {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.stage-scrape .search-input {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 14px;
    color: var(--text);
}
.stage-scrape .search-input .prefix { color: var(--accent); font-weight: 700; }
.stage-scrape .search-input .typed { position: relative; }
.stage-scrape .search-input .caret {
    display: inline-block; width: 2px; height: 16px;
    background: var(--accent); margin-left: 2px; vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.stage-scrape .product-grid {
    flex: 1; padding: 24px;
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px;
    align-content: start;
}
.prod-tile {
    aspect-ratio: 1/1;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
    transform: scale(0.4); opacity: 0;
    position: relative;
    overflow: hidden;
}
.prod-tile .ph-image {
    flex: 1; border-radius: 8px;
    background: linear-gradient(135deg, var(--gradient-accent), var(--purple));
    opacity: 0.85;
    position: relative;
    overflow: hidden;
}
.prod-tile .ph-image svg { width: 100%; height: 100%; }
.prod-tile .ph-name {
    font-size: 10px; color: var(--text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-tile .ph-price {
    font-size: 9px; color: var(--accent); font-weight: 700;
}

/* === Stage 2: Pipeline === */
.stage-pipeline { display: flex; flex-direction: column; }
.pipeline-rows {
    flex: 1; padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    overflow: hidden;
}
.pipeline-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border-soft);
}
.pipeline-row .pr-thumb {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gradient-accent), var(--purple));
    opacity: 0.85;
}
.pipeline-row .pr-name {
    flex: 1; font-size: 12px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pipeline-row .pr-status {
    padding: 4px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}
.pipeline-row.is-queued .pr-status { background: rgba(123, 47, 247, 0.15); color: var(--purple); }
.pipeline-row.is-processing .pr-status { background: rgba(255, 178, 0, 0.15); color: var(--warning); }
.pipeline-row.is-done .pr-status { background: rgba(37, 244, 168, 0.15); color: var(--success); }
.pipeline-row.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}
.pipeline-row.is-active .pr-status {
    background: rgba(254, 44, 85, 0.15); color: var(--accent);
    animation: statusPulse 1.4s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Cursor */
.demo-cursor {
    position: absolute; top: 0; left: 0;
    width: 22px; height: 22px;
    pointer-events: none; z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
}
.demo-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* === Stage: Pick a style === */
.stage-style { display: flex; flex-direction: column; }
.style-grid {
    flex: 1; padding: 18px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: center;
}
.style-card {
    border-radius: 12px; padding: 6px 6px 10px;
    background: var(--bg-2); border: 1px solid var(--border);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.style-card .sc-media { position: relative; aspect-ratio: 9/16; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.style-card .sc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card .sc-check {
    position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.style-card .sc-name { font-size: 12px; font-weight: 700; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-card .sc-format { font-size: 10px; color: var(--text-muted); padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(254, 44, 85, 0.25); transform: translateY(-3px); }
.style-card.is-selected .sc-check { transform: scale(1); }
.style-toast {
    position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px);
    padding: 8px 14px; border-radius: 999px;
    background: var(--gradient-accent); color: #fff; font-size: 12px; font-weight: 700;
    opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.style-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 480px) {
    .style-grid { grid-template-columns: repeat(2, 1fr); padding: 14px 14px 56px; }
}

/* === Stage 3: Results === */
.stage-results { display: flex; flex-direction: column; }
.results-grid {
    flex: 1; padding: 14px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    align-content: start;
}
.video-tile {
    aspect-ratio: 9/16;
    border-radius: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transform: scale(0.5); opacity: 0;
}
.video-tile .vt-thumb {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%),
                linear-gradient(135deg, var(--gradient-accent), var(--purple));
    opacity: 0.9;
}
.video-tile .vt-thumb svg { width: 100%; height: 100%; opacity: 0.95; }
.video-tile .vt-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
}
.video-tile .vt-play svg { width: 14px; height: 14px; color: #000; }

/* Count overlay for stage 3 */
.results-count {
    position: absolute; top: 16px; right: 16px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; font-size: 12px; font-weight: 600;
    z-index: 5;
}
.results-count strong { color: var(--accent); }

/* Responsive: stack stages on smaller screens */
@media (max-width: 900px) {
    .workflow-stage { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; min-height: 0; }
    /* Once stacked, a locked aspect-ratio + overflow:hidden amputates the demo
       content (the grids needed ~670-820px inside a 249px box). Let the panel
       take its natural height instead; workflow.js trims the tile count to suit. */
    .workflow-demo { aspect-ratio: auto; }
    .stage-scrape .scrape-toolbar { padding: 14px; }
    .stage-scrape .product-grid { padding: 14px; gap: 10px; grid-auto-rows: auto; }
    .pipeline-rows { padding: 14px; gap: 8px; }
    .results-grid { padding: 12px; gap: 8px; }
    /* Reserve the badge's corner so it stops sitting on top of the URL */
    .stage-results .demo-browser-bar { padding-right: 112px; }
    .demo-browser-bar .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
    .stage-scrape .product-grid { grid-template-columns: repeat(2, 1fr); }
    /* .results-grid deliberately stays 3-up: 9/16 tiles two-up would make the
       panel ~760px tall. Three-up fits all six in two rows. */
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .editorial-hero { grid-template-columns: 1fr; gap: 48px; }
    .phone-frame { --pw: 280px; transform: none; }
    .feat-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .feat-row.reverse .feat-text { order: 0; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
/* Nav pill can't hold the links + both auth buttons under ~860px —
   they used to overflow the pill and get clipped by body{overflow-x:hidden}. */
@media (max-width: 860px) {
    .nav { gap: 12px; padding: 8px 8px 8px 18px; }
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .nav-burger { display: inline-flex; }
}
@media (min-width: 861px) {
    /* Panel is mobile-only; never leave it open across a resize */
    .mobile-menu { display: none; }
}
@media (max-width: 640px) {
    .section { padding: 64px 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .editorial-hero { padding: 48px 20px; }
    .stats-strip-inner { padding: 20px; }
    .vt::before { left: 20px; }

    /* Sections that had no mobile padding rule and kept desktop-sized gutters */
    .workflow-section { padding: 64px 20px 40px; }
    .workflow-head { margin-bottom: 40px; }
    .cta-banner { margin: 64px 20px 0; padding: 48px 24px; border-radius: var(--radius-xl); }
    .footer { padding: 48px 20px 24px; margin-top: 56px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    /* 30px tall was below the 44px touch-target guideline */
    .footer-inner a { padding: 9px 0; }
    .enterprise-banner { padding: 24px 20px; }

    /* Full-strength 120px blur over a ~500px orb is a heavy repaint on phones */
    .orb-bg::before { width: 280px; height: 280px; filter: blur(80px); }
    .orb-bg::after { width: 300px; height: 300px; filter: blur(80px); }
}

/* =====================================================================
   PRICING — original makebof.com design (4 plans + enterprise + credits)
   Inherited class names: .pricing-toggle, .pricing-grid, .plan-card,
   .enterprise-banner, .credits-section, .credit-card
   ===================================================================== */
.pricing-toggle {
    display: flex;
    background: rgba(22, 22, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    width: fit-content;
    margin: 16px auto 0;
}
.pricing-toggle button {
    background: none; border: none;
    color: var(--text-secondary);
    padding: 8px 22px; border-radius: 50px;
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pricing-toggle button.active { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 32px;
}

.plan-card {
    background: rgba(22, 22, 24, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    display: flex; flex-direction: column;
    transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.plan-card .btn-plan { margin-top: auto; }
.plan-card:hover { transform: translateY(-3px); }
.plan-card.featured {
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(1, 114, 193, 0.4), 0 0 40px rgba(1, 114, 193, 0.12);
}
.plan-card.featured:hover { box-shadow: 0 0 0 1px rgba(1, 114, 193, 0.6), 0 0 48px rgba(1, 114, 193, 0.18); }
.plan-card.max-card {
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(0, 176, 155, 0.4), 0 0 40px rgba(0, 176, 155, 0.1);
}
.plan-card.max-card:hover { box-shadow: 0 0 0 1px rgba(0, 176, 155, 0.6), 0 0 48px rgba(0, 176, 155, 0.15); }
.plan-card.scale-card {
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.1);
}
.plan-card.scale-card:hover { box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.6), 0 0 48px rgba(245, 158, 11, 0.15); }

.plan-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--prussian), var(--blue));
    color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 50px; white-space: nowrap;
}
.plan-tag.teal { background: linear-gradient(135deg, #00b09b, #25f4a8); color: #000; }
.plan-tag.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }

.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plan-price {
    font-size: 42px; font-weight: 800; letter-spacing: -2px;
    margin: 16px 0 4px;
}
.plan-price span { font-size: 16px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }

.plan-features {
    list-style: none; margin-bottom: 32px;
    display: flex; flex-direction: column; gap: 12px;
}
.plan-features li {
    font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
}
.plan-features li .check { color: var(--success); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.plan-features li.plan-feature-split { align-items: flex-start; }
.plan-feature-sub { display: block; font-size: 12px; color: var(--text-secondary); opacity: 0.8; margin-top: 2px; }

.btn-plan {
    display: block; width: 100%;
    padding: 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer; text-align: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.btn-plan::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}
.btn-plan:hover::after { left: 100%; }
.btn-plan-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text); }
.btn-plan-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn-plan-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(1, 114, 193, 0.3); }
.btn-plan-blue:hover { background: #0182d8; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(1, 114, 193, 0.4); }
.btn-plan-teal { background: linear-gradient(135deg, #00b09b, #25f4a8); color: #000; box-shadow: 0 4px 20px rgba(0, 176, 155, 0.3); }
.btn-plan-teal:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0, 176, 155, 0.45); }
.btn-plan-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3); }
.btn-plan-amber:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45); }

/* Enterprise banner */
.enterprise-banner {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.08) 0%, rgba(22, 22, 24, 0.5) 100%);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(123, 47, 247, 0.25);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.enterprise-banner-left h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.enterprise-banner-left p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 480px; }
.enterprise-features { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.enterprise-feature { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.enterprise-feature::before { content: '✓'; color: var(--purple); font-weight: 700; }

.btn-enterprise {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #7B2FF7 0%, #9B59F7 100%);
    color: #fff; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(123, 47, 247, 0.3);
    white-space: nowrap; flex-shrink: 0;
}
.btn-enterprise:hover { box-shadow: 0 8px 28px rgba(123, 47, 247, 0.45); transform: translateY(-1px); }

/* Credit packs */
.credits-section { margin-top: 56px; }
.credits-header { text-align: center; margin-bottom: 32px; }
.credits-header h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.credits-header p { font-size: 14px; color: var(--text-secondary); }
.credits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.credit-card {
    background: rgba(22, 22, 24, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px; padding: 28px 24px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.credit-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.1);
}
.credit-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.credit-count { font-size: 2rem; font-weight: 800; color: #60a5fa; line-height: 1; }
.credit-count-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.credit-count-sub { font-size: 11px; color: var(--text-secondary); opacity: 0.8; margin-top: 2px; }
.credit-price { font-size: 1.8rem; font-weight: 800; line-height: 1; text-align: right; }
.credit-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.btn-credit {
    display: block; width: 100%;
    padding: 11px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 10px;
    color: #60a5fa; font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer; text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-credit:hover { background: rgba(96, 165, 250, 0.14); box-shadow: 0 0 16px rgba(96, 165, 250, 0.15); }
.credits-footnote { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 16px; }

/* Responsive pricing */
@media (max-width: 1050px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .enterprise-banner { padding: 24px 28px; }
    .credits-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .enterprise-banner { flex-direction: column; align-items: flex-start; }
    .btn-enterprise { width: 100%; justify-content: center; }
}


/* ── Light-mode pricing / credit / cost / enterprise overrides ──
   NOT wrapped in @media (prefers-color-scheme: light): the theme toggle sets
   [data-theme="light"] regardless of the OS preference, and gating these on the
   media query left every card its hardcoded dark rgba() on a light page. */
  [data-theme="light"] .pricing-toggle {
    background: #e5e7eb;
    border-color: rgba(0,0,0,0.06);
  }
  [data-theme="light"] .pricing-toggle button { color: #555; }
  [data-theme="light"] .pricing-toggle button.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  [data-theme="light"] .plan-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.07);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 28px rgba(0,0,0,0.07);
  }
  [data-theme="light"] .plan-card:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 16px 36px rgba(0,0,0,0.12);
  }

  [data-theme="light"] .plan-card.featured {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: rgba(1,114,193,0.25);
    box-shadow: 0 0 0 1px rgba(1,114,193,0.08), 0 12px 40px rgba(0,0,0,0.08);
  }
  [data-theme="light"] .plan-card.featured:hover {
    border-color: rgba(1,114,193,0.4);
    box-shadow: 0 0 0 1px rgba(1,114,193,0.18), 0 16px 48px rgba(0,0,0,0.12);
  }

  [data-theme="light"] .plan-card.max-card {
    background: linear-gradient(180deg, #ffffff 0%, #f2fbf9 100%);
    border-color: rgba(0,176,155,0.25);
    box-shadow: 0 0 0 1px rgba(0,176,155,0.08), 0 12px 40px rgba(0,0,0,0.08);
  }
  [data-theme="light"] .plan-card.max-card:hover {
    border-color: rgba(0,176,155,0.4);
    box-shadow: 0 0 0 1px rgba(0,176,155,0.18), 0 16px 48px rgba(0,0,0,0.12);
  }

  [data-theme="light"] .plan-card.scale-card {
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf3 100%);
    border-color: rgba(245,158,11,0.25);
    box-shadow: 0 0 0 1px rgba(245,158,11,0.08), 0 12px 40px rgba(0,0,0,0.08);
  }
  [data-theme="light"] .plan-card.scale-card:hover {
    border-color: rgba(245,158,11,0.4);
    box-shadow: 0 0 0 1px rgba(245,158,11,0.18), 0 16px 48px rgba(0,0,0,0.12);
  }

  [data-theme="light"] .credit-card {
    background: #ffffff;
    border-color: rgba(1,114,193,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  }
  [data-theme="light"] .credit-card:hover {
    border-color: rgba(1,114,193,0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1,114,193,0.08);
  }

  [data-theme="light"] .enterprise-banner {
    background: linear-gradient(135deg, rgba(123,47,247,0.04), #ffffff);
    border-color: rgba(123,47,247,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
  }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* .reveal starts at opacity:0 and is revealed by a transition — without
       this it would never become visible once transitions are neutered. */
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Explore preview (lx-) and before/after (ba-) sections
   ===================================================================== */
.lx-head, .ba-head { text-align: center; margin-bottom: 40px; }
.lx-head .section-sub, .ba-head .section-sub { margin: 0 auto; }

.lx-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 28px;
}
.lx-tab {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: border-color .2s, background .2s;
}
.lx-tab svg { color: var(--accent); flex-shrink: 0; }
.lx-tab:hover { border-color: rgba(254, 44, 85, 0.45); }
.lx-tab.is-active { border-color: var(--accent); background: rgba(254, 44, 85, 0.06); box-shadow: 0 0 0 1px var(--accent); }

.lx-panel { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.lx-panel[hidden] { display: none; }
.lx-panel.is-active { animation: lxIn .4s ease; }
@keyframes lxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lx-style-name { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.lx-info p { color: var(--text-secondary); font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.lx-best { font-size: 14px; color: var(--text); margin-bottom: 24px; }
.lx-best span {
    display: block; margin-bottom: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
}
.lx-clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lx-clip {
    aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-2); border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.lx-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }

.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-card {
    padding: 12px; border-radius: var(--radius-xl);
    background: var(--surface); border: 1px solid var(--border);
}
.ba-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-side { position: relative; aspect-ratio: 9/16; border-radius: var(--radius-md); overflow: hidden; }
.ba-before { background: #fff; display: flex; align-items: center; justify-content: center; }
.ba-before img { width: 100%; height: 100%; object-fit: contain; }
.ba-after { background: #000; }
.ba-after video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-label {
    position: absolute; left: 8px; top: 8px;
    padding: 4px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.7); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.ba-label-accent { background: var(--accent); }
.ba-arrow {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-accent); color: #fff;
    box-shadow: 0 6px 20px rgba(254, 44, 85, 0.45);
}
.ba-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px 2px; }
.ba-meta strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-meta span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 1024px) {
    .lx-panel { grid-template-columns: 1fr; gap: 24px; }
    .lx-info { text-align: center; max-width: 520px; margin: 0 auto; }
    .ba-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .lx-tabs {
        display: flex; overflow-x: auto; scrollbar-width: none;
        margin: 0 -20px 24px; padding: 2px 20px;
    }
    .lx-tabs::-webkit-scrollbar { display: none; }
    .lx-tab { flex-shrink: 0; padding: 12px 14px; font-size: 14px; }
    .lx-clips {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 -20px; padding: 0 20px 8px;
    }
    .lx-clips::-webkit-scrollbar { display: none; }
    .lx-clip { flex: 0 0 62%; scroll-snap-align: center; }
}
