@import url("fonts.css");

:root {
  --navy: #12305a;
  --navy-deep: #0c2242;
  --navy-soft: #1d3f6e;
  --gold: #c9a24b;
  --gold-soft: #e4c98a;
  --gold-ink: #8a6a1f;
  --paper: #f7f3ea;
  --light: #ffffff;
  --ink: #16202e;
  --ink-soft: #4a5566;
  --line: #e2dccd;
  --line-navy: rgba(255, 255, 255, 0.16);
  --on-navy: #f3efe6;
  --on-navy-soft: #c3cbd8;
  --ok: #2f6f4f;
  --err: #a33a2c;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --shadow: 0 18px 50px -24px rgba(12, 34, 66, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--light); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: var(--s2) var(--s4); z-index: 100; font-weight: 700; }
.skip-link:focus { left: var(--s4); top: var(--s4); }
.tnum { font-variant-numeric: tabular-nums; }
.fine { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; }
.on-navy .fine, .door-navy .fine { color: var(--on-navy-soft); }

/* Type */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display em { font-style: italic; color: var(--gold-ink); }
.on-navy .display em, .hero .display em { color: var(--gold); }
h1.display { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
.lede { font-size: clamp(1.075rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; margin-top: var(--s4); }
.on-navy .lede { color: var(--on-navy-soft); }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.kicker.dark { color: var(--gold-ink); }
.text-link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.on-navy .text-link { color: var(--on-navy); }
.text-link:hover { color: var(--gold-ink); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, var(--s9)); }
.section-tight { padding-block: clamp(2.5rem, 5vw, var(--s8)); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-paper { background: var(--paper); }
.on-light { background: var(--light); }
.section-head { max-width: 760px; margin-bottom: var(--s7); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.on-navy .btn-outline, .hero .btn-outline, .page-hero .btn-outline { color: var(--on-navy); }
.btn-outline:hover { background: rgba(201, 162, 75, 0.14); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark { width: 46px; height: auto; }
.brand-mark .bar { fill: var(--navy); }
.brand-mark .bar-gold { fill: var(--gold); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark .bar { fill: #cfd6e2; }
.nav { display: flex; gap: var(--s5); }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); padding-block: var(--s2); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; padding: 10px; }
.mobile-nav { display: none; }
.mobile-nav ul { list-style: none; padding-block: var(--s3) var(--s5); }
.mobile-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }
.mobile-nav a[aria-current="page"] { color: var(--gold-ink); }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .mobile-nav[data-open="true"] { display: block; }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* Hero */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: radial-gradient(1200px 520px at 85% -10%, #224a80 0%, rgba(34, 74, 128, 0) 60%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .lede { color: var(--on-navy-soft); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: 0.92rem; color: var(--on-navy-soft); }
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); aspect-ratio: 420 / 880; border-radius: 42px; padding: 12px; background: #0a1a33; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; background: radial-gradient(420px 300px at 50% 30%, #1f4677 0%, var(--navy-deep) 70%); color: #fff; padding: 2rem 1.25rem; }
.phone-screen svg { width: 58%; }
.phone-screen .ps-name { font-family: var(--serif); font-size: 2.2rem; line-height: 1; letter-spacing: -0.01em; color: #e9edf3; }
.phone-screen .ps-tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold); }
.phone-caption { margin-top: var(--s4); text-align: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .phone { width: min(240px, 62vw); } }

/* SFF band */
.sff-band { background: var(--gold); color: var(--navy-deep); padding-block: var(--s6); }
.sff-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s6); align-items: center; }
.sff-date { font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 500; }
.sff-date small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 0.4rem; }
.sff-copy h2 { font-size: 1.2rem; font-weight: 700; }
.sff-copy p { margin-top: 0.3rem; font-size: 0.98rem; }
@media (max-width: 860px) { .sff-row { grid-template-columns: 1fr; gap: var(--s4); } }

/* Doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.door { display: block; text-decoration: none; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.door h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.18; }
.door p:not(.kicker) { margin-top: var(--s3); color: var(--ink-soft); }
.door .arrow { display: inline-block; margin-top: var(--s5); font-weight: 700; color: var(--navy); }
.door-navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.door-navy p:not(.kicker) { color: var(--on-navy-soft); }
.door-navy .arrow { color: var(--gold); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Stats, tiers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: var(--s6); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: var(--s2); font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); }
.tier-1 { border-top: 4px solid var(--gold); }
.tier h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.tier .range { margin-top: var(--s2); font-size: 0.88rem; font-weight: 700; color: var(--gold-ink); }
.tier ul { list-style: none; margin-top: var(--s4); }
.tier li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* Video */
.video-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lang-switch { display: inline-flex; margin-top: var(--s5); border: 1px solid var(--line-navy); border-radius: 999px; padding: 4px; }
.lang-switch button { border: 0; background: transparent; color: var(--on-navy); padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 700; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(12,34,66,0) 40%, rgba(12,34,66,.55)); border: 0; cursor: pointer; }
.video-play span { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
@media (max-width: 860px) { .video-block { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.step { border-top: 2px solid var(--navy); padding-top: var(--s4); }
.step .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-ink); }
.step h3 { margin-top: var(--s2); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.step p { margin-top: var(--s2); color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Checklists, record */
.checklist { list-style: none; margin-top: var(--s5); display: grid; gap: var(--s4); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.on-paper .checklist svg, .on-light .checklist svg { color: var(--ok); }
.checklist li.no svg { color: var(--err); }
.on-navy .checklist li.no svg { color: #e79a8f; }
.checklist strong { display: block; }
.checklist span { display: block; color: var(--ink-soft); font-size: 0.97rem; }
.on-navy .checklist span { color: var(--on-navy-soft); }
.record-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.record-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.record-card header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.record-card header span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.record-card ul { list-style: none; }
.record-card li { display: flex; justify-content: space-between; gap: var(--s4); padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.record-card li span:last-child { font-weight: 700; color: var(--ok); white-space: nowrap; }
.record-card .actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chip { display: inline-block; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.chip.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 860px) { .record-grid { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); }
.on-navy .card { background: var(--navy-soft); border-color: var(--line-navy); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.card p { margin-top: var(--s3); color: var(--ink-soft); }
.on-navy .card p { color: var(--on-navy-soft); }
.card .tag { display: inline-block; margin-bottom: var(--s3); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.on-navy .card .tag { color: var(--gold); }
.boundary { margin-top: var(--s7); padding: var(--s5) var(--s6); border-left: 4px solid var(--gold); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.boundary p { color: var(--ink-soft); }
.boundary strong { color: var(--ink); }

/* Founder */
.founder { margin: 0; display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.founder-photo { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.founder blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; color: var(--navy); }
.founder blockquote p + p { margin-top: 0.9em; }
.founder figcaption { margin-top: var(--s5); display: grid; gap: var(--s1); }
.founder figcaption span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 280px; } }

/* Forms */
.cta-band { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.form { margin-top: var(--s6); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; margin-bottom: var(--s4); }
.field label { font-weight: 700; font-size: 0.92rem; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #cfc7b5; border-radius: var(--radius-sm); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(201,162,75,.45); border-color: var(--gold-ink); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-check label { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); font-weight: 400; font-size: 0.93rem; color: var(--ink-soft); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s3); font-weight: 700; min-height: 1.5em; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.copy-mail { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.8rem; cursor: pointer; margin-left: 0.3rem; }
.cta-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: var(--s6); }
.cta-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.cta-card ul { list-style: none; margin-top: var(--s4); display: grid; gap: var(--s3); }
.cta-card li { padding-left: 1.2rem; position: relative; }
.cta-card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cta-card .fine { margin-top: var(--s5); color: var(--on-navy-soft); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem); background: var(--navy); color: var(--on-navy); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; }
.page-hero .lede { color: var(--on-navy-soft); }
.page-hero .meta { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 0.9rem; color: var(--on-navy-soft); }

/* Legal pages */
.status-banner { background: #fbf3dd; border-bottom: 1px solid #ecd9a6; color: #5b4510; font-size: 0.92rem; padding-block: 0.8rem; }
.status-banner strong { color: #3f300a; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.legal-tabs a { text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-navy); color: var(--on-navy); font-weight: 700; font-size: 0.92rem; }
.legal-tabs a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.legal-tabs a:hover { border-color: var(--gold); }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.glance .card { padding: var(--s5); }
.glance h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.glance p { margin-top: var(--s2); font-size: 0.95rem; }
@media (max-width: 900px) { .glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .glance { grid-template-columns: 1fr; } }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 0.92rem; }
.legal-toc h2 { font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: var(--s3); }
.legal-toc ol { list-style: none; display: grid; gap: 0.15rem; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); }
.legal-toc a:hover, .legal-toc a[aria-current="true"] { color: var(--navy); border-left-color: var(--gold); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }
.legal { max-width: 74ch; }
.legal section + section { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.6vw, 1.95rem); color: var(--navy); margin-bottom: var(--s4); }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin-top: var(--s5); margin-bottom: var(--s2); color: var(--navy); }
.legal p { margin-top: var(--s3); }
.legal ul, .legal ol.list { margin-top: var(--s3); padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.legal ol.alpha { list-style: none; padding-left: 0; margin-top: var(--s3); display: grid; gap: 0.5rem; }
.legal ol.alpha li { padding-left: 2.2rem; text-indent: -2.2rem; }
.legal ol.alpha li b:first-child { display: inline-block; width: 2.2rem; text-indent: 0; }
.legal .cl { font-weight: 700; color: var(--navy); margin-right: 0.35rem; }
.legal .summary { background: var(--paper); border-radius: var(--radius); padding: var(--s5); border-left: 4px solid var(--gold); }
.legal .summary p:first-child { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper); font-weight: 700; color: var(--navy); }
.table-wrap { overflow-x: auto; }
.legal .never { list-style: none; padding-left: 0; }
.legal .never li { padding-left: 1.6rem; position: relative; }
.legal .never li::before { content: "\00d7"; position: absolute; left: 0.2rem; top: -0.05rem; color: var(--err); font-weight: 700; font-size: 1.15rem; }
.legal-foot { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); padding-block: var(--s8) var(--s6); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.footer-brand p { margin-top: var(--s3); max-width: 34ch; }
.site-footer h3 { font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; color: var(--on-navy); }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { color: var(--on-navy-soft); }
.disclaimer { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-navy); font-size: 0.85rem; line-height: 1.6; }
.disclaimer strong { color: var(--on-navy); }
.footer-meta { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Cookie note */

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .site-footer, .legal-toc, .legal-tabs, .status-banner { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .legal-layout { display: block; }
}
.legal .summary + section { margin-top: var(--s7); }
.legal p.sub { padding-left: 2.2rem; text-indent: -2.2rem; margin-top: 0.5rem; }
.legal p.sub b { display: inline-block; width: 2.2rem; text-indent: 0; }
.section-title, .display { text-wrap: balance; }
.legal p.source { font-size: var(--text-sm, 0.875rem); color: var(--muted, #5b6270); margin-top: 0.75rem; }

/* v2 structure */
.hero-note { margin-top: var(--s4); font-size: 0.92rem; color: var(--on-navy-soft); }
.hero-note .text-link { color: var(--on-navy); }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps-3 { grid-template-columns: 1fr; } }
.steps-3 .step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.steps-3 .step p { font-size: 1.05rem; }
#institutions .section-head .lede { max-width: 46rem; }
.inst-line { margin-top: var(--s6); color: var(--on-navy-soft); max-width: 46rem; }
#institutions .cta-row { margin-top: var(--s5); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.site-footer .footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 0.92rem; }
.header-cta.btn-outline { color: var(--navy); }
.header-cta { white-space: nowrap; }

/* discovery + store (mock) */
.hero-discovery { margin-top: var(--s4); color: var(--on-navy-soft); font-size: 0.98rem; max-width: 38rem; }
.hero-discovery strong { color: var(--on-navy); }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.store-row[hidden], .app-banner[hidden] { display: none !important; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge-gp img { height: 74px; margin: -12px -10px; }
.store-qr { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.store-qr img { border-radius: 6px; background: #fff; }
.store-qr figcaption { font-size: 0.85rem; color: var(--on-navy-soft); max-width: 6rem; }
@media (max-width: 720px) { .store-qr { display: none; } }
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(10,30,60,.25); color: var(--navy); }
.app-banner div { flex: 1; display: grid; line-height: 1.25; }
.app-banner span { font-size: 0.85rem; color: #4a5568; }
.app-banner-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #4a5568; padding: 4px 6px; cursor: pointer; }
@media (min-width: 721px) { .app-banner { display: none !important; } }
.placeholder { background: #fff4d6; border: 1px dashed #c9a24b; padding: 0.4rem 0.6rem; border-radius: 6px; color: #6b5313; }
td.placeholder { display: table-cell; }
.table-wrap { overflow-x: auto; }
table.glossary { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
table.glossary th, table.glossary td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid #dfe3ea; vertical-align: top; }
table.glossary th { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.legal .video-frame { margin-bottom: var(--s6); }

/* Discovery illustrative screen */
.disc-grid { align-items: center; }
.disc-screen { justify-content: flex-start; align-items: stretch; text-align: left; gap: .55rem; padding: 1.1rem .8rem .6rem; font-size: .62rem; background: linear-gradient(180deg, #16325e 0%, var(--navy-deep) 100%); }
.ds-title { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.ds-search { display: flex; align-items: center; gap: .4rem; background: #fff; color: #6b7280; border-radius: 999px; padding: .45rem .6rem; }
.ds-search svg { width: 12px; height: 12px; flex: none; }
.ds-head { display: flex; justify-content: space-between; color: #fff; font-weight: 700; font-size: .7rem; margin-top: .2rem; }
.ds-all { color: var(--gold); font-weight: 400; }
.ds-card { background: #fff; color: #10233f; border-radius: 10px; padding: .45rem .55rem; display: flex; flex-direction: column; gap: .15rem; }
.ds-card small { color: #6b7280; font-size: .55rem; }
.ds-tag { align-self: flex-start; background: #e7f3ea; color: #1f6b3a; border-radius: 4px; padding: .05rem .3rem; font-size: .55rem; }
.ds-cats { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.ds-cats span { border-radius: 8px; padding: .4rem .5rem; color: #10233f; font-weight: 700; line-height: 1.15; }
.ds-cats .c1 { background: #e4e9f7; } .ds-cats .c2 { background: #f6ead0; } .ds-cats .c3 { background: #e2f1ef; }
.ds-cats .c4 { background: #f3e4ec; } .ds-cats .c5 { background: #e9e6f6; } .ds-cats .c6 { background: #fbe9dc; }
.ds-nav { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: .4rem; color: #9fb0c8; font-size: .52rem; }
.ds-nav .on { color: var(--gold); font-weight: 700; }
.disc-copy > * + * { margin-top: 1rem; } .disc-copy .section-title { margin-top: .5rem; }
/* Discovery screen: app colour scheme */
.disc-screen { background: #1d3460; }
.ds-title { font-family: var(--sans, inherit); font-weight: 700; font-size: 1.1rem; }
.ds-all { color: #d4b15a; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.ds-card { background: #d1e7fc; color: #1d3460; }
.ds-card.recent { background: #e8defc; }
.ds-card small { color: #5b6b85; }
.ds-tag { background: transparent; color: #2e9b4f; padding: 0; font-weight: 700; }
.ds-tag i { font-style: normal; color: #4a5875; font-weight: 400; margin-left: .35rem; }
.ds-cats span { color: #1d3460; }
.ds-cats .c1 { background: linear-gradient(90deg, #f4f1ea 0%, #678fc1 100%); }
.ds-cats .c2 { background: linear-gradient(90deg, #f4f1ea 0%, #cdae6f 100%); }
.ds-cats .c3 { background: linear-gradient(90deg, #f4f1ea 0%, #75ad80 100%); }
.ds-cats .c4 { background: linear-gradient(90deg, #f4f1ea 0%, #c9846b 100%); }
.ds-cats .c5 { background: linear-gradient(90deg, #f4f1ea 0%, #8877bb 100%); }
.ds-cats .c6 { background: linear-gradient(90deg, #f4f1ea 0%, #78c8c8 100%); }
.ds-nav { border-top: 2px solid #c9a24b; color: #b8c3d6; }
.ds-nav .on { color: #d4b15a; }
