/* ===================================================================
   Race Marks — racemarks.app content stylesheet (ra-l7f6.2)

   The role-led rebuild's token layer, promoted out of the ra-l7f6.1
   proposal at /preview/assets/rebuild.css and now the real thing.

   WHO USES THIS: the content site — /, /for-sailors/, /for-committees/,
   /for-pros/, /pricing/, /start/, /interest/, /support/, /race-reports/,
   /data-sources/, /privacy/, /terms/.

   WHO DOES NOT: the app surfaces (/race/, /race/w/, /analysis/, /join/,
   /join-boat/) and the pro-tester portal (/beta/) stay on
   assets/css/style.css. Those pages carry committed Playwright
   snapshots and their own JS; restyling them is a separate job with a
   visual-regression review attached. style.css is therefore still live
   and must not be deleted.

   Direction (ra-l7f6.1 §5, "restyle the current stack"):
     - hand-written static HTML, no build step, no framework
     - a token layer + a small set of reusable blocks
     - light AND dark via prefers-color-scheme
     - one accent per role pillar over the navy/gold brand; the primary
       CTA stays gold everywhere so the brand doesn't fragment into
       three sub-brands

   ── HARD STYLE RULE (Chris, LGTMC review on PR #909) ──────────────
   NO single-side-border cards or callouts. No left-accent notes, no
   top-rule cards: "a common AI artefact and we need to do better."
   The accent enters through FULL borders, BACKGROUND TINTS, BORDERED
   CHIPS and SPACING — never a stripe down one edge.

   What that rules out, and what replaced it:
     role cards   4px top accent bar  -> full border + accent wash + chip
     .note        2px left rule       -> full border + tinted surface
     .quote       3px left rule       -> full-bordered panel + glyph
     .eyebrow     22px left dash      -> bordered, tinted accent chip

   What is NOT a single-side-border card and stays: the active nav
   link's underline (a nav affordance, and a bottom rule on text, not a
   box), section top/bottom dividers, and row dividers in spec lists,
   FAQs and pricing tiers. The screenshot-gap callout keeps its DASHED
   border because it is a full border on all four sides.
   =================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────── */

:root {
  /* brand constants — unchanged from the original site */
  --navy:        #0b1d3a;
  --navy-2:      #132d5e;
  --gold:        #d4a843;
  --gold-light:  #e8c96e;

  /* role accent — overridden per page by the body class */
  --accent:      #b8862a;
  --accent-soft: rgba(212, 168, 67, .13);
  --accent-line: rgba(212, 168, 67, .42);

  /* light surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f4f6f9;
  --surface:     #ffffff;
  --ink:         #0b1d3a;
  --ink-2:       #44536b;
  --ink-3:       #6c7a90;
  --line:        #dbe1ea;
  --shadow:      0 1px 2px rgba(11, 29, 58, .06), 0 8px 24px rgba(11, 29, 58, .07);
  --shadow-lift: 0 2px 4px rgba(11, 29, 58, .07), 0 18px 40px rgba(11, 29, 58, .13);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wide: 1120px;
  --text: 720px;
  --r:    14px;
  --r-sm: 9px;

  /* Compat shims. assets/css/carousel.css is loaded alongside this file
     on the home page and reads --font/--gold/--navy/--white. It uses
     --white only as a `color:` on navy chrome, which is why the dark
     remap below is safe. Nothing in THIS file should use --white. */
  --white: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #07101f;
    --bg-alt:  #0c1a2e;
    --surface: #0f2138;
    --ink:     #eaf1fb;
    --ink-2:   #a9bdd6;
    --ink-3:   #7d92ad;
    --line:    #1d3352;
    --shadow:  0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 20px 44px rgba(0, 0, 0, .45);

    --accent:      #e0b558;
    --accent-soft: rgba(212, 168, 67, .16);
    --accent-line: rgba(212, 168, 67, .38);

    /* see the compat note above — carousel.css only uses this as text
       sitting on navy, so a near-white ink is the correct dark value */
    --white: var(--ink);
  }
}

