/* TraitAtlas website. Same print world as the app: indigo ink on paper stock, spot inks
   (marigold = action, rani = emphasis, cobalt = data), Anek Latin display, Geist text. */
@font-face { font-family: "Anek Latin"; src: url("/assets/traitatlas/fonts/AnekLatin-Variable.woff2") format("woff2-variations"); font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/traitatlas/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/traitatlas/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f3f4ef; --stock: #fefefb; --stock-2: #e9ebe3; --stock-3: #dfe1d8;
  --text: #17153b; --muted: #55536f;
  --line: color-mix(in oklab, var(--text) 13%, var(--paper)); --line-strong: color-mix(in oklab, var(--text) 26%, var(--paper));
  --marigold: #ffb627; --marigold-deep: #f0a000; --rani: #d81f5e; --rani-soft: #fbe0e9; --cobalt: #2346d8; --cobalt-soft: #e1e7fd;
  --peacock: #0b8582; --leaf: #3d8a36; --ok: #1f7a4c; --ok-soft: #dcefe3; --danger: #c0262f;
  --night: #17153b; --on-night: #f3f4ef; --ind: #17153b;
  --glass: color-mix(in oklab, var(--stock) 72%, transparent);
  --shadow-1: 0 1px 1px rgb(23 21 59 / .04), 0 2px 6px -2px rgb(23 21 59 / .08);
  --shadow-2: 0 1px 2px rgb(23 21 59 / .05), 0 12px 32px -14px rgb(23 21 59 / .22);
  --shadow-3: 0 2px 4px rgb(23 21 59 / .06), 0 30px 60px -24px rgb(23 21 59 / .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100f26; --stock: #1a1938; --stock-2: #24234a; --stock-3: #2e2d59; --text: #f2f1f8; --muted: #aeacca;
    --marigold: #ffc043; --marigold-deep: #ffcd66; --rani: #ff6b9a; --rani-soft: #3d1830; --cobalt: #8199ff; --cobalt-soft: #1f2656;
    --peacock: #35c2bc; --leaf: #78c66b; --ok: #5fd197; --ok-soft: #12321f; --danger: #ff7b82; --night: #2a2766;
    --glass: color-mix(in oklab, var(--stock) 70%, transparent);
    --shadow-1: 0 1px 1px rgb(0 0 0 / .25), 0 2px 6px -2px rgb(0 0 0 / .4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / .3), 0 16px 36px -16px rgb(0 0 0 / .7);
    --shadow-3: 0 2px 4px rgb(0 0 0 / .3), 0 36px 70px -26px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scrollbar-color: var(--line-strong) transparent; accent-color: var(--rani); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Anek Latin", "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: color-mix(in oklab, var(--marigold) 55%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
button, a { touch-action: manipulation; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-family: "Anek Latin", "Geist", sans-serif; font-weight: 760; font-stretch: 82%; letter-spacing: -.012em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 700; font-stretch: 88%; line-height: 1.05; }
p { margin: 0; }
.lead { font-size: 1.17rem; color: var(--muted); max-width: 54ch; }
.eyebrow { display: none; }
.note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* Buttons: pills, with the trailing icon in its own island */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 52px; padding: 0 1.4rem; border-radius: 999px; font: inherit; font-weight: 620; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn .isl { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -.85rem; border-radius: 99px; background: color-mix(in oklab, var(--ind) 12%, transparent); transition: transform .3s var(--ease-spring); }
.btn .isl svg { width: 16px; height: 16px; }
.btn-primary { background: var(--marigold); color: #17153b; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 8px 20px -10px color-mix(in oklab, var(--marigold-deep) 80%, transparent); }
.btn-secondary { background: var(--stock); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary .isl { background: var(--stock-2); }
.btn-ink { background: #17153b; color: #fefefb; }
.btn-ink .isl { background: rgb(255 255 255 / .14); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .93rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--marigold-deep); }
  .btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--muted); }
  .btn:hover .isl { transform: translate(2px, -1px); }
}

/* Nav: a floating glass island */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; padding: 0 16px; pointer-events: none; }
.nav .wrap { pointer-events: auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 8px 0 18px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: var(--shadow-2), inset 0 0 0 1px color-mix(in oklab, var(--text) 9%, transparent), inset 0 1px 0 color-mix(in oklab, #fff 40%, transparent); max-width: 1180px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: "Anek Latin", sans-serif; font-weight: 720; font-stretch: 96%; font-size: 1.32rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--stock-2); }
.nav-cta { display: flex; align-items: center; gap: .4rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 99px; background: var(--stock-2); border: 0; color: var(--text); place-items: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
main { padding-top: 96px; }
@media (max-width: 880px) {
  .nav { top: 0; padding: 0; padding-top: env(safe-area-inset-top, 0px); }
  .nav .wrap { border-radius: 0 0 22px 22px; height: 60px; padding: 0 10px 0 16px; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: .35rem; padding: 96px 24px 40px; background: color-mix(in oklab, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s; }
  .nav-links a { font-family: "Anek Latin", sans-serif; font-stretch: 82%; font-weight: 760; font-size: 2.6rem; line-height: 1.1; color: var(--text); padding: .3rem .4rem; transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease-spring), opacity .5s var(--ease-out); }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links.open a { transform: none; opacity: 1; }
  .nav-links.open a:nth-child(2) { transition-delay: .05s; } .nav-links.open a:nth-child(3) { transition-delay: .1s; } .nav-links.open a:nth-child(4) { transition-delay: .15s; } .nav-links.open a:nth-child(5) { transition-delay: .2s; }
  .nav-toggle { display: inline-grid; }
  .nav-cta .signin { display: none; }
  .nav-cta .btn { height: 40px; }
  main { padding-top: 76px; }
}
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }

/* Sections */
section { padding: 112px 0; }
@media (max-width: 760px) { section { padding: 72px 0; } }
.section-head { max-width: 820px; margin-bottom: 52px; }
.section-head p { margin-top: 18px; }
.card { background: var(--stock); border-radius: var(--r); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }

/* Printed label: stock with an inner rule in the label's ink */
.tl { position: relative; display: block; text-decoration: none; color: #17153b; background: var(--ink, var(--marigold)); border-radius: 22px; padding: 7px; box-shadow: var(--shadow-3); }
.tl-in { position: relative; height: 100%; border-radius: 16px; border: 1.5px solid rgb(23 21 59 / .8); padding: 20px; display: flex; flex-direction: column; overflow: hidden; }
.tl-in::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgb(23 21 59 / .2) 1.1px, transparent 1.5px); background-size: 7px 7px; opacity: .55; pointer-events: none; }
.tl-top { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; }
.tl-print { position: relative; width: 78%; aspect-ratio: 1; margin: 10px auto; color: #17153b; }
.tl-name { position: relative; font-family: "Anek Latin", sans-serif; font-weight: 780; font-stretch: 80%; font-size: 2rem; line-height: .98; letter-spacing: -.01em; margin-top: auto; }
.tl-line { position: relative; font-size: .92rem; font-weight: 520; margin-top: 6px; line-height: 1.35; opacity: .82; }
.tl-code { background: #17153b; color: #fefefb; border-radius: 99px; padding: 3px 9px; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: .06em; }

/* Prints draw themselves when they enter the view */
[data-print] svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-draw] path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js [data-draw] circle { transform-box: fill-box; transform-origin: center; transform: scale(0); }
  .js [data-draw].drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out); transition-delay: calc(var(--o) * 1.3s + .15s); }
  .js [data-draw].drawn circle { transform: scale(1); transition: transform .5s var(--ease-spring); transition-delay: calc(var(--o) * .8s); }
}

