/* ==========================================================================
   ideaboxd - shared site stylesheet
   --------------------------------------------------------------------------
   Extracted verbatim from the homepage's inline <style> block, which in turn
   lifts its tokens from src/constants/theme.ts. The homepage keeps its copy
   inline (one request, fastest first paint on the entry page); the SEO landing
   pages link this file so they share one cached stylesheet between them.

   If you change a token or a product-visual component, change it in
   landing/index.html first, then re-extract:
     python3 - <<'EOF'
     import pathlib
     s = pathlib.Path('landing/index.html').read_text()
     css = s.split('<style>',1)[1].split('</style>',1)[0].replace("url('./fonts/", "url('../fonts/")
     # keep this header, then write css + the SEO-only rules at the foot
     EOF
   ========================================================================== */

      @font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('../fonts/HankenGrotesk-Regular.ttf') format('truetype'); }
      @font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('../fonts/HankenGrotesk-Medium.ttf') format('truetype'); }
      @font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('../fonts/HankenGrotesk-SemiBold.ttf') format('truetype'); }
      @font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('../fonts/HankenGrotesk-Bold.ttf') format('truetype'); }
      @font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/JetBrainsMono-Medium.ttf') format('truetype'); }

      /* ============================================================
         TOKENS - lifted verbatim from src/constants/theme.ts so the
         marketing site and the product never drift apart.
         ============================================================ */
      :root {
        --bg: #e7e3db; --surface: #f3f1ec; --panel: #faf8f3; --card: #ffffff;
        --ink: #2a2620; --ink2: #524c42; --muted: #625b50; --faint: #696154;
        --accent: #8a6d3b; --highlight: rgba(193,138,74,.22); --line: rgba(42,38,32,.13);
        --chip: rgba(42,38,32,.05); --danger: #9a4a34;

        --line-soft: rgba(42,38,32,.075);
        --glass: rgba(255,255,255,.66);
        --glass-line: rgba(255,255,255,.75);
        --shadow-sm: 0 2px 8px -4px rgba(42,38,32,.24);
        --shadow: 0 24px 60px -30px rgba(42,38,32,.4);
        --shadow-lg: 0 44px 90px -44px rgba(42,38,32,.52), 0 8px 24px -18px rgba(42,38,32,.3);
        --device: linear-gradient(160deg, #2b2823, #17150f);

        /* rhythm */
        --gutter: clamp(20px, 5vw, 40px);
        /* Adjacent sections each contribute this, so the gap a reader actually
           sees is roughly double - keep it modest or the page reads as holes
           between visuals rather than rhythm. */
        --section: clamp(50px, 6.2vw, 90px);
        --radius-sm: 10px; --radius: 16px; --radius-lg: 22px; --radius-xl: 30px;
      }
      html[data-theme='dark'] {
        --bg: #141210; --surface: #1c1a17; --panel: #211e19; --card: #232019;
        --ink: #ece7dd; --ink2: #c6bfb2; --muted: #9a9386; --faint: #918a7d;
        --accent: #d2a05a; --highlight: rgba(210,160,90,.24); --line: rgba(236,231,221,.12);
        --chip: rgba(236,231,221,.05); --danger: #d18a70;

        --line-soft: rgba(236,231,221,.07);
        --glass: rgba(45,41,35,.6);
        --glass-line: rgba(236,231,221,.14);
        --shadow-sm: 0 2px 8px -4px rgba(0,0,0,.5);
        --shadow: 0 24px 60px -30px rgba(0,0,0,.7);
        --shadow-lg: 0 44px 90px -44px rgba(0,0,0,.85), 0 8px 24px -18px rgba(0,0,0,.6);
        --device: linear-gradient(160deg, #34302a, #0c0b09);
      }

      /* ============================================================
         BASE
         ============================================================ */
      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
      html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
      body {
        font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
        background: var(--bg); color: var(--ink);
        -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
        line-height: 1.6; overflow-x: hidden;
        transition: background-color .45s ease, color .45s ease;
      }
      img, svg { display: block; max-width: 100%; }
      a { color: inherit; text-decoration: none; }
      button { font: inherit; color: inherit; }
      .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }
      .wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
      .wrap-narrow { max-width: 840px; }
      /* Visuals get a wider stage than copy ever does - product first. */
      .wrap-wide { max-width: 1340px; }

      :where(a, button, summary, [tabindex]):focus-visible {
        outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
      }
      .skip {
        position: absolute; left: 12px; top: -60px; z-index: 100;
        background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
        font-weight: 600; font-size: 14px; transition: top .2s ease;
      }
      .skip:focus { top: 12px; }
      .sr-only {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
      }

      /* ============================================================
         TYPE SCALE
         ============================================================ */
      h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
      h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.035em; }
      h2 { font-size: clamp(29px, 4.2vw, 50px); letter-spacing: -.03em; }
      h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.02em; }
      p { text-wrap: pretty; }

      .kicker {
        display: inline-flex; align-items: center; gap: 8px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
        color: var(--accent); font-weight: 500; margin-bottom: 18px;
      }
      .kicker::before {
        content: ''; width: 16px; height: 1px; background: currentColor; opacity: .5;
      }
      .lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 18.5px); max-width: 54ch; margin-top: 18px; line-height: 1.6; }
      .sec-head { max-width: 760px; }
      .sec-head.center { max-width: 720px; margin-inline: auto; text-align: center; }
      .sec-head.center .lead { margin-inline: auto; }
      .sec-head.center .kicker::before { display: none; }
      .accent { color: var(--accent); }
      .dot-accent { color: var(--accent); }

      section { padding: var(--section) 0; position: relative; }
      .rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

      /* ============================================================
         BUTTONS
         ============================================================ */
      .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 9px;
        cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap;
        padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
        transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease, opacity .2s;
      }
      .btn-primary {
        background: var(--accent); color: #fff;
        box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 90%, transparent);
      }
      html[data-theme='dark'] .btn-primary { color: #1a1610; }
      .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--accent) 95%, transparent); }
      .btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
      .btn-ghost:hover { background: var(--chip); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
      .btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
      .btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 14px; }
      .btn:active { transform: translateY(0) scale(.985); }
      .btn .arw { transition: transform .22s ease; }
      .btn:hover .arw { transform: translateX(3px); }

      .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
      .cta-note { font-size: 13px; color: var(--faint); }
      .cta-center { justify-content: center; }

      /* ============================================================
         NAV
         ============================================================ */
      /* Scoped to #nav on purpose: bare `nav {}` would also capture the
         footer's <nav> columns and rip them out of the document flow. */
      #nav {
        position: fixed; inset: 0 0 auto 0; z-index: 60; height: 64px;
        display: flex; align-items: center;
        border-bottom: 1px solid transparent;
        transition: border-color .3s ease, background-color .3s ease, backdrop-filter .3s ease;
      }
      #nav.scrolled {
        border-bottom-color: var(--line);
        background: color-mix(in srgb, var(--bg) 78%, transparent);
        backdrop-filter: blur(16px) saturate(1.3);
        -webkit-backdrop-filter: blur(16px) saturate(1.3);
      }
      #nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
      .brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
      .brand img { border-radius: 6px; }
      .nav-right { display: flex; align-items: center; gap: 10px; }
      .nav-links { display: flex; gap: 4px; margin-right: 6px; }
      .nav-links a {
        font-weight: 500; font-size: 14.5px; color: var(--muted);
        padding: 7px 12px; border-radius: 9px; transition: color .2s, background-color .2s;
      }
      .nav-links a:hover { color: var(--ink); background: var(--chip); }
      .icon-btn {
        width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
        background: transparent; color: var(--muted); cursor: pointer; font-size: 15px;
        display: grid; place-items: center; flex-shrink: 0;
        transition: background-color .2s, color .2s, transform .2s;
      }
      .icon-btn:hover { color: var(--ink); background: var(--chip); }
      .icon-btn:active { transform: scale(.92); }
      .nav-burger { display: none; }
      .nav-panel { display: none; }
      .nav-scrim { display: none; }
      /* While the menu is open the page underneath stays where it was, so a
         flick aimed at the sheet never scrolls the page behind it. */
      html.menu-open, html.menu-open body { overflow: hidden; }

      /* ============================================================
         SCROLL REVEAL
         ============================================================ */
      /* .js scope: without scripting nothing is ever hidden. */
      .js [data-reveal] {
        opacity: 0; transform: translateY(20px);
        transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
      }
      .js [data-reveal].in { opacity: 1; transform: none; }
      /* Big product visuals settle in rather than slide - the extra scale reads
         as the object arriving, not as a block of layout moving. */
      .js [data-reveal='zoom'] { transform: translateY(26px) scale(.975); }
      .js [data-reveal='zoom'].in { transform: none; }
      [data-reveal][data-delay='1'] { transition-delay: .07s; }
      [data-reveal][data-delay='2'] { transition-delay: .14s; }
      [data-reveal][data-delay='3'] { transition-delay: .21s; }
      [data-reveal][data-delay='4'] { transition-delay: .28s; }
      [data-reveal][data-delay='5'] { transition-delay: .35s; }

      /* ============================================================
         AMBIENT BACKGROUND - soft warm light, house palette only
         ============================================================ */
      .aura { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .8; }
      .aura-a { width: min(760px, 90vw); height: min(760px, 90vw); top: -280px; right: -180px;
        background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%); }
      .aura-b { width: min(620px, 80vw); height: min(620px, 80vw); top: 210px; left: -260px;
        background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%); }
      .grid-veil {
        position: absolute; inset: 0; z-index: 0; pointer-events: none;
        background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                          linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
        background-size: 72px 72px;
        mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
        -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
      }

      /* ============================================================
         HERO
         ============================================================ */
      header.hero { padding: clamp(112px, 14vw, 152px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
      .hero .wrap { position: relative; z-index: 1; }
      /* Copy is a caption for the product shot below it, so it stays narrow,
         centred and short; the stage gets the wide container to itself. */
      .hero-copy { max-width: 800px; margin-inline: auto; text-align: center; }
      .hero-eyebrow {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 7px 8px 7px 8px; border-radius: 999px;
        border: 1px solid var(--line); background: var(--glass);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        font-size: 13px; color: var(--ink2); margin-bottom: 26px;
      }
      .hero-eyebrow b {
        font-family: 'JetBrains Mono', monospace; font-weight: 500;
        font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
        color: var(--accent); background: var(--chip); border: 1px solid var(--line);
        padding: 3px 8px; border-radius: 999px;
      }
      /* The pill used to carry a badge chip before its label, and this was the
         gap after that chip. A lone label needs no such gap: the extra 8px on
         one side only pushes the text off the centre of the pill around it. */
      .hero-eyebrow span:not(:only-child) { padding-right: 8px; }
      /* The hero headline is two sentences, and they read as two lines: the
         first names what you are doing, the second what survives it. */
      h1 .line2 { color: var(--accent); display: block; }
      .hero-sub {
        font-size: clamp(17px, 1.9vw, 21px); color: var(--ink2);
        max-width: 42ch; margin: 24px auto 32px; line-height: 1.55;
      }
      .hero-cta { gap: 14px; justify-content: center; }
      .hero-copy .cta-note { margin-top: 14px; }
      /* Chips, not sentences: three facts that read in one glance. */
      .hero-proof {
        display: flex; flex-wrap: wrap; justify-content: center;
        gap: 8px; margin-top: 22px;
      }
      .hero-proof li {
        list-style: none; display: inline-flex; align-items: center; gap: 7px;
        font-size: 12.5px; color: var(--ink2);
        border: 1px solid var(--line); background: var(--chip);
        border-radius: 999px; padding: 6px 13px;
      }
      .hero-proof .tick { color: var(--accent); font-size: 11px; }

      .stagger > * { opacity: 0; transform: translateY(22px); animation: rise .85s cubic-bezier(.2,.7,.2,1) forwards; }
      .stagger > *:nth-child(1) { animation-delay: .04s; }
      .stagger > *:nth-child(2) { animation-delay: .12s; }
      .stagger > *:nth-child(3) { animation-delay: .2s; }
      .stagger > *:nth-child(4) { animation-delay: .28s; }
      .stagger > *:nth-child(5) { animation-delay: .36s; }
      .stagger > *:nth-child(6) { animation-delay: .42s; }
      @keyframes rise { to { opacity: 1; transform: none; } }

      /* hero product stage - deliberately the largest object on the page */
      .stage {
        position: relative; margin-top: clamp(46px, 6vw, 74px);
        opacity: 0; transform: translateY(34px) scale(.985);
        animation: rise .95s cubic-bezier(.2,.7,.2,1) .44s forwards;
      }
      .stage-inner { position: relative; }
      .stage-phone { position: absolute; right: -14px; bottom: -46px; width: 236px; z-index: 3; }
      /* The slot does the positioning (and carries any parallax offset); the
         card inside does the floating, so the two transforms never collide. */
      .float-slot { position: absolute; z-index: 4; }
      .float-card {
        background: var(--glass); border: 1px solid var(--glass-line);
        backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
        border-radius: 15px; padding: 13px 15px; box-shadow: var(--shadow);
        max-width: 254px; animation: floaty 9s ease-in-out infinite;
      }
      html[data-theme='dark'] .float-card { border-color: var(--line); }
      .float-card .fc-label {
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .09em;
        text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px;
      }
      .float-card .fc-body { font-size: 13.5px; color: var(--ink); line-height: 1.45; margin-top: 6px; }
      /* These hang off the window's edges, so they always cover something.
         Keep them clear of the greeting - the largest text in the mockup and
         the first thing read - and let them clip the filter row and the card
         grid instead, where overlap reads as depth. */
      .float-a { left: -54px; top: 52%; }
      .float-b { left: -30px; bottom: 3%; }
      .float-b .float-card { animation-duration: 7.5s; animation-delay: 1.4s; }
      .float-c { right: -46px; top: 20%; }
      .float-c .float-card { animation-duration: 8.4s; animation-delay: .7s; }
      .stage-phone .phone { animation: floaty 8s ease-in-out infinite .3s; }
      @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

      /* Scroll parallax - JS writes --py, nothing moves without it. */
      [data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

      .scroll-cue {
        display: flex; flex-direction: column; align-items: center; gap: 9px;
        margin-top: clamp(56px, 8vw, 92px); color: var(--faint);
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
        letter-spacing: .12em; text-transform: uppercase;
      }
      .scroll-cue .track {
        width: 1px; height: 46px; background: linear-gradient(var(--line), transparent);
        position: relative; overflow: hidden;
      }
      .scroll-cue .track::after {
        content: ''; position: absolute; inset-inline: 0; height: 16px; top: -16px;
        background: linear-gradient(transparent, var(--accent));
        animation: cue 2.2s ease-in-out infinite;
      }
      @keyframes cue { 0% { top: -16px; opacity: 0; } 30% { opacity: 1; } 100% { top: 46px; opacity: 0; } }

      /* ============================================================
         PRODUCT UI REPLICAS
         Faithful HTML/CSS reproductions of the shipping app, built from
         the same tokens. No raster assets: crisp at any DPR, correct in
         both themes, responsive, and effectively free to load.
         ============================================================ */
      .device-window {
        border-radius: var(--radius-xl); border: 1px solid var(--line);
        background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden;
      }
      .win-bar {
        display: flex; align-items: center; gap: 10px; padding: 12px 16px;
        border-bottom: 1px solid var(--line); background: var(--surface);
      }
      .win-dots { display: flex; gap: 6px; }
      .win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
      .win-url {
        flex: 1; text-align: center; font-family: 'JetBrains Mono', monospace;
        font-size: 11px; color: var(--faint);
        background: var(--bg); border: 1px solid var(--line);
        border-radius: 999px; padding: 4px 12px; max-width: 260px; margin: 0 auto;
      }

      .phone {
        position: relative; padding: 10px;
        background: var(--device);
        border: 1px solid rgba(255,255,255,.07); border-radius: 40px;
        box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.14);
      }
      .phone .notch {
        position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
        width: 72px; height: 20px; background: #000; border-radius: 999px; z-index: 3;
      }
      .phone .screen {
        background: var(--bg); border-radius: 31px; overflow: hidden;
        display: flex; flex-direction: column;
        transition: background-color .45s ease;
      }

      /* --- app chrome --- */
      .ui { font-size: 13px; color: var(--ink); }
      .ui-topbar {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 16px 10px;
      }
      .phone .ui-topbar { padding-top: 42px; }
      .ui-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; white-space: nowrap; }
      .ui-logo {
        width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: #fff;
        display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: -.02em;
      }
      html[data-theme='dark'] .ui-logo { color: #1a1610; }
      .ui-signin { font-size: 12px; color: var(--accent); font-weight: 500; }
      .ui-tabs {
        display: flex; gap: 18px; justify-content: center; padding: 4px 0 12px;
        border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
      }
      .ui-tabs .on { color: var(--ink); font-weight: 500; }
      .ui-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
      .ui-date { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
      .ui-greet { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-top: 2px; }
      .ui-nudge { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
      .ui-nudge .sp { color: var(--accent); }
      .ui-composer {
        display: flex; align-items: center; gap: 11px;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 14px; padding: 14px 15px;
      }
      .ui-plus {
        width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 999px;
        display: grid; place-items: center; color: var(--muted); font-size: 14px; line-height: 1; flex-shrink: 0;
      }
      .ui-ph { color: var(--faint); font-size: 13.5px; }
      .ui-typed { color: var(--ink); font-size: 13px; line-height: 1.55; }
      .ui-caret { display: inline-block; width: 1.5px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
      @keyframes blink { 50% { opacity: 0; } }
      .ui-chips { display: flex; flex-wrap: wrap; gap: 7px; }
      .ui-chip {
        font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
        border-radius: 999px; padding: 5px 11px; white-space: nowrap;
      }
      .ui-chip .n { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--faint); margin-left: 4px; }
      .ui-chip.on { color: var(--ink); border-color: var(--accent); background: var(--chip); }
      .ui-chip.pro { color: var(--ink2); }
      .ui-chip.pro em { font-family: 'JetBrains Mono', monospace; font-style: normal; font-size: 9px; letter-spacing: .08em; color: var(--accent); margin-left: 5px; }
      .ui-search {
        display: flex; align-items: center; gap: 8px; background: var(--surface);
        border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px;
        color: var(--faint); font-size: 12.5px;
      }
      .ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
      .ui-grid-3 { grid-template-columns: repeat(3, 1fr); }
      .ui-card {
        background: var(--card); border: 1px solid var(--line); border-radius: 14px;
        padding: 12px 13px; box-shadow: var(--shadow-sm); min-width: 0;
      }
      .ui-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
      .ui-time { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--faint); }
      .ui-status {
        display: inline-flex; align-items: center; gap: 5px;
        font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: .07em;
        text-transform: uppercase; color: var(--ink2);
        border: 1px solid var(--line); background: var(--chip);
        padding: 3px 8px; border-radius: 999px; white-space: nowrap;
      }
      .ui-status i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--faint); box-sizing: border-box; display: block; }
      .ui-status.done i { border-color: var(--accent); background: var(--accent); }
      .ui-card-title { font-weight: 600; font-size: 13.5px; line-height: 1.25; letter-spacing: -.015em; }
      .ui-card-body {
        color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 6px;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
      }
      .ui-card-foot { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--faint); margin-top: 10px; }
      .ui-fab {
        position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px;
        border-radius: 50%; background: var(--accent); color: #fff;
        display: grid; place-items: center; font-size: 22px; line-height: 1;
        box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 92%, transparent);
      }
      html[data-theme='dark'] .ui-fab { color: #1a1610; }

      /* --- original-note block (Shape / Detail) --- */
      .ui-label {
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--faint);
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
      }
      .ui-label .edit { color: var(--accent); }
      .ui-note { font-size: 13.5px; line-height: 1.7; color: var(--ink); margin-top: 9px; }
      mark, .seg {
        background: transparent; color: inherit; border-radius: 3px; padding: 1px 0;
        transition: background-color .55s ease, box-shadow .55s ease;
      }
      mark.lit, .seg.lit { background: var(--highlight); box-shadow: 0 0 0 3px var(--highlight); }
      /* Inside a card the 3px bleed collides with neighbouring lines. */
      .ui-card mark.lit { box-shadow: none; padding: 1px 3px; }
      .ui-hint { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

      /* --- plan section cards --- */
      .plan-card {
        background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
        padding: 13px 14px; margin-bottom: 10px;
      }
      .plan-card .type {
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--muted);
      }
      .plan-card .body { font-size: 13.5px; margin-top: 5px; color: var(--ink); line-height: 1.45; }
      .src {
        display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--accent);
        border: 1px solid var(--line); background: var(--chip); padding: 3px 8px; border-radius: 999px;
      }
      .src i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }

      /* --- journey stepper (real app component) --- */
      .ui-steps { display: flex; align-items: center; gap: 0; margin: 4px 0 2px; }
      .ui-steps .st { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
      .ui-steps .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
      .ui-steps .st.on i { background: var(--accent); }
      .ui-steps .st span { font-size: 10px; color: var(--faint); }
      .ui-steps .st.on span { color: var(--ink2); }
      .ui-steps .bar { flex: 1; height: 1.5px; background: var(--line); margin: 0 6px 16px; border-radius: 2px; }
      .ui-steps .bar.on { background: var(--accent); }

      /* ============================================================
         PROOF STRIP
         ============================================================ */
      .proof-strip { padding: 0 0 var(--section); }

      /* ============================================================
         PROBLEM - before / after
         ============================================================ */
      .compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 30px); align-items: stretch; margin-top: 56px; }
      .cmp {
        border: 1px solid var(--line); border-radius: var(--radius-lg);
        padding: clamp(20px, 2.6vw, 30px); background: var(--surface); position: relative; overflow: hidden;
      }
      .cmp.after { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
      .cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
      .cmp-tag {
        font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--faint);
      }
      .cmp.after .cmp-tag { color: var(--accent); }
      .cmp h3 { font-size: 17px; }
      .cmp-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
      .cmp-arrow { align-self: center; color: var(--faint); font-size: 20px; }

      /* messy notes pile */
      .pile { display: flex; flex-direction: column; gap: 8px; }
      .pile .note {
        background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        padding: 10px 12px; font-size: 12.5px; color: var(--ink2); line-height: 1.4;
        display: flex; align-items: flex-start; gap: 9px;
      }
      .pile .note .t { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--faint); flex-shrink: 0; padding-top: 2px; }
      .pile .note:nth-child(1) { transform: rotate(-.5deg); }
      .pile .note:nth-child(3) { transform: rotate(.6deg); }
      .pile .note:nth-child(5) { transform: rotate(-.4deg); }
      .pile .fade { opacity: .55; }
      .pile .fade2 { opacity: .3; }
      .pile-foot {
        margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
        color: var(--faint); letter-spacing: .04em;
      }

      /* ============================================================
         FLOW / ACTS
         ============================================================ */
      .acts { list-style: none; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 120px); margin-top: clamp(56px, 8vw, 92px); }
      /* The visual column is deliberately the wider one - the copy is a caption. */
      .act { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4.4vw, 60px); align-items: center; }
      .act:nth-child(even) .act-copy { order: 2; }
      .act-num {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 12px;
        border: 1px solid var(--line); background: var(--chip);
        font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent);
        margin-bottom: 18px;
      }
      .act-copy h3 { font-size: clamp(23px, 2.6vw, 32px); }
      .act-copy p { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 40ch; }
      .ticks { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
      .ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink2); }
      .ticks .tick { color: var(--accent); flex-shrink: 0; font-size: 12px; padding-top: 3px; }

      /* In the step story these are scan-fodder, not prose: a wrapped chip row
         reads in one glance and costs a third of the height of a stacked list.
         Scoped to .act-copy so the guest/account comparison keeps full sentences. */
      .act-copy .ticks { flex-direction: row; flex-wrap: wrap; gap: 8px; }
      .act-copy .ticks li {
        align-items: center; gap: 7px; font-size: 13px; color: var(--ink2);
        border: 1px solid var(--line); background: var(--chip);
        border-radius: 999px; padding: 7px 13px;
      }
      .act-copy .ticks .tick { padding-top: 0; font-size: 11px; }
      .act-visual { position: relative; min-width: 0; }
      /* overflow stays visible so the .pin callout can hang off the corner;
         the glow is rounded via border-radius: inherit instead of clipping. */
      .act-frame {
        background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl);
        padding: clamp(14px, 1.8vw, 22px); box-shadow: var(--shadow); position: relative;
      }
      .act-frame::before {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        border-radius: inherit;
        background: radial-gradient(ellipse 70% 50% at 50% -10%, var(--highlight), transparent 70%);
        opacity: .55;
      }
      .act-inner { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
      .pin {
        position: absolute; z-index: 5; right: -10px; bottom: -12px;
        background: var(--glass); border: 1px solid var(--glass-line);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-radius: 13px; padding: 10px 13px; box-shadow: var(--shadow);
        font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; max-width: 240px;
      }
      html[data-theme='dark'] .pin { border-color: var(--line); }
      .pin .badge {
        width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: #fff;
        display: grid; place-items: center; font-size: 12px; flex-shrink: 0;
      }
      html[data-theme='dark'] .pin .badge { color: #1a1610; }

      /* ============================================================
         INTERACTIVE DEMO
         ============================================================ */
      .demo-shell {
        margin-top: clamp(40px, 5vw, 60px); background: var(--panel);
        border: 1px solid var(--line); border-radius: var(--radius-xl);
        padding: clamp(10px, 1.4vw, 16px); box-shadow: var(--shadow-lg);
      }
      .demo-panes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); }
      .pane {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px); min-height: 330px;
      }
      .pane.plan { background: var(--card); }
      .pane-label {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .09em;
        text-transform: uppercase; color: var(--faint);
        display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px;
      }
      .pane-label .edit { color: var(--accent); }
      .dump-text { font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.8; }
      .promote-bar {
        display: inline-flex; gap: 2px; background: var(--card); border: 1px solid var(--line);
        border-radius: 11px; padding: 4px; box-shadow: var(--shadow); margin-top: 16px;
        opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
      }
      .promote-bar.show { opacity: 1; transform: none; }
      .promote-bar span { font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 7px; color: var(--muted); }
      .promote-bar span.hot { background: var(--chip); color: var(--ink); }
      .plan-empty { color: var(--faint); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
      .demo-shell .plan-card {
        opacity: 0; transform: translateY(14px) scale(.98);
        transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
      }
      .demo-shell .plan-card.show { opacity: 1; transform: none; }
      .demo-foot {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
        gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--muted);
      }

      /* ============================================================
         AI TRANSFORMATION
         ============================================================ */
      .switch {
        display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding: 5px;
        border: 1px solid var(--line); border-radius: 14px; background: var(--surface); width: fit-content; max-width: 100%;
      }
      .switch button {
        border: 0; background: transparent; cursor: pointer; border-radius: 10px;
        padding: 9px 15px; font-size: 13.5px; font-weight: 500; color: var(--muted);
        transition: background-color .2s, color .2s;
      }
      .switch button:hover { color: var(--ink); }
      .switch button[aria-selected='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

      .ai-lbl {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 16px;
      }
      .ai-raw { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.75; color: var(--ink2); }
      @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--highlight); } 50% { box-shadow: 0 0 0 12px transparent; } }
      .q-card {
        border: 1px dashed var(--line); border-radius: 13px; padding: 14px 15px; margin-bottom: 10px;
      }
      .q-card strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
      .q-card p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
      .drafted {
        background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
        padding: 14px 15px; margin-bottom: 10px;
      }
      .drafted .dh {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--muted);
      }
      .drafted .dh em { font-style: normal; color: var(--accent); }
      .drafted p { font-size: 13.5px; line-height: 1.55; margin-top: 8px; color: var(--ink); }
      .keep-row { display: flex; gap: 7px; margin-top: 11px; }
      .keep-row span {
        font-size: 11.5px; font-weight: 500; padding: 5px 11px; border-radius: 8px;
        border: 1px solid var(--line); color: var(--muted);
      }
      .keep-row span.yes { background: var(--chip); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
      .ai-note {
        margin-top: 24px; font-size: 13.5px; color: var(--muted);
        display: flex; align-items: flex-start; gap: 10px; max-width: 70ch;
      }
      .ai-note .lock { color: var(--accent); flex-shrink: 0; }
      [role='tabpanel'][hidden] { display: none; }

      /* ============================================================
         TRACE - one sentence, followed from the note it was typed in
         to the file that leaves the app. Four frames, joined by a
         chevron drawn from borders so a screen reader meets an
         ordered list rather than a row of arrow glyphs.
         ============================================================ */
      .trace {
        list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(16px, 2vw, 22px); margin-top: clamp(38px, 5vw, 56px);
      }
      .trace > li {
        position: relative; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(16px, 1.9vw, 22px);
        display: flex; flex-direction: column; gap: 12px; min-width: 0;
      }
      .trace > li + li::before {
        content: ''; position: absolute; top: 50%; left: calc(clamp(16px, 2vw, 22px) / -2);
        width: 8px; height: 8px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint);
        transform: translate(-50%, -50%) rotate(45deg);
      }
      .trace-k { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
      .trace-art {
        background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
        padding: 13px 14px; flex: 1;
      }
      .trace-art .ui-note { margin-top: 7px; font-size: 12.5px; }
      .trace-art .promote-bar { flex-wrap: wrap; }
      .trace-art .promote-bar span { white-space: nowrap; }
      .trace-art .ui-hint { margin-top: 9px; }
      .trace-d { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
      /* In Shape, pointing at a section lights the line it came from. The
         page shows both at rest; hovering only deepens the link. */
      .trace:has(.trace-card:hover) mark.lit { box-shadow: 0 0 0 5px var(--highlight); }
      @media (max-width: 980px) {
        .trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .trace > li:nth-child(odd)::before { display: none; }
      }
      @media (max-width: 620px) {
        .trace { grid-template-columns: 1fr; }
        .trace > li:nth-child(odd)::before { display: block; }
        .trace > li + li::before {
          top: calc(clamp(16px, 2vw, 22px) / -2); left: 50%;
          transform: translate(-50%, -50%) rotate(135deg);
        }
      }

      /* --- three shapes of workflow, ours last --- */
      .ways {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(14px, 1.8vw, 20px); margin-top: clamp(20px, 2.6vw, 30px);
      }
      .way {
        border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
        padding: clamp(16px, 1.9vw, 22px); display: flex; flex-direction: column; gap: 8px;
      }
      .way.is-us {
        background: var(--panel); border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
        box-shadow: var(--shadow-sm);
      }
      .way-k { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
      .way.is-us .way-k { color: var(--accent); }
      .way-f { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
      .way p:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
      @media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

      /* ============================================================
         BENTO FEATURES
         ============================================================ */
      .bento {
        display: grid; grid-template-columns: repeat(6, 1fr);
        gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(44px, 6vw, 64px);
      }
      .cell {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px);
        display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: hidden;
        transition: transform .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .32s ease;
      }
      .cell:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: var(--shadow); }
      .cell-w3 { grid-column: span 3; } .cell-w2 { grid-column: span 2; } .cell-w6 { grid-column: span 6; }
      .cell h3 { font-size: 18.5px; }
      .cell p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 7px; }
      .glyph {
        width: 40px; height: 40px; border-radius: 12px; background: var(--chip);
        border: 1px solid var(--line); display: grid; place-items: center;
        color: var(--accent); font-size: 17px; flex-shrink: 0;
      }
      .cell-art { margin-top: auto; }

      /* mini visuals inside bento */
      .mini {
        background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
        padding: 14px; font-size: 12.5px; overflow: hidden;
      }
      .fmt-row { display: flex; flex-wrap: wrap; gap: 7px; }
      .fmt {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink2);
        border: 1px solid var(--line); background: var(--surface);
        border-radius: 8px; padding: 6px 10px;
      }
      .fmt.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--chip); }
      .md-preview { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.75; color: var(--muted); margin-top: 12px; }
      .md-preview b { color: var(--ink); font-weight: 500; }
      .md-preview .hash { color: var(--accent); }
      .swatches { display: flex; gap: 8px; }
      .swatch { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); }
      .plat-row { display: flex; gap: 8px; align-items: flex-end; }
      .plat {
        border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
        flex: 1; display: grid; place-items: center; color: var(--muted);
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .06em;
      }
      .plat.a { height: 62px; border-radius: 8px 8px 4px 4px; }
      .plat.b { height: 48px; }
      .plat.c { height: 40px; }
      .offline-bar { display: flex; align-items: center; gap: 10px; }
      .offline-bar .pipdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
      .queue { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
      .queue div {
        display: flex; align-items: center; justify-content: space-between;
        font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
        border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; background: var(--surface);
      }
      .queue div .ok { color: var(--accent); }

      /* ============================================================
         SCREENSHOT GALLERY
         ============================================================ */
      .gallery {
        display: grid; grid-auto-flow: column; grid-auto-columns: minmax(186px, 1fr);
        gap: clamp(14px, 2vw, 24px); margin-top: clamp(44px, 6vw, 64px);
        overflow-x: auto; scroll-snap-type: x mandatory;
        padding: 6px 0 26px; scrollbar-width: thin;
      }
      .gallery::-webkit-scrollbar { height: 6px; }
      .gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
      .shot { scroll-snap-align: center; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
      .shot figcaption { text-align: center; }

      /* Devices outside the hero share one handset spec - same width, same
         proportions, same internal scale - so a phone reads as the same object
         wherever it appears. They are deliberately small: props next to the
         copy, not the subject. */
      .shot .phone, .mode-art .phone {
        width: 100%; max-width: 206px; margin-inline: auto;
        padding: 8px; border-radius: 34px;
      }
      .shot .phone .notch, .mode-art .phone .notch { top: 16px; width: 58px; height: 16px; }
      .shot .screen, .mode-art .screen {
        /* Real handset proportions at any width; `overflow: auto` stops the
           content from stretching the box, so the ratio always holds. */
        aspect-ratio: 9 / 19.5; border-radius: 27px;
        overflow-y: auto; overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin; scrollbar-color: var(--line) transparent;
      }
      .shot .screen::-webkit-scrollbar, .mode-art .screen::-webkit-scrollbar { width: 4px; }
      .shot .screen::-webkit-scrollbar-track, .mode-art .screen::-webkit-scrollbar-track { background: transparent; }
      .shot .screen::-webkit-scrollbar-thumb, .mode-art .screen::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
      .shot .screen:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
      /* Shrink the replica as a whole so every proportion survives the smaller
         frame; `zoom` also scales layout, so scroll height stays correct. */
      .shot .screen .ui, .mode-art .screen .ui { zoom: .84; }
      /* App chrome stays put while the content moves under it, as in the app. */
      .shot .ui-chrome {
        position: sticky; top: 0; z-index: 2; background: var(--bg);
        transition: background-color .45s ease;
      }
      .shot .screen .ui-body { padding-bottom: 26px; }
      /* Soft fade at the bottom of the frame hints at more content below. */
      .shot .phone::after, .mode-art .phone::after {
        content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 40px;
        border-radius: 0 0 27px 27px; pointer-events: none;
        background: linear-gradient(transparent, var(--bg));
        transition: background .45s ease;
      }
      .shot .cap-t { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
      .shot .cap-d { font-size: 13px; color: var(--muted); margin-top: 3px; }
      .gallery-hint {
        text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
        letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
      }

      /* folder chips (a Pro surface in the app) */
      .fold-row { display: flex; flex-wrap: wrap; gap: 7px; }
      .fold {
        display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
        font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
        border-radius: 999px; padding: 5px 11px;
      }
      .fold i { width: 8px; height: 8px; border-radius: 50%; display: block; flex-shrink: 0; }
      .fold .n { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--faint); }
      .fold.on { color: var(--ink); border-color: var(--accent); background: var(--chip); }

      /* desktop view under the phone rail */
      .desk { margin-top: clamp(34px, 5vw, 56px); }
      /* Left alone the stepper's flexible bars stretch the full window width
         and stop reading as a compact progress indicator. */
      .desk .ui-steps { max-width: 520px; }
      .desk-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 30px); }
      .desk-pane {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: clamp(14px, 1.8vw, 20px); min-width: 0;
      }
      .desk-pane:last-child { background: var(--card); }
      .desk-cap {
        text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted);
      }
      .desk-cap .cap-t { font-weight: 600; color: var(--ink); }

      /* ============================================================
         RATINGS - real reviews from web app users. See #ratings.
         ============================================================ */
      .rating-top {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
        gap: clamp(20px, 4vw, 46px); margin-top: clamp(36px, 5vw, 52px);
        padding-bottom: clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line);
      }
      .rating-score { text-align: center; }
      .rating-score .num {
        font-size: clamp(46px, 6vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
      }
      .rating-score .of { color: var(--faint); font-size: 15px; margin-top: 6px; }
      .stars { display: inline-flex; gap: 3px; color: var(--accent); font-size: 17px; line-height: 1; }
      .stars .off { color: var(--line); }
      .rating-src {
        max-width: 38ch; color: var(--muted); font-size: 14.5px; line-height: 1.6;
      }

      /* Columns, not a grid: seven reviews in a 3-column grid leave the last
         one alone on its own row with two empty cells beside it - a hole the
         height of a card. Multi-column balances them and the hole disappears. */
      .review-grid {
        columns: 3; column-gap: clamp(14px, 2vw, 22px);
        margin-top: clamp(30px, 4vw, 44px);
      }
      .review {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 26px);
        display: flex; flex-direction: column; gap: 12px;
        break-inside: avoid; margin-bottom: clamp(14px, 2vw, 22px);
        transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
      }
      .review:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: var(--shadow); }
      .review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .review-src {
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .09em;
        text-transform: uppercase; color: var(--faint);
      }
      .review blockquote { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
      .review figcaption {
        display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px;
      }
      .review .who { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
      .review .when { font-size: 12px; color: var(--faint); }
      .avatar {
        width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
        display: grid; place-items: center; font-size: 13px; font-weight: 600;
        color: var(--accent); background: var(--chip); border: 1px solid var(--line);
      }
      @media (max-width: 940px) { .review-grid { columns: 1; } }
      @media (max-width: 720px) { .rating-src { text-align: center; } }

      /* ============================================================
         PRIVACY
         ============================================================ */
      .privacy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 12px; }
      .flow-diagram {
        background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl);
        padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow);
      }
      .flow-node {
        border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px;
        background: var(--surface); display: flex; align-items: center; gap: 13px;
      }
      .flow-node.hi { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--card); }
      .flow-node .ic {
        width: 34px; height: 34px; border-radius: 10px; background: var(--chip);
        border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
      }
      .flow-node > span:last-child { min-width: 0; }
      .flow-node .nt { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -.015em; }
      .flow-node .nd { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
      .flow-link {
        display: flex; align-items: center; gap: 10px; padding: 9px 0 9px 17px;
        font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em;
        text-transform: uppercase; color: var(--faint);
      }
      .flow-link::before { content: ''; width: 1px; height: 22px; background: var(--line); }
      .privacy-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
      .privacy-list li { display: flex; gap: 13px; align-items: center; }
      .privacy-list .ic { color: var(--accent); flex-shrink: 0; font-size: 14px; }
      .privacy-list b { display: block; font-weight: 500; font-size: 15.5px; letter-spacing: -.015em; }

      /* ============================================================
         FAQ
         ============================================================ */
      .plans {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: clamp(12px, 1.6vw, 16px); margin-top: clamp(38px, 5vw, 52px);
      }
      .plan-col {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(18px, 2.2vw, 24px);
        display: flex; flex-direction: column; gap: 14px; min-width: 0;
      }
      .plan-col.up {
        background: var(--card); box-shadow: var(--shadow);
        border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
      }
      .plan-col .ui-label .edit { white-space: nowrap; }
      .plan-price { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
      .plan-col.up .plan-price { color: var(--accent); }
      .plan-price small {
        display: block; font-size: 12px; font-weight: 400; letter-spacing: 0;
        color: var(--muted); margin-top: 7px; line-height: 1.4;
      }
      .plan-lines { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
      .plan-lines li { font-size: 13px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
      .plan-lines li::before { content: '✓'; color: var(--accent); font-size: 11px; flex-shrink: 0; }

      .faq { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
      .faq details { border-bottom: 1px solid var(--line); }
      .faq summary {
        list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
        font-size: clamp(16px, 1.7vw, 18.5px); font-weight: 600; letter-spacing: -.02em;
        transition: color .2s ease;
      }
      .faq summary::-webkit-details-marker { display: none; }
      .faq summary:hover { color: var(--accent); }
      .faq summary::after {
        content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
        font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
        transition: transform .25s ease;
      }
      .faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
      .faq .answer { padding: 0 44px 26px 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 72ch; }
      .faq .answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

      /* ============================================================
         FINAL CTA
         ============================================================ */
      .final {
        position: relative; overflow: hidden; text-align: center;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-xl); padding: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 48px);
        box-shadow: var(--shadow-lg);
      }
      .final::before {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: radial-gradient(ellipse 70% 90% at 50% 0%, var(--highlight), transparent 70%);
      }
      .final > * { position: relative; }
      .final h2 { margin-inline: auto; max-width: 18ch; }
      .final .kicker::before { display: none; }
      .final .lead { margin: 18px auto 32px; }
      .final .cta-note { margin-top: 20px; display: block; }
      .final h2 + .cta-row { margin-top: clamp(26px, 3.4vw, 34px); }

      /* ============================================================
         FOOTER
         ============================================================ */
      footer { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 64px) 0 48px; }
      /* Six columns since the demo pages got their own: brand, then five link
         columns. The narrower breakpoints already wrap to 3/2/1. */
      .foot-grid { display: grid; grid-template-columns: 1.35fr repeat(5, 1fr); gap: 30px; }
      .foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 30ch; line-height: 1.55; }
      .foot-col h3 {
        font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em;
        text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 14px;
      }
      /* gap + padding keep every footer link at >= 24px tall (WCAG 2.2 SC 2.5.8,
         target size minimum) without changing the visual rhythm. */
      .foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
      .foot-col a { display: inline-block; padding: 4px 0; }
      .foot-col a { color: var(--muted); font-size: 14px; transition: color .2s; }
      .foot-col a:hover { color: var(--ink); }
      .foot-bottom {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
        margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
      }
      .legal-identity { color: var(--faint); font-size: 12.5px; line-height: 1.6; max-width: 78ch; }
      .legal-identity a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
      .foot-end { display: inline-flex; align-items: center; gap: 12px; }


      /* ---- language switch ---- */
      .lang-switch {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 36px; height: 36px; padding: 0 10px;
        border: 1px solid var(--line); border-radius: 10px;
        font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .06em;
        color: var(--muted); flex-shrink: 0;
        transition: background-color .2s, color .2s;
      }
      .lang-switch:hover { color: var(--ink); background: var(--chip); }
      .lang-hint {
        position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 71;
        max-width: 460px; margin: 0 auto;
        display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
        padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px;
        background: color-mix(in srgb, var(--panel) 92%, transparent);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--ink2);
        transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
      }
      .lang-hint.show { transform: none; }
      .lang-hint p { flex: 1 1 180px; line-height: 1.45; }

      /* ============================================================
         STAT BAND - four numbers, each with the UI that earns it
         ============================================================ */
      .stat-band {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
        background: var(--line); border: 1px solid var(--line);
        border-radius: var(--radius-lg); overflow: hidden;
      }
      .stat { background: var(--bg); padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 16px; }
      .stat-art {
        background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
        padding: 12px; height: 108px; overflow: hidden;
        display: flex; flex-direction: column; justify-content: center; gap: 8px;
      }
      .stat-n { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
      .stat-l { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
      /* Shrink the shared primitives to the band's fixed frame height. */
      .stat-art .plat.a { height: 54px; }
      .stat-art .plat.b { height: 42px; }
      .stat-art .plat.c { height: 34px; }
      .stat-art .fmt { font-size: 9.5px; padding: 5px 8px; }
      .stat-art .src { margin-top: 0; }

      /* ============================================================
         JOURNEY RAIL - the whole product as one horizontal story
         ============================================================ */
      .rail {
        list-style: none; display: grid; grid-auto-flow: column;
        grid-auto-columns: minmax(180px, 1fr); gap: clamp(12px, 1.3vw, 18px);
        margin-top: clamp(44px, 6vw, 68px);
        overflow-x: auto; scroll-snap-type: x proximity;
        padding: 4px 0 24px; scrollbar-width: thin;
      }
      .rail::-webkit-scrollbar { height: 6px; }
      .rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
      .rail-stop { position: relative; scroll-snap-align: center; min-width: 0; }
      /* Fixed height keeps every frame the same object and lets the connector
         arrows sit on one unbroken line across the row. */
      .rail-art {
        /* Tall enough that the product replica inside reads as a screen rather
           than a thumbnail - this rail is the whole journey in one scroll. */
        height: 186px; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 13px; overflow: hidden;
        display: flex; flex-direction: column; justify-content: center; gap: 8px;
        transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
      }
      .rail-stop:hover .rail-art,
      .rail-stop.on .rail-art {
        background: var(--card); box-shadow: var(--shadow);
        border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
      }
      .rail-stop::after {
        content: '→'; position: absolute; top: 76px; right: 0;
        transform: translate(calc(50% + clamp(7px, .9vw, 11px)), -50%);
        color: var(--faint); font-size: 13px; z-index: 2;
        background: var(--bg); line-height: 1; padding: 3px 1px;
      }
      .rail-stop:last-child::after { content: none; }
      .rail-meta { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; }
      .rail-n { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); flex-shrink: 0; }
      .rail-t { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
      .rail-d { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
      /* Tiny primitives that only exist inside rail frames. */
      .bubble {
        border: 1px dashed var(--line); border-radius: 12px; padding: 11px 12px;
        font-size: 12px; color: var(--ink2); line-height: 1.5; font-style: italic;
      }
      .rail-art .ui-composer { padding: 10px 11px; }
      .rail-art .plan-card { margin: 0; padding: 10px 11px; }
      .rail-art .plan-card .body { font-size: 12px; }
      .rail-art .q-card { margin: 0; padding: 11px 12px; }
      .rail-art .q-card strong { font-size: 12.5px; }
      .rail-art .q-card p { font-size: 11px; margin-top: 4px; }
      .rail-art .md-preview { margin-top: 0; font-size: 10.5px; }

      /* ============================================================
         FAILURE STRIP - three ways an idea dies, shown not argued
         ============================================================ */
      .fail-strip {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: clamp(14px, 2vw, 20px); margin-top: clamp(38px, 5vw, 54px);
      }
      .fail {
        border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
        padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 16px;
        transition: transform .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .32s ease;
      }
      .fail:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: var(--shadow); }
      .fail .mini { flex: 1; display: flex; flex-direction: column; justify-content: center; }
      .fail-t { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
      .fail-t .x { color: var(--danger); font-size: 13px; flex-shrink: 0; }

      /* ============================================================
         AI TRANSFORMATION - dump in, drafts out, plan built
         ============================================================ */
      .ai-flow { margin-top: clamp(24px, 3vw, 34px); }
      .ai-in {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 30px);
      }
      .ai-step {
        display: flex; align-items: center; justify-content: center; gap: 14px;
        padding: clamp(16px, 2vw, 24px) 0; color: var(--accent);
      }
      .ai-step .chip {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .09em;
        text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
        background: var(--chip); border-radius: 999px; padding: 7px 14px;
      }
      .ai-step .orb {
        width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
        border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
        background: var(--chip); display: grid; place-items: center; font-size: 17px;
        box-shadow: 0 0 0 0 var(--highlight); animation: pulse 3s ease-in-out infinite;
      }
      /* The arrow into the panes is drawn, not written. */
      .ai-step::before, .ai-step::after {
        content: ''; height: 1px; flex: 1; max-width: 130px;
        background: linear-gradient(90deg, transparent, var(--line));
      }
      .ai-step::after { background: linear-gradient(90deg, var(--line), transparent); }
      .ai-out2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); }
      .ai-pane {
        background: var(--card); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px); min-width: 0;
      }
      .ai-pane.built {
        border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow);
      }
      .ai-pane .plan-card:last-of-type { margin-bottom: 0; }

      /* ============================================================
         GUEST VS ACCOUNT - two devices, not two lists
         ============================================================ */
      .modes {
        display: grid; grid-template-columns: 1fr auto 1fr;
        gap: clamp(16px, 3vw, 34px); align-items: stretch; margin-top: clamp(40px, 5vw, 58px);
      }
      .mode {
        border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface);
        padding: clamp(22px, 2.6vw, 32px); text-align: center;
        display: flex; flex-direction: column; gap: 20px;
      }
      .mode.up { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
      .mode h3 { font-size: 19px; }
      .mode-tag {
        font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 8px;
      }
      .mode.up .mode-tag { color: var(--accent); }
      .mode-art { width: 100%; max-width: 216px; margin: 0 auto; }
      .mode-art .ui-body { gap: 9px; padding-bottom: 22px; }
      .mode-art .plat.a { height: 40px; }
      .mode-art .plat.b { height: 32px; }
      .mode-art .plat.c { height: 26px; }
      .mode-facts { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: auto; }
      .mode-facts li {
        list-style: none; font-size: 12.5px; color: var(--ink2);
        border: 1px solid var(--line); background: var(--chip);
        border-radius: 999px; padding: 6px 12px;
      }
      .mode-facts li.off { color: var(--faint); background: transparent; }
      .modes-note {
        margin: clamp(20px, 2.6vw, 28px) auto 0; max-width: 62ch; text-align: center;
        font-size: 13.5px; line-height: 1.6; color: var(--muted);
      }
      .modes-arrow { align-self: center; color: var(--faint); font-size: 20px; }

      /* ============================================================
         THEME DEMO - the fastest way to show both themes is to switch
         ============================================================ */
      .theme-demo {
        display: inline-flex; align-items: center; gap: 4px; padding: 5px;
        border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
        margin-top: clamp(22px, 3vw, 30px);
      }
      .theme-demo button {
        border: 0; background: transparent; cursor: pointer; border-radius: 999px;
        padding: 8px 18px; font-size: 13.5px; font-weight: 500; color: var(--muted);
        transition: background-color .2s, color .2s;
      }
      .theme-demo button:hover { color: var(--ink); }
      .theme-demo button[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

      /* ============================================================
         FINAL CTA - closes on the finished artefact, not a slogan
         ============================================================ */
      .final-art {
        margin: clamp(30px, 4vw, 44px) auto 0; max-width: 470px; text-align: left;
        background: var(--card); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(16px, 2vw, 22px);
        box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
      }

      /* ============================================================
         MOMENTS - where an idea actually arrives, and where it goes
         ============================================================ */
      .moments {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: clamp(14px, 2vw, 22px); margin-top: clamp(38px, 5vw, 54px);
      }
      .moment {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(18px, 2.2vw, 26px);
        display: flex; flex-direction: column; gap: 14px; min-width: 0;
      }
      .moment .when {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--faint);
      }
      /* In a moment card the bubble is the subject, not a caption, so it gets
         real presence and a floor height that keeps the three cards in step. */
      .moment .bubble {
        font-size: 14.5px; line-height: 1.55; padding: 18px 18px 20px;
        border-radius: 14px; min-height: 104px; display: flex; align-items: center;
        background: var(--card);
      }
      /* Each bubble is dimmer than the last: the visual is the idea fading. */
      .moment:nth-child(2) .bubble { opacity: .62; }
      .moment:nth-child(3) .bubble { opacity: .34; }
      .moment .gone {
        font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px;
        margin-top: auto;
      }
      .moment .gone i {
        width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
        flex-shrink: 0; font-style: normal;
      }
      .moments-foot {
        margin-top: clamp(20px, 2.4vw, 28px); text-align: center;
        font-size: 12.5px; color: var(--faint);
      }

      /* ============================================================
         USE CASES - one product visual each, one line of copy
         ============================================================ */
      .uc-grid {
        display: grid; grid-template-columns: repeat(2, 1fr);
        gap: clamp(14px, 2vw, 22px); margin-top: clamp(38px, 5vw, 54px);
      }
      .uc {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px);
        display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: hidden;
        transition: transform .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .32s ease;
      }
      .uc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: var(--shadow); }
      .uc-who {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--accent);
      }
      .uc h3 { font-size: 18.5px; }
      .uc p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 7px; }
      .uc .mini { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
      .uc .plan-card { margin: 0; padding: 10px 11px; }
      .uc .plan-card .body { font-size: 12px; }
      .uc .q-card { margin: 0; padding: 11px 12px; }
      .uc .q-card strong { font-size: 12.5px; }
      .uc .q-card p { font-size: 11.5px; margin-top: 5px; }
      .uc .ui-card { margin: 0; }

      /* ============================================================
         TRUST - verified claims only, each with something to look at
         ============================================================ */
      .trust-band {
        display: grid; grid-template-columns: repeat(4, 1fr);
        gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(40px, 5vw, 58px);
      }
      .trust {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: clamp(18px, 2.2vw, 24px);
        display: flex; flex-direction: column; gap: 12px; min-width: 0;
      }
      .trust .ic {
        width: 36px; height: 36px; border-radius: 11px; background: var(--chip);
        border: 1px solid var(--line); display: grid; place-items: center;
        color: var(--accent); font-size: 15px;
      }
      .trust h3 { font-size: 15.5px; letter-spacing: -.015em; }
      .trust p { font-size: 13px; color: var(--muted); line-height: 1.5; }
      .trust .proof {
        font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .07em;
        text-transform: uppercase; color: var(--faint); margin-top: auto; padding-top: 4px;
      }
      .trust-links {
        display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
        margin-top: clamp(26px, 3vw, 34px); font-size: 13.5px;
      }
      .trust-links a {
        display: inline-block; padding: 3px 0; color: var(--ink2);
        text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
      }
      .trust-links a:hover { color: var(--accent); text-decoration-color: currentColor; }

      /* ============================================================
         PRICING - the in-app Upgrade screen, told honestly
         ============================================================ */
      .pricing { align-items: stretch; }
      .pricing .plan-col { gap: 16px; }
      .pricing .plan-name {
        display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
        font-size: 15px; font-weight: 600; letter-spacing: -.015em;
      }
      .pricing .plan-name em {
        font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 10px;
        letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap;
      }
      /* margin-top:auto pins the CTA to the card floor, so the three buttons
         line up even when one plan lists fewer features. */
      .pricing .plan-col .btn { width: 100%; margin-top: auto; }
      .pricing .plan-lines { margin-top: 0; }
      .price-note {
        margin-top: clamp(22px, 2.6vw, 30px); text-align: center;
        font-size: 13px; color: var(--faint); max-width: 60ch; margin-inline: auto;
      }
      .price-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

      /* ============================================================
         RESPONSIVE
         ============================================================ */
      @media (max-width: 1180px) {
        .float-c { display: none; }
      }
      @media (max-width: 1080px) {
        .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
        .stage-phone { width: 200px; right: -6px; bottom: -34px; }
        .float-card { max-width: 220px; }
        .float-a { left: -12px; }
        .float-b { left: -4px; }
      }
      @media (max-width: 940px) {
        .act { grid-template-columns: 1fr; gap: 30px; }
        .act:nth-child(even) .act-copy { order: 0; }
        .privacy-grid { grid-template-columns: 1fr; }
        .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
        .stat-band { grid-template-columns: 1fr 1fr; }
        .fail-strip { grid-template-columns: 1fr; }
        .cell-w3, .cell-w2 { grid-column: span 6; }
        .trust-band { grid-template-columns: 1fr 1fr; }
      }
      @media (max-width: 860px) {
        .nav-links { display: none; }
        .nav-burger { display: grid; }
        .nav-cta-desktop { display: none; }
        /* Uncrowd the top bar: only the primary CTA + burger stay, and the theme
           moves into the menu, the same as on the homepage. */
        #nav #themeToggle { display: none; }
        /* Thumbs, not cursors. The one control left in the bar besides the CTA
           gets the 44px both platforms ask for. */
        .nav-burger { width: 44px; height: 44px; }

        #nav.open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }

        /* The sheet hangs off the bar and stops at the bottom of the screen:
           past that it scrolls inside itself, so the last row stays reachable
           on a short screen or in landscape. Opaque rather than blurred, so no
           row ever sits on top of moving page content. */
        .nav-panel {
          display: block; position: fixed; inset: 64px 0 auto 0; z-index: 59;
          max-height: calc(100vh - 64px);
          max-height: calc(100dvh - 64px);
          overflow-y: auto; overscroll-behavior: contain;
          background: var(--bg);
          border-bottom: 1px solid var(--line); box-shadow: 0 20px 34px -28px rgba(0,0,0,.55);
          padding: 4px var(--gutter) calc(20px + env(safe-area-inset-bottom));
          transform: translateY(-10px); opacity: 0; pointer-events: none; visibility: hidden;
          transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
        }
        /* Hidden rather than merely transparent: closed, the rows are out of the
           tab order and out of a screen reader's way. */
        .nav-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

        /* The page below the sheet dims instead of competing with it, and the
           dimmed area is itself the way out: a tap anywhere on it closes. */
        .nav-scrim {
          display: block; position: fixed; inset: 64px 0 0 0; z-index: 58;
          background: color-mix(in srgb, #100d09 42%, transparent);
          opacity: 0; pointer-events: none; visibility: hidden; touch-action: none;
          transition: opacity .22s ease, visibility 0s linear .22s;
        }
        .nav-scrim.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }

        /* One flat list of 52px taps, each row's current value sitting at its
           right. Deliberately not written as `.nav-panel a`: that also caught
           the buttons underneath and beat their own rules, which left the
           primary CTA as dark left-aligned text on its own accent fill. */
        .nav-panel-links a,
        .nav-pref {
          display: flex; align-items: center; justify-content: space-between; gap: 14px;
          width: 100%; min-height: 52px; padding: 12px 2px;
          font: inherit; font-size: 16.5px; font-weight: 500; text-align: left;
          color: var(--ink2); background: none; border: 0;
          border-bottom: 1px solid var(--line-soft); cursor: pointer;
          -webkit-tap-highlight-color: transparent;
        }
        .nav-panel-links a:active, .nav-pref:active { color: var(--ink); }
        .nav-panel-prefs .nav-pref:last-child { border-bottom: 0; }
        /* A chip, not a second label: it reads as the state the row is in. */
        .nav-pref-val {
          flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--muted);
          border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
          background: var(--chip);
        }
        .nav-panel .btn { display: flex; width: 100%; margin-top: 16px; }
        .nav-panel .btn + .btn { margin-top: 10px; }

        /* One device in the hero on small screens, not two stacked: the phone
           gets a whole section of its own further down. The window is scaled
           and cropped to a peek so the hero stays about half a screen. */
        .stage-phone { display: none; }
        .float-card { display: none; }
        .device-window { max-height: 44vh; }
        .device-window .ui { zoom: .64; }
        .stage-inner::after {
          content: ''; position: absolute; inset: auto 0 0 0; height: 90px;
          pointer-events: none; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
          background: linear-gradient(transparent, var(--bg));
        }
        .compare { grid-template-columns: 1fr; }
        .cmp-arrow { transform: rotate(90deg); justify-self: center; }
        .demo-panes { grid-template-columns: 1fr; }
        .ai-out2 { grid-template-columns: 1fr; }
        .modes { grid-template-columns: 1fr; }
        .modes-arrow { transform: rotate(90deg); justify-self: center; }
        .desk-split { grid-template-columns: 1fr; }
        .ai-step::before, .ai-step::after { max-width: 40px; }
        .pane { min-height: 0; }
        .ui-grid-3 { grid-template-columns: 1fr 1fr; }
        /* Product replicas are illustrations here, not reading material -
           scale them down so a section is a glance, not a scroll. */
        .act-inner .ui { zoom: .8; }
        .mini { zoom: .88; }
        .flow-diagram { zoom: .9; }
        .acts { gap: clamp(48px, 9vw, 120px); }
        .act { gap: 22px; }
        .uc-grid { grid-template-columns: 1fr; }
        .moments { grid-template-columns: 1fr; }
        /* Fading is the point of the moments strip, but stacked on a phone the
           third card would be near-invisible, so lift the floor. */
        .moment:nth-child(2) .bubble { opacity: .75; }
        .moment:nth-child(3) .bubble { opacity: .55; }
      }
      @media (max-width: 620px) {
        .hero-cta .btn { flex: 1 1 100%; }
        .hero-proof { gap: 7px; }
        .hero-proof li { font-size: 12px; padding: 5px 11px; }
        .stat-band { grid-template-columns: 1fr; }
        .plans { grid-template-columns: 1fr; }
        .foot-grid { grid-template-columns: 1fr; gap: 26px; }
        .gallery { grid-auto-columns: minmax(178px, 58vw); }
        .rail { grid-auto-columns: minmax(180px, 66vw); }
        .final .cta-row .btn { flex: 1 1 100%; }
        .ui-grid, .ui-grid-3 { grid-template-columns: 1fr; }
        .trust-band { grid-template-columns: 1fr; }
        .trust-links { gap: 10px 16px; }
      }


      /* The primary CTA is a longer phrase than the nav used to carry, and on
         the narrowest phones it, the wordmark and the burger no longer fit on
         one line. The button gives back a few pixels and the wordmark steps
         out, leaving the logo tile to carry the brand - the alternative is the
         button sitting on top of the name. */
      @media (max-width: 400px) {
        #nav .btn-sm { font-size: 13px; padding: 8px 12px; }
        #nav .nav-right { gap: 7px; }
        /* A long label in a button that never wraps is the one thing on the
           page wider than a 320px screen. Let it take a second line rather
           than let the whole page scroll sideways. The bar is the exception:
           there, a second line would grow the bar itself. */
        .btn { white-space: normal; }
        #nav .btn { white-space: nowrap; }
      }
      @media (max-width: 350px) {
        #nav .brand > span { display: none; }
      }

      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
        .js [data-reveal] { opacity: 1; transform: none; }
        .stagger > *, .stage { opacity: 1; transform: none; }
        [data-parallax] { transform: none !important; }
      }
      @media (prefers-contrast: more) {
        :root { --line: rgba(42,38,32,.3); --muted: #5c5548; }
        html[data-theme='dark'] { --line: rgba(236,231,221,.28); --muted: #a8a094; }
      }
      @media print {
        nav, .scroll-cue, .aura, .grid-veil { display: none !important; }
      }
    
      /* ==========================================================================
         SEO LANDING PAGES ONLY - everything below this line is not used by the
         homepage. Kept small on purpose: these pages reuse the components above.
         ========================================================================== */
      .crumbs {
        display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
        font-size: 12.5px; color: var(--faint); margin-bottom: 22px;
      }
      .crumbs a, .crumbs [aria-current] {
        display: inline-block; padding: 3px 0; color: var(--muted);
        text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
      }
      .crumbs [aria-current] { color: var(--faint); text-decoration: none; }
      .crumbs a:hover { color: var(--accent); }
      .crumbs li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
      .crumbs li + li::before { content: '/'; color: var(--line); }
      .crumbs ol { display: contents; }

      /* The SEO hero is deliberately quieter than the homepage's: one column of
         copy, one full-width product visual under it. `overflow: hidden` clips
         the blurred aura, which is wider than the viewport by design. */
      .seo-hero {
        padding-top: calc(64px + clamp(46px, 6vw, 82px)); padding-bottom: 0;
        position: relative; overflow: hidden;
      }
      .seo-hero .wrap { position: relative; z-index: 1; }
      .seo-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
      .seo-hero .lead { font-size: clamp(16.5px, 1.6vw, 19px); max-width: 50ch; }
      .seo-hero .cta-row { margin-top: 30px; }
      .seo-stage { margin-top: clamp(40px, 5vw, 60px); }

      /* Two-up: copy beside a product visual. Alternates by :nth-child. */
      .split {
        display: grid; grid-template-columns: 1fr 1.15fr;
        gap: clamp(28px, 4vw, 60px); align-items: center;
      }
      .split + .split { margin-top: clamp(48px, 7vw, 96px); }
      .split:nth-child(even) .split-copy { order: 2; }
      .split-copy h2 { font-size: clamp(24px, 3vw, 36px); }
      .split-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 14px; max-width: 44ch; }
      .split-art {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-xl); padding: clamp(14px, 2vw, 22px);
        box-shadow: var(--shadow); min-width: 0; overflow: hidden;
      }
      .split-art > .ui { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
      .split-art .plan-card:last-of-type { margin-bottom: 0; }

      .seo-cta { text-align: center; }
      .seo-cta .kicker::before { display: none; }
      .related { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: clamp(26px, 3vw, 34px); }
      .related a {
        font-size: 13.5px; color: var(--ink2); border: 1px solid var(--line);
        background: var(--chip); border-radius: 999px; padding: 8px 15px;
        transition: border-color .2s, color .2s;
      }
      .related a:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

      @media (max-width: 860px) {
        .split { grid-template-columns: 1fr; gap: 26px; }
        .split:nth-child(even) .split-copy { order: 0; }
        .split-art .ui { zoom: .84; }
      }
