/* Wellness Sage tokens plus the logo only brand tokens (THEME.md section 6). The only file allowed to contain color literals. */
:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --border: #e8ddc9;
  --sage: #9caf88;
  --sage-dark: #5c7c5c;
  --water: #7c9caf;
  --gold: #caa86a;
  --on-gold: #3d2f24;
  --purple: #a87caf;
  --warm: #c8907c;
  --text: #3d2f24;
  --muted: #6f5a47;
  --accent: #4f6e4f;
  --on-accent: #ffffff;
  --tint: #eef2e8;
  --gold-tint: #f6ecd8;
  --water-tint: #e6eef2;
  --warm-tint: #f6e9e3;
  --focus: #2f5d8a;
  /* Brand art only. Never controls, never error styling. */
  --navy: #002448;
  --crimson: #6c0c1c;
  /* Dark sage band (trust band, control panel). */
  --band: #34492f;
  --on-band: #faf6f1;
  --band-soft: #c9d8ba;
  --band-gold: #dcc48e;
  --band-line: rgb(250 246 241 / 0.2);
  --band-ring: rgb(250 246 241 / 0.14);
  --shadow: rgb(61 47 36 / 0.08);
  --shadow-lg: rgb(61 47 36 / 0.16);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a15;
    --card: #2a231c;
    --border: #4a3e31;
    --text: #f1e9de;
    --muted: #cdbca6;
    --accent: #a9bd96;
    --on-accent: #1f1a15;
    --tint: #2c3327;
    --gold-tint: #3a3022;
    --water-tint: #232c31;
    --warm-tint: #33261f;
    --focus: #8fc1ee;
    --navy: #8fb0e0;
    --crimson: #e07a8a;
    --band: #2c3327;
    --band-soft: #a9bd96;
    --band-gold: #caa86a;
    --shadow: rgb(0 0 0 / 0.3);
    --shadow-lg: rgb(0 0 0 / 0.5);
  }
}