/* Hero */
.hero { padding: 64px 0 88px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 24px; }
.hero-cta { margin-top: 34px; display: flex; gap: .7rem; flex-wrap: wrap; }
.fan { position: relative; height: 560px; perspective: 1400px; }
.fan .tl { position: absolute; width: 300px; height: 420px; left: 50%; top: 50%; transition: transform .9s var(--ease-spring), box-shadow .4s; will-change: transform; }
.fan .tl:nth-child(1) { transform: translate(-50%, -50%) translate(-150px, 30px) rotate(-11deg); z-index: 1; }
.fan .tl:nth-child(2) { transform: translate(-50%, -50%) translate(150px, 40px) rotate(9deg); z-index: 2; }
.fan .tl:nth-child(3) { transform: translate(-50%, -50%) translate(0, -10px) rotate(-1.5deg); z-index: 3; }
@media (hover: hover) and (pointer: fine) {
  .fan:hover .tl:nth-child(1) { transform: translate(-50%, -50%) translate(-190px, 26px) rotate(-14deg); }
  .fan:hover .tl:nth-child(2) { transform: translate(-50%, -50%) translate(190px, 36px) rotate(12deg); }
  .fan .tl:hover { z-index: 4; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .fan .tl { animation: deal 1s var(--ease-spring) both; }
  .js .fan .tl:nth-child(1) { animation-delay: .25s; } .js .fan .tl:nth-child(2) { animation-delay: .4s; } .js .fan .tl:nth-child(3) { animation-delay: .1s; }
  @keyframes deal { from { opacity: 0; translate: 0 60px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
}
@media (max-width: 980px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .fan { height: 420px; }
  .fan .tl { width: 220px; height: 310px; }
  .fan .tl:nth-child(1) { transform: translate(-50%, -50%) translate(-92px, 20px) rotate(-10deg); }
  .fan .tl:nth-child(2) { transform: translate(-50%, -50%) translate(92px, 26px) rotate(9deg); }
  .fan .tl-name { font-size: 1.5rem; }
  .fan .tl-line { font-size: .8rem; }
  .fan .tl-in { padding: 14px; }
}

/* The series rail */
.series { padding: 24px 0 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 24px 28px; scroll-padding: 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .rail { padding-left: calc((100vw - 1192px) / 2); scroll-padding: calc((100vw - 1192px) / 2); } }
.rail .tl { scroll-snap-align: start; height: 330px; box-shadow: var(--shadow-2); transition: transform .5s var(--ease-spring), box-shadow .5s; }
.rail .tl-print { width: 64%; }
.rail .tl-name { font-size: 1.6rem; }
.rail .meta { position: relative; display: flex; gap: 10px; margin-top: 8px; font-size: .85rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .rail .tl:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-3); } }

/* How it works: one ticket, torn into three stubs */
.ticket { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--stock); border-radius: 24px; box-shadow: var(--shadow-2); overflow: hidden; }
.ticket > div { padding: 36px 32px 40px; position: relative; }
.ticket > div + div { border-left: 2px dashed var(--line-strong); }
.ticket .big { font-family: "Anek Latin", sans-serif; font-weight: 800; font-stretch: 78%; font-size: clamp(3.2rem, 6vw, 5rem); line-height: .9; letter-spacing: -.02em; }
.ticket p { color: var(--muted); margin-top: 10px; max-width: 30ch; }
.ticket .k { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 99px; background: var(--stock-2); font-weight: 620; font-size: .9rem; }
@media (max-width: 860px) { .ticket { grid-template-columns: 1fr; } .ticket > div + div { border-left: 0; border-top: 2px dashed var(--line-strong); } }

