/* ==========================================================================
   Chorusse — shared design system
   Cool institutional ground; indigo = deliberation, gold = the call.
   Serif is reserved for human judgement (questions, verdicts, headlines);
   mono for machinery (labels, lens names, data). That split is the point.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg-0:#E8EAF4; --bg-1:#F4F5FA;
  --surface:rgba(255,255,255,.80); --surface-2:#FFFFFF;
  --brd:rgba(23,26,48,.12); --brd-2:rgba(23,26,48,.07);
  --ink:#171A30; --ink-soft:#565C7E; --ink-faint:#878CA8;
  --accent:#5348C8; --gold:#9A6B0C; --gold-soft:rgba(154,107,12,.13);
  --shadow:0 14px 36px -24px rgba(28,32,74,.5);
  --shadow-lg:0 28px 64px -34px rgba(28,32,74,.6);
  --table-top:#DCDFEE; --table-rim:#C3C8DF; --figure:#AAB0CC;
  --l0:#0E7F6B; --l1:#BE3F6B; --l2:#7A34B4; --l3:#21639F; --l4:#4238B4;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","Cascadia Code","JetBrains Mono",Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-0:#080A14; --bg-1:#121732;
    --surface:rgba(20,25,48,.66); --surface-2:#151A38;
    --brd:rgba(255,255,255,.11); --brd-2:rgba(255,255,255,.06);
    --ink:#ECEEFC; --ink-soft:#9DA3C8; --ink-faint:#6D7398;
    --accent:#8E82F7; --gold:#E8B84B; --gold-soft:rgba(232,184,75,.15);
    --shadow:0 18px 44px -28px rgba(0,0,0,.85);
    --shadow-lg:0 30px 72px -36px rgba(0,0,0,.9);
    --table-top:#1B2145; --table-rim:#2B3364; --figure:#39406F;
    --l0:#45D6C0; --l1:#F2789F; --l2:#B77BEF; --l3:#5FA8F5; --l4:#8E86F7;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--bg-0); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brd-2);
}
.nav .shell { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand strong { font-size: 15px; font-weight: 700; letter-spacing: .42em;
  text-transform: uppercase; line-height: 1; }
.drop { width: 17px; height: 23px; display: block; color: var(--ink); flex: none; }
.navlinks { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.navlinks a {
  font-size: 13.5px; text-decoration: none; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 99px; transition: color .18s, background .18s;
}
.navlinks a:hover { color: var(--ink); background: var(--surface-2); }
.navlinks a[aria-current="page"] { color: var(--accent); }
@media (max-width: 620px) {
  .nav .shell { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .navlinks { margin-left: 0; width: 100%; gap: 2px; }
  .navlinks a { padding: 6px 9px; font-size: 12.5px; }
}

/* ---------- type ---------- */
.sec-k { font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(30px,5vw,54px); }
h2 { font-size: clamp(26px,3.8vw,40px); }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px,2.2vw,25px);
  margin: 0 0 8px; letter-spacing: -.01em; }
.lede { font-size: clamp(15px,1.5vw,17.5px); line-height: 1.62; color: var(--ink-soft);
  max-width: 62ch; margin: 0; }
section { padding: clamp(56px,8vw,104px) 0; }
.tinted { background: var(--bg-1); border-block: 1px solid var(--brd-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 550;
  padding: 12px 22px; border-radius: 3px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--brd); background: transparent; color: var(--ink);
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid:hover { color: #fff; filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 42px; align-items: stretch; }
.card { background: var(--surface-2); border: 1px solid var(--brd); border-radius: 5px;
  padding: 26px 26px 28px; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-faint); }
.card.primary { border-color: var(--accent); }
.card.primary .tag { color: var(--accent); }
.card .sub { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; }
.card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card li { font-size: 13.5px; line-height: 1.5; padding-left: 22px; position: relative; }
.card li:before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ink-faint); }
.card.primary li:before { background: var(--accent); }
.card .foot { margin-top: auto; }
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }

