/* Layout: navy masthead with gold rule; each page = hero band + ruled content sections; shared company-record footer */
:root {
  --navy: #0f1f3d;
  --navy-2: #172b52;
  --gold: #b8913a;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --fg: #16203a;
  --muted: #5a6478;
  --line: #d9dbe2;
  --on-navy: #f3f1ea;
  --on-navy-muted: #b6bdcc;
  --display: "Spectral", Cambria, Georgia, serif;
  --body: "Public Sans", Calibri, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0b1730; --navy-2: #13254a; --gold: #d4ae58;
    --bg: #0e1526; --surface: #151f35; --fg: #e8e9ee; --muted: #a2abbf; --line: #283552;
    --on-navy: #f3f1ea; --on-navy-muted: #aab3c6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #0b1730; --navy-2: #13254a; --gold: #d4ae58;
  --bg: #0e1526; --surface: #151f35; --fg: #e8e9ee; --muted: #a2abbf; --line: #283552;
  --on-navy: #f3f1ea; --on-navy-muted: #aab3c6; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.dot { color: var(--gold); padding-inline: .04em; }

/* Masthead */
.masthead { background: var(--navy); color: var(--on-navy); border-bottom: 3px solid var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-navy); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--display); font-size: 19px; font-weight: 600; }
.nav ul { list-style: none; display: flex; gap: 6px 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { text-decoration: none; font-size: 14px; color: var(--on-navy-muted); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav ul a:hover { color: var(--on-navy); }
.nav ul a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--gold); }

.hero { padding-block: 52px 60px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; }
.hero > * { min-width: 0; }
.hero.single { grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); margin-top: 14px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.lede { margin-top: 20px; max-width: 60ch; color: var(--on-navy-muted); font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 3px; }
.btn-gold { background: var(--gold); color: #0f1f3d; }
.btn-gold:hover { filter: brightness(1.07); }
.btn-line { border: 1px solid var(--on-navy-muted); color: var(--on-navy); }
.btn-line:hover { border-color: var(--gold); }
.btn-dark { background: var(--navy); color: #f3f1ea; }

/* Standing panel in home hero */
.panel { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); padding: 22px; font-family: var(--mono); font-size: 13px; color: var(--on-navy-muted); }
.panel h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.panel-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 11px; border-top: 1px dashed rgba(255,255,255,.14); }
.panel-row b { color: var(--on-navy); font-weight: 500; }
.panel-row a { color: var(--gold); text-decoration: none; }
.panel-row a:hover { text-decoration: underline; }

/* Sections */
section { padding-block: 72px; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.head > * { min-width: 0; }
.head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 10px; }
.head p { color: var(--muted); max-width: 60ch; align-self: end; }

/* Platform index on home: a ruled list, one row per platform */
.index { border-top: 2px solid var(--fg); }
.row { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: start; text-decoration: none; color: inherit; }
.row > * { min-width: 0; }
.row .cat { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding-top: 8px; }
.row h3 { font-size: 30px; }
.row p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.row .go { font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap; margin-top: 10px; }
.row:hover h3 { color: var(--gold); }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); vertical-align: middle; margin-left: 10px; letter-spacing: 0; text-transform: none; }
.pill.soon { border-color: var(--line); color: var(--muted); }

/* Generic grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid3 > *, .grid2 > * { min-width: 0; }
.item h3 { font-size: 21px; margin-bottom: 8px; }
.item p { color: var(--muted); }
.item .eyebrow { display: block; margin-bottom: 8px; }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 18px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--fg); font-variant-numeric: tabular-nums; }
.stats div { padding: 18px 16px 4px 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Feature card for a single platform */
.feature { background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--gold); padding: 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.feature > * { min-width: 0; }
.feature h3 { font-size: 32px; margin-top: 8px; }
.feature p { color: var(--muted); margin-top: 12px; }
.feature .actions { margin-top: 22px; }
.feature .link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Verification Chain: a real sequence, numbered */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.chain li { counter-increment: step; padding: 22px 20px 4px 0; border-top: 2px solid var(--fg); position: relative; min-width: 0; }
.chain li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--gold); display: block; margin-bottom: 8px; }
.chain li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; }
.chain h3 { font-size: 19px; margin-bottom: 6px; }
.chain p { color: var(--muted); font-size: 15px; }