/* Role accents. Light values are darkened enough to clear 4.5:1 on the
   page background, because the accent is used for body-adjacent text
   (chips, links, list glyphs) and not only for decoration. */
body.role-sailors    { --accent: #a8781f; --accent-soft: rgba(212, 168, 67, .13); --accent-line: rgba(212, 168, 67, .42); }
body.role-committees { --accent: #0b6dcc; --accent-soft: rgba(59, 157, 255, .12); --accent-line: rgba(59, 157, 255, .40); }
body.role-pros       { --accent: #10796a; --accent-soft: rgba(47, 191, 168, .13); --accent-line: rgba(47, 191, 168, .40); }

@media (prefers-color-scheme: dark) {
  body.role-sailors    { --accent: #e0b558; }
  body.role-committees { --accent: #6fb8ff; }
  body.role-pros       { --accent: #4fd3bd; }
}

/* ── Base ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap  { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.text  { max-width: var(--text); }
.muted { color: var(--ink-2); }
.center{ text-align: center; }

/* Skip link — the nav is sticky and the role pages are long. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #0b1d3a;
  font-weight: 650;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; text-decoration: none; }

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Progressive enhancement: translucent only where the blur is real, so
   the fallback is an opaque bar rather than unreadable text. */
@supports (backdrop-filter: blur(12px)) {
  .nav {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; }
.nav-logo span { color: var(--gold); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  font-size: .9rem;
}
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.here { color: var(--ink); font-weight: 650; }
.nav-links a.here::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-links .sep { width: 1px; height: 20px; background: var(--line); }
.nav-cta {
  background: var(--gold);
  color: #0b1d3a !important;
  font-weight: 650;
  padding: .45rem 1rem;
  border-radius: 99px;
}
.nav-cta:hover { background: var(--gold-light); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 1.1rem;
  padding: .3rem .6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    padding: 1rem 1.5rem 1.35rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links .sep { display: none; }
  .nav-links a { padding: .5rem 0; font-size: 1rem; }
  .nav-links a.here::after { max-width: 2.5rem; }
  .nav-cta { text-align: center; margin-top: .4rem; }
}

/* ── Eyebrow ────────────────────────────────────────────────────────
   Was an accent dash to the left of the label. Now a full-bordered,
   accent-tinted chip — same job, no side rule (see the hard rule at
   the top of this file). */

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: .28rem .8rem;
  margin-bottom: 1.1rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
  background:
    radial-gradient(1100px 420px at 78% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-grid.solo { grid-template-columns: 1fr; max-width: 900px; text-align: center; }
.hero-grid.solo .eyebrow { justify-content: center; }
.hero-grid.solo .hero-actions { justify-content: center; }

.hero p.lede {
  font-size: clamp(1.02rem, .96rem + .4vw, 1.24rem);
  color: var(--ink-2);
  margin-top: 1rem;
  max-width: 34em;
}
.hero-grid.solo p.lede { margin-left: auto; margin-right: auto; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.75rem;
  align-items: center;
}

.hero-shot {
  justify-self: center;
  max-width: 300px;
  filter: drop-shadow(0 24px 48px rgba(11, 29, 58, .28));
}
/* For the wide two-phone composite rather than a single screen grab. */
.hero-shot--wide { max-width: 520px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 232px; margin-top: 1rem; }
}

/* ── Offer pill (home) ──────────────────────────────────────────────
   Carried over from the previous home page. ra-jank Decision 1 rules
   still hold: anchor to the regatta season, never a promo date, and
   point into the app rather than at a price. Full border on all four
   sides, so it is not the thing Chris rejected. */

.offer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  padding: .7rem 1.35rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  text-align: center;
}
.offer__label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}
.offer__detail { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 640px) {
  .offer { border-radius: var(--r); padding: .8rem 1.1rem; }
  .offer__detail { font-size: .87rem; }
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 650;
  font-size: .95rem;
  padding: .7rem 1.4rem;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: #0b1d3a; }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* OAuth buttons. Previously came from /beta/beta.css, which is written
   against the old light-only palette — inlining them here keeps
   /interest/ off that stylesheet so dark mode works. */
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 15rem;
  padding: .65rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease;
}
.btn-oauth:hover { border-color: var(--accent); }
.btn-oauth svg { width: 20px; height: 20px; flex: none; }
.btn-oauth--apple { background: #000; border-color: #000; color: #fff; }
.btn-oauth--apple:hover { border-color: #000; opacity: .88; }

/* ── Sections ───────────────────────────────────────────────────── */

.section { padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: var(--text); margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); margin-top: .75rem; }

/* ── Role chooser (the home page's main job) ─────────────────────────
   REWORKED for Chris's LGTMC review. The proposal put a 4px accent bar
   across the top of each card; that stripe is what he called out. The
   accent now arrives as a background wash fading into the card, a
   bordered accent chip for the role label, and a full border that goes
   accent on hover — so the card reads as one object rather than a
   panel with a coloured lid. */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 190px),
    var(--surface);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.role-card:hover,
.role-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.role-card--sailors    { --accent: #a8781f; --accent-soft: rgba(212, 168, 67, .16); --accent-line: rgba(212, 168, 67, .42); }
.role-card--committees { --accent: #0b6dcc; --accent-soft: rgba(59, 157, 255, .14); --accent-line: rgba(59, 157, 255, .40); }
.role-card--pros       { --accent: #10796a; --accent-soft: rgba(47, 191, 168, .15); --accent-line: rgba(47, 191, 168, .40); }
@media (prefers-color-scheme: dark) {
  .role-card--sailors    { --accent: #e0b558; }
  .role-card--committees { --accent: #6fb8ff; }
  .role-card--pros       { --accent: #4fd3bd; }
}
.role-card .role-who {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: .26rem .7rem;
}
.role-card h3 { margin: .8rem 0 .55rem; font-size: 1.32rem; }
.role-card p { color: var(--ink-2); font-size: .95rem; }
.role-card ul { list-style: none; margin: 1rem 0 1.25rem; font-size: .9rem; color: var(--ink-2); }
.role-card li { padding-left: 1.1rem; position: relative; margin-bottom: .3rem; }
.role-card li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.role-card .go { margin-top: auto; font-weight: 650; color: var(--accent); font-size: .93rem; }

/* ── Feature rows (alternating copy / screenshot) ───────────────── */

.rows { display: flex; flex-direction: column; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.row:nth-child(even) .row-media { order: -1; }
.row-copy h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); margin-bottom: .7rem; }
.row-copy p { color: var(--ink-2); }
.row-copy p + p { margin-top: .8rem; }
.row-media img {
  margin: 0 auto;
  max-width: 268px;
  border-radius: 26px;
  filter: drop-shadow(0 18px 40px rgba(11, 29, 58, .26));
}
@media (max-width: 780px) {
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-media { order: 0; }
  .row-media img { max-width: 220px; }
}

/* ── Note ───────────────────────────────────────────────────────────
   The proposal's .row-note was a 2px left rule. Same job — an aside
   that must not read as body copy — done with a full border and a
   tinted surface. */

.note {
  margin-top: 1.15rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  font-size: .88rem;
  color: var(--ink-2);
}
.note a { font-weight: 600; }

/* ── Generic cards ──────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem 1.35rem 1.4rem;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: .94rem; }
.card p + p { margin-top: .6rem; }
.card .tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 5px;
  margin-bottom: .6rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.card .tag--soon { background: rgba(120, 134, 156, .16); border-color: var(--line); color: var(--ink-3); }

/* Emphasised card — full accent border plus a tint, no edge stripe. */
.card--feature {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 150px), var(--surface);
}

/* ── Spec list (committee capability list) ──────────────────────── */

.specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-weight: 650; }
.spec dd { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 680px) { .spec { grid-template-columns: 1fr; gap: .3rem; } }

/* ── Proof strip ────────────────────────────────────────────────── */

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: .45rem 1rem;
  font-size: .88rem;
  color: var(--ink-2);
}
.chip b { color: var(--ink); font-weight: 650; }

/* ── Pull quote ─────────────────────────────────────────────────────
   Was a 3px left rule. Now a full-bordered tinted panel with a quote
   glyph doing the "this is a quote" work the stripe used to do. */

.quote {
  position: relative;
  max-width: var(--text);
  margin: 2.5rem auto 0;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-alt);
  font-size: 1.06rem;
  color: var(--ink);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: .35rem;
  left: 1.4rem;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: .5;
}
.quote cite { display: block; margin-top: .8rem; font-size: .87rem; color: var(--ink-3); font-style: normal; }

/* ── Status ledger (what's live / beta / coming) ────────────────── */

.ledger { display: grid; gap: .55rem; }
.ledger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: .93rem;
}
.pill {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .16rem .5rem;
  border-radius: 5px;
  flex: none;
}
.pill--live { background: rgba(40, 167, 69, .16); color: #217a3a; }
.pill--beta { background: rgba(212, 168, 67, .18); color: #8a6714; }
.pill--soon { background: rgba(120, 134, 156, .18); color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  .pill--live { color: #62d183; }
  .pill--beta { color: #e2bd63; }
}

/* ── Gap callout ────────────────────────────────────────────────────
   Dashed border on ALL FOUR sides — a full border, deliberately
   provisional-looking, not a one-edge stripe. */

.gap {
  border: 1px dashed var(--accent-line);
  border-radius: var(--r);
  padding: 1.5rem;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: .93rem;
}
.gap b { color: var(--ink); }

/* ── CTA band ───────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 40em; margin: .85rem auto 0; }
.cta-band strong { color: #fff; }
.cta-band a:not(.btn) { color: var(--gold-light); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .fineprint {
  margin-top: 1.5rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .66);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.6rem;
}
.badges img { height: 52px; width: auto; max-width: 190px; }
.badges a { transition: opacity .15s ease; }
.badges a:hover { opacity: .85; }
.badges a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 480px) { .badges img { height: 44px; } }

/* ── Prose (privacy, terms, data sources) ───────────────────────── */

.prose { max-width: var(--text); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) 1.5rem; }
.prose h1 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem); margin-bottom: .75rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.prose th, .prose td { padding: .55rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 650; color: var(--ink); }
.prose .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.5rem; }

/* ── Pricing tiers ──────────────────────────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  align-items: start;
}
.tier {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.9rem 1.35rem 1.5rem;
  text-align: center;
}
/* Featured tier: full accent border + a tint. Not a top stripe. */
.tier--featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 200px), var(--surface);
  box-shadow: var(--shadow);
}
.tier .badge {
  position: absolute;
  top: -.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0b1d3a;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tier .badge--soon { background: var(--ink-3); color: #fff; }
.tier h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.tier .tier-sub { font-size: .85rem; color: var(--ink-3); margin-bottom: .5rem; }
.tier .tier-period {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.tier ul { list-style: none; text-align: left; font-size: .9rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.tier li { padding: .38rem 0; border-bottom: 1px solid var(--line); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: .4rem; }
.tier li em { font-size: .78rem; color: var(--ink-3); font-style: normal; }
.tier .btn { margin-top: auto; align-self: center; }

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq { max-width: var(--text); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; gap: .6rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin-top: .6rem; color: var(--ink-2); }

/* ── Forms (support contact, interest registration, feedback) ────────
   Moved out of per-page <style> blocks. Those were written against the
   old light-only palette (--gray-light, --white, --off-white) and
   would have rendered unreadable once the pages went dark-capable. */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.panel--narrow { max-width: 480px; margin: 0 auto; }

.form label {
  display: block;
  font-weight: 650;
  margin-bottom: .3rem;
  font-size: .88rem;
  color: var(--ink);
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: .6rem .75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form textarea { min-height: 120px; resize: vertical; }
.form select {
  /* Keep the native control legible in dark mode on every platform. */
  color-scheme: light dark;
}

.msg { padding: .9rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; }
.msg--ok   { background: rgba(40, 167, 69, .14);  border: 1px solid rgba(40, 167, 69, .4);  color: #217a3a; }
.msg--bad  { background: rgba(220, 53, 69, .12);  border: 1px solid rgba(220, 53, 69, .4);  color: #b3202e; }
@media (prefers-color-scheme: dark) {
  .msg--ok  { color: #62d183; }
  .msg--bad { color: #ff8f99; }
}

.userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  font-size: .85rem;
  color: var(--ink-2);
}
.btn-quiet {
  padding: .3rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-quiet:hover { border-color: var(--accent); color: var(--ink); }

.reg-summary {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  text-align: left;
  font-size: .9rem;
}
.reg-summary dt {
  font-weight: 650;
  color: var(--ink-3);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .6rem;
}
.reg-summary dt:first-of-type { margin-top: 0; }
.reg-summary dd { margin: .15rem 0 0; color: var(--ink); }

/* Beta-access banner on /interest/ — full border, tinted, not a stripe. */
.banner {
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-soft);
  padding: 1.4rem 1.5rem;
  text-align: center;
  margin-bottom: 1.75rem;
}
.banner h3 { margin-bottom: .35rem; }
.banner p { color: var(--ink-2); font-size: .92rem; margin-bottom: 1rem; }

.hidden { display: none !important; }

/* ── Carousel section chrome (home) ──────────────────────────────
   assets/css/carousel.css owns the carousel itself; this only places
   the block on the page. */

.carousel-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* carousel.css paints .app-showcase navy and sets color: on the section,
   but the token blocks inside it (.section-head p, .muted) resolve to the
   PAGE ink, which is near-black in light mode. Scope the on-navy
   treatment here so the band is readable in both themes. */
.app-showcase { position: relative; z-index: 0; }
.app-showcase .section-head p,
.app-showcase .muted { color: rgba(255, 255, 255, .68); }
.app-showcase .section-head { position: relative; z-index: 2; }
.app-showcase a { color: var(--gold-light); }
.showcase-note {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 1.35rem;
  font-size: .92rem;
  color: rgba(255, 255, 255, .68);
}

/* Per-slide caption — the re-curated reel labels each screen with the
   role it belongs to (ra-l7f6.1 Decision E). Rendered below the phone
   frame, because .carousel-screen clips its own children. */
.carousel-caption { position: relative; z-index: 2; text-align: center; margin-top: 1.1rem; min-height: 3.4rem; }
.carousel-caption__role {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  /* On-navy, so the accent tokens don't apply — gold reads on navy and
     keeps the band tied to the brand rather than a role colour. */
  color: var(--gold-light);
  background: rgba(212, 168, 67, .16);
  border: 1px solid rgba(212, 168, 67, .4);
  border-radius: 99px;
  padding: .18rem .6rem;
}
.carousel-caption__text {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.foot {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, .68);
  padding: 2.5rem 0 2rem;
  font-size: .87rem;
}
.foot a { color: rgba(255, 255, 255, .68); }
.foot a:hover { color: var(--gold); }
.foot-cols {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}
.foot h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .6rem;
}
.foot ul { list-style: none; display: grid; gap: .35rem; }
.foot-base {
  max-width: var(--wide);
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  font-size: .82rem;
}

/* ── Motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .role-card:hover, .btn:hover { transform: none; }
}