/* Report split */
.split { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.12fr 1fr; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.shot { border-radius: 18px; overflow: hidden; background: var(--stock); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); height: auto; }
.tall-shot { max-height: 640px; overflow: hidden; position: relative; border-radius: 18px; }
.tall-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--paper)); }
@media (max-width: 980px) { .split, .split.flip { grid-template-columns: 1fr; gap: 40px; } }

/* Night section (AI profile) */
.night { background: var(--night); color: var(--on-night); border-radius: 32px; margin: 0 16px; position: relative; overflow: hidden; }
.night .lead, .night .muted { color: color-mix(in oklab, var(--on-night) 72%, transparent); }
.night .checks svg { color: var(--marigold); }
.night .night-print { position: absolute; width: 560px; height: 560px; right: -160px; top: -160px; opacity: .5; color: var(--on-night); pointer-events: none; }
@media (max-width: 760px) { .night { border-radius: 24px; margin: 0 8px; } .night .night-print { width: 360px; height: 360px; right: -140px; top: -120px; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; grid-auto-rows: minmax(150px, auto); gap: 16px; }
.tile { padding: 30px; border-radius: 22px; background: var(--stock); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile h3 svg { width: 26px; height: 26px; color: var(--rani); margin-bottom: 14px; display: block; }
.tile-big { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.tile-side, .tile-third { grid-column: span 2; }
.tile-accent { background: var(--marigold); color: #17153b; box-shadow: var(--shadow-2); }
.tile-accent p { color: rgb(23 21 59 / .78); }
.tile-accent h3 svg { color: #17153b; }
.tile-soft { background: var(--rani-soft); box-shadow: none; }
.tile-ink { background: var(--night); color: var(--on-night); }
.tile-ink p { color: color-mix(in oklab, var(--on-night) 72%, transparent); }
.tile .big-num { font-family: "Anek Latin", sans-serif; font-weight: 800; font-stretch: 78%; font-size: 4.4rem; line-height: .9; margin-bottom: 14px; letter-spacing: -.02em; }
.tile-big .shot { margin-top: 26px; box-shadow: var(--shadow-2); }
.tile-people .shot { margin-top: 18px; box-shadow: none; }
.tile .tile-print { position: absolute; width: 220px; height: 220px; right: -60px; bottom: -70px; opacity: .55; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile-big { grid-column: span 2; grid-row: auto; } .tile-side, .tile-third { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-big, .tile-side, .tile-third { grid-column: span 1; } }

/* Honest section */
.will-wont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.will-wont > div { padding: 34px; border-radius: 22px; }
.will { background: var(--ok-soft); }
.wont { background: var(--stock); box-shadow: inset 0 0 0 1px var(--line); }
.will-wont h3 { font-size: 2.2rem; }
.will-wont ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.will-wont li { display: flex; gap: 11px; }
.will-wont svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 3px; }
.will svg { color: var(--ok); }
.wont svg { color: var(--muted); }
@media (max-width: 760px) { .will-wont { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { padding: 32px; display: flex; flex-direction: column; border-radius: 22px; }
.price.featured { background: var(--night); color: var(--on-night); box-shadow: var(--shadow-3); }
.price.featured .muted, .price.featured li { color: color-mix(in oklab, var(--on-night) 80%, transparent); }
.price.featured li svg { color: var(--marigold); }
.price .tag { align-self: flex-start; font-size: .8rem; font-weight: 650; padding: .3rem .75rem; border-radius: 999px; background: var(--marigold); color: #17153b; margin-bottom: 16px; }
.price h3 { font-size: 2rem; }
.price .amount { font-family: "Anek Latin", sans-serif; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; font-size: 4.2rem; line-height: 1; margin: 18px 0 2px; letter-spacing: -.02em; }
.price .amount s { font-family: "Geist", sans-serif; font-size: 1.05rem; color: var(--muted); font-weight: 400; margin-left: .5rem; }
.price ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; font-size: .97rem; }
.price li { display: flex; gap: 10px; }
.price li svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.price .btn { margin-top: auto; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--stock-2); margin-bottom: 32px; }
.tabs button { font: inherit; font-weight: 620; border: 0; background: transparent; color: var(--muted); padding: .65rem 1.3rem; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--stock); color: var(--text); box-shadow: var(--shadow-1); }
.price-panel[hidden] { display: none; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-radius: 18px; background: var(--stock); box-shadow: inset 0 0 0 1px var(--line); padding: 20px 24px; margin-bottom: 10px; transition: background-color .2s; }
.faq details[open] { box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; font-weight: 640; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: var(--stock-2); font-weight: 400; color: var(--text); font-size: 1.3rem; line-height: 1; transition: transform .35s var(--ease-spring), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--marigold); color: #17153b; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 70ch; }

/* Closing CTA */
.cta { padding: 0 0 112px; }
.cta-box { position: relative; overflow: hidden; padding: 64px; border-radius: 32px; background: var(--marigold); color: #17153b; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgb(23 21 59 / .18) 1.2px, transparent 1.6px); background-size: 8px 8px; pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.cta-box p { color: rgb(23 21 59 / .78); margin-top: 14px; max-width: 40ch; }
.cta-box .cta-print { position: absolute; right: -80px; bottom: -110px; width: 380px; height: 380px; color: #17153b; opacity: .5; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.cta-box .btn-secondary { background: rgb(23 21 59 / .1); box-shadow: none; color: #17153b; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; padding: 40px 28px; border-radius: 24px; } .cta-actions { justify-content: flex-start; } }

/* Prose pages */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 20px; }
.prose { max-width: 760px; padding-bottom: 112px; }
.prose h2 { font-size: 2.2rem; margin: 56px 0 14px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; }
.prose .note { background: color-mix(in oklab, var(--marigold) 22%, var(--stock)); border-radius: 16px; padding: 18px 20px; color: var(--text); margin-top: 22px; }

/* Forms */
.form { display: grid; gap: 16px; padding: 32px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--stock); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 12px; padding: .78rem .9rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 4px color-mix(in oklab, var(--cobalt) 18%, transparent); }
.form .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.form-msg { font-size: .95rem; border-radius: 12px; padding: 12px 14px; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.err { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
footer.site { padding: 64px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: .9rem; margin: 0 0 12px; }
.foot-grid a { display: block; text-decoration: none; color: var(--muted); font-size: .95rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-word { font-family: "Anek Latin", sans-serif; font-weight: 800; font-stretch: 78%; font-size: clamp(4rem, 15vw, 13rem); line-height: .8; letter-spacing: -.02em; margin-top: 56px; color: color-mix(in oklab, var(--text) 9%, var(--paper)); -webkit-user-select: none; user-select: none; }
.foot-bottom { margin-top: 24px; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Characters (legacy grid, kept for other pages) */
.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .chars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chars { grid-template-columns: 1fr; } }

/* Video section */
.watch-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.watch video { width: 100%; height: auto; display: block; border-radius: 20px; background: #17153b; box-shadow: var(--shadow-3); }
.watch figure { margin: 0; }
.watch figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .watch-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Public result card */
.pub { max-width: 420px; margin: 0 auto; }
.pub .tl { min-height: 600px; }

/* Motion: reveal on scroll, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav .wrap { background: var(--stock); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav-links .menu-only { display: none; }
@media (max-width: 880px) { .nav-links .menu-only { display: block; } }
.hero-visual { position: relative; }
.hero-visual .shot { width: 100%; }
.hero-visual .shot-float { display: none; }
/* layering fixes: prints stay behind content */
.night .night-print { top: auto; bottom: -220px; right: -200px; opacity: .32; }
.night .wrap { position: relative; z-index: 1; }
.tile > *:not(.tile-print) { position: relative; z-index: 1; }
.tile .tile-print { width: 170px; height: 170px; right: -46px; bottom: -56px; opacity: .4; }
.cta-box .cta-print { width: 300px; height: 300px; right: -90px; bottom: -120px; opacity: .3; }
.cta-actions { position: relative; z-index: 1; }
.foot-grid a.brand { display: inline-flex; padding: 0; color: var(--text); }
/* The glass lives on a pseudo-element so the phone menu (position: fixed) is not trapped
   inside the blurred bar: backdrop-filter would make the bar its containing block. */
.nav .wrap { position: relative; isolation: isolate; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.nav .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: var(--shadow-2), inset 0 0 0 1px color-mix(in oklab, var(--text) 9%, transparent), inset 0 1px 0 color-mix(in oklab, #fff 40%, transparent); }
@media (max-width: 880px) { .nav-links { z-index: -2; } .nav .brand, .nav .nav-cta { position: relative; z-index: 1; } }
main { overflow-x: clip; }
.page-hero h1 { max-width: 19ch; }
.hero.hero-long h1 { max-width: 15ch; font-size: clamp(2.8rem, 5.4vw, 4.6rem); }
.night .night-print { right: auto; left: -200px; bottom: -230px; }

.tile-accent h3, .tile-ink h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tile-accent, .tile-ink { display: flex; flex-direction: column; }
.rail .meta .series { margin-left: auto; font-family: "Geist Mono", monospace; font-size: .75rem; letter-spacing: .06em; opacity: .75; }

/* Spec rows: a ruled list (heading column, reading column) instead of same-size tiles */
.spec { border-top: 2px solid var(--text); }
.spec-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-row h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.spec-row h3 svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--rani); }
.spec-row p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.price-strip { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 22px; background: var(--marigold); color: #17153b; }
.price-strip p { font-size: 1.15rem; }
.price-strip b { font-family: "Anek Latin", sans-serif; font-weight: 780; font-stretch: 82%; font-size: 1.6rem; }
@media (max-width: 760px) { .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; } }

