/* GridMail shared design system for site pages (faq, blog, about, alternatives, for).
   Rebuilt on the design tokens — see /DESIGN.md and /styles/tokens.css.
   Legacy var names below are remapped onto tokens so every linked page reskins at once.
   No banned values (#0d1117, #2c4bdb, Iowan serif, pills, colored glows, teal/purple gradient). */
@import url('/assets/fonts/fonts.css');
@import url('/styles/tokens.css');
:root {
    --font-serif: var(--font-display);   /* headings: Clash Display, not Iowan serif */
    --font-sans: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --ease-out: var(--ease);
    --ease-smooth: var(--ease);

    /* Surfaces: the token luminance ladder */
    --color-bg: var(--bg);
    --color-bg-elevated: var(--surface);
    --color-bg-elevated-2: var(--bg);
    --color-border: var(--border);
    --color-border-soft: var(--border);
    --color-ink: var(--ink);
    --color-body: var(--ink-secondary);
    --color-muted: var(--ink-tertiary);

    /* Accent: --accent-solid carries text (AA); base --accent stays for pure links/focus */
    --color-accent: var(--accent-solid);
    --color-accent-hover: var(--accent-solid-hover);
    --color-accent-soft: var(--accent-soft);
    --color-accent-tint: var(--accent-soft);

    --color-good: var(--good);
    --color-bad: var(--bad);
    /* "replies vs sends" headline: ink hierarchy, not color (accent is quarantined to CTAs) */
    --word-good: var(--ink);
    --word-bad: var(--ink-tertiary);
    --word-strike: var(--ink-tertiary);

    /* No teal/purple gradient — solid accent */
    --gradient-highlight: var(--accent);

    /* Product mock surfaces (legacy light "screens" — E-workstream converts these to dark) */
    --card-surface: var(--surface);
    --card-surface-alt: var(--surface-raised);
    --card-border: var(--border);
    --card-border-soft: var(--border);
    --card-ink: var(--ink);
    --card-body: var(--ink-secondary);
    --card-muted: var(--ink-tertiary);
    --card-accent-soft: var(--accent-soft);
    --card-info-soft: var(--surface-raised);
    --card-neutral-soft: var(--surface-overlay);

    --radius-sm: var(--r-control);
    --radius-md: var(--r-card);
    --radius-pill: var(--r-control);   /* no pills — collapse to control radius */

    /* Borders replace shadows; only a soft black remains for true overlays */
    --shadow-card: none;
    --shadow-card-lg: none;
    --shadow-elevated: var(--shadow-overlay);
    --grain-opacity: 0;
    --motif-opacity: 0.4;
  }

  /* The site is dark-only (DESIGN.md). Any lingering data-theme="light" stays on the dark
     system: these overrides re-assert the dark tokens rather than a light palette. */
  [data-theme="light"] {
    --color-bg: var(--bg);
    --color-bg-elevated: var(--surface);
    --color-bg-elevated-2: var(--bg);
    --color-border: var(--border);
    --color-border-soft: var(--border);
    --color-ink: var(--ink);
    --color-body: var(--ink-secondary);
    --color-muted: var(--ink-tertiary);
    --color-accent-soft: var(--accent-soft);
    --color-accent-tint: var(--accent-soft);
    --color-good: var(--good);
    --color-bad: var(--bad);
    --word-good: var(--ink);
    --word-bad: var(--ink-tertiary);
    --word-strike: var(--ink-tertiary);
    --shadow-card: none;
    --shadow-card-lg: none;
    --shadow-elevated: var(--shadow-overlay);
    --grain-opacity: 0;
    --motif-opacity: 0.4;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  /* Theme-switch smoothing, universal fallback: every color-bearing element gets a smooth
     wash by default. Anything with its own hover/interaction transition (buttons, links)
     already lists these same properties, so it overrides this at its own quicker speed
     instead of losing the effect entirely. */
  *, *::before, *::after {
    transition-property: background-color, border-color, color, box-shadow, fill, stroke, text-decoration-color;
    transition-duration: 480ms;
    transition-timing-function: var(--ease-smooth);
  }

  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-body);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 { font-family: var(--font-serif); margin: 0; }
  p { margin: 0; }
  a { color: inherit; }
  img { max-width: 100%; height: auto; display: block; }

  section, header, footer, nav, .price-card, .nav-dropdown-inner {
    transition: background-color 480ms var(--ease-smooth), border-color 480ms var(--ease-smooth), box-shadow 480ms var(--ease-smooth);
  }

  /* Gradient text, reserved for a couple of subtle highlight spots only */
  .grad-text {
    background: var(--gradient-highlight);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; font-style: normal;
  }

  /* Logo wordmark: "Mail" in solid brand blue, not gradient */
  .logo-mail { color: var(--color-accent); }

  /* Headline good/bad contrast: replies = what you want, sends = the vanity metric */
  .word-good { color: var(--word-good); }
  .word-bad { color: var(--word-bad); }

  /* Grain: one fixed, non-scrolling layer so the theme reads rich instead of flat */
  .grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: var(--grain-opacity); mix-blend-mode: overlay;
    transition: opacity 420ms var(--ease-smooth);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--color-accent); color: #fff; font-weight: 600;
    font-size: 14px; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  }
  .skip-link:focus { left: 0; }

  :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

  .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    padding: 13px 22px; border-radius: var(--radius-sm); text-decoration: none;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background 220ms var(--ease-smooth), border-color 220ms var(--ease-smooth), transform 220ms var(--ease-smooth), box-shadow 220ms var(--ease-smooth), color 220ms var(--ease-smooth);
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: var(--color-accent); color: #ffffff;
  }
  .btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
  .btn-primary:active { transform: scale(0.98) translateY(0); }
  .btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
  .btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .btn-sm { font-size: 14px; padding: 9px 16px; }
  .btn-lg { font-size: 16.5px; padding: 15px 26px; }
  .btn-block { display: flex; width: 100%; }

  /* Icon buttons (theme toggle, mobile menu) */
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    background: var(--color-bg-elevated); border: 1px solid var(--color-border);
    cursor: pointer; transition: background 220ms var(--ease-smooth), border-color 220ms var(--ease-smooth), transform 160ms var(--ease-smooth);
    color: var(--color-ink);
  }
  .icon-btn:hover { border-color: var(--color-accent); }
  .icon-btn:active { transform: scale(0.94); }
  .icon-swap { position: relative; width: 18px; height: 18px; }
  .icon-swap svg {
    position: absolute; inset: 0;
    transition: opacity 450ms var(--ease-smooth), transform 450ms var(--ease-smooth);
  }

  /* Theme toggle: sun shows in dark mode (click for light), moon shows in light mode (click for dark) */
  .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
  .icon-moon { opacity: 0; transform: scale(0.4) rotate(90deg); }
  [data-theme="light"] .icon-sun { opacity: 0; transform: scale(0.4) rotate(-90deg); }
  [data-theme="light"] .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

  /* Mobile menu toggle: hamburger morphs into an X */
  .nav-icon-menu { opacity: 1; transform: scale(1) rotate(0deg); }
  .nav-icon-close { opacity: 0; transform: scale(0.4) rotate(-90deg); }
  .nav-toggle[aria-expanded="true"] .nav-icon-menu { opacity: 0; transform: scale(0.4) rotate(90deg); }
  .nav-toggle[aria-expanded="true"] .nav-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }

  /* Nav */
  .site-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--color-bg) 85%, transparent); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border-soft);
  }
  .nav-inner {
    padding: 12px 24px; display: flex; align-items: center; justify-content: flex-start; gap: 22px;
  }
  .nav-logo {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-serif); font-weight: 700; font-size: 22px;
    color: var(--color-ink); text-decoration: none; letter-spacing: -0.3px;
  }
  .nav-logo .logo-mail { font-weight: 700; }
  .nav-logo-mark { display: inline-flex; flex: none; }
  .nav-logo-mark svg { width: 27px; height: 27px; display: block; border-radius: 7px; }
  .nav-actions { margin-left: auto; }
  .nav-links { display: flex; align-items: center; gap: 6px; }

  .nav-item { position: relative; }
  .nav-link {
    position: relative;
    font-size: 14.5px; color: var(--color-body); text-decoration: none;
    transition: color 220ms var(--ease-smooth);
    padding: 10px 6px; display: inline-flex;
  }
  /* Gradient underline wipes in on hover — the gradient lives on interaction, not static text */
  .nav-link::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 2px; border-radius: 2px;
    background: var(--gradient-highlight); transform: scaleX(0); transform-origin: left;
    transition: transform 300ms var(--ease-smooth);
  }
  .nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
  .nav-link:hover { color: var(--color-accent); }
  .nav-link-muted { color: var(--color-muted); }
  .nav-link-muted:hover { color: var(--color-ink); }

  .nav-trigger {
    display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
    font: inherit; font-size: 14.5px; color: var(--color-body); padding: 10px 6px;
    transition: color 220ms var(--ease-smooth);
  }
  .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--color-accent); }
  .nav-trigger .chevron { transition: transform 300ms var(--ease-smooth); }
  .nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

  .nav-dropdown-panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
    padding-top: 12px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 260ms var(--ease-smooth), transform 260ms var(--ease-smooth), visibility 260ms;
    z-index: 60;
  }
  .nav-item:hover .nav-dropdown-panel,
  .nav-dropdown-panel.is-open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown-inner {
    min-width: 300px; background: var(--color-bg-elevated); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-elevated); padding: 10px;
  }
  .dropdown-link {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
    text-decoration: none; transition: background 180ms var(--ease-smooth);
  }
  .dropdown-link:hover { background: var(--color-bg); }
  .dropdown-link-icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
    background: var(--color-accent-soft); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
  }
  .dropdown-link-title { font-size: 14px; font-weight: 600; color: var(--color-ink); }
  .dropdown-link-desc { font-size: 12.5px; color: var(--color-muted); margin-top: 2px; line-height: 1.4; }

  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .nav-toggle { display: none; }

  /* Signed-in account menu */
  .nav-account { position: relative; }
  .nav-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; overflow: hidden; display: grid; place-items: center; padding: 0; }
  .nav-avatar:hover { border-color: var(--color-accent); }
  .nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .nav-account-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; background: var(--color-bg-elevated, #12141c); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.16s ease; z-index: 60; }
  .nav-account.open .nav-account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-account-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--color-border); margin-bottom: 6px; }
  .nav-account-name { font-weight: 700; font-size: 14px; color: var(--color-ink); }
  .nav-account-email { font-size: 12px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-account-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--color-body, #c6cad4); text-decoration: none; background: transparent; border: none; cursor: pointer; }
  .nav-account-item:hover { background: rgba(255,255,255,0.06); color: var(--color-ink); }
  .nav-account-logout { color: #f87171; }

  /* Mobile dropdown panel */
  .nav-mobile-panel {
    display: none;
    max-height: 0; overflow: hidden;
    background: var(--color-bg); border-bottom: 1px solid transparent;
    transition: max-height 480ms var(--ease-smooth), border-color 480ms var(--ease-smooth);
  }
  .nav-mobile-panel.is-open { max-height: 640px; border-color: var(--color-border-soft); overflow-y: auto; }
  .nav-mobile-group-label {
    padding: 14px 24px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--color-muted);
  }
  .nav-mobile-link {
    display: block; padding: 12px 24px; font-size: 15px; font-weight: 500;
    color: var(--color-body); text-decoration: none;
    transition: background 180ms var(--ease-smooth), color 180ms var(--ease-smooth);
  }
  .nav-mobile-link:hover, .nav-mobile-link:focus-visible { color: var(--color-accent); background: var(--color-bg-elevated); }

  /* Hero */
  .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border-soft); }
  .hero-motif {
    position: absolute; inset: 0; z-index: 0; opacity: var(--motif-opacity);
    filter: drop-shadow(0 0 6px rgba(48,197,210,0.25));
    transition: opacity 420ms var(--ease-smooth);
  }
  .hero-motif .path-flow { stroke-dasharray: 6 10; animation: flow 7s linear infinite; }
  .hero-motif .path-flow-slow { stroke-dasharray: 5 12; animation: flow 11s linear infinite; }
  .hero-motif .node-pulse { animation: nodepulse 2.6s ease-in-out infinite; transform-origin: center; }
  .hero-motif .node-pulse-2 { animation: nodepulse 3.4s ease-in-out infinite 0.8s; transform-origin: center; }
  .hero-inner {
    position: relative; z-index: 2; padding: 68px 24px 80px;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  }
  .eyebrow {
    font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 18px;
  }
  .hero-headline {
    font-weight: 700; font-size: 38px; line-height: 1.18; color: var(--color-ink);
    margin: 0 0 18px; letter-spacing: -0.4px;
  }
  .hero-headline em {
    font-style: italic; padding-bottom: 2px; display: inline-block;
  }
  .hero-sub {
    margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--color-body); max-width: 460px;
  }
  .hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .hero-trust { margin: 14px 0 0; font-size: 13px; color: var(--color-muted); }

  /* Hero video: three stacked blocks (header / video / footer), NOT overlaid on the
     footage. The header and footer are their own flex rows with their own height —
     the wrapper's total height is header + full 16:9 video + footer, so the video
     itself is never squeezed into a leftover slice of a fixed-height box. */
  .video-stack {
    display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-card-lg);
    transition: transform 320ms var(--ease-smooth), box-shadow 320ms var(--ease-smooth);
  }
  .video-stack:hover { transform: translateY(-4px); box-shadow: var(--shadow-overlay); }
  .video-stack-header {
    flex: 0 0 auto; display: flex; align-items: center; padding: 12px 18px;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .video-stack-header .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
  .video-stack-header .wordmark .m { color: var(--color-accent); }
  .video-stack-footer {
    flex: 0 0 auto; padding: 12px 18px; background: #151b23; border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--color-muted); font-size: 13px; font-style: italic;
  }
  /* Hero video facade: real YouTube thumbnail, plays inline on click, never redirects.
     Always a clean 16:9 — never stretched or shrunk to make room for chrome, since
     the header/footer now live outside it in .video-stack. */
  .video-facade {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    overflow: hidden; cursor: pointer; background: #000;
  }
  .video-facade iframe { width: 100%; height: 100%; border: none; display: block; }
  .video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
  .video-poster {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background:
      radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 60%),
      linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 60%, var(--bg) 100%);
  }
  .video-poster-logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); color: var(--ink); letter-spacing: -0.02em; }
  .video-poster-logo .logo-mail { color: var(--color-accent); }
  .video-poster-pill { font-size: 12px; font-weight: 700; color: var(--good); background: rgba(53,184,125,0.12); border: 1px solid rgba(53,184,125,0.35); padding: 5px 14px; border-radius: var(--r-control); letter-spacing: 0.02em; }
  .video-poster-sub { font-size: 13.5px; color: var(--color-muted); letter-spacing: 0.02em; }
  .video-play-btn {
    position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: rgba(10,13,18,0.22); border: none; padding: 0; cursor: pointer;
    transition: background 220ms var(--ease-smooth);
  }
  .video-play-btn:hover { background: rgba(10,13,18,0.34); }
  .video-play-icon {
    width: 66px; height: 66px; border-radius: 50%; background: var(--color-accent); color: #ffffff;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-overlay);
    transition: transform 220ms var(--ease-smooth), background 220ms var(--ease-smooth);
  }
  .video-play-btn:hover .video-play-icon { transform: scale(1.08); background: var(--color-accent-hover); }
  .video-play-icon svg { margin-left: 4px; }

  /* Statement band */
  .statement-band { border-bottom: 1px solid var(--color-border-soft); background: var(--color-bg); }
  .statement-band .container { padding: 22px 24px; text-align: center; }
  .statement-band p { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--color-ink); }
  .statement-band .statement-eyebrow { margin-bottom: 8px; }

  .feature-body { font-size: 16.5px; line-height: 1.6; color: var(--color-body); }

  /* Feature showcase: sticky-image scroll, sourcewhale-style */
  .showcase-section { background: var(--color-bg); padding: 88px 0 96px; border-top: 1px solid var(--color-border-soft); }
  .showcase-head { max-width: 640px; margin: 0 auto 56px; text-align: center; padding: 0 24px; }
  .showcase-title { font-weight: 700; font-size: 34px; line-height: 1.18; color: var(--color-ink); margin: 0 0 16px; }
  .showcase-lede { font-size: 17px; line-height: 1.6; color: var(--color-muted); }

  .showcase-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 52px; align-items: start; }
  .showcase-sticky { position: sticky; top: 88px; }
  .showcase-image-frame {
    position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9;
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-elevated), 0 0 0 1px var(--color-border);
  }
  .showcase-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 700ms var(--ease-smooth);
  }
  .showcase-img.is-active { opacity: 1; }

  .showcase-text-track { display: flex; flex-direction: column; }
  .showcase-block {
    min-height: 56vh; display: flex; flex-direction: column; justify-content: center;
    opacity: 0.4; transition: opacity 500ms var(--ease-smooth);
    scroll-margin-top: 100px;
  }
  .showcase-block:first-child { min-height: 46vh; }
  .showcase-block:last-child { min-height: 46vh; padding-bottom: 8vh; }
  .showcase-block.is-active { opacity: 1; }
  .showcase-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 14px; }
  .showcase-block-title { font-family: var(--font-serif); font-weight: 700; font-size: 27px; line-height: 1.2; color: var(--color-ink); margin: 0 0 14px; }
  .showcase-block-body { font-size: 16.5px; line-height: 1.6; color: var(--color-body); max-width: 440px; }
  .showcase-mobile-img { display: none; }

  /* Impact / savings calculator: the one section allowed to lean harder into the gradient */
  .impact-section {
    position: relative; overflow: hidden; padding: 92px 24px;
    background: var(--color-bg-elevated); border-top: 1px solid var(--color-border-soft); border-bottom: 1px solid var(--color-border-soft);
  }
  .impact-wash {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
    background: radial-gradient(60% 60% at 15% 10%, var(--accent-soft), transparent 60%),
                radial-gradient(55% 55% at 88% 85%, rgba(255,255,255,0.05), transparent 60%);
  }
  [data-theme="light"] .impact-wash { opacity: 0.08; }
  .impact-head { position: relative; max-width: 680px; margin: 0 auto 48px; text-align: center; }
  .impact-title { font-weight: 700; font-size: 36px; line-height: 1.15; color: var(--color-ink); margin: 0 0 16px; }
  .impact-lede { font-size: 17px; line-height: 1.6; color: var(--color-muted); margin-bottom: 48px; }

  .impact-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
  .impact-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px 22px; }
  .impact-card-icon {
    width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: var(--color-accent-soft); color: var(--color-accent); margin-bottom: 16px;
  }
  .impact-card-stat { font-family: var(--font-serif); font-weight: 700; font-size: 24px; color: var(--color-ink); margin-bottom: 6px; }
  .impact-card-label { font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }

  /* Steps */
  .steps-section { background: var(--color-bg); padding: 80px 24px; }
  .steps-head { text-align: center; margin: 0 auto 52px; max-width: 620px; }
  .steps-title { font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--color-ink); margin: 0 0 16px; }
  .steps-lede { font-size: 17px; line-height: 1.6; color: var(--color-muted); }
  .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
  .step-num { font-family: var(--font-serif); font-size: 68px; font-weight: 700; line-height: 1; color: var(--color-accent); opacity: 0.5; margin-bottom: 10px; }
  .step-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--color-ink); margin: 0 0 10px; }
  .step-body { font-size: 15.5px; line-height: 1.6; color: var(--color-body); }

  /* Lead magnet */
  .leadmagnet-section { background: var(--color-bg); padding: 64px 24px; }
  .leadmagnet-panel {
    max-width: 1032px; margin: 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    padding: 40px 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center;
  }
  .leadmagnet-title { font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--color-ink); margin: 0 0 12px; }
  .leadmagnet-form { display: flex; gap: 10px; }
  .leadmagnet-form label { display: block; }
  .input-email {
    flex: 1; min-width: 0; font-size: 15px; padding: 12px 14px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-ink); font-family: inherit; outline: none;
    transition: border-color 220ms var(--ease-smooth);
  }
  .input-email::placeholder { color: var(--color-muted); }
  .input-email:focus { border-color: var(--color-accent); }

  /* Pricing */
  .pricing-section { background: var(--color-bg-elevated); border-top: 1px solid var(--color-border-soft); border-bottom: 1px solid var(--color-border-soft); padding: 80px 24px; }
  .pricing-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
  .pricing-title { font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--color-ink); margin: 0 0 16px; }
  .pricing-lede { font-size: 17px; color: var(--color-muted); }
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
  .price-card {
    background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    padding: 30px 26px; display: flex; flex-direction: column;
  }
  .price-card--featured { position: relative; background: var(--color-accent-tint); border: 2px solid var(--color-accent); box-shadow: none; }
  .price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; color: #ffffff;
    background: var(--color-accent); padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  }
  .price-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--color-ink); margin: 0 0 8px; }
  .price-amount { margin-bottom: 6px; }
  .price-amount .num { font-family: var(--font-serif); font-size: 42px; font-weight: 700; color: var(--color-ink); }
  .price-amount .unit { font-size: 15px; color: var(--color-muted); }
  .price-cap { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--color-accent); }
  .price-feature-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
  .price-feature { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--color-body); line-height: 1.5; }
  .price-feature svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
  /* Shared-row comparison table (equal-height cards) */
  .price-feature-table { display: flex; flex-direction: column; margin-bottom: 24px; flex: 1; }
  .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 0; border-top: 1px solid var(--color-border-soft); font-size: 14px; color: var(--color-body); line-height: 1.35; }
  .price-row:first-child { border-top: none; }
  .price-row .lbl { text-align: left; }
  .price-row .val { flex-shrink: 0; font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--color-ink); }
  .price-row .yes { flex-shrink: 0; display: inline-flex; color: var(--color-accent); }
  .price-row .no { flex-shrink: 0; display: inline-flex; color: var(--color-muted); opacity: 0.5; }
  .price-row.is-off { color: var(--color-muted); }
  .price-row.is-off .val { color: var(--color-muted); font-size: 15px; }

  /* FAQ */
  .faq-section { background: var(--color-bg); padding: 80px 24px; }
  .faq-inner { max-width: 720px; margin: 0 auto; }
  .faq-title { font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--color-ink); margin: 0 0 40px; text-align: center; }
  .faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-border); }
  .faq-item { border-bottom: 1px solid var(--color-border); }
  .faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    text-align: left; background: none; border: none; padding: 20px 4px; cursor: pointer;
    font-size: 16.5px; font-weight: 600; color: var(--color-ink); font-family: inherit;
    transition: color 220ms var(--ease-smooth);
  }
  .faq-question:hover { color: var(--color-accent); }
  .faq-mark { font-size: 20px; color: var(--color-accent); flex-shrink: 0; transition: transform 300ms var(--ease-smooth); }
  .faq-question[aria-expanded="true"] .faq-mark { transform: rotate(180deg); }
  .faq-answer { overflow: hidden; max-height: 0; transition: max-height 380ms var(--ease-smooth); }
  .faq-answer.is-open { max-height: 220px; }
  .faq-answer p { padding: 0 4px 22px; font-size: 15.5px; line-height: 1.65; color: var(--color-body); max-width: 640px; }

  /* Final CTA */
  .final-cta { background: var(--color-bg-elevated-2); padding: 88px 24px; text-align: center; border-top: 1px solid var(--color-border-soft); }
  .final-cta-title { font-weight: 700; font-size: 42px; line-height: 1.15; color: var(--color-ink); margin: 0 0 16px; letter-spacing: -0.4px; }
  .final-cta-body { margin: 0 auto 30px; font-size: 17px; line-height: 1.6; color: var(--color-muted); max-width: 520px; }

  /* Footer */
  .site-footer { background: var(--color-bg-elevated-2); border-top: 1px solid var(--color-border-soft); padding: 26px 24px; }
  .footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .footer-copy { margin: 0; font-size: 13.5px; color: var(--color-muted); }
  .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
  .footer-link { font-size: 13.5px; color: var(--color-muted); text-decoration: none; transition: color 220ms var(--ease-smooth); }
  .footer-link:hover { color: var(--color-ink); }

  /* Contact modal */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(6,8,11,0.6); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease-smooth), visibility 260ms;
  }
  .modal-overlay.is-open { opacity: 1; visibility: visible; }
  .modal-panel {
    position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated); padding: 36px 32px;
    transform: translateY(14px) scale(0.98); transition: transform 260ms var(--ease-smooth);
  }
  .modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); }
  .modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--color-bg);
    border: 1px solid var(--color-border); color: var(--color-muted); cursor: pointer;
    transition: background 180ms var(--ease-smooth), color 180ms var(--ease-smooth);
  }
  .modal-close:hover { color: var(--color-ink); background: var(--color-bg-elevated-2); }
  .modal-title { font-weight: 700; font-size: 24px; color: var(--color-ink); margin: 0 0 8px; padding-right: 30px; }
  .modal-lede { font-size: 14.5px; line-height: 1.55; color: var(--color-muted); margin: 0 0 24px; }
  .modal-form { display: flex; flex-direction: column; gap: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group label { font-size: 13.5px; font-weight: 600; color: var(--color-body); }
  .form-group input, .form-group textarea {
    font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-ink); outline: none; resize: vertical;
    transition: border-color 220ms var(--ease-smooth);
  }
  .form-group input:focus, .form-group textarea:focus { border-color: var(--color-accent); }
  .form-group input:invalid:not(:placeholder-shown), .form-group textarea:invalid:not(:placeholder-shown) { border-color: #b8483f; }
  .form-status { font-size: 13.5px; line-height: 1.5; min-height: 0; }
  .form-status.is-success { color: #3fae74; }
  .form-status.is-error { color: #d97757; }

  /* Scroll reveal */
  [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  .steps-grid > div:nth-child(2) { transition-delay: 90ms; }
  .steps-grid > div:nth-child(3) { transition-delay: 180ms; }
  .pricing-grid > div:nth-child(2) { transition-delay: 90ms; }
  .pricing-grid > div:nth-child(3) { transition-delay: 180ms; }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  @keyframes flow {
    to { stroke-dashoffset: -160; }
  }
  @keyframes nodepulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
  }

  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .live-dot, .hero-motif [class*="path-flow"], .hero-motif [class*="node-pulse"] { animation: none; }
    html { scroll-behavior: auto; }
    .icon-swap svg, .nav-mobile-panel, .nav-dropdown-panel { transition: none; }
    .video-facade { transition: none; }
    body, section, header, footer, nav { transition: none; }
    .showcase-layout { grid-template-columns: 1fr; }
    .showcase-sticky { display: none; }
    .showcase-block { min-height: 0; opacity: 1; transition: none; padding-bottom: 24px; }
    .showcase-mobile-img {
      display: block; width: 100%; max-width: 100%; border-radius: var(--radius-md);
      box-shadow: var(--shadow-elevated), 0 0 0 1px var(--color-border); margin: 16px 0 4px;
    }
  }

  /* Tablet and below */
  @media (max-width: 900px) {
    .nav-inner { padding: 12px 20px; }
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-mobile-panel { display: block; }

    .hero { border-bottom: 1px solid var(--color-border-soft); }
    .hero-inner { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 32px; }
    .hero-headline { font-size: 33px; }
    .hero-sub { font-size: 16px; max-width: none; }
    /* Taller than 16:9 on narrower screens: this is the video's OWN box getting more
       room for its own content (scene 3's email card) — separate from the header/
       footer, which live outside .video-facade entirely and never affect this. */
    .video-facade { aspect-ratio: 4 / 3.4; }

    .statement-band .container { padding: 20px; }
    .statement-band p { font-size: 17px; }

    .showcase-section { padding: 52px 0 56px; }
    .showcase-head { margin-bottom: 32px; }
    .showcase-title { font-size: 26px; }
    .showcase-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
    .showcase-sticky { display: none; }
    .showcase-block { min-height: 0; display: block; opacity: 1; margin-bottom: 40px; }
    .showcase-block:first-child, .showcase-block:last-child { min-height: 0; padding-bottom: 0; }
    .showcase-block:last-child { margin-bottom: 0; }
    .showcase-block-title { font-size: 22px; }
    .showcase-block-body { font-size: 15.5px; max-width: none; }
    .showcase-mobile-img {
      display: block; width: 100%; max-width: 100%; height: auto; margin: 14px auto 4px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-elevated), 0 0 0 1px var(--color-border);
    }

    .impact-section { padding: 52px 20px; }
    .impact-title { font-size: 26px; }
    .impact-lede { font-size: 16px; margin-bottom: 32px; }
    .impact-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .impact-card { padding: 20px 18px; }
    .impact-card-stat { font-size: 19px; }

    .steps-section, .faq-section, .pricing-section { padding: 52px 20px; }
    .steps-title, .pricing-title, .faq-title { font-size: 27px; }
    .steps-lede, .pricing-lede { font-size: 16px; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .pricing-grid { grid-template-columns: 1fr; }

    .leadmagnet-section { padding: 52px 20px; }
    .leadmagnet-panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
    .leadmagnet-title { font-size: 22px; }
    .leadmagnet-form { flex-direction: column; }
    .leadmagnet-form .btn { width: 100%; }

    .final-cta { padding: 56px 20px; }
    .final-cta-title { font-size: 28px; }
    .final-cta-body { font-size: 16px; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

    .modal-panel { padding: 30px 24px; }
    .modal-title { font-size: 22px; }
  }

  /* Phones */
  @media (max-width: 520px) {
    .hero-headline { font-size: 28px; }
    .hero-sub { font-size: 15.5px; }
    .video-facade { aspect-ratio: 4 / 5; }
    .hero-ctas { gap: 10px; }
    .hero-ctas .btn { width: 100%; }
    .statement-band p { font-size: 15.5px; }
    .showcase-title, .impact-title, .steps-title, .pricing-title, .faq-title, .final-cta-title { font-size: 24px; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-card-stat { font-size: 20px; }
    .faq-question { font-size: 15.5px; }
    .price-amount .num { font-size: 38px; }
  }

  /* Internal-link mesh: "keep reading" block at the end of each blog post */
  .keep-reading { max-width: 720px; margin: 8px auto 0; padding: 28px 24px 8px; border-top: 1px solid var(--color-border); }
  .keep-reading .kr-lead { color: var(--color-body); font-size: 16px; margin: 0 0 16px; }
  .keep-reading .kr-lead a { color: var(--color-accent); text-decoration: none; }
  .keep-reading .kr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .keep-reading .kr-list a { display: block; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-elevated); color: var(--color-ink); text-decoration: none; font-weight: 540; font-size: 15px; }
  .keep-reading .kr-list a:hover { border-color: var(--color-accent); }