/* ---------- three-up ---------- */
.triple { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,4vw,50px); margin-top: 44px; }
.triple .item h3 { font-size: clamp(17px,1.9vw,21px); }
.triple .item p { margin: 0; font-size: 13.5px; line-height: 1.58; color: var(--ink-soft); }
.triple .glyph { width: 100%; height: 60px; display: block; overflow: visible; margin-bottom: 14px; }
@media (max-width: 760px) { .triple { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- pairs (what you get) ---------- */
.pairs { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(24px,3.5vw,44px); margin-top: 42px; }
.pairs .n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-faint); }
.pairs h3 { font-size: 19px; margin-top: 6px; }
.pairs p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { margin-top: 36px; border-top: 1px solid var(--brd); }
details { border-bottom: 1px solid var(--brd); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-size: 16px; font-family: var(--serif); }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
summary:after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary:after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 0 20px; font-size: 14px; line-height: 1.62; color: var(--ink-soft); max-width: 62ch; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--brd-2); padding: 36px 0 48px; background: var(--bg-1); }
footer.site .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
footer.site .drop { width: 13px; height: 18px; color: var(--ink-faint); }
footer.site a, footer.site span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .spacer { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .navlinks a { transition: none; }
}

/* ==========================================================================
   The Decision Panel exhibit (built by assets/panel.js into #panel-exhibit)
   ========================================================================== */
#panel-exhibit { display: grid; grid-template-rows: auto auto auto auto auto 1fr auto; }

.ex-asks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; padding: 4px 0 2px; }
.ex-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; min-width: 0; }
.ex-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint); margin-right: 3px; }
.ex-ask { font: inherit; font-size: 13px; cursor: pointer; background: var(--surface); color: var(--ink);
  border: 1px solid var(--brd); border-radius: 99px; padding: 7px 16px;
  transition: border-color .18s, color .18s, transform .18s, background .18s; }
.ex-ask:hover { border-color: var(--accent); transform: translateY(-1px); }
.ex-ask:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-ask[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }

.ex-q { text-align: center; padding: 10px 0 8px; }
.ex-q p { margin: 0 auto; max-width: 30ch; font-family: var(--serif);
  font-size: clamp(20px,2.7vw,29px); font-weight: 400; line-height: 1.18;
  letter-spacing: -.01em; text-wrap: balance; opacity: 0; transition: opacity .5s; }
.ex-q p.show { opacity: 1; }

.ex-timeline { padding: 0 0 6px; }
.ex-track { position: relative; height: 20px; cursor: pointer; display: flex; align-items: center; }
.ex-rail { position: absolute; left: 0; right: 0; height: 3px; border-radius: 99px; background: var(--brd); }
.ex-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--gold)); }
.ex-beat { position: absolute; top: -4px; width: 1px; height: 11px; background: var(--brd); transform: translateX(-.5px); }
.ex-beat.major { background: var(--ink-faint); height: 14px; top: -5.5px; }
.ex-head { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--accent);
  transform: translate(-50%,-50%); pointer-events: none; box-shadow: 0 2px 8px -2px rgba(0,0,0,.4); }

.ex-stage { position: relative; overflow: hidden; height: clamp(150px, 34vw, 340px); }
.ex-panel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ex-bubble { position: absolute; width: 200px; z-index: 4;
  background: var(--surface-2); border: 1px solid var(--brd); border-left: 2px solid var(--ink-faint);
  border-radius: 3px; padding: 8px 11px; box-shadow: var(--shadow-lg);
  transform: translate(-50%,-100%) scale(.94); opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .34s cubic-bezier(.2,.7,.2,1); }
.ex-bubble.show { opacity: 1; transform: translate(-50%,-100%) scale(1); }
.ex-bubble:after { content:""; position:absolute; left:50%; bottom:-5px; width:9px; height:9px;
  background: var(--surface-2); border-right:1px solid var(--brd); border-bottom:1px solid var(--brd);
  transform: translateX(-50%) rotate(45deg); }