/* Statement band */
.statement { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; max-width: 30ch; }
.statement em { color: var(--gold); }
.notlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.notlist span { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); }

/* Founders */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { border-left: 2px solid var(--gold); padding-left: 16px; }
.person b { font-family: var(--display); font-size: 21px; font-weight: 600; display: block; }
.person span { color: var(--muted); font-size: 15px; }

/* Footer */
footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 48px 40px; border-top: 3px solid var(--gold); }
.record { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.record > * { min-width: 0; }
.record h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.record p, .record li { font-size: 14px; }
.record ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.record a { text-decoration: none; color: var(--on-navy); }
.record a:hover { color: var(--gold); }
.record .num { font-family: var(--mono); color: var(--on-navy); font-variant-numeric: tabular-nums; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .head, .grid2, .feature { grid-template-columns: 1fr; gap: 28px; }
  .grid3 { grid-template-columns: 1fr; gap: 28px; }
  .record { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row .cat { padding-top: 0; }
  .chain, .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  section { padding-block: 56px; }
  .feature { padding: 24px; }
}
@media (max-width: 480px) {
  .chain, .record, .people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav ul a, .record a, .row h3 { transition: color .15s, border-color .15s, filter .15s; }
}

/* Platform logo strip on home */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.logo { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); min-width: 0; }
.logo svg { width: 48px; height: 48px; flex: none; }
.logo span { font-family: var(--display); font-size: 22px; font-weight: 600; }
.logo:hover { border-color: var(--gold); }
@media (max-width: 860px) { .logos { grid-template-columns: 1fr; } }

/* Home hero lede runs full width */
.hero.single .lede { max-width: none; }
/* References hero: sans headline */
.sans-h1 { font-family: var(--body); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; }
.sans-h1 span { display: block; color: var(--gold); font-weight: 500; margin-top: 6px; }
/* Google Play button */
.btn-play { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #5f6368; border-radius: 8px; padding: 9px 18px; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; }
.btn-play small { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.btn-play:hover { border-color: var(--gold); }

/* ---- v5: one heading font everywhere, no narrow text columns ---- */
:root { --display: "Public Sans", Calibri, "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4.8vw, 52px); line-height: 1.12; }
.hero h1 em { font-style: normal; font-weight: 600; color: var(--gold); }
.lede, .head p, .row p, .side p, .statement, .story-body p, .prose p { max-width: none; }
.head { display: block; margin-bottom: 32px; }
.head h2 { margin-top: 0; font-size: clamp(26px, 3.4vw, 36px); }
.head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.statement { font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; margin-bottom: 40px; }
.item h3 { font-weight: 600; }
.stats strong, .person b { font-weight: 700; }

/* Story */
.story-body { display: grid; gap: 16px; font-size: 17px; margin-bottom: 36px; }
.story .people { max-width: 520px; }

/* MultiMari stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.person-card p { color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; }
.initial { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #f3f1ea; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; border: 2px solid var(--gold); }
.who h3 { font-size: 21px; }
.where { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); }
.chips span:nth-child(-n+2) { border-color: var(--gold); color: var(--gold); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--bg); border: 1px solid var(--line); padding: 22px; min-width: 0; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.contact > * { min-width: 0; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.status { font-size: 15px; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--surface); }
.contact-info { display: grid; gap: 24px; align-content: start; }
.contact-info h3 { font-size: 17px; margin-bottom: 6px; }
.contact-info p { color: var(--muted); }

/* Legal prose */
.prose { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose p, .prose li { color: var(--fg); }

@media (max-width: 860px) {
  .stories, .features, .contact { grid-template-columns: 1fr; }
}
.rz { display: grid; gap: 16px; font-size: 17px; }
.rz p { max-width: none; }