/* Site styles ("The Crossing"). Colors come only from tokens.css variables. No inline styles are used anywhere (CSP style-src 'self'). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font-body); overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 400; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -.02em; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); letter-spacing: -.015em; overflow-wrap: break-word; }
h3 { font-size: 1.25rem; }
em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 46rem; }
.skip-link { position: absolute; left: 8px; top: -100px; background: var(--card); color: var(--text); padding: 8px 12px; border: 2px solid var(--accent); z-index: 20; }
.skip-link:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; margin: 0 0 18px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 14px 0 0 -2px var(--sage), 26px 0 0 -3px var(--water); margin-right: 36px; flex: none; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.small { font-size: .875rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); margin: 0 0 .5em; font-weight: 600; }

/* Buttons, tags, banners */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); padding: 12px 22px; min-height: 44px; border-radius: 999px; border: 2px solid var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-disabled { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badge, .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.badge-gold, .tag { background: var(--gold-tint); border-color: var(--gold); }
.badge-sage { background: var(--tint); border-color: var(--sage); }
.banner { border: 1px solid var(--gold); background: var(--gold-tint); border-left-width: 6px; border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; }

/* Floating header: no JavaScript. Wide screens show the list; narrow screens show a details menu. */
.head { position: sticky; top: 12px; z-index: 10; margin: 12px auto 0; max-width: 74rem; padding: 0 20px; }
.head-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 22px; padding: 8px 12px 8px 18px; box-shadow: 0 10px 30px var(--shadow); }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.logo-text { font-family: var(--font-display); color: var(--text); font-size: 1.2rem; font-weight: 700; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav-list a, .menu-list a { display: block; padding: 8px 13px; min-height: 40px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: .95rem; }
.nav-list a:hover, .menu-list a:hover { background: var(--tint); }
.nav-list a[aria-current="page"], .menu-list a[aria-current="page"] { background: var(--tint); color: var(--accent); font-weight: 600; }
.nav-list a.nav-signin, .menu-list a.nav-signin { border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; margin-left: 6px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 18px; min-height: 44px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { list-style: none; margin: 0; padding: 10px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 44px var(--shadow-lg); display: grid; gap: 2px; }
.menu-list a.nav-signin { margin: 6px 0 0; text-align: center; }
@media (max-width: 900px) { .nav-list { display: none; } .menu { display: block; } .brand img { height: 38px; } }

/* Hero: the crossing */
.hero { position: relative; padding: 64px 0 0; text-align: center; background: radial-gradient(120% 70% at 50% 0, var(--tint), transparent 70%); overflow: hidden; }
.hero .lede { margin-inline: auto; }
.hero .cta { justify-content: center; margin: 26px 0 10px; }
.scene { position: relative; display: flow-root; min-height: 600px; margin-top: 20px; padding-bottom: 40px; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-w { fill: var(--water); opacity: .22; } .sc-w2 { fill: var(--water); opacity: .3; }
.sc-m { fill: var(--warm); opacity: .22; } .sc-m2 { fill: var(--warm); opacity: .3; }
.sc-line { fill: none; stroke: var(--sage-dark); stroke-width: 3; opacity: .5; }
.sc-posts { stroke: var(--sage-dark); opacity: .28; fill: none; }
.sc-deck { fill: none; stroke: var(--sage-dark); stroke-width: 4; opacity: .55; }
.sc-ground { fill: var(--tint); }
.sc-river { fill: none; stroke: var(--card); stroke-width: 26; stroke-linecap: round; }
.arc { fill: none; stroke: var(--water); stroke-width: 1.5; stroke-dasharray: 3 7; animation: drift 40s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -400; } }
.node circle { stroke: var(--bg); stroke-width: 4; }
.node text { font: 600 13px var(--font-body); fill: var(--text); text-anchor: middle; }
.n-water { fill: var(--water); } .n-sage { fill: var(--sage-dark); } .n-gold { fill: var(--gold); } .n-purple { fill: var(--purple); } .n-warm { fill: var(--warm); } .n-light { fill: var(--sage); }
.pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 50% { transform: scale(1.25); } }
@media (max-width: 760px) { .node text { display: none; } }

/* App window drawn in CSS */
.win { position: relative; z-index: 1; margin: 190px auto 0; width: min(640px, calc(100% - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 70px var(--shadow-lg); text-align: left; overflow: hidden; }
.win-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.win-bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.win-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.ask { background: var(--tint); border-radius: 14px 14px 4px 14px; padding: 10px 14px; justify-self: end; max-width: 85%; font-size: .95rem; }
.steps-mini { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.steps-mini li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.wait { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); flex: none; animation: pulse 1.8s infinite; }
.approve { border: 1.5px solid var(--gold); background: var(--gold-tint); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.approve b { display: block; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; border: 1.5px solid var(--accent); color: var(--accent); }
.pill.on { background: var(--accent); color: var(--on-accent); }
.meter { height: 10px; border-radius: 99px; background: var(--border); display: flex; overflow: hidden; }
.meter b { background: var(--accent); width: 38%; }
.meter u { background: var(--sage); width: 22%; opacity: .55; }
.meter-k { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }

/* Ticker */
.ticker { border-block: 1px solid var(--border); background: var(--card); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker div { display: inline-block; animation: slide 60s linear infinite; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--muted); }
.ticker span { margin: 0 22px; }
.ticker span::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 44px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections and page heads */
.sec { padding: clamp(40px, 6vw, 80px) 0; }
.sec.alt { background: var(--card); border-block: 1px solid var(--border); }
.sec.tight { padding-top: 0; }
.pagehead { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); background: radial-gradient(120% 90% at 50% 0, var(--tint), transparent 75%); }
.pagehead h1 { max-width: 14em; font-size: clamp(2.1rem, 6vw, 3.8rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.alt .card { background: var(--bg); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.plan .price { font-family: var(--font-display); font-size: 1.2rem; color: var(--muted); border-block: 1px dashed var(--border); padding: 8px 0; }
.plan ul { padding-left: 1.2em; margin: 0 0 1em; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px 14px 50px; position: relative; }
.alt .checks li { background: var(--bg); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 24px; top: 24px; width: 7px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.more { margin-top: 20px; }
.prose p { max-width: 44rem; }

/* Bento tiles */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.tile { position: relative; border: 1px solid var(--border); border-radius: 24px; padding: 24px; background: var(--card); overflow: hidden; min-height: 230px; text-decoration: none; color: inherit; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px var(--shadow-lg); }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile .go { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.1rem; background: var(--bg); color: var(--text); }
.t-a { grid-column: span 4; grid-row: span 2; background: var(--band); color: var(--on-band); border-color: transparent; }
.t-a p { color: var(--band-soft); }
.t-a h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.t-a .go { background: var(--band); color: var(--on-band); border-color: var(--band-line); }
.t-b { grid-column: span 2; background: var(--water-tint); }
.t-c { grid-column: span 2; background: var(--gold-tint); }
.t-d { grid-column: span 2; }
.t-e { grid-column: span 2; background: var(--warm-tint); }
.t-f { grid-column: span 2; background: var(--tint); }
.t-g { grid-column: span 3; }
.t-h { grid-column: span 3; background: var(--water-tint); }
.tile-plain { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .bento .tile { grid-column: span 2; min-height: 0; } .tile .art { position: static; margin: 0 44px 18px 0; } .t-a .runlog { font-size: .78rem; } }
.art { position: absolute; inset: 18px 64px auto 18px; pointer-events: none; }
.bub { display: inline-block; padding: 7px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: .8rem; margin: 0 6px 6px 0; color: var(--text); }
.cite { font: 600 .75rem var(--mono); background: var(--card); border: 1px solid var(--gold); border-radius: 6px; padding: 1px 6px; margin-left: 3px; color: var(--text); }
.cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 70%; }
.cells i { height: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 3px; }
.cells i.h { background: var(--sage); }
.wave { display: flex; gap: 4px; align-items: center; height: 60px; }
.wave i { width: 5px; border-radius: 9px; background: var(--warm); height: 30px; animation: wv 1.4s ease-in-out infinite; }
.wave i:nth-child(1) { height: 20px; } .wave i:nth-child(2) { height: 44px; animation-delay: .1s; } .wave i:nth-child(3) { height: 30px; animation-delay: .2s; } .wave i:nth-child(4) { height: 56px; animation-delay: .3s; }
.wave i:nth-child(5) { height: 26px; animation-delay: .4s; } .wave i:nth-child(6) { height: 48px; animation-delay: .5s; } .wave i:nth-child(7) { height: 18px; animation-delay: .6s; } .wave i:nth-child(8) { height: 38px; animation-delay: .7s; }
@keyframes wv { 50% { transform: scaleY(.35); } }
.runlog { font: .8rem/1.9 var(--mono); color: var(--band-soft); max-width: 26rem; }
.runlog b { color: var(--on-band); font-weight: 600; }
.runlog .g { color: var(--band-gold); }
.lines i { display: block; height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 8px; width: 90%; }
.lines i:nth-child(2) { width: 70%; } .lines i:nth-child(3) { width: 82%; } .lines i:nth-child(4) { width: 50%; }
.lines i.h { background: var(--sage); width: 40%; height: 12px; }
.tabs-art { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-art i { display: block; padding: 6px 14px; border-radius: 10px 10px 0 0; background: var(--card); border: 1px solid var(--border); font-style: normal; font-size: .8rem; color: var(--text); }
.vault { display: inline-flex; gap: 6px; align-items: center; font: 600 .85rem var(--mono); background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; color: var(--text); }
.devs-art { display: flex; gap: 10px; align-items: flex-end; }
.devs-art svg { width: 64px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.plans-art { display: flex; gap: 10px; align-items: flex-end; height: 92px; }
.plans-art i { display: block; width: 58px; height: 58%; border-radius: 10px 10px 4px 4px; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--water); }
.plans-art i.h { height: 100%; border-top-color: var(--accent); }
.plans-art i:last-child { height: 78%; border-top-color: var(--gold); }
.t-a .runlog { font-size: clamp(.8rem, 1.5vw, 1.02rem); line-height: 2.1; }
.vault i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-dark); display: block; }

/* How it works: the path */
.path { position: relative; margin-top: 50px; }
.path > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.path > svg path { fill: none; stroke: var(--sage); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.stop:nth-of-type(odd) .stop-txt { order: 2; }
.stop-num { font: italic 400 clamp(5rem, 12vw, 9rem)/.8 var(--font-display); color: var(--sage-dark); opacity: .5; margin-bottom: 22px; }
.stop-txt { position: relative; background: var(--bg); padding: 8px 0; border-radius: 12px; }
.sec.alt .stop-txt { background: var(--card); }
.stop-art { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 14px 40px var(--shadow); transform: rotate(-1.2deg); }
.alt .stop-art { background: var(--bg); }
.stop:nth-of-type(odd) .stop-art { transform: rotate(1.2deg); }
@media (max-width: 760px) { .stop { grid-template-columns: 1fr; gap: 20px; } .stop:nth-of-type(odd) .stop-txt { order: 0; } .path > svg { display: none; } }

/* Two banks */
.banks { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 50px; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); }
.bank { padding: 44px 36px 150px; }
.bank.l { background: var(--water-tint); } .bank.r { background: var(--warm-tint); }
.bank h3 { font-size: 1.7rem; }
.bank.l h3 { color: var(--navy); } .bank.r h3 { color: var(--crimson); }
.bank ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.bank li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.bank li a { font-weight: 600; text-decoration: none; }
.bank li a:hover { text-decoration: underline; }
.bridge { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; width: 100%; pointer-events: none; }
.br-l { fill: none; stroke: var(--navy); stroke-width: 3; } .br-r { fill: none; stroke: var(--crimson); stroke-width: 3; }
.br-dl { fill: none; stroke: var(--navy); stroke-width: 5; } .br-dr { fill: none; stroke: var(--crimson); stroke-width: 5; }
.br-p { fill: none; stroke: var(--muted); opacity: .4; }
.banks-mid { position: absolute; left: 50%; bottom: 96px; z-index: 1; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; box-shadow: 0 8px 24px var(--shadow-lg); }
.banks-mid img { width: 52px; height: 52px; display: block; }
@media (max-width: 760px) { .banks { grid-template-columns: 1fr; } .banks-mid { display: none; } .bank { padding-bottom: 36px; } .bank.r { padding-bottom: 150px; } }

/* Trust band */
.band { background: var(--band); color: var(--on-band); padding: clamp(64px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.band .wrap { position: relative; }
.band h2 { font-size: clamp(2rem, 6vw, 4.2rem); max-width: 15em; }
.band em { color: var(--band-gold); }
.band .kicker { color: var(--band-soft); }
.band a { color: var(--on-band); }
.band .rings { position: absolute; right: -180px; top: -180px; width: 640px; height: 640px; border-radius: 50%; border: 1px solid var(--band-ring); box-shadow: inset 0 0 0 70px var(--band-ring), inset 0 0 0 71px var(--band-line), inset 0 0 0 150px var(--band-ring), inset 0 0 0 151px var(--band-line); opacity: .4; }
.vows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--band-line); }
.vows > div { padding: 26px 26px 0 0; }
.vows b { font: italic 400 2.6rem var(--font-display); color: var(--band-gold); display: block; }
.vows p { color: var(--band-soft); }

/* Platforms (device cards) and coming soon (tickets) */
.devs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 16px; margin-top: 40px; }
.dev { border: 1px solid var(--border); border-radius: 22px; padding: 22px; background: var(--card); text-decoration: none; color: inherit; display: block; transition: transform .25s; }
a.dev:hover { transform: translateY(-3px); }
.dev svg { width: 100%; height: 90px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.dev h3 { margin: 10px 0 .3em; }
.dev p { margin: 0; color: var(--muted); font-size: .9rem; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 22px; margin-top: 36px; padding: 6px; }
.ticket { background: var(--card); border: 1px dashed var(--muted); border-radius: 18px; padding: 20px; position: relative; transition: transform .25s; }
.ticket:nth-child(odd) { transform: rotate(-1deg); } .ticket:nth-child(even) { transform: rotate(1deg) translateY(6px); }
.ticket:hover { transform: none; }
.ticket small { display: block; font: 600 .7rem var(--mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.ticket h3 a { color: inherit; text-decoration: none; }
.ticket h3 a:hover { text-decoration: underline; }
.ticket p { color: var(--muted); }

/* Closing call */
.close { text-align: center; padding: clamp(64px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.close .wrap { position: relative; }
.close::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; max-width: 220vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--tint) 0 30%, transparent 30.2% 45%, var(--tint) 45.2% 45.6%, transparent 45.8% 62%, var(--tint) 62.2% 62.5%, transparent 62.7%); }
.close picture, .close img { display: inline-block; }
.close img { width: 110px; height: auto; margin-bottom: 18px; }
.close .lede { margin-inline: auto; }

/* Detail template */
.fd-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.fd-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); margin-top: 16px; }
.fd-media { position: relative; min-width: 0; }
.fd-frame { position: relative; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
.shot-pic { position: relative; }
.fd-frame .shot { box-shadow: 0 30px 70px var(--shadow-lg); }
.fd-art { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; aspect-ratio: 16 / 11; box-shadow: 0 30px 70px var(--shadow-lg); padding: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
.fd-art.dark { background: var(--band); color: var(--on-band); }
.pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; display: grid; place-items: center; font-size: .85rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 30%, transparent); z-index: 2; }
.pin-tl { left: 6%; top: 10%; } .pin-tm { left: 48%; top: 10%; } .pin-tr { right: 6%; top: 10%; }
.pin-ml { left: 6%; top: 46%; } .pin-mm { left: 48%; top: 46%; } .pin-mr { right: 6%; top: 46%; }
.pin-bl { left: 6%; bottom: 10%; } .pin-bm { left: 48%; bottom: 10%; } .pin-br { right: 6%; bottom: 10%; }
.fd-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-bottom: clamp(56px, 8vw, 90px); }
.rail-toc { position: sticky; top: 100px; align-self: start; list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); font-size: .9rem; }
.rail-toc li { padding: 6px 0; }
.rail-toc a { text-decoration: none; color: var(--muted); }
.rail-toc a:hover { color: var(--accent); text-decoration: underline; }
.fd-main h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-top: 1.4em; scroll-margin-top: 100px; }
.fd-main h2:first-child { margin-top: 0; }
.call { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.call .pin { position: static; box-shadow: none; }
.call h3 { margin: 0; }
.call p { grid-column: 2; margin: 0; color: var(--muted); }
.control { margin: 40px 0; background: var(--band); color: var(--on-band); border-radius: 24px; padding: 32px; }
.control .kicker { color: var(--band-soft); }
.control h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.control p { color: var(--band-soft); margin: 0; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 0 14px 54px; border-bottom: 1px solid var(--border); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--sage-dark); display: grid; place-items: center; font: italic 1.1rem var(--font-display); color: var(--accent); }
.steps-list h3 { margin: 0 0 .15em; font-size: 1.1rem; }
.steps-list p { margin: 0; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; margin-top: 16px; }
.related a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--accent); }
.related span { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
@media (max-width: 860px) { .fd-hero, .fd-body { grid-template-columns: 1fr; gap: 28px; } .rail-toc { display: none; } .fd-frame, .fd-art { transform: none; } }

/* FAQ */
.faq { margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font: 1.15rem/1.3 var(--font-display); min-height: 44px; }
.faq p { color: var(--muted); max-width: 44rem; }

/* Changelog, meta, legal helpers */
.log { list-style: none; padding: 0; margin: 0; }
.log li { border-bottom: 1px solid var(--border); padding: 16px 0; }
.log h2 { font-size: 1.35rem; margin-bottom: .2em; }
.meta { color: var(--muted); font-size: .9rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.meta-list dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.meta-list dd { margin: 0; font-weight: 600; }
.back { padding-bottom: 40px; }
.waitlist { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; max-width: 30rem; }
.alt .waitlist { background: var(--bg); }
.form-title { font-weight: 600; margin-bottom: .6em; }
.sitemap-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 28px; margin-top: 24px; }
.sitemap-groups h2 { font-size: 1.3rem; }
.sitemap-groups ul { list-style: none; margin: 0; padding: 0; }
.sitemap-groups li a { display: block; padding: 4px 0; }

/* Product screenshots */
.shots { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin: 16px 0; }
.shot { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 12px 16px; font-size: .95rem; color: var(--text); }
.fd-media .shot figcaption { display: none; }

/* Footer */
.foot { background: var(--card); border-top: 1px solid var(--border); padding: 60px 0 26px; font-size: .93rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.foot-brand img { height: 42px; width: auto; display: block; }
.foot-brand p { margin: 12px 0 0; max-width: 16rem; }
.foot-title { font: 600 .75rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: block; padding: 4px 0; min-height: 28px; text-decoration: none; color: var(--text); }
.foot li a:hover { text-decoration: underline; }
.foot-low { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.foot-low ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .ticker { white-space: normal; } .ticker div { display: block; } .btn:hover, .tile:hover, a.dev:hover { transform: none; } }
@media (forced-colors: active) { .btn, .badge, .tag, .banner, .card, .tile, .dev, .ticket, .pill { border: 2px solid CanvasText; } }

/* Legal documents */
.legal-text h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-text h3 { font-size: 1.1rem; margin-top: 1.2em; }
.legal-text .anchor { font-size: .8em; color: var(--muted); text-decoration: none; opacity: .6; margin-left: .3em; }
.legal-text h2:hover .anchor, .legal-text .anchor:focus { opacity: 1; }
.legal-text blockquote { border-left: 4px solid var(--sage); background: var(--tint); margin: 1em 0; padding: 4px 16px; border-radius: 0 8px 8px 0; }
.legal-text code { font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 36rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--tint); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 16px; margin: 0 0 24px; }
.toc-title { font-weight: 600; margin: 4px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
.toc a { display: inline-block; padding: 4px 0; min-height: 24px; }
.legal-index { list-style: none; padding: 0; }
.legal-index li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.legal-text h2, .legal-text h3 { scroll-margin-top: 16px; }

@media print {
  :root { color-scheme: light; }
  body { background: Canvas; color: CanvasText; font-size: 11pt; }
  .head, .foot, .skip-link, .toc, .anchor, .pagehead .lede { display: none !important; }
  .banner { border: 2px solid CanvasText; background: Canvas; color: CanvasText; break-inside: avoid; }
  .banner::after { content: ""; }
  .wrap, .narrow { max-width: none; padding: 0; }
  .legal-text h2, .legal-text h3 { break-after: avoid; }
  .legal-text p, .legal-text li, .table-wrap tr { break-inside: avoid; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; font-size: 9pt; }
  .legal-text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a { color: CanvasText; text-decoration: underline; }
}


/* Additions: tile grid, centered call to action, cite line */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 16px; margin-top: 28px; }
.tiles .tile:nth-child(4n+1) { background: var(--water-tint); }
.tiles .tile:nth-child(4n+2) { background: var(--gold-tint); }
.tiles .tile:nth-child(4n+3) { background: var(--warm-tint); }
.tiles .tile:nth-child(4n) { background: var(--tint); }
.tiles .tile .art { inset: 16px 60px auto 16px; }
.cta-center { justify-content: center; margin-top: 24px; }
.cite-line { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.fd-art .cite-line, .fd-art .runlog { font-size: 1.1rem; }
.fd-art .runlog { font-size: .95rem; }
.fd-art .cells { width: 80%; }
.tile:not(.t-a) .runlog { color: var(--muted); }
.tile:not(.t-a) .runlog b { color: var(--text); }
.tile:not(.t-a) .runlog .g { color: var(--accent); }
.pagehead + .sec, .pagehead + .band { padding-top: clamp(24px, 4vw, 40px); }
.tiles .tile { min-height: 290px; }
.tiles .runlog { font-size: .72rem; line-height: 1.7; }
@media (max-width: 860px) { .t-a { min-height: 340px; } }
@media (max-width: 760px) { .win { margin-top: 120px; } .scene { min-height: 0; } }
.crumbs a { display: inline-block; padding: 6px 2px; min-height: 28px; }
.rail-toc a { display: inline-block; padding: 4px 0; min-height: 28px; }

/* Fine pin positions for screenshots: c0..c10 column, r0..r10 row (tenths of the picture) */
.pin-c, .pin[class*="pin-c"] { right: auto; bottom: auto; }
.pin-c0 { left: calc(0% - 15px); right: auto; } .pin-r0 { top: calc(0% - 15px); bottom: auto; }
.pin-c1 { left: calc(10% - 15px); right: auto; } .pin-r1 { top: calc(10% - 15px); bottom: auto; }
.pin-c2 { left: calc(20% - 15px); right: auto; } .pin-r2 { top: calc(20% - 15px); bottom: auto; }
.pin-c3 { left: calc(30% - 15px); right: auto; } .pin-r3 { top: calc(30% - 15px); bottom: auto; }
.pin-c4 { left: calc(40% - 15px); right: auto; } .pin-r4 { top: calc(40% - 15px); bottom: auto; }
.pin-c5 { left: calc(50% - 15px); right: auto; } .pin-r5 { top: calc(50% - 15px); bottom: auto; }
.pin-c6 { left: calc(60% - 15px); right: auto; } .pin-r6 { top: calc(60% - 15px); bottom: auto; }
.pin-c7 { left: calc(70% - 15px); right: auto; } .pin-r7 { top: calc(70% - 15px); bottom: auto; }
.pin-c8 { left: calc(80% - 15px); right: auto; } .pin-r8 { top: calc(80% - 15px); bottom: auto; }
.pin-c9 { left: calc(90% - 15px); right: auto; } .pin-r9 { top: calc(90% - 15px); bottom: auto; }
.pin-c10 { left: calc(100% - 15px); right: auto; } .pin-r10 { top: calc(100% - 15px); bottom: auto; }
.fd-art > svg { width: 100%; height: 100%; max-height: 220px; stroke: var(--accent); fill: none; stroke-width: 1.6; }

/* Polish pass 2: Translate and Claw drawings, five-card grid */
.xl-art { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.xl-art .bub { margin: 0; }
.xl-to { color: var(--accent); font-weight: 700; }
.xl-out { background: var(--tint); border-color: var(--sage); font-style: italic; }
.xl-gloss { flex-basis: 100%; font: .72rem var(--mono); color: var(--muted); margin-top: 4px; }
.ok-art { display: inline-flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; padding: 10px 14px; font-size: .82rem; color: var(--muted); max-width: 15rem; }
.ok-art b { color: var(--text); }
.ok-row { display: flex; gap: 6px; }
.ok-art .pill { padding: 3px 12px; font-size: .75rem; }
.fd-art .xl-art, .fd-art .ok-art { font-size: 1rem; }
.fd-art .xl-art .bub { font-size: 1rem; padding: 10px 16px; }
.fd-art .xl-gloss { font-size: .85rem; }
.fd-art .ok-art { max-width: 22rem; padding: 18px 20px; gap: 10px; align-self: center; }
.fd-art .ok-art .pill { padding: 6px 16px; font-size: .85rem; }
@media (min-width: 900px) {
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .grid-5 > :last-child { grid-column: span 2; }
}
/* Polish pass 2: dark mode art contrast, check titles, legal contents numbering */
@media (prefers-color-scheme: dark) {
  .lines i:not(.h) { background: color-mix(in srgb, var(--muted) 38%, transparent); }
  .cells i:not(.h) { border-color: color-mix(in srgb, var(--muted) 45%, transparent); }
  .band .rings { opacity: .14; }
}
.fd-art .vault { align-self: flex-start; font-size: 1rem; padding: 12px 18px; }
.checks li > strong:first-child { display: block; }
.toc ol { list-style: none; padding-left: 0; }
/* A group of exactly three tiles sits on one row on wide screens instead of leaving one alone */
@media (min-width: 900px) {
  .tiles:has(> .tile:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .tiles:has(> .tile:nth-child(3):last-child) > .tile { grid-column: span 1; }
}
