﻿  /* —— Evermail marketing — derived from --mkt-* tokens in colors_and_type.css —— */
  :root {
    --em-blue:       var(--mkt-blue);
    --em-blue-hov:   var(--mkt-blue-hover);
    --em-ink:        var(--mkt-ink);
    --em-ink-soft:   var(--mkt-ink-soft);
    --em-navy:       var(--mkt-ink);              /* legacy alias */
    --em-navy-deep:  var(--mkt-ink);              /* legacy alias */
    --em-teal:       var(--mkt-blue);             /* legacy alias → blue */
    --em-teal-deep:  var(--mkt-blue-hover);       /* legacy alias */
    --em-grad:       var(--mkt-gradient);
    --em-grad-soft:  var(--mkt-gradient-soft);

    --color-brand-primary:   var(--mkt-blue);
    --color-brand-accent:    var(--mkt-blue);
    --color-brand-gradient:  var(--mkt-gradient);
    --shadow-primary:        var(--mkt-shadow-primary);
    --shadow-primary-lg:     var(--mkt-shadow-primary-lg);

    /* Surfaces */
    --page-bg:           var(--mkt-surface);
    --panel-bg:          var(--mkt-surface);
    --panel-muted:       var(--mkt-surface-band-1);
    --panel-muted-2:     var(--mkt-surface-band-2);
    --rule:              var(--mkt-rule);
    --text-strong:       var(--mkt-text-strong);
    --text:              var(--mkt-text);
    --text-muted:        var(--mkt-text-muted);
    --text-faint:        var(--mkt-text-faint);
    --accent-tint:       var(--mkt-accent-tint);
    --accent-ring:       var(--mkt-accent-ring);
    --teal-tint:         var(--mkt-accent-tint);
    --mark-bg:           var(--mkt-accent-tint-strong);
  }

  /* Dark theme — inherits --mkt-* dark overrides from colors_and_type.css,
     plus marketing-specific surface aliases and color-scheme. */
  html[data-theme="dark"] {
    --em-navy-deep:         var(--mkt-text-strong);
    --em-ink:               var(--mkt-text-strong);
    /* In dark mode, --em-navy is used both for accent text (links, hover
       states, icons) and for "strong" headings. Mapping to blue covers
       accent roles; places that want strong text can use --text-strong. */
    --em-navy:              var(--mkt-blue);
    --color-surface:        var(--mkt-surface);
    --color-surface-muted:  var(--mkt-surface-band-1);
    --color-border:         var(--mkt-rule);
    --color-text-primary:   var(--mkt-text);
    --color-text-secondary: var(--mkt-text-muted);
    --color-text-muted:     var(--mkt-text-faint);
    color-scheme: dark;
  }
  html[data-theme="dark"] body { background: var(--page-bg); }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  /* Sticky .nav (~64px) sits above anchor targets — push the anchor down
     so jumped-to sections aren't tucked behind the navbar. */
  section[id] { scroll-margin-top: 80px; }
  body { margin: 0; background: var(--color-surface); color: var(--color-text-primary); }
  ::selection { background: rgba(37,99,235,0.22); color: #fff; }

  /* —— Container —— */
  .container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
  section { padding: 6rem 0; }
  section.section--lg { padding: 7.5rem 0; }
  section.section--sm { padding: 4rem 0; }
  /* Zebra stripe — matches evermail.ai reference: alternating white / soft grey bands */
  section.pain,
  section#how-it-works,
  section#formats,
  section#features,
  section#use-cases,
  section.integ,
  section#pricing,
  section.founder,
  section#faq { background: var(--panel-muted); }
  section.pain + .hr,
  section#how-it-works + .hr,
  section#formats + .hr,
  section#features + .hr,
  section#use-cases + .hr,
  section.integ + .hr,
  section#pricing + .hr,
  section.founder + .hr,
  section#faq + .hr { display: none; }
  /* Sections that stay white/page-bg (between muted ones) */
  section.hero { background: var(--page-bg); }
  .hr { max-width: 1120px; margin: 0 auto; border: 0; border-top: 1px solid var(--color-border); }

  /* —— Navigation —— */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s;
  }
  .nav { background: color-mix(in srgb, var(--page-bg) 85%, transparent); }
  .nav.is-stuck { border-bottom-color: var(--rule); }
  .nav__inner {
    max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  }
  .nav__brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; color: var(--text-strong); }
  .nav__brand img { width: 28px; height: auto; display: block; }
  .nav__wordmark { color: var(--text-strong); }
  .nav__beta {
    margin-left: .65rem;
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: .2rem .55rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--em-navy);
  }
  html[data-theme="dark"] .nav__beta { background: var(--teal-tint); color: var(--em-teal); }
  .nav__links { display: flex; gap: 2rem; font-size: .9rem; }
  .nav__links a { color: var(--text-muted); cursor: pointer; transition: color .15s; }
  .nav__links a:hover { color: var(--em-navy); }
  html[data-theme="dark"] .nav__links a:hover { color: var(--em-teal); }
  .nav__cta { display: flex; gap: 1.25rem; align-items: center; }
  .nav__cta a { cursor: pointer; }
  .nav__login {
    font-size: .9rem; font-weight: 500; color: var(--text-muted);
    transition: color .15s;
  }
  .nav__login:hover { color: var(--text-strong); }
  .nav__start { /* uses btn btn-primary btn-sm */ }
  /* Legacy theme-toggle kept hidden in case anything references it */
  .theme-toggle { display: none; }
  /* Nav theme toggle (dark/light mode button in the nav bar) */
  .nav__theme {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule); background: transparent; color: var(--text-muted);
    border-radius: 8px; padding: 0; cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
  }
  .nav__theme:hover { color: var(--text-strong); border-color: var(--em-navy); background: var(--panel-muted); }
  .nav__theme i { font-size: 1rem; }
  @media (max-width: 880px) { .nav__links { display: none; } }

  /* —— Mobile nav (hamburger + slide-down sheet) —— */
  .nav__mobile-toggle {
    display: none;
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid var(--rule); background: transparent; color: var(--text-muted);
    align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.1rem;
  }
  .nav__mobile-sheet {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--page-bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 49;
    box-shadow: 0 12px 30px -12px rgba(15,23,42,0.15);
  }
  .nav__mobile-sheet.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav__mobile-sheet a {
    display: block;
    padding: .85rem 0;
    font-size: 1.05rem; font-weight: 500;
    color: var(--text-strong);
    border-bottom: 1px solid var(--rule);
  }
  .nav__mobile-sheet a:last-of-type { border-bottom: 0; }
  .nav__mobile-sheet .btn { display: block; text-align: center; margin-top: 1rem; }
  html[data-theme="dark"] .nav__mobile-sheet { background: var(--page-bg); }
  @media (max-width: 880px) {
    .nav__mobile-toggle { display: inline-flex; }
    .nav__mobile-sheet { display: block; }
    /* hide Log in + Start free in the nav bar on mobile — move into the sheet */
    .nav__cta .nav__login,
    .nav__cta .nav__start { display: none; }
  }

  /* —— Button overrides (marketing-specific)
     Replaces the heavy gradient + blue-tinted shadow with a flat blue CTA
     and a darker-on-hover color change (the default only grew the shadow). —— */
  .btn-primary {
    background: var(--em-blue);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 10px -4px rgba(37, 99, 235, 0.22);
  }
  .btn-primary:hover {
    background: var(--em-blue-hov);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 14px -4px rgba(37, 99, 235, 0.28);
  }
  html[data-theme="dark"] .btn-primary {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px -4px rgba(59, 130, 246, 0.28);
  }
  html[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(59, 130, 246, 0.35);
  }

  /* —— Hero —— */
  .hero { padding: 6rem 0 4rem; position: relative; overflow: hidden; }
  .hero::before {
    content: ''; position: absolute; inset: -10% -10% auto -10%; height: 70%;
    background:
      radial-gradient(60% 70% at 20% 25%, rgba(37, 99, 235, 0.12), transparent 70%),
      radial-gradient(50% 60% at 85% 5%, rgba(45, 191, 169, 0.14), transparent 70%);
    pointer-events: none;
  }
  html[data-theme="dark"] .hero::before {
    background:
      radial-gradient(60% 70% at 20% 25%, rgba(59, 130, 246, 0.18), transparent 70%),
      radial-gradient(50% 60% at 85% 5%, rgba(93, 225, 214, 0.16), transparent 70%);
  }
  .hero__inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
  .hero .eyebrow { color: var(--mkt-teal); margin-bottom: 1.25rem; }
  html[data-theme="dark"] .hero .eyebrow { color: var(--mkt-teal-soft); }
  h1:focus { outline: none; }
  .hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 auto 1.75rem;
    max-width: 18ch;
  }
  .hero h1 .accent {
    background: var(--em-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero__sub { max-width: 620px; margin: 0 auto 2.5rem; font-size: 1.15rem; line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }
  .hero__cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
  .hero__free-note { font-size: .82rem; color: var(--color-text-muted); margin-bottom: 3rem; }
  .hero__formats {
    display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
    margin-bottom: 3.5rem;
  }
  .format-chip {
    font-family: var(--font-family-mono); font-size: .78rem; font-weight: 500;
    padding: .35rem .75rem; border-radius: 999px;
    background: var(--color-surface-muted); color: var(--em-navy);
    border: 1px solid var(--color-border);
  }
  .hero__trust {
    display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
    font-size: .82rem; color: var(--color-text-secondary);
  }
  .hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
  .hero__trust i { color: var(--em-navy); }
  html[data-theme="dark"] .hero__trust i { color: var(--em-teal); }

  /* —— Animated search demo —— */
  .demo {
    margin: 5rem auto 0;
    max-width: 1040px;
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 50px 100px -30px rgba(15, 23, 42, 0.18), 0 8px 20px -6px rgba(15,23,42,0.06);
    overflow: hidden;
    border: 1px solid var(--color-border);
  }
  .demo__chrome {
    display: flex; align-items: center; gap: .4rem;
    padding: .65rem .9rem;
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border);
  }
  .demo__dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
  .demo__dot.r { background: #fb7185; } .demo__dot.y { background: #fbbf24; } .demo__dot.g { background: #34d399; }
  .demo__url {
    flex: 1; text-align: center; font-family: var(--font-family-mono); font-size: .72rem;
    color: var(--color-text-muted);
  }
  .demo__body {
    display: grid; grid-template-columns: 220px 1fr; min-height: 480px;
    background: var(--color-surface);
  }
  .demo__rail {
    background: linear-gradient(180deg, #102b44 0%, #1e466b 60%, #0e2840 100%);
    color: #cbd5e1; padding: 1.25rem .9rem;
    display: flex; flex-direction: column; gap: 1.25rem;
  }
  .demo__rail-brand {
    display: flex; align-items: center; gap: .5rem;
    color: #fff; font-weight: 700; font-size: .92rem;
    padding: .25rem .35rem;
  }
  .demo__rail-brand img { width: 22px; height: auto; }
  .demo__rail-section { display: flex; flex-direction: column; gap: .15rem; }
  .demo__rail-label {
    font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(203,213,225,0.5); padding: .4rem .35rem;
  }
  .demo__rail-item {
    display: flex; align-items: center; gap: .55rem;
    padding: .45rem .55rem; border-radius: 8px;
    font-size: .82rem; color: #e2e8f0;
    transition: background .15s;
  }
  .demo__rail-item.is-active { background: rgba(37,99,235,0.15); color: #fff; }
  .demo__rail-item i { color: var(--em-teal); width: 14px; text-align: center; font-size: .8rem; }
  .demo__rail-count { margin-left: auto; font-size: .68rem; color: rgba(203,213,225,0.5); font-variant-numeric: tabular-nums; }

  .demo__main { display: flex; flex-direction: column; }
  .demo__searchbar {
    display: flex; align-items: center; gap: .65rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .demo__searchbar i.bi-search { color: var(--em-navy); }
  .demo__query {
    flex: 1; font-family: var(--font-family-base); font-size: .95rem; color: var(--color-text-primary);
    min-height: 1.4em; display: inline-flex; align-items: center;
  }
  .demo__caret {
    display: inline-block; width: 1.5px; height: 1.05em; background: var(--em-navy);
    margin-left: 1px; animation: caret 1s steps(2, start) infinite;
  }
  @keyframes caret { 50% { opacity: 0; } }
  .demo__count {
    font-size: .76rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums;
  }
  .demo__chips {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .65rem 1.1rem .85rem;
    border-bottom: 1px solid var(--color-border);
    min-height: 50px;
  }
  .demo__chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .76rem; padding: .3rem .6rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--em-navy);
    border: 1px solid var(--accent-ring);
    opacity: 0; transform: translateY(4px);
    animation: chipIn .35s ease-out forwards;
  }
  @keyframes chipIn { to { opacity: 1; transform: none; } }
  .demo__results { flex: 1; overflow: hidden; }
  .demo__row {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: .85rem; padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    opacity: 0; transform: translateY(6px);
    animation: rowIn .35s ease-out forwards;
  }
  @keyframes rowIn { to { opacity: 1; transform: none; } }
  .demo__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-size: .72rem; font-weight: 600;
  }
  .demo__row-body { min-width: 0; }
  .demo__row-from { font-size: .82rem; font-weight: 600; color: var(--color-text-primary); display: flex; align-items: center; gap: .35rem; }
  .demo__row-from i { color: var(--color-text-muted); font-size: .7rem; }
  .demo__row-subj { font-size: .82rem; color: var(--color-text-secondary); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo__row-subj mark { background: rgba(45, 191, 169, 0.22); color: var(--text-strong); padding: 0 .2rem; border-radius: 2px; font-weight: 500; box-shadow: inset 0 -2px 0 rgba(45, 191, 169, 0.55); }
  html[data-theme="dark"] .demo__row-subj mark { background: rgba(93, 225, 214, 0.18); box-shadow: inset 0 -2px 0 rgba(93, 225, 214, 0.6); color: #e2e8f0; }
  .demo__row-date { font-size: .72rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
  .demo__placeholder { padding: 4rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: .85rem; }

  /* Mobile phone-frame bar — shown on mobile to replace the desktop
     browser chrome. Hidden on desktop. */
  .demo__phone-bar {
    display: none;
    align-items: center;
    justify-content: center;
    padding: .5rem .9rem;
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border);
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .demo__phone-bar .demo__notch {
    width: 80px; height: 6px; border-radius: 99px;
    background: var(--color-border);
  }

  /* Mobile bottom nav inside the demo — mimics a native app tab bar.
     Hidden on desktop; shown on mobile when the sidebar rail is gone. */
  .demo__mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    padding: .5rem 0 .35rem;
  }
  .demo__mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    font-size: .6rem; color: var(--color-text-muted); flex: 1;
  }
  .demo__mobile-nav-item i { font-size: 1.05rem; }
  .demo__mobile-nav-item.is-active { color: var(--em-blue); }

  @media (max-width: 720px) {
    .demo__body { grid-template-columns: 1fr; }
    .demo__rail { display: none; }
    .demo__mobile-nav { display: flex; }
  }

  /* —— Generic section header —— */
  .section-eyebrow,
  .section-head p.section-eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700;
    color: var(--mkt-teal); margin-bottom: 1rem;
  }
  html[data-theme="dark"] .section-eyebrow,
  html[data-theme="dark"] .section-head p.section-eyebrow { color: var(--mkt-teal-soft); }
  .section-head { max-width: 680px; margin-bottom: 4rem; }
  .section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
  .section-head h2 {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
    margin-bottom: 1.1rem;
  }
  .section-head p { font-size: 1.08rem; line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }

  /* —— Pain narrative —— */
  .pain { background: var(--color-surface-muted); }
  .pain__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
  .pain__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
  .pain__points { display: flex; flex-direction: column; gap: 2rem; }
  .pain__point { padding-left: 1.25rem; border-left: 2px solid var(--em-navy); }
  html[data-theme="dark"] .pain__point { border-left-color: var(--em-teal); }
  .pain__point p { color: var(--color-text-primary); font-size: 1.02rem; line-height: 1.6; text-wrap: pretty; }
  .pain__point p strong { color: var(--em-navy-deep); font-weight: 600; }
  @media (max-width: 880px) { .pain__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

  /* —— How it works — quiet oversized numerals —— */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    counter-reset: step;
  }
  .step { counter-increment: step; position: relative; }
  /* Hide the raw "1" text node; we render the counter via ::before so we
     control weight, size and colour precisely. */
  .step__num {
    display: block;
    font-size: 0;
    margin-bottom: 1.25rem;
    line-height: 1;
  }
  .step__num::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-family-base);
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--mkt-blue);
    line-height: 1;
  }
  /* Tiny connector under the number, thicker on the active step color */
  .step__num::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--mkt-blue);
    margin-top: 0.9rem;
    opacity: 0.8;
  }
  .step h3 {
    font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em;
    margin: 0 0 .6rem; color: var(--text-strong);
  }
  .step p { font-size: .95rem; line-height: 1.6; color: var(--color-text-secondary); }
  html[data-theme="dark"] .step__num::before { color: var(--mkt-blue); }
  html[data-theme="dark"] .step__num::after { background: var(--mkt-blue); }
  @media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 2.5rem; } }

  /* —— Format compatibility — quiet white tiles on muted band ——
     5 formats, minimal chrome: white surface for contrast against the
     section's muted-grey band, no borders, no shadows, no hover lift.
     Layout strategy:
       Desktop: single 5-col row (no orphan)
       Tablet  (≤ 1080px): 2-col grid, 5th card spans both
       Mobile  (≤ 600px): single column
  */
  .formats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  .format-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    background: var(--color-surface);
    border: 0;
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    text-align: left;
    transition: transform .2s ease;
  }
  .format-card:hover { transform: translateY(-2px); }
  html[data-theme="dark"] .format-card { background: rgba(255,255,255,0.03); }
  .format-card__ext {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-family-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--em-navy);
    letter-spacing: -0.01em;
    margin-bottom: .6rem;
    padding-bottom: .3rem;
    border-bottom: 2px solid var(--em-teal);
  }
  html[data-theme="dark"] .format-card__ext { color: var(--em-teal); border-bottom-color: var(--em-teal); }
  .format-card h4 {
    font-size: 1rem; font-weight: 600; color: var(--em-navy-deep);
    margin-bottom: .15rem; letter-spacing: -0.005em;
  }
  .format-card p {
    font-size: .86rem; line-height: 1.55;
    color: var(--color-text-secondary); text-wrap: pretty;
  }
  @media (max-width: 1080px) {
    .formats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    /* 5th card spans both columns so the layout reads as 4 paired
       formats + 1 summary tile, not a dangling orphan. */
    .formats .format-card:nth-child(5) { grid-column: 1 / -1; }
  }
  @media (max-width: 600px) {
    .formats { grid-template-columns: 1fr; }
    .formats .format-card:nth-child(5) { grid-column: auto; }
  }

  /* —— Features (split layout: 3 hero + 4 supporting) —— */
  .features-hero {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  /* Scoped to #features so this 4-col homepage rule wins over the generic
     .features-grid in app.css (which loads after marketing.css and is also
     used by FormatPage / UseCasePage). */
  section#features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    align-items: stretch;
  }
  .feat-hero {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2rem 2rem 2.25rem;
    position: relative; overflow: hidden;
  }
  .feat-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(80% 60% at 100% 0%, rgba(30,70,107,0.08), transparent 70%);
    pointer-events: none;
  }
  html[data-theme="dark"] .feat-hero::before { background: radial-gradient(80% 60% at 100% 0%, rgba(37,99,235,0.10), transparent 70%); }
  .feat-hero__ico {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--em-grad); color: #fff;
    display: grid; place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  .feat-hero h3 { font-size: 1.25rem; font-weight: 700; color: var(--em-navy-deep); letter-spacing: -0.015em; margin-bottom: .6rem; }
  .feat-hero p { font-size: .98rem; line-height: 1.6; color: var(--color-text-secondary); }
  .feat {
    display: flex; flex-direction: column; gap: .6rem;
  }
  .feat__ico {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--accent-tint); color: var(--em-navy);
    display: grid; place-items: center;
    font-size: 1.05rem;
    margin-bottom: .35rem;
  }
  .feat h3 { font-size: 1.05rem; font-weight: 600; color: var(--em-navy-deep); letter-spacing: -0.01em; }
  .feat p { font-size: .92rem; line-height: 1.55; color: var(--color-text-secondary); }
  @media (max-width: 960px) { .features-hero { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 720px) { .features-hero { grid-template-columns: 1fr; } }
  /* features-grid: 4 → 2 at the same 1080px break used by .formats / .pricing-grid;
     the 1-col stack happens in the shared mobile block below (≤720px). */
  @media (max-width: 1080px) {
    section#features .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  }

  /* —— Security tiers —— */
  section.security { background: #0b1220; color: #e2e8f0; position: relative; overflow: hidden; }
  .security::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(60% 50% at 80% 20%, rgba(37,99,235,0.18), transparent 70%),
      radial-gradient(50% 50% at 10% 80%, rgba(30,70,107,0.4), transparent 70%);
    pointer-events: none;
  }
  .security .container { position: relative; }
  .security .section-eyebrow,
  .security .section-head p.section-eyebrow { color: var(--mkt-teal); }
  .security .section-head h2 { color: #fff; }
  .security .section-head p { color: #94a3b8; }
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
  .tier {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem 1.6rem;
    display: flex; flex-direction: column;
  }
  .tier--mid { border-color: rgba(37,99,235,0.35); background: rgba(37,99,235,0.06); }
  .tier__badge {
    display: inline-block; align-self: flex-start;
    font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
    padding: .25rem .55rem; border-radius: 6px;
    background: rgba(255,255,255,0.08); color: #94a3b8;
    margin-bottom: 1rem;
  }
  .tier--mid .tier__badge { background: rgba(37,99,235,0.18); color: var(--em-teal); }
  .tier--high .tier__badge { background: rgba(255,255,255,0.12); color: #fff; }
  .tier h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: .6rem; letter-spacing: -0.01em; }
  .tier p { font-size: .92rem; line-height: 1.55; color: #94a3b8; margin-bottom: 1.25rem; flex: 1; }
  .tier__best { font-size: .78rem; color: var(--em-teal); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
  .security__note { color: #94a3b8; font-size: .88rem; text-align: center; max-width: 720px; margin: 0 auto; line-height: 1.6; }
  .security__note strong { color: #fff; font-weight: 600; }
  @media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }

  /* —— Use cases —— */
  .usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .uc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: .5rem;
    transition: border-color .15s, transform .15s;
  }
  .uc:hover { border-color: var(--em-navy); transform: translateY(-2px); }
  html[data-theme="dark"] .uc:hover { border-color: var(--em-teal); }
  .uc h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
  .uc p { font-size: .92rem; line-height: 1.55; color: var(--text-muted); flex: 1; }
  .uc a { font-size: .85rem; color: var(--em-navy); font-weight: 500; margin-top: .5rem; }
  html[data-theme="dark"] .uc a { color: var(--em-teal); }
  .uc a:hover { text-decoration: underline; }
  @media (max-width: 880px) { .usecases { grid-template-columns: 1fr; } }

  /* —— Integrations strip —— */
  .integ { background: var(--color-surface-muted); }
  .integ__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .integ__visual {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2rem;
    font-family: var(--font-family-mono); font-size: .82rem; line-height: 1.7;
    color: var(--em-navy-deep);
    box-shadow: 0 30px 60px -20px rgba(15,23,42,0.12);
  }
  .integ__visual .k { color: var(--em-navy); }
  .integ__visual .s { color: #94a3b8; }
  .integ__visual .c { color: var(--mkt-teal); font-weight: 600; }
  html[data-theme="dark"] .integ__visual .c { color: var(--mkt-teal-soft); }
  @media (max-width: 880px) { .integ__inner { grid-template-columns: 1fr; gap: 2.5rem; } }

  /* —— Pricing —— */
  .pricing-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 4.5rem;    /* extra room for the popular-card lift & badge */
    align-items: stretch;
  }
  @media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }
  .price {
    padding: 2.25rem 1.5rem;
    border-right: 1px solid var(--color-border);
    display: flex; flex-direction: column; gap: .65rem;
    position: relative;
  }
  .price:last-child { border-right: 0; }
  @media (max-width: 1080px) { .price:nth-child(2n) { border-right: 0; } .price { border-bottom: 1px solid var(--color-border); } }
  @media (max-width: 600px)  { .price { border-right: 0; } }
  .price.is-popular {
    background: var(--color-surface);
    border: 1px solid var(--em-blue);
    border-radius: 16px;
    margin: -1.75rem -0.5rem;               /* lifts above the row, breaks the 1px seam */
    padding: 2.5rem 1.6rem 2.25rem;
    box-shadow:
      0 1px 2px rgba(15,23,42,0.04),
      0 20px 40px -18px rgba(37,99,235,0.35),
      0 8px 20px -12px rgba(15,23,42,0.18);
    z-index: 2;
    position: relative;
  }
  /* badge ribbon sits ABOVE the card, not in the corner */
  .price.is-popular::before {
    content: 'Most popular';
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    color: #fff;
    background: var(--em-blue);
    padding: .4rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px -2px rgba(37,99,235,0.45);
    z-index: 3;
  }
  html[data-theme="dark"] .price.is-popular {
    background: color-mix(in srgb, var(--em-blue) 8%, var(--color-surface));
    border-color: var(--em-teal);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.3),
      0 20px 40px -18px rgba(93,225,214,0.25),
      0 8px 20px -12px rgba(0,0,0,0.4);
  }
  html[data-theme="dark"] .price.is-popular::before {
    background: var(--em-teal);
    color: #0b1220;
    box-shadow: 0 4px 12px -2px rgba(93,225,214,0.4);
  }
  /* make the price pop a bit more on the featured card */
  .price.is-popular .price__amount { font-size: 2.35rem; }
  .price.is-popular .price__name { color: var(--em-navy); font-size: 1.15rem; }
  html[data-theme="dark"] .price.is-popular .price__name { color: var(--em-teal); }
  .price.is-popular .price__cta { font-weight: 600; }
  /* ensure right-border seam doesn't double up on neighbours */
  .price.is-popular + .price { border-left: 0; }
  .price:has(+ .is-popular) { border-right: 0; }
  /* mobile / 2-col fallback: drop the lift so cards stack cleanly */
  @media (max-width: 1080px) {
    .price.is-popular { margin: 0; border-radius: 0; border-left: 1px solid var(--em-blue); border-right: 1px solid var(--em-blue); }
    .price.is-popular::before { top: 1rem; left: auto; right: 1rem; transform: none; }
  }
  @media (max-width: 600px) {
    .price.is-popular { border-radius: 14px; margin: 1rem 0; }
    .price.is-popular::before { top: -14px; left: 50%; right: auto; transform: translateX(-50%); }
  }
  .price__name { font-size: 1.05rem; font-weight: 700; color: var(--em-navy-deep); }
  .price__tag { font-size: .82rem; color: var(--color-text-muted); }
  .price__amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--em-navy-deep); margin-top: .25rem; }
  .price__amount small { font-size: .8rem; font-weight: 500; color: var(--color-text-secondary); }
  .price__sub { font-size: .78rem; color: var(--color-text-secondary); margin-top: -.25rem; }
  .price__feats {
    list-style: none; padding: 0; margin: 1rem 0 1.5rem;
    display: flex; flex-direction: column; gap: .55rem;
    font-size: .86rem; color: var(--color-text-primary);
  }
  .price__feats li { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.4; }
  .price__feats i { color: var(--em-navy); font-size: .82rem; margin-top: .2rem; flex: none; }
  html[data-theme="dark"] .price__feats i { color: var(--em-teal); }
  .price__cta { margin-top: auto; }
  .pricing__yearly { text-align: center; font-size: .85rem; color: var(--color-text-secondary); margin-top: 2rem; }

  /* —— Monthly / Annual billing toggle ——
     Segmented pill control rendered between the section-head and the
     pricing-grid on the #pricing section. Default state is Monthly; the
     active state is set during SSR from ?billing=annual and toggled
     client-side by js/marketing-pricing-toggle.js. The same control style
     is also reused on the standalone /pricing page if needed. */
.billing-toggle {
  display: flex;
  width: fit-content;
  /* Bottom margin clears the Pro card's "Most popular" ribbon. The badge sits
     46px above the grid's notional top edge: 18px from `top: -18px` on the
     ::before, plus 28px from the popular card's `margin: -1.75rem -0.5rem`
     lift. Adjacent-sibling margins collapse with `.pricing-grid`'s margin-top,
     so this value is the effective gap. 5rem leaves ~2rem of comfortable
     breathing room and matches the section's existing 5rem rhythm
     (`.pricing__compare`). */
  margin: 0 auto 5rem;
  padding: .3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  gap: 0;
}
  .billing-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1.4rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
  }
  .billing-toggle__btn:hover:not(.is-active) { color: var(--text-strong); }
  .billing-toggle__btn:focus-visible { outline: 2px solid var(--em-blue); outline-offset: 2px; }
  .billing-toggle__btn.is-active {
    background: var(--em-blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
  }
  html[data-theme="dark"] .billing-toggle__btn.is-active {
    background: var(--em-teal);
    color: #0b1220;
    box-shadow: 0 2px 6px rgba(93, 225, 214, 0.32);
  }
  .billing-toggle__save {
    display: inline-flex; align-items: center;
    font-size: .66rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: rgba(45, 191, 169, 0.18);
    color: var(--mkt-teal);
  }
  html[data-theme="dark"] .billing-toggle__save {
    background: rgba(93, 225, 214, 0.18);
    color: var(--mkt-teal-soft);
  }
  .billing-toggle__btn.is-active .billing-toggle__save {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }
  html[data-theme="dark"] .billing-toggle__btn.is-active .billing-toggle__save {
    background: rgba(11, 18, 32, 0.22);
    color: #0b1220;
  }
  /* Tighten the section-head + grid spacing now that a toggle pill sits
     between them (instead of just the static copy line + grid margin). */
  .billing-toggle + .pricing-grid { margin-top: 2rem; }
  @media (max-width: 720px) {
    .billing-toggle { margin-bottom: 1.5rem; }
    .billing-toggle__btn { padding: .5rem 1rem; font-size: .85rem; }
    .billing-toggle + .pricing-grid { margin-top: 1.5rem; }
  }

  /* —— Billing variant visibility ——
     A parent element with [data-billing="monthly"] or [data-billing="annual"]
     governs which children show. Children mark themselves with
     [data-billing-show="monthly|annual"] and the inactive variant is hidden.
     Lives in global CSS (not scoped) so it cascades into PricingComparisonTable
     rows wrapped by either the home #pricing section or the /pricing page. */
  [data-billing="monthly"] [data-billing-show="annual"],
  [data-billing="annual"] [data-billing-show="monthly"] { display: none; }

  /* Full feature comparison block on home — sits below the price-card grid
     and the yearly note inside #pricing. */
  .pricing__compare { margin-top: 5rem; }
  .pricing__compare .section-head { margin-bottom: 2.5rem; }
  @media (max-width: 768px) {
    .pricing__compare { margin-top: 3rem; }
    .pricing__compare .section-head { margin-bottom: 2rem; }
  }

  /* —— FAQ —— */
  .faq { max-width: 760px; margin: 0 auto; }
  .faq details {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
  }
  .faq details[open] summary i { transform: rotate(45deg); }
  .faq summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-size: 1.05rem; font-weight: 600; color: var(--em-navy-deep); letter-spacing: -0.01em;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary i {
    width: 24px; height: 24px; flex: none;
    display: grid; place-items: center;
    color: var(--em-navy); font-size: 1rem;
    transition: transform .2s;
  }
  html[data-theme="dark"] .faq summary i { color: var(--em-teal); }
  .faq details > div {
    margin-top: 1rem;
    color: var(--color-text-secondary); font-size: .96rem; line-height: 1.65;
    text-wrap: pretty;
  }
  .faq details > div a { color: var(--em-navy); font-weight: 500; }
  html[data-theme="dark"] .faq details > div a { color: var(--em-teal); }

  /* —— Solo founder strip —— */
  .founder { background: var(--color-surface-muted); padding: 5rem 0; }
  .founder__inner { max-width: 720px; margin: 0 auto; text-align: center; }
  .founder h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; color: var(--em-navy-deep); letter-spacing: -0.025em; margin-bottom: 1.25rem; line-height: 1.2; }
  .founder p { font-size: 1.05rem; line-height: 1.7; color: var(--color-text-secondary); margin-bottom: 1.5rem; text-wrap: pretty; }
  .founder a {
    color: var(--text-strong); font-weight: 500;
    background-image: linear-gradient(90deg, var(--mkt-teal), var(--mkt-teal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    padding-bottom: 2px;
    transition: background-size .2s;
  }
  .founder a:hover { background-size: 100% 100%; color: var(--text-strong); }
  html[data-theme="dark"] .founder a { color: #f1f5f9; background-image: linear-gradient(90deg, var(--mkt-teal-soft), var(--mkt-teal-soft)); }

  /* —— CTA band —— */
  section.cta-band { background: #0b1220; color: #fff; padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
  .cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(50% 60% at 50% 0%, rgba(37,99,235,0.2), transparent 70%);
    pointer-events: none;
  }
  .cta-band__inner { position: relative; max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
  .cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; color: #fff; letter-spacing: -0.025em; margin-bottom: 1rem; }
  .cta-band p { font-size: 1.05rem; color: #94a3b8; margin-bottom: 2rem; }

  /* —— Footer —— */
  footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 4rem 0 2.5rem; }
  .foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
  @media (max-width: 880px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
  .foot__brand .nav__brand { margin-bottom: 1rem; }
  .foot__brand p { font-size: .88rem; color: var(--color-text-secondary); line-height: 1.6; max-width: 280px; }
  .foot__col h5 { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--em-navy-deep); margin-bottom: 1rem; }
  .foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
  .foot__col a { font-size: .9rem; color: var(--color-text-secondary); cursor: pointer; transition: color .15s; }
  .foot__col a:hover { color: var(--em-navy); }
  html[data-theme="dark"] .foot__col a:hover { color: var(--em-teal); }
  .foot__legal {
    border-top: 1px solid var(--color-border); padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--color-text-muted);
  }
  .foot__legal-links { display: flex; gap: 1.5rem; }
  .foot__legal-links a { color: var(--color-text-muted); cursor: pointer; }
  .foot__legal-links a:hover { color: var(--em-navy); }
  html[data-theme="dark"] .foot__legal-links a:hover { color: var(--em-teal); }

  /* ================================================================
     MOBILE POLISH
     One place for every ≤720px tweak — tighten, shrink, stack.
     ================================================================ */
  body { overflow-x: hidden; }

  /* ── Tablet: use-cases 2-col instead of jumping 3→1 ── */
  @media (max-width: 880px) and (min-width: 601px) {
    .usecases { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 720px) {
    /* Container: tighter side padding */
    .container { padding: 0 1.25rem; }

    /* Sections: 96px → 56px vertical rhythm */
    section { padding: 3.5rem 0; }
    section.section--lg { padding: 4.5rem 0; }
    section.section--sm { padding: 2.5rem 0; }
    section.founder { padding: 3rem 0; }
    section.cta-band { padding: 3.5rem 0; }
    section.security { padding: 4rem 0; }

    /* Hero: tighter padding, gentler h1 */
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); margin-bottom: 1.25rem; max-width: none; }
    .hero__sub { font-size: 1rem; margin-bottom: 2rem; }
    .hero__cta { flex-direction: column; align-items: stretch; gap: .6rem; }
    .hero__cta .btn { width: 100%; justify-content: center; }
    .hero__free-note { margin-bottom: 2rem; }
    .hero__formats { gap: .4rem; margin-bottom: 2.5rem; }
    .format-chip { font-size: .72rem; padding: .3rem .6rem; }
    .hero__trust { gap: .9rem 1.25rem; font-size: .78rem; }

    /* Demo app: mobile phone-style mockup — hides desktop chrome,
       shows rounded phone frame with notch-like top bar. */
    .demo { margin-top: 3rem; border-radius: 28px; max-width: 320px; margin-left: auto; margin-right: auto; }
    .demo__chrome { display: none; }
    .demo__phone-bar { display: flex; }
    .demo__body { min-height: 0; }
    .demo__mobile-nav { border-radius: 0 0 28px 28px; }
    .demo__searchbar { padding: .75rem .9rem; }
    .demo__query { font-size: .88rem; }
    .demo__chips { padding: .5rem .9rem .7rem; min-height: 40px; gap: .3rem; }
    .demo__chip { font-size: .7rem; padding: .25rem .5rem; }
    .demo__row { padding: .7rem .9rem; gap: .65rem; }
    .demo__row-from, .demo__row-subj { font-size: .78rem; }
    .demo__row-date { font-size: .68rem; }

    /* Section heads: smaller title, less bottom margin */
    .section-head { margin-bottom: 2.5rem; }
    .section-head h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
    .section-head p { font-size: .98rem; }

    /* Pain section */
    .pain__head h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
    .pain__points { gap: 1.5rem; }
    .pain__point p { font-size: .95rem; }

    /* How-it-works numerals: smaller on mobile */
    .step__num::before { font-size: 2.75rem; }
    .steps { gap: 2rem; }

    /* Features: tighter gap, smaller hero cards */
    .features-hero { gap: 1rem; margin-bottom: 1rem; }
    .feat-hero { padding: 1.6rem 1.4rem 1.75rem; border-radius: 16px; }
    .feat-hero h3 { font-size: 1.1rem; }
    .feat-hero p { font-size: .92rem; }
    section#features .features-grid { grid-template-columns: 1fr; gap: 1.75rem 1.25rem; }

    /* Security tiers */
    .tier { padding: 1.4rem 1.25rem; }
    .tier h3 { font-size: 1.1rem; }

    /* Use cases: tighter cards */
    .uc { padding: 1.25rem; }

    /* Integrations: stack & shrink the code visual */
    .integ__inner { gap: 2rem; }
    .integ__visual { padding: 1.25rem; font-size: .72rem; border-radius: 14px; overflow-x: auto; }

    /* FAQ: tighter padding */
    .faq details { padding: 1.2rem 0; }
    .faq summary { font-size: 1rem; }
    .faq details > div { font-size: .92rem; }

    /* Pricing: more breathing room between stacked cards */
    .pricing-grid { margin-top: 3rem; border: 0; }
    .price { padding: 1.8rem 1.25rem; border: 1px solid var(--color-border); border-radius: 14px; margin-bottom: .75rem; }
    .price:last-child { margin-bottom: 0; }
    .price__amount { font-size: 1.75rem; }
    .price.is-popular { margin: 1rem 0; border: 1px solid var(--em-blue); border-radius: 14px; padding: 2rem 1.25rem 1.8rem; }
    .price.is-popular .price__amount { font-size: 2rem; }
    .pricing__yearly { margin-top: 1.5rem; font-size: .82rem; }

    /* Founder strip */
    .founder h2 { font-size: clamp(1.5rem, 5.5vw, 1.9rem); margin-bottom: 1rem; }
    .founder p { font-size: .98rem; }

    /* CTA band */
    .cta-band h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
    .cta-band p { font-size: .98rem; margin-bottom: 1.5rem; }
    .cta-band .btn { width: 100%; justify-content: center; }

    /* Footer: stack to single column inside the mobile block
       (was separate @media 640px — unified here so all mobile
       tweaks stay in one place). */
    .foot__grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
    .foot__brand p { max-width: none; }
    .foot__legal { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .foot__legal-links { gap: 1.25rem; flex-wrap: wrap; }

    /* Comparison table: add scroll hint shadow */
    .pricing__compare .compare-wrap {
      position: relative;
    }
    .pricing__compare .compare-wrap::after {
      content: '';
      position: sticky;
      right: 0; top: 0; bottom: 0;
      width: 32px;
      pointer-events: none;
      background: linear-gradient(to right, transparent, var(--panel-muted));
      display: block;
      float: right;
      margin-top: -100%;
      height: 100%;
    }
  }

  /* —— Micro mobile (≤ 375px, iPhone SE) —— */
  @media (max-width: 375px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.9rem; }
    .hero__sub { font-size: .92rem; }
    .billing-toggle__btn { padding: .45rem .8rem; font-size: .8rem; }
    .billing-toggle__save { font-size: .58rem; }
    .demo { max-width: 280px; }
  }

  /* —— Scroll reveals (Product/Vercel-style: 20px rise + fade, 500ms, ease-out-expo) ——
     Hidden state is gated by .js-reveal-ready on <html> so that if scripts fail to
     load entirely, content stays visible instead of permanently invisible. The
     class is set synchronously by an inline script in App.razor's <head>. */
  .js-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity .55s cubic-bezier(0.22, 1, 0.36, 1),
      transform .55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .js-reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Staggered children: each direct child revealed with its own delay */
  .js-reveal-ready [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity .55s cubic-bezier(0.22, 1, 0.36, 1),
      transform .55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .js-reveal-ready [data-reveal-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }

  /* ================================================================
     /contact — page-specific styles. Extends the shared .page-hero /
     .section-tinted system from app.css; everything else is local.
     ================================================================ */
  .contact-hero { padding-bottom: 2rem; }
  .contact-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
  .contact-hero p { max-width: 620px; }

  .contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2.25rem 2.25rem 2rem;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  html[data-theme="dark"] .contact-form {
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.5);
  }

  .contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  @media (max-width: 600px) {
    .contact-form__row { grid-template-columns: 1fr; gap: 1.25rem; }
    .contact-form { padding: 1.6rem 1.4rem 1.5rem; border-radius: 14px; }
  }

  .contact-form__field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
  }
  .contact-form__field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.005em;
  }
  .contact-form__optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: .8rem;
  }
  .contact-form__field input,
  .contact-form__field textarea {
    appearance: none;
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-radius: 10px;
    padding: .7rem .85rem;
    font: inherit;
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .contact-form__field input::placeholder,
  .contact-form__field textarea::placeholder {
    color: var(--color-text-muted);
  }
  .contact-form__field input:hover,
  .contact-form__field textarea:hover {
    border-color: var(--color-border-strong, var(--em-blue));
  }
  .contact-form__field input:focus,
  .contact-form__field textarea:focus {
    outline: none;
    border-color: var(--em-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  }
  html[data-theme="dark"] .contact-form__field input:focus,
  html[data-theme="dark"] .contact-form__field textarea:focus {
    box-shadow: 0 0 0 3px rgba(122, 184, 255, 0.22);
  }
  .contact-form__field input.is-invalid,
  .contact-form__field textarea.is-invalid {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
  }
  html[data-theme="dark"] .contact-form__field input.is-invalid,
  html[data-theme="dark"] .contact-form__field textarea.is-invalid {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.08);
  }
  .contact-form__field textarea {
    resize: vertical;
    min-height: 140px;
  }
  .contact-form__hint {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin: .15rem 0 0;
  }

  .contact-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: .25rem;
  }
  .contact-form__actions .btn { white-space: nowrap; }
  .contact-form__small {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin: 0;
    flex: 1 1 220px;
  }

  /* Honeypot — visually + functionally hidden from real users.
     Bots that scrape every <input> by name fall in. */
  .contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  .contact-banner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
  }
  .contact-banner i { font-size: 1.05rem; line-height: 1.4; flex: none; margin-top: .05rem; }
  .contact-banner--error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.32);
    color: #b91c1c;
  }
  .contact-banner--warn {
    background: rgba(217, 119, 6, 0.10);
    border-color: rgba(217, 119, 6, 0.32);
    color: #b45309;
  }
  html[data-theme="dark"] .contact-banner--error {
    background: rgba(248, 113, 113, 0.10);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
  }
  html[data-theme="dark"] .contact-banner--warn {
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
  }

  .contact-success {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
    text-align: center;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.18);
  }
  .contact-success__ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(45, 191, 169, 0.16);
    color: var(--mkt-teal);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem;
  }
  html[data-theme="dark"] .contact-success__ico {
    background: rgba(93, 225, 214, 0.16);
    color: var(--mkt-teal-soft);
  }
  .contact-success h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    margin: 0 0 .85rem;
  }
  .contact-success p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 1.5rem;
  }
  .contact-success__actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
  }

  .contact-other {
    text-align: center;
    margin-top: 2rem;
    font-size: .88rem;
    color: var(--color-text-secondary);
  }
  .contact-other a {
    color: var(--em-navy);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 2px;
  }
  html[data-theme="dark"] .contact-other a {
    color: var(--em-teal);
    text-decoration-color: rgba(93, 225, 214, 0.35);
  }
  .contact-other a:hover { text-decoration-color: currentColor; }