/* Aura Wonder marketing site. Tokens mirror src/constants/theme.ts (chrome only).
   Palette swatches and garment fills are data: exact hex inline, never tinted, never opacity. */

/* Nunito (SIL OFL 1.1, see fonts/OFL.txt): variable weight, Latin subset, self-hosted. */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-latin-var.92c85439cb.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #FFF4E3;          /* cream */
  --ink: #2B1B33;             /* plum ink */
  --ink-2: #6E5A73;
  --surface: #FFFFFF;
  --selected: #EDE6FF;        /* pale lilac */
  --primary: #7B3DFF;         /* UI violet (logo violet #8A55FF fails contrast) */
  --on-primary: #FFFFFF;
  --good: #1E7A4C;
  --tweak: #9A5B00;
  --weak: #6E5A73;
  --band: #2B1B33;            /* drenched plum band */
  --band-ink: #FFF4E3;
  --band-ink-2: #D9C9DE;
  --band-surface: #3A2744;
  --line: rgba(43, 27, 51, 0.14);
  --todo-bg: #FFE7B8;
  --todo-ink: #6B3F00;
  --shadow: 0 1px 2px rgba(43, 27, 51, 0.06), 0 12px 32px -8px rgba(43, 27, 51, 0.18);

  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --measure: 68ch;
  --page: min(1200px, 100% - 2 * var(--gutter));
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-l: 28px;
  --radius-m: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1A1420;
    --ink: #FFF4E3;
    --ink-2: #B8A8BD;
    --surface: #261D2E;
    --selected: #32273B;
    --primary: #9B6BFF;
    --on-primary: #1A1420;
    --good: #5FD39A;
    --tweak: #F2B552;
    --weak: #B8A8BD;
    --band: #261D2E;
    --band-ink: #FFF4E3;
    --band-ink-2: #B8A8BD;
    --band-surface: #32273B;
    --line: rgba(255, 244, 227, 0.14);
    --todo-bg: #4A3510;
    --todo-ink: #FFD98A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--primary) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  accent-color: var(--primary);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--primary); color: var(--on-primary); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--primary); }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: var(--page); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--primary); color: var(--on-primary); padding: 0.75rem 1rem; border-radius: 12px; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; }
.wordmark { display: block; height: 26px; width: auto; }
.wordmark-link { display: inline-flex; padding-block: 0.5rem; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 0.975rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; color: inherit; }
@media (max-width: 860px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: 800 1rem/1.1 var(--font); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
a.btn:hover { transform: translateY(-1px); }
a.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
a.btn-primary:hover { color: var(--on-primary); background: color-mix(in oklab, var(--primary), var(--ink) 14%); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
a.btn-ghost:hover { color: var(--ink); background: var(--selected); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0; }
.store-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-btns .btn { padding-inline: 1.1rem 1.4rem; text-align: left; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 7rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-weight: 900; font-size: clamp(2.75rem, 7vw, 5.75rem); line-height: 0.95; letter-spacing: -0.035em; }
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.hero .store-btns { margin-top: 2.25rem; }
.hero .fine { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero .lead { max-width: 40ch; } }

/* ---------- Thread (the signature) ---------- */
.thread { display: grid; gap: 0.9rem; margin: 0; }
.thread-meta { font-size: 0.85rem; color: var(--ink-2); text-align: center; font-weight: 700; }
.bubble { border-radius: var(--radius-l); box-shadow: var(--shadow); background: var(--surface); }
.bubble-you { justify-self: end; width: min(330px, 86%); border-bottom-right-radius: 8px; overflow: hidden; }
.bubble-you .who, .bubble-aw .who { font-size: 0.78rem; font-weight: 800; color: var(--ink-2); }
.product { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
.product-art { background: #F3EEE8; height: 132px; display: grid; place-items: center; }
.product-art svg { width: 86px; height: auto; }
.product-info { padding: 0.9rem 1.1rem; }
.product-info b { display: block; font-size: 1rem; line-height: 1.3; }
.product-info span { font-size: 0.85rem; color: var(--ink-2); }
.bubble-aw { justify-self: start; width: min(470px, 100%); padding: 1.35rem 1.4rem 1.4rem; border-bottom-left-radius: 8px; }
.aw-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.aw-head svg { width: 22px; height: 22px; }
.verdict { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.verdict-tier { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.15; }
.verdict-tier svg { width: 30px; height: 30px; flex: none; }
.tier-weak { color: var(--weak); }
.tier-good { color: var(--good); }
.tier-tweak { color: var(--tweak); }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--selected); font-size: 0.8rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.verdict-why { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.98rem; }
.better {
  margin-top: 1.1rem; display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center;
  padding: 0.9rem; border-radius: var(--radius-m); background: var(--ground);
}
.better .product-art { height: 104px; border-radius: 12px; }
.better .product-art svg { width: 70px; }
.better b { display: block; font-size: 1.1rem; line-height: 1.25; }
.better .swatch-inline { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; font-size: 0.88rem; font-weight: 700; }
.better .swatch-inline i { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.better .tier-good { font-size: 0.85rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.35rem; }
.better .tier-good svg { width: 16px; height: 16px; }
.aw-actions { margin-top: 1.1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.aw-actions .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.92rem; white-space: normal; text-align: center; }
.typing { justify-self: start; display: none; gap: 6px; padding: 1rem 1.2rem; border-radius: var(--radius-l); border-bottom-left-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); display: block; }

@media (prefers-reduced-motion: no-preference) {
  .bubble-you { animation: arrive 0.7s var(--ease-out) 0.15s backwards; }
  .typing { display: flex; animation: typing-life 1.5s var(--ease-out) 0.7s both; }
  .typing i { animation: dot 0.9s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
  .bubble-aw { animation: arrive 0.9s var(--ease-out) 2.05s backwards; }
  .better { animation: settle 0.9s var(--ease-out) 2.6s backwards; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); } }
@keyframes settle { from { opacity: 0; clip-path: inset(0 0 100% 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@keyframes typing-life {
  0% { opacity: 0; transform: translateY(8px); }
  15%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; height: 0; padding-block: 0; margin-top: -0.9rem; }
}
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section h2 { font-weight: 900; font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; }
.section .intro { margin-top: 1.25rem; font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 0.9rem; color: var(--ink-2); }

/* How it works */
.sharesheet { margin-top: 2.5rem; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1.5rem; max-width: 460px; }
.sharesheet-head { display: flex; gap: 0.9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sharesheet-head .product-art { width: 52px; height: 60px; border-radius: 10px; }
.sharesheet-head .product-art svg { width: 38px; }
.sharesheet-head b { display: block; font-size: 0.95rem; }
.sharesheet-head span { font-size: 0.8rem; color: var(--ink-2); }
.apps { display: flex; gap: 0.75rem; padding-top: 1.1rem; list-style: none; margin: 0; padding-inline: 0; flex-wrap: wrap; }
.apps li { display: grid; justify-items: center; gap: 0.4rem; font-size: 0.74rem; color: var(--ink-2); font-weight: 700; flex: none; width: 64px; text-align: center; line-height: 1.2; }
.apps .ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--selected); }
.apps .ico svg { width: 28px; height: 28px; color: var(--ink-2); }
.apps .is-aw .ico { background: #FFF4E3; box-shadow: 0 0 0 3px var(--primary); }
.apps .is-aw .ico svg { width: 40px; height: 40px; }
.apps .is-aw { color: var(--ink); }
.note { margin-top: 2.5rem; padding: 1rem 1.2rem; border-radius: var(--radius-m); background: var(--selected); font-size: 0.98rem; }

.legend { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); border-top: 2px solid var(--ink); padding-top: 2.5rem; }
.legend h3 { font-weight: 900; font-size: 1.5rem; margin-bottom: 1.4rem; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.tiers li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.tiers svg { width: 40px; height: 40px; }
.tiers b { display: block; font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.tiers span { color: var(--ink-2); }
.reads { margin: 0; display: grid; gap: 1rem; }
.reads div { display: grid; gap: 0.15rem; }
.reads dt { font-weight: 900; }
.reads dd { margin: 0; color: var(--ink-2); }
.meter { display: inline-flex; gap: 3px; margin-right: 0.5rem; vertical-align: -1px; }
.meter i { width: 14px; height: 10px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--ink); }

/* Palette band */
.band { background: var(--band); color: var(--band-ink); }
.band .intro, .band .fine { color: var(--band-ink-2); }
.palette-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.tiers-mv { margin-top: 2rem; display: grid; gap: 1rem; }
.tiers-mv div { padding: 1rem 1.2rem; border-radius: var(--radius-m); background: var(--band-surface); }
.tiers-mv b { display: block; font-weight: 900; font-size: 1.1rem; }
.tiers-mv span { color: var(--band-ink-2); font-size: 0.98rem; }
.privacy-line { margin-top: 1.75rem; display: flex; gap: 0.8rem; align-items: start; font-weight: 700; font-size: 1.05rem; }
.privacy-line svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.palette-card { background: var(--band-surface); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); }
.palette-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.palette-card h3 { font-weight: 900; font-size: 1.75rem; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.75rem; }
.swatches li { display: grid; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; line-height: 1.2; color: var(--band-ink); }
.swatches i { display: block; aspect-ratio: 1 / 1.15; border-radius: 12px; }
.sample-tag { font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1.5px solid currentColor; color: var(--band-ink-2); }

/* Avatar */
.avatar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.avatar-card { position: relative; max-width: 420px; justify-self: center; width: 100%; background: var(--surface); border-radius: 32px; padding: 1.1rem; box-shadow: var(--shadow); }
.avatar-card svg.art { width: 100%; height: auto; border-radius: 22px; }
.avatar-card footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.9rem 0.3rem 0.2rem; flex-wrap: wrap; }
.avatar-card footer b { font-size: 1.2rem; font-weight: 900; }
.mini-swatches { display: flex; gap: 4px; }
.mini-swatches i { width: 22px; height: 22px; border-radius: 7px; display: block; }
.ai-label { position: absolute; top: 1.8rem; left: 1.8rem; display: inline-flex; align-items: center; gap: 0.35rem; background: #2B1B33; color: #FFF4E3; font-size: 0.78rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 999px; }
.ai-label svg { width: 14px; height: 14px; }
.styles { margin-top: 1.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; padding: 0; }
.styles li { padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 800; font-size: 0.95rem; }
.styles li[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--ground); }

/* Pair + gift */
.duo { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem; align-items: stretch; }
.panel { min-width: 0; border-radius: var(--radius-l); padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; }
.panel-pair { background: var(--selected); }
.panel-gift { background: var(--surface); box-shadow: var(--shadow); }
.panel h3 { font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.panel p { color: var(--ink-2); }
.guesses { display: grid; gap: 0.6rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 999px; padding: 4px; font-weight: 800; font-size: 0.95rem; text-align: center; max-width: 360px; }
.seg span { padding: 0.5rem; border-radius: 999px; color: var(--ink-2); }
.seg span.on { background: var(--ink); color: var(--ground); }
.ours { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; padding-top: 0.5rem; }
.ours figure { margin: 0; display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.ours i { width: 44px; height: 44px; border-radius: 14px; display: block; }
.ours small { display: block; font-weight: 700; color: var(--ink-2); font-size: 0.8rem; }
.giftpage { border: 2px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.giftpage .bar { padding: 0.55rem 0.9rem; font-size: 0.8rem; color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 0.4rem; }
.giftpage .bar svg { width: 14px; height: 14px; }
.giftpage .body { padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.giftpage .body b { font-size: 1.1rem; font-weight: 900; }
.giftpage .row { display: flex; gap: 5px; }
.giftpage .row i { flex: 1; height: 34px; border-radius: 8px; }
.fake-input { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fake-input > span:not(.btn) { min-width: 12ch; }
.fake-input > span:not(.btn) { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 0.6rem 0.8rem; color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-input .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Promises */
.ruled { border-top: 2px solid var(--ink); padding-top: clamp(3rem, 6vw, 5rem); }

/* Promises */
.promises h2 { font-size: clamp(2.4rem, 6.4vw, 5.25rem); max-width: 14ch; }
.promise-list { margin-top: 3rem; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem 3rem; }
.promise-list li { display: grid; grid-template-columns: 30px 1fr; gap: 0.9rem; }
.promise-list svg { width: 28px; height: 28px; color: var(--primary); margin-top: 2px; }
.promise-list b { display: block; font-weight: 900; font-size: 1.15rem; }
.promise-list span { color: var(--ink-2); }

/* Close */
.close { text-align: center; padding-block: clamp(4rem, 9vw, 8rem); }
.close .mark { width: clamp(88px, 12vw, 132px); margin: 0 auto 2rem; }
.close h2 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -0.035em; }
.close .store-btns { justify-content: center; margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 700; }
.site-footer a { display: inline-block; padding-block: 0.35rem; }
.site-footer .by { color: var(--ink-2); margin-top: 0.5rem; }
.lang { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.lang a { min-height: 44px; display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 800; }
.lang a[aria-current] { background: var(--ink); color: var(--ground); }
.lang svg { width: 20px; height: 20px; color: var(--ink-2); margin-right: 0.35rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Responsive collapse ---------- */
@media (max-width: 900px) {
  .legend, .palette-grid, .avatar-grid, .duo { grid-template-columns: minmax(0, 1fr); }
  .avatar-card { order: -1; }
}
@media (max-width: 420px) {
  .product { grid-template-columns: 92px 1fr; }
  .better { grid-template-columns: 72px 1fr; }
  .verdict-tier { font-size: 1.35rem; }
  .store-btns .btn { flex: 1 1 100%; justify-content: flex-start; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Legal pages (Read mode) ---------- */
.doc-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; border-bottom: 2px solid var(--ink); }
.doc-head h1 { font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; }
.doc-head .dates { margin-top: 1.25rem; display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; color: var(--ink-2); font-size: 0.95rem; }
.doc { display: grid; grid-template-columns: 240px minmax(0, var(--measure)); gap: clamp(2rem, 5vw, 5rem); padding-block: 3rem 5rem; }
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: 0.92rem; }
.toc b { display: block; font-weight: 900; margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.toc a { display: block; padding: 0.35rem 0.75rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.toc a:hover { background: var(--selected); color: var(--ink); }
.prose { font-size: 1.0625rem; }
.prose h2 { font-weight: 900; font-size: 1.75rem; line-height: 1.15; margin: 3.25rem 0 1rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-weight: 900; font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--primary); }
.summary { background: var(--selected); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); }
.summary h2 { margin-top: 0; font-size: 1.5rem; }
.summary ul { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 900; border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0.05em 0.4em; border-radius: 6px; font-weight: 800; font-size: 0.9em; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.path { font-weight: 800; background: var(--selected); padding: 0.05em 0.45em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 2px solid var(--line); border-radius: var(--radius-m); padding: 1rem; }
}
@media print {
  .site-header, .site-footer, .toc { display: none; }
  .doc { display: block; }
}

/* ---------- Share action (founder feedback round) ---------- */
.share-glyph { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.share-glyph .g-android { display: none; }
.is-android .share-glyph .g-ios { display: none; }
.is-android .share-glyph .g-android { display: inline; }
.howto { margin-top: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-size: 1.05rem; font-weight: 700; }
.share-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--selected); color: var(--ink); font-weight: 900; box-shadow: inset 0 0 0 2px var(--primary); }
.share-pill .share-glyph { color: var(--primary); }
.howto-arrow { width: 22px; height: 22px; color: var(--ink-2); }
.who-share { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--primary) !important; }
.who-share .share-glyph { width: 15px; height: 15px; }
.hero .howto + .fine { margin-top: 0.75rem; }
.hero .store-btns { margin-top: 1.75rem; }

.flow { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); }
.flow-step { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 1.25rem; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 40%; right: calc(-1 * clamp(2.5rem, 5vw, 4.5rem) / 2 - 14px); width: 28px; height: 28px;
  background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13.5 6.5L19 12l-5.5 5.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13.5 6.5L19 12l-5.5 5.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.frame { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 1.1rem; align-self: stretch; display: grid; align-content: start; gap: 0.6rem; max-width: 100%; margin: 0; }
.flow .sharesheet { margin-top: 0; max-width: none; }
.store-bar { display: flex; justify-content: space-between; align-items: center; }
.store-name { font-weight: 800; font-size: 0.85rem; color: var(--ink-2); }
.share-target { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--selected); color: var(--primary); box-shadow: 0 0 0 3px var(--primary); }
.share-target .share-glyph { width: 24px; height: 24px; }
.store-art { background: #F3EEE8; border-radius: 14px; height: 150px; display: grid; place-items: center; }
.store-art svg { width: 92px; height: auto; }
.frame-store b { font-size: 0.98rem; }
.store-cta { justify-self: start; font-size: 0.82rem; font-weight: 800; color: var(--ink-2); border: 2px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; }
.frame-verdict { gap: 0.8rem; }
.frame-verdict .aw-head { margin-bottom: 0; }
.frame-verdict .verdict-tier { font-size: 1.45rem; }
.frame-verdict .chip, .frame-verdict .swatch-inline { justify-self: start; }
.swatch-inline { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 700; }
.swatch-inline i { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.flow-cap { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; font-size: 1.05rem; }
.flow-cap .num { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); font-weight: 900; font-size: 1.15rem; }
.flow-cap .share-glyph.inline { color: var(--primary); }
.flow-cap b { font-weight: 900; }
.flow + .note { max-width: 60ch; }
.is-aw .ico { position: relative; }
.tap { position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .flow .tap { animation: ripple linear both; animation-timeline: view(); }
    .share-target .tap { animation-range: entry 60% cover 40%; }
    .is-aw .tap { animation-range: cover 35% cover 55%; }
  }
}
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 55%, transparent); }
  100% { box-shadow: 0 0 0 22px color-mix(in oklab, var(--primary) 0%, transparent); }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 3.5rem; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -2.75rem; right: auto; left: 50%; transform: translateX(-50%) rotate(90deg); }
}
.howto-to { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
@media (min-width: 901px) {
  .flow { grid-template-rows: auto auto; row-gap: 1.25rem; }
  .flow-step { grid-row: span 2; grid-template-rows: subgrid; row-gap: 1.25rem; }
  .flow-step:not(:last-child)::after { top: 34%; }
}
.frame-verdict .store-cta { margin-top: auto; }

/* ---------- Production additions ---------- */
.section.flush-top { padding-top: 0; }
.section .fine.after { margin-top: 1.25rem; }
.prose a:not(.btn) { color: inherit; }
.prose .btn { margin: 0.25rem 0 1.5rem; white-space: normal; text-align: center; }
.prose .draft { margin-bottom: 1.5rem; }
.lead-doc { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 52ch; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: baseline; margin-bottom: 0.75rem; }
.steps li::before { content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); font-weight: 900; font-size: 0.95rem; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 1rem; }
  .wordmark { height: 22px; }
  .site-header .btn { padding-inline: 1rem; }
}