.ex-who { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ex-take { font-size: 12px; line-height: 1.38; margin-top: 3px; color: var(--ink); }

.ex-positions { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; padding: 4px 0 0; align-items: start; }
.ex-pos { border-top: 2px solid var(--brd-2); padding-top: 8px; opacity: .3; transform: translateY(4px);
  transition: opacity .45s, border-top-color .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
.ex-pos.in { opacity: .82; transform: translateY(0); }
.ex-pos.active { opacity: 1; }
.ex-poswho { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); transition: color .45s; }
.ex-pos.in .ex-poswho { color: inherit; }
.ex-postake { font-size: 12.5px; line-height: 1.42; margin-top: 5px; color: var(--ink-soft);
  opacity: 0; transition: opacity .45s; }
.ex-pos.in .ex-postake { opacity: 1; color: var(--ink); }

.ex-verdictzone { min-height: 112px; display: flex; align-items: center; justify-content: center; padding: 12px 0 0; }
.ex-verdict { width: min(620px,100%); background: var(--surface); border: 1px solid var(--brd);
  border-radius: 4px; padding: 15px 22px 16px; text-align: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.ex-verdict.show { opacity: 1; transform: translateY(0); }
.ex-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ex-v { font-family: var(--serif); font-size: clamp(16px,2.2vw,21px); line-height: 1.34; text-wrap: balance; }
.ex-meter { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ex-bar { position: relative; height: 3px; width: 170px; border-radius: 99px; background: var(--brd); overflow: hidden; }
.ex-bar i { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--gold)); }
.ex-pct { font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; min-width: 88px; text-align: left; }
.ex-pct b { color: var(--ink); font-size: 13.5px; font-weight: 600; }

.ex-foot { display: flex; align-items: center; gap: 12px; padding: 10px 0 0; }
.ex-play { font: inherit; font-size: 12.5px; cursor: pointer; background: var(--surface); color: var(--ink);
  border: 1px solid var(--brd); border-radius: 99px; padding: 7px 16px;
  transition: border-color .18s, transform .18s; }
.ex-play:hover { border-color: var(--accent); transform: translateY(-1px); }
.ex-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-clock { font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; letter-spacing: .06em; }

@media (max-width: 900px) { .ex-postake { font-size: 11px; } .ex-positions { gap: 7px; } }
@media (max-width: 720px) { .ex-plates { display: none; } .ex-lbl { display: none; } .ex-clock { display: none; } }
@media (max-width: 620px) {
  .ex-bubble { display: none; }
  .ex-positions { grid-template-columns: repeat(2,1fr); row-gap: 8px; }
  .ex-pos:nth-child(5) { grid-column: span 2; }
  .ex-pos.active { background: var(--surface-2); box-shadow: var(--shadow);
    border-radius: 0 0 3px 3px; padding: 8px 9px 9px; margin: 0 -9px; }
  .ex-track { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ex-bubble, .ex-verdict, .ex-q p, .ex-pos { transition: none; } }

/* ==========================================================================
   Legal / prose pages (terms, privacy, refunds, contact)
   Content migrated verbatim from the old style.css shell — these styles exist
   to render that markup, not to restyle the substance.
   ========================================================================== */
.page-hero { padding: clamp(40px,6vw,72px) 0 6px; }
.page-hero h1 { font-size: clamp(28px,4.2vw,44px); margin-bottom: 10px; }
.updated { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.prose { padding: 8px 0 clamp(56px,8vw,96px); max-width: 74ch; }
.prose h2 { font-size: clamp(19px,2.2vw,24px); margin: 34px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.68; color: var(--ink-soft); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--surface-2); border: 1px solid var(--brd); border-left: 2px solid var(--accent);
  border-radius: 3px; padding: 14px 18px; margin: 18px 0 22px; font-size: 14.5px; line-height: 1.6; }
.callout p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
