/* ─────────────────────────────────────────────────────────────
   Stemmy landing — design system
   Fonts are self-hosted (Inter + Newsreader, latin subset).
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f5f0e7;
  --paper-deep: #ece4d8;
  --surface: #fffdf9;
  --ink: #171512;
  --ink-soft: #57534c;
  --ink-mute: #66615a;
  --line: rgba(23, 21, 18, .14);
  --line-strong: rgba(23, 21, 18, .26);
  --wine: #7a3f50;
  --wine-dark: #603040;
  --wine-soft: #ead9de;
  --wine-tint: #f1e4e8;
  --sage: #4f7059;
  --sage-ink: #3b5a46;
  --sage-soft: #dce6dd;
  --sage-tint: #e5ede4;
  --gold: #d6b84f;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: Newsreader, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --shadow-soft: 0 18px 44px rgba(60, 43, 30, .1);
  --shadow-lift: 0 35px 80px rgba(60, 43, 30, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 92% 5%, rgba(122,63,80,.1), transparent 28%), radial-gradient(circle at 0 48%, rgba(79,112,89,.08), transparent 24%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--wine-soft); color: var(--wine-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; border-radius: 6px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
.workspace :focus-visible, .closing :focus-visible, .article-end :focus-visible { outline-color: #fffaf3; }

/* ── Header ── */
.site-header { position: fixed; top: 14px; left: 50%; z-index: 100; width: min(calc(100% - 32px), var(--max)); min-height: 66px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 8px 10px 8px 18px; border: 1px solid rgba(23,21,18,.1); border-radius: var(--radius); background: rgba(245,240,231,.92); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); transform: translateX(-50%); transition: box-shadow .25s, background .25s; }
.site-header.is-scrolled { background: rgba(255,253,249,.96); box-shadow: 0 12px 34px rgba(39,28,20,.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 1.12rem; font-weight: 750; letter-spacing: -.035em; }
.site-header nav, footer nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a, footer nav a { position: relative; color: var(--ink-soft); font-size: .92rem; font-weight: 580; transition: color .2s; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a:hover, footer nav a:hover, .text-link:hover { color: var(--wine); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close, .site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ── Buttons & labels ── */
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 26px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; box-shadow: 0 3px 0 rgba(0,0,0,.14); transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); box-shadow: 0 10px 26px rgba(96,48,64,.24); transform: translateY(-2px); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
.button svg { width: 20px; fill: currentColor; }
.button-small { min-height: 44px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.text-link { color: var(--ink-soft); font-size: 1rem; font-weight: 650; transition: color .2s; }
.text-link span { display: inline-block; margin-left: 6px; color: var(--wine); transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateY(3px); }
.eyebrow { margin-bottom: 20px; color: var(--wine); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; line-height: 1.4; }
.eyebrow > span { width: 8px; height: 8px; display: inline-block; margin-right: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px var(--sage-soft); }

/* ── Hero ── */
.hero { width: min(calc(100% - 48px), var(--max)); min-height: 800px; margin: 0 auto; padding: 140px 0 84px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(48px, 6vw, 88px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 640px; margin-bottom: 28px; font-family: var(--serif); font-size: clamp(3.4rem, 5.7vw, 5.6rem); font-weight: 480; letter-spacing: -.035em; line-height: 1; }
.hero h1 em, .section-heading h2 em { position: relative; isolation: isolate; color: var(--wine); font-weight: inherit; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; z-index: -1; height: .12em; background: var(--gold); opacity: .7; transform: rotate(-1deg); }
.hero-lede { max-width: 590px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.68; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.hero-proof { max-width: 640px; margin: 46px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--line); list-style: none; }
.hero-proof li { min-width: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { margin-bottom: 3px; font-size: .95rem; }
.hero-proof span { color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }

.hero-product { position: relative; min-width: 0; min-height: 540px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lift); transform: rotate(.6deg); }
.browser-top { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #ebe6dc; border-radius: 11px 11px 0 0; color: #5f5a52; font-size: .75rem; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c7c0b6; }
.browser-dots i:first-child { background: #a9606f; }
.browser-address { min-width: 0; flex: 1; overflow: hidden; padding: 6px 16px; border: 1px solid rgba(23,21,18,.07); border-radius: 6px; background: #f6f2eb; text-overflow: ellipsis; white-space: nowrap; }
.browser-status { color: var(--sage-ink); font-weight: 750; }
.reading-surface { min-height: 450px; padding: 56px 47% 56px 48px; background: linear-gradient(145deg, #fffdf9, #f6f1e8); border-radius: 0 0 11px 11px; }
.article-kicker { margin-bottom: 14px; color: var(--sage-ink); font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.mock-title { margin-bottom: 22px; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
.reading-surface > p:not(.article-kicker):not(.mock-title) { font-family: var(--serif); font-size: 1.2rem; line-height: 1.8; }
.inline-word { display: inline; padding: 1px 5px 2px; border: 0; border-bottom: 2px solid var(--wine); border-radius: 3px 3px 0 0; background: var(--wine-soft); color: var(--wine-dark); cursor: pointer; font-family: inherit; font-size: inherit; font-weight: 650; transition: background .2s, color .2s, transform .15s; }
.inline-word:hover, .inline-word.is-active { background: var(--wine); color: #fff; }
.selection-note { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: #5f5a52; font-size: .82rem; }
.selection-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: pulse-dot 2.4s ease-in-out infinite; }
.definition-card { position: absolute; top: 100px; right: -28px; width: min(340px, 47%); padding: 22px 22px 0; border: 1px solid rgba(23,21,18,.13); border-radius: 10px; background: #fff; box-shadow: 0 22px 55px rgba(45,34,27,.2); transform: rotate(-1deg); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.definition-card.is-highlighted { box-shadow: 0 0 0 3px var(--wine), 0 26px 60px rgba(45,34,27,.28); transform: rotate(-1deg) scale(1.02); }
.definition-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mock-word { margin: 0 0 2px; font-family: var(--serif); font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.definition-head p[data-phonetic] { margin: 0; color: #635e56; font-family: var(--mono); font-size: .8rem; }
.audio-button { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--wine); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.audio-button:hover { transform: scale(1.06); }
.audio-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audio-button.is-playing { background: var(--wine); color: #fff; }
.part-of-speech { width: max-content; margin: 16px 0 12px; padding: 3px 9px; border-radius: 4px; background: var(--sage-soft); color: var(--sage-ink); font-size: .78rem; font-weight: 750; }
.context-meaning { padding: 13px 14px; border-radius: 0 6px 6px 0; background: #f5f1ea; border-left: 3px solid var(--wine); }
.context-meaning span { color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.context-meaning p, .general-meaning { margin: 5px 0 0; color: #36332e; font-size: .9rem; line-height: 1.55; }
.general-meaning { margin: 14px 1px 18px; color: var(--ink-soft); }
.save-button { width: calc(100% + 44px); min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -22px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: transparent; color: var(--wine); cursor: pointer; font-size: .92rem; font-weight: 750; transition: background .2s, color .2s; }
.save-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.save-button .icon-check, .save-button.is-saved .icon-plus { display: none; }
.save-button.is-saved .icon-check { display: block; }
.save-button:hover, .save-button.is-saved { background: var(--wine-soft); }
.save-button.is-saved { color: var(--sage-ink); background: var(--sage-tint); }
.product-caption { position: absolute; right: 0; bottom: -42px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .85rem; }
.product-caption span { color: var(--wine); font-weight: 750; letter-spacing: .04em; }
.product-caption p { margin: 0; }

/* ── Trust rail ── */
.trust-rail { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.trust-rail i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--wine); }

/* ── Learning loop ── */
.learning-loop { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 110px 0 100px; display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(56px, 9vw, 130px); }
.section-heading h2, .workspace h2, .letters h2, .feature-intro h2, .control h2, .closing h2 { font-family: var(--serif); font-weight: 480; letter-spacing: -.03em; line-height: 1.04; }
.section-heading h2 { margin-bottom: 26px; font-size: clamp(2.7rem, 4.6vw, 4.5rem); }
.section-heading > p:last-child { max-width: 480px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.loop-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.loop-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.loop-steps li:hover { padding-left: 8px; }
.loop-steps li > span { color: var(--wine); font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-weight: 500; line-height: 1.2; }
.loop-steps strong { display: block; margin: 0 0 6px; font-family: var(--serif); font-size: 1.75rem; font-weight: 560; letter-spacing: -.015em; line-height: 1.15; }
.loop-steps p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ── Workspace (dark) ── */
.workspace { padding: 104px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(56px, 8vw, 110px); background: radial-gradient(circle at 85% 10%, rgba(122,63,80,.22), transparent 40%), var(--ink); color: #f8f3eb; }
.workspace .eyebrow { color: #e0b3c0; }
.workspace .eyebrow > span { box-shadow: 0 0 0 5px rgba(79,112,89,.35); }
.workspace h2 { margin-bottom: 24px; font-size: clamp(2.6rem, 4.4vw, 4.25rem); }
.workspace-copy > p:not(.eyebrow) { color: #cfc8be; font-size: 1.05rem; line-height: 1.7; }
.workspace-notes { margin-top: 32px; display: grid; gap: 13px; }
.workspace-notes span { display: flex; gap: 12px; color: #bdb6ac; font-size: .95rem; }
.workspace-notes b { min-width: 92px; color: #f8f3eb; }
.dashboard-preview { min-width: 0; min-height: 480px; display: grid; grid-template-columns: 160px 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #f7f4ee; color: var(--ink); box-shadow: 0 35px 80px rgba(0,0,0,.35); }
.preview-nav { padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #eee8de; }
.preview-brand { display: flex; align-items: center; gap: 9px; margin: 0 6px 22px; font-size: .9rem; }
.preview-nav > span { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 6px; color: #5b564e; font-size: .8rem; cursor: pointer; user-select: none; transition: background .15s, color .15s; }
.preview-nav > span:hover:not(.active) { background: rgba(255,255,255,.6); color: var(--ink); }
.preview-nav > span.active { background: #fff; color: var(--wine); font-weight: 750; }
.preview-nav b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: #fff; font-size: .7rem; }
.preview-main { padding: 34px; display: flex; flex-direction: column; }
.preview-header { display: flex; justify-content: space-between; gap: 20px; }
.preview-header small { color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.preview-title { margin: 3px 0 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.preview-header > span { height: max-content; padding: 5px 10px; border-radius: 4px; background: var(--wine-soft); color: var(--wine); font-size: .78rem; font-weight: 750; }
.review-preview { flex: 1; margin-top: 28px; padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: center; }
.review-progress { display: flex; align-items: center; gap: 10px; }
.review-progress > span { height: 5px; flex: 1; border-radius: 4px; background: linear-gradient(90deg, var(--wine) 34%, #e4ddd3 34%); }
.review-progress small { color: #5b564e; font-size: .75rem; }
.preview-word { margin: 40px 0 4px; font-family: var(--serif); font-size: 2.7rem; font-weight: 600; letter-spacing: -.02em; }
.preview-prompt { color: var(--ink-soft); font-size: .92rem; }
.review-preview button { min-height: 42px; margin-top: 18px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 750; cursor: pointer; transition: background .2s, transform .15s; }
.review-preview button:hover { background: var(--wine-dark); border-color: var(--wine-dark); transform: scale(1.02); }
.preview-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.preview-footer span { padding: 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); text-align: center; font-size: .78rem; cursor: pointer; user-select: none; transition: background .2s, color .2s, border-color .2s; }
.preview-footer span:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ── Wallet Letters ── */
.letters { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 104px 0 0; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.letters h2 { margin-bottom: 24px; font-size: clamp(2.6rem, 4.4vw, 4.25rem); }
.letters-copy > p:not(.eyebrow) { max-width: 500px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.letters-notes { margin-top: 30px; display: grid; gap: 12px; }
.letters-notes span { display: flex; gap: 12px; color: var(--ink-soft); font-size: .95rem; }
.letters-notes b { min-width: 92px; color: var(--ink); }
/* The letter itself, as it arrives: the "Linen" template on warm paper. */
.letter-preview { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lift); }
.letter-meta { display: grid; gap: 5px; padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--paper-deep); color: var(--ink-soft); font-size: .84rem; }
.letter-meta b { display: inline-block; min-width: 60px; color: var(--ink-mute); font-weight: 600; }
.letter-meta span:last-child { color: var(--ink); font-weight: 650; }
.letter-body { padding: 28px 30px 24px; }
.letter-body > small { color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.letter-title { margin: 6px 0 20px; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.letter-word { padding: 20px 0; border-top: 1px solid var(--line); }
.letter-word h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.letter-word h3 span { margin-left: 8px; color: var(--ink-mute); font-family: var(--sans); font-size: .9rem; font-weight: 400; letter-spacing: 0; }
.letter-word p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.letter-word .letter-example { margin-top: 6px; font-style: italic; }
.letter-word .letter-answer { min-height: 1.6em; margin-top: 12px; font-size: .9rem; }
.letter-answer button { padding: 0; border: 0; background: none; color: var(--wine); font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.letter-answer button:hover { color: var(--wine-dark); }
.letter-answer.is-saved { color: var(--sage-ink); font-weight: 650; }
.letter-more { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.letter-more li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-mute); font-family: var(--serif); font-size: 1.15rem; }
.letter-more li span { color: var(--wine); font-style: italic; }
.letter-foot { margin: 18px 0 0; color: var(--ink-mute); font-size: .8rem; }

/* ── Feature grid ── */
.feature-grid { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 104px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-intro { grid-column: 1 / -1; display: grid; grid-template-columns: .6fr 1.4fr; align-items: end; margin-bottom: 26px; }
.feature-intro .eyebrow { margin: 0 0 10px; }
.feature-intro h2 { max-width: 780px; margin: 0; font-size: clamp(2.8rem, 5vw, 4.9rem); }
.feature-card { grid-row: span 4; min-height: 340px; padding: 34px; display: grid; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.feature-story { background: var(--surface); }
.feature-immersion { background: var(--sage-tint); }
.feature-xray { background: var(--wine-tint); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.55); color: var(--wine); }
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-label { margin: 0 0 10px; color: var(--wine); font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.feature-card h3 { max-width: 480px; margin-bottom: 14px; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 540; letter-spacing: -.02em; line-height: 1.1; }
.feature-card > p:last-child { max-width: 500px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ── Control / privacy ── */
.control { padding: 104px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(56px, 9vw, 130px); background: #e9dfd2; }
.control h2 { margin-bottom: 24px; font-size: clamp(2.7rem, 4.6vw, 4.4rem); }
.control-copy > p:last-child { max-width: 500px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.control-list { border-top: 1px solid var(--line-strong); }
.control-list article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.control-list article > span { color: var(--wine); font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 500; line-height: 1.2; }
.control-list strong { display: block; margin: 0 0 4px; font-family: var(--serif); font-size: 1.5rem; font-weight: 560; line-height: 1.2; }
.control-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
details { border-bottom: 1px solid var(--line-strong); }
summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-size: 1rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--wine); font-size: 1.4rem; font-weight: 500; transition: transform .25s var(--ease); }
details[open] summary span { transform: rotate(45deg); }
.privacy-details { padding: 0 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.privacy-details p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.6; }
.privacy-details strong { color: var(--ink); }

/* ── Closing CTA ── */
.closing { min-height: 460px; padding: 88px max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: end; justify-content: space-between; gap: 60px; background: radial-gradient(circle at 88% 0, rgba(255,255,255,.12), transparent 42%), linear-gradient(160deg, var(--wine), #5d2d3c); color: #fffaf3; }
.closing .eyebrow { color: #f0ccd6; }
.closing .eyebrow > span { background: #cfe0d2; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.closing h2 { max-width: 800px; margin-bottom: 16px; font-size: clamp(3rem, 5.8vw, 5.6rem); line-height: 1.02; }
.closing p:not(.eyebrow) { margin: 0; color: #f1dfe4; font-family: var(--serif); font-size: 1.45rem; font-style: italic; }
.button-light { flex: 0 0 auto; border-color: #fffaf3; background: #fffaf3; color: var(--wine-dark); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.button-light:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ── Footer ── */
footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 36px 0 28px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px 34px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
footer .brand { grid-column: 1; }
footer > p { margin: 0; grid-column: 2; }
footer nav[aria-label="Footer navigation"] { grid-column: 3; }
footer small { margin: 0; grid-column: 4; font-size: inherit; text-align: right; }
footer nav a.footer-blog-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--wine-dark); background: var(--surface); white-space: nowrap; transition: border-color .2s, background .2s; }
footer nav a.footer-blog-link:hover { border-color: var(--wine); background: var(--wine-soft); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 150px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 730px; font-size: clamp(3.4rem, 9vw, 5.2rem); }
  .hero-product { width: min(720px, calc(100% - 28px)); margin: 8px auto 42px; }
  .learning-loop, .workspace, .control { grid-template-columns: 1fr; }
  .learning-loop { gap: 48px; }
  .workspace, .control { gap: 52px; }
  .dashboard-preview { width: min(760px, 100%); }
  .letters { grid-template-columns: 1fr; gap: 44px; }
  .letter-preview { order: 1; width: min(640px, 100%); }
  .feature-intro { grid-template-columns: 1fr; gap: 13px; }
  .closing { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .site-header { top: 0; width: 100%; min-height: 64px; grid-template-columns: 1fr auto; padding: 8px 12px 8px 16px; border-width: 0 0 1px; border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 14px; border-bottom: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 22px 40px rgba(39,28,20,.14); }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a::after { display: none; }
  .header-actions .button { font-size: .88rem; padding: 0 14px; }
  .brand { font-size: 1.05rem; }
  .hero, .trust-rail, .learning-loop, .feature-grid, footer { width: min(calc(100% - 36px), var(--max)); }
  .hero { padding: 112px 0 64px; gap: 46px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .hero-lede { font-size: 1.05rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; gap: 12px; }
  .hero-proof li { display: grid; grid-template-columns: 124px 1fr; gap: 10px; }
  .hero-product { width: 100%; min-height: 0; margin: 0 0 22px; transform: none; }
  .browser-status { display: none; }
  .reading-surface { min-height: 0; padding: 32px 24px 56px; }
  .reading-surface > p:not(.article-kicker):not(.mock-title) { font-size: 1.1rem; }
  .selection-note { margin-top: 24px; }
  .definition-card { position: relative; top: auto; right: auto; width: calc(100% - 28px); margin: -38px auto 18px; transform: none; }
  .product-caption { position: static; justify-content: center; padding: 0 0 22px; }
  .trust-rail { justify-content: center; flex-wrap: wrap; row-gap: 10px; padding: 20px 0; font-size: .88rem; }
  .learning-loop { padding: 60px 0 56px; }
  .section-heading h2, .workspace h2, .control h2 { font-size: 2.8rem; }
  .loop-steps li { grid-template-columns: 46px 1fr; padding: 20px 0; }
  .workspace, .control { padding: 60px 18px; }
  .dashboard-preview { min-height: 440px; grid-template-columns: 1fr; }
  .preview-nav { padding: 10px; flex-direction: row; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); }
  .preview-brand { margin: 0 4px 0 0; }
  .preview-brand strong, .preview-nav > span:nth-of-type(n+4) { display: none; }
  .preview-nav > span { white-space: nowrap; }
  .preview-main { padding: 22px 15px; }
  .letters { width: min(calc(100% - 36px), var(--max)); padding: 60px 0 0; }
  .letters h2 { font-size: 2.8rem; }
  .letter-meta { padding: 14px 20px; }
  .letter-body { padding: 22px 20px 18px; }
  .feature-grid { grid-template-columns: 1fr; padding: 60px 0; }
  .feature-intro { grid-column: auto; margin-bottom: 14px; }
  .feature-intro h2 { font-size: 2.9rem; }
  .feature-card { min-height: 0; padding: 26px; }
  .feature-icon { margin-bottom: 24px; }
  .feature-card h3 { font-size: 1.75rem; }
  .privacy-details { grid-template-columns: 1fr; }
  .control-list article { grid-template-columns: 44px 1fr; padding: 20px 0; }
  .closing { min-height: 0; padding: 60px 18px; gap: 36px; }
  .closing .button { width: 100%; }
  .closing h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  footer { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 0; }
  footer .brand { order: 1; }
  footer > p { order: 2; font-size: .88rem; }
  footer nav[aria-label="Footer navigation"] { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 12px 18px; }
  footer .footer-guides { order: 4; width: 100%; gap: 8px 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  footer small { order: 5; text-align: left; }
}

/* ── Motion ── */
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,112,89,.45); } 50% { box-shadow: 0 0 0 6px rgba(79,112,89,0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .7s var(--ease) both; }
  .hero-product { animation: rise-in .8s .08s var(--ease) both; }
  @keyframes rise-in { from { transform: translateY(18px); } to { transform: none; } }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .feature-card.reveal.is-visible { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, opacity .7s var(--ease); transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .skip-link { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── GEO Facts Box ── */
.facts-box { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-inner { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.facts-title { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(1.85rem, 3.2vw, 2.7rem); font-weight: 520; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.facts-lead { max-width: 820px; margin-bottom: 24px; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; }
.facts-list { margin: 0 0 24px; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px 28px; }
.facts-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.55; color: var(--ink-soft); }
.facts-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); }
.facts-list li strong { display: inline; color: var(--ink); font-weight: 700; margin-right: 4px; }
.facts-cta { margin: 6px 0 0; }
.facts-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--wine); color: var(--wine-dark); background: var(--wine-tint); font-weight: 700; font-size: .94rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.facts-cta a:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ── Footer Guides nav ── */
footer .footer-guides { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
footer .footer-guides strong { color: var(--wine); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-right: 2px; }
footer .footer-guides a { color: var(--ink-soft); font-size: .88rem; font-weight: 500; transition: color .2s; }
footer .footer-guides a:hover { color: var(--wine); }
footer .footer-guides a[aria-current="page"] { color: var(--ink); font-weight: 650; }

@media (max-width: 680px) {
  .facts-list { grid-template-columns: 1fr; gap: 6px; }
  .facts-box { padding: 32px 0; }
  .facts-list li { padding: 8px 0 8px 18px; }
  .facts-list li::before { top: 15px; }
}



/* ── Shared components added for the growth update ── */
code { font-family: var(--mono); font-size: .88em; }
.draft-banner { position: fixed; bottom: 14px; left: 50%; z-index: 200; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-soft); transform: translateX(-50%); }

/* Install handoff: phones get Copy link / Share; Firefox and Safari get a one-line note. Classes are set in <head> before first paint. */
.handoff, .browser-note, .handoff-header { display: none; }
.is-handoff [data-store-cta] { display: none !important; }
.is-handoff .handoff { display: block; }
.is-handoff .handoff-header { display: inline-flex; }
.is-other-browser .browser-note { display: block; }
.handoff { max-width: 460px; margin: 18px 0 0; }
.handoff-note, .browser-note { margin: 0 0 10px; color: inherit; font-family: var(--sans); font-size: .94rem; font-style: normal; line-height: 1.5; }
.browser-note { margin-top: 12px; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.handoff .button { min-height: 48px; cursor: pointer; }
.button-quiet { border-color: currentColor; background: transparent; color: inherit; box-shadow: none; }
.button-quiet:hover { color: #fff; }
.handoff-status { min-height: 1.4em; margin: 8px 0 0; font-family: var(--sans); font-size: .88rem; font-style: normal; font-weight: 650; }
.closing .handoff, .closing .browser-note { color: #fffaf3; }
.closing .handoff p, .closing .browser-note { font-family: var(--sans); font-size: .94rem; font-style: normal; color: #fffaf3; }
.closing .handoff .button { border-color: #fffaf3; background: #fffaf3; color: var(--wine-dark); }
.closing .handoff .button-quiet { background: transparent; color: #fffaf3; }
.closing-action { flex: 0 1 auto; }
.handoff-header { cursor: pointer; }

/* See it work */
.see-it-work { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 20px 0 110px; }
.see-it-work .section-heading h2 em, .faq .section-heading h2 em { color: var(--wine); font-style: italic; }
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 372px); gap: 22px; margin: 10px 0 0; padding: 6px 4px 22px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: var(--line-strong) transparent; }
.screens li { scroll-snap-align: start; }
.screens figure { height: 100%; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.screens img { width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--paper-deep); }
.screens figcaption { display: grid; gap: 4px; padding: 16px 18px 20px; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.screens figcaption span { color: var(--wine); font-size: .74rem; font-weight: 750; letter-spacing: .12em; }
.screens figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 560; line-height: 1.25; }

/* Looping demo: animated WebP with a still fallback and a pause control */
.demo-loop { margin: 2.2em 0; }
.demo-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-deep); box-shadow: var(--shadow-soft); }
.demo-frame img { width: 100%; height: auto; aspect-ratio: 8 / 5; }
.demo-toggle { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,253,249,.94); color: var(--ink); cursor: pointer; }
.demo-toggle svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.demo-toggle .icon-play, .demo-toggle.is-paused .icon-pause { display: none; }
.demo-toggle.is-paused .icon-play { display: block; }
.demo-loop figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.demo-tag { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--sage-tint); color: var(--sage-ink); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.hero-video { position: relative; margin: 0; }
.hero-video video { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 12px; background: var(--paper-deep); box-shadow: var(--shadow-lift); }

/* FAQ */
.faq { width: min(calc(100% - 48px), 900px); margin: 0 auto; padding: 104px 0 60px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq summary { padding: 18px 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; line-height: 1.3; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--wine); font-family: var(--sans); font-size: 1.4rem; font-weight: 500; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer p { max-width: 720px; margin: 0 0 24px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.control-more { margin: 22px 0 0; }

/* Social proof: renders only when real data exists */
.testimonials { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 40px 0 90px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.testimonial blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.testimonial figcaption { color: var(--ink-soft); font-size: .88rem; }
.closing .rating-badge { margin-top: 18px; font-family: var(--sans); font-size: .95rem; font-style: normal; }
.rating-badge a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .see-it-work { width: calc(100% - 36px); padding-bottom: 80px; }
  .screens { grid-auto-columns: 82%; }
  .faq { width: calc(100% - 36px); padding-top: 76px; }
  .faq summary { font-size: 1.18rem; }
  .closing-action { width: 100%; }
}

/* Hero illustration: a still paints first, the loop swaps in after load. The image's paper background fades into the page. */
.hero-shot { position: relative; min-width: 0; margin: 0 -16px 0 -12px; }
@media (min-width: 1320px) { .hero-shot { margin: 0 -72px 0 -28px; } }
.hero-shot img { width: 100%; height: auto; aspect-ratio: 8 / 5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(180deg, transparent, #000 4.5%, #000 95.5%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(180deg, transparent, #000 4.5%, #000 95.5%, transparent); mask-composite: intersect; }
.hero-shot .demo-toggle { right: 6.5%; bottom: 9%; }
.hero-shot .product-caption { right: 6%; bottom: -18px; }
.hero-shot .product-caption .demo-tag { margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot { animation: rise-in .8s .08s var(--ease) both; }
}
@media (max-width: 1050px) {
  .hero-shot { width: min(760px, 100%); margin: 0 auto 30px; }
}
@media (max-width: 700px) {
  .hero-shot { width: calc(100% + 24px); margin: 0 -12px 8px; }
  .hero-shot .product-caption { position: static; justify-content: center; padding: 6px 0 0; }
  .hero-shot .demo-toggle { width: 38px; height: 38px; right: 7%; bottom: 13%; }
}

/* ── Analytics consent (Clarity loads only after "Allow analytics") ── */
.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 720px; margin: 0 0 0 auto; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 44px rgba(39,28,20,.18); }
.consent p { flex: 1 1 320px; margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.consent p a { color: var(--wine-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent-current { display: block; color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .button-quiet { color: var(--ink); }
.consent .button-quiet:hover { color: var(--wine); }
.link-button { padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .92rem; font-weight: 580; cursor: pointer; }
.link-button:hover { color: var(--wine); }
footer nav[aria-label="Footer navigation"] { flex-wrap: wrap; row-gap: 10px; }
.footer-guides strong a { color: inherit; }
@media (max-width: 980px) and (min-width: 701px) { .site-header { gap: 18px; } .site-header nav { gap: 20px; } .site-header nav a { font-size: .88rem; } }
@media print { .consent { display: none; } }
