/* ==========================================================================
   Chavoloop — design system

   Bento-box dark theme with gold accents, modelled on the Openable.dev
   launch page (One Page Love, Apr 2026). The signature moves:

     · a floating pill navigation bar rather than a full-width header
     · flat near-black page with content surfaced only on rounded cards
     · every card carries a warm amber glow bleeding up from its bottom edge
     · section headings set in gold, with a grey standfirst underneath
     · big tight-tracked display type in Host Grotesk

   Host Grotesk is self-hosted (OFL) so the strict `font-src 'self'` content
   policy in server.js stays untouched — no external origin is contacted.
   ========================================================================== */

/* ------------------------------------------------------------------ font */

/* Variable font, 300–800, one file per subset. */
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/host-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/host-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* Flat neutral near-black — no blue cast, no texture. */
  --bg: #191919;
  --bg-lift: #1e1e1e;
  --card: #242424;
  --card-2: #2b2b2b;

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-hi: rgba(255, 255, 255, 0.16);

  --ink: #ffffff;
  --ink-soft: #b4b4b4;
  --ink-mute: #7c7c7c;
  --ink-dim: #5a5a5a;

  /* Gold: solid fill for buttons, lighter tint for display type. */
  --gold: #c17a18;
  --gold-hi: #dd9227;
  --gold-tint: #d7a96e;
  --gold-soft: rgba(193, 122, 24, 0.14);
  --glow: rgba(206, 129, 26, 0.5);

  --warn: #e0a23f;
  --good: #4ec08a;

  --col: 1080px;
  --gap: 18px;
  --r-card: 20px;
  --r-sm: 12px;

  --sans: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  /* The decorative rings beside the steps bleed past the viewport edge on
     purpose. `clip` contains them without creating a scroll container, so the
     sticky pill nav keeps working — `hidden` here would break it. */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-tint); }
/* Body copy keeps underlines; navigation and buttons opt out via their own
   rules above, so links inside prose stay obviously clickable. */
p a, li a, dd a, td a, .qa-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(215, 169, 110, 0.45); }

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

.skip {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 90;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- structure */

.shell {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px 90px;
}

/* `.column` used to be a raised panel wrapping the whole page. In this design
   the page itself is the surface and only cards are raised, so it survives
   purely as a layout passthrough. */
.column { background: none; box-shadow: none; border: 0; }

.band { padding: 54px 0; position: relative; }
.band--tight { padding: 34px 0; }
.band--flush { padding: 0; }

/* Generic grid helpers; single column until the desktop breakpoint. */
.grid-cards, .grid-2, .grid-3, .bento, .qa-list { display: grid; gap: var(--gap); }

/* ---------------------------------------------------- floating pill nav */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 20px;
  background: linear-gradient(var(--bg) 55%, rgba(25, 25, 25, 0));
}

.masthead {
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Segment 1 — the logo sits in its own pill, detached from the links. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); border-color: var(--line-hi); }
.wordmark .mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--gold);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  flex: none;
}
.wordmark .mark::after { content: 'CL'; letter-spacing: -0.04em; }

/* Segment 2 — links and the primary call to action share one pill. */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-right: auto;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.nav .navcta {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  margin-left: 8px;
}
.nav .navcta:hover { background: var(--gold-hi); color: #fff; }

/* -------------------------------------------------------------- 18+ mark */

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(224, 162, 63, 0.4);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.age:hover { color: var(--warn); border-color: var(--warn); }
.age--lg { width: 56px; height: 56px; font-size: 16px; }

/* -------------------------------------------------------------- headings */

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}

/* The section heading. Set in gold, sentence case, sized like a display
   line rather than the small uppercase eyebrow it replaces. */
.label {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--gold-tint);
  margin: 0 0 20px;
}
.label--mute {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero h1 { font-size: 38px; margin: 0 0 18px; }
h2 { font-size: 26px; }
h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 8px; }

/* Was a purple highlight block; now simply tints the phrase gold, which is
   how the reference splits a headline across two colours. */
.mark-hl { color: var(--gold-tint); background: none; padding: 0; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 16px; color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.65; color: var(--ink-mute); }
.tiny { font-size: 12px; line-height: 1.6; color: var(--ink-dim); }
strong, b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ hero */

.hero { padding-top: 46px; padding-bottom: 44px; }
.hero .eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.hero .hero-sub { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 24px; }

/* Warm bloom behind the hero, matching the amber wash in the reference. */
.hero::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -70px;
  width: 620px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.chip--warn { color: var(--warn); border-color: rgba(224, 162, 63, 0.35); }
a.chip:hover { border-color: var(--line-hi); color: var(--ink); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  background: var(--gold);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--gold-hi); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-hi); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--ink-mute); color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn + .btn { margin-left: 10px; }

.btn-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-dim); line-height: 1.55; }

/* ------------------------------------------------------------------ cards */

/* The bento card. Every raised surface on the page is one of these: brand
   cards, feature tiles, the licence block and the closing call to action. */
.card,
.brand {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
}

/* Warm amber glow bleeding up from the bottom edge — the detail that makes
   the reference read as "bento" rather than as plain cards. */
.card::after,
.brand::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -55%;
  width: 78%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(38px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.25s ease;
}
.card:hover::after,
.brand:hover::after { opacity: 0.6; }
.brand:hover { border-color: var(--line-hi); }
.card--flat::after { display: none; }

.brand { margin-bottom: var(--gap); }
.brand:last-of-type { margin-bottom: 0; }

.brand-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }

.logo-tile {
  flex: none;
  width: 118px; height: 56px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 9px;
}
/* Explicit pixel caps rather than max-height:100% — the brand logos have
   different intrinsic ratios and percentage caps let the taller one overflow. */
.logo-tile img { max-height: 36px; width: auto; object-fit: contain; }
.logo-tile--wide { width: 100%; height: auto; min-height: 104px; padding: 22px 26px; margin-bottom: 24px; }
.logo-tile--wide img { max-height: 58px; }

.brand-id { min-width: 0; }
.brand-id h3 { margin: 0 0 3px; font-size: 19px; }
.brand-id p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-mute); }

.rank { flex: none; margin-left: auto; text-align: right; }
.rank .num { font-size: 30px; font-weight: 700; color: var(--gold-tint); line-height: 1; letter-spacing: -0.03em; }
.rank .out { font-size: 11.5px; color: var(--ink-dim); font-weight: 500; }

.stars { color: var(--gold-tint); font-size: 13px; letter-spacing: 1px; }

/* --------------------------------------------------------------- bento */

/* Feature tiles: a compact card with a gold rule above the heading. */
.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  overflow: hidden;
}
.tile h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.tile p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }
.tile::before {
  content: '';
  position: absolute;
  left: 26px; top: 0;
  width: 34px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

/* ---------------------------------------------------------------- scores */

.bars { margin: 0; }
.bar-row { margin-bottom: 15px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 7px; }
.bar-head .k { color: var(--ink-soft); }
.bar-head .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
/* The fill is a <span>; without an explicit block display the width set
   inline by the template is ignored and the bar renders empty. */
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-tint));
}

/* ----------------------------------------------------------------- lists */

.chev { list-style: none; margin: 0; padding: 0; }
.chev li { position: relative; padding-left: 32px; margin-bottom: 14px; min-height: 22px; }
.chev li:last-child { margin-bottom: 0; }
.chev + .btn, .chev + .notice, .steps + .btn { margin-top: 26px; }
.chev li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
}
.chev li::after {
  content: '';
  position: absolute;
  left: 7px; top: 8px;
  width: 5px; height: 5px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(-45deg);
}
.chev--good li::before { border-color: rgba(78, 192, 138, 0.45); }
.chev--good li::after { border-color: var(--good); }
.chev--bad li::before { border-color: rgba(224, 162, 63, 0.45); }
.chev--bad li::after {
  border: 0;
  left: 6px; top: 12px;
  width: 9px; height: 1.5px;
  background: var(--warn);
  transform: none;
}

.plain { margin: 0 0 16px; padding-left: 20px; }
.plain li { margin-bottom: 9px; }
.plain li:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- steps */

/* Big numbered steps: a small gold ordinal above an oversized heading. */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; margin-bottom: 40px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-tint);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.steps h3 { font-size: 27px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-mute); }

/* ---------------------------------------------------------------- tables */

/* `table-layout: fixed` is deliberate: with auto layout a long value such as
   a payment-method list sets a min-content width the table cannot honour on a
   narrow screen, and the page picks up a horizontal scrollbar. */
.facts { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font-weight: 400; color: var(--ink-mute); width: 46%; padding-right: 16px; }
.facts td { color: var(--ink); font-weight: 500; }
.facts th, .facts td { word-break: break-word; }
.brand .facts { font-size: 13px; }
.brand .facts th, .brand .facts td { padding: 10px 0; }

.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare thead th { font-size: 12px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; text-transform: none; }
.compare tbody th { font-weight: 400; color: var(--ink-mute); }
.compare td { color: var(--ink); font-weight: 500; }
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------- callouts */

.licence {
  position: relative;
  border: 1px solid rgba(78, 192, 138, 0.28);
  background: rgba(78, 192, 138, 0.05);
  border-radius: var(--r-card);
  padding: 26px 28px;
  overflow: hidden;
}
.licence .label { font-size: 14px; font-weight: 600; color: var(--good); margin-bottom: 16px; letter-spacing: 0; }
.licence dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; }
.licence dt { color: var(--ink-mute); }
.licence dd { margin: 0; color: var(--ink); font-weight: 500; }
.licence .num { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

.callout {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

.notice {
  border: 1px solid rgba(224, 162, 63, 0.28);
  background: rgba(224, 162, 63, 0.05);
  border-radius: var(--r-card);
  padding: 22px 24px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.notice strong { color: var(--warn); }

/* ------------------------------------------------------- FAQ accordion */

/* Hairline rows with a rotating plus sign — no card, no fill. */
.qa { border-bottom: 1px solid var(--line-soft); }
.qa:first-of-type { border-top: 1px solid var(--line-soft); }
.qa > summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.qa > summary::-webkit-details-marker { display: none; }
/* Plus sign built from two bars; the vertical one rotates away on open. */
.qa > summary::before,
.qa > summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 1.5px;
  background: var(--ink-mute);
  transition: transform 0.25s ease, background 0.25s ease;
}
.qa > summary::before { transform: translateY(-50%); }
.qa > summary::after { transform: translateY(-50%) rotate(90deg); }
.qa[open] > summary::after { transform: translateY(-50%) rotate(0deg); }
.qa[open] > summary { color: var(--gold-tint); }
.qa[open] > summary::before,
.qa[open] > summary::after { background: var(--gold-tint); }
.qa .qa-body { padding: 0 40px 22px 0; font-size: 14px; color: var(--ink-mute); }

/* ----------------------------------------------------------------- forms */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  padding: 14px 20px;
}
.textarea { min-height: 150px; resize: vertical; border-radius: var(--r-card); }
.select { appearance: none; border-radius: 999px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-dim); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold); outline: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; }
.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--gold); }

.alert { border-radius: var(--r-card); padding: 20px 24px; font-size: 14px; margin-bottom: 24px; }
.alert--bad { border: 1px solid rgba(224, 162, 63, 0.35); background: rgba(224, 162, 63, 0.06); }
.alert--good { border: 1px solid rgba(78, 192, 138, 0.35); background: rgba(78, 192, 138, 0.06); }
.alert ul { margin: 10px 0 0; padding-left: 18px; }
.alert li { margin-bottom: 5px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ----------------------------------------------------- closing call out */

.endcta {
  position: relative;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 52px 36px;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 20px;
}
.endcta::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -50%;
  width: 70%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}
.endcta h2 { font-size: 34px; margin: 0 0 14px; }
.endcta p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 26px; font-size: 14.5px; }
.endcta .btn + .btn { margin-left: 10px; }

/* ---------------------------------------------------------------- footer */

.footer { background: none; margin-top: 20px; border-top: 1px solid var(--line-soft); }
.footer .band { border: 0; }

/* Wide letter-spaced wordmark, as in the reference footer. */
.footmark {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 18px;
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
/* These sit in <li>s, so they would otherwise inherit the prose underline. */
.foot-nav a { font-size: 13.5px; color: var(--ink-mute); text-decoration: none; }
.foot-nav a:hover { color: var(--gold-tint); }
.foot-sep { color: var(--line-hi); user-select: none; }

.orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.org {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 9px 12px;
  transition: border-color 0.15s ease;
}
.org:hover { border-color: var(--line-hi); }
.org img { height: 22px; width: auto; }

.foot-age {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(224, 162, 63, 0.25);
  background: rgba(224, 162, 63, 0.04);
  border-radius: var(--r-card);
}
.foot-age p { margin: 0; font-size: 13.5px; line-height: 1.6; }

/* --------------------------------------------------------- cookie banner */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(660px, calc(100vw - 28px));
  background: var(--card);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  padding: 24px 26px;
  z-index: 80;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.cookie[data-open='true'] { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cookie h2 { font-size: 17px; margin: 0 0 10px; }
.cookie p { font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; color: var(--ink-mute); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   DESKTOP — 900px and up
   ========================================================================== */

@media (min-width: 900px) {
  :root { --gap: 20px; }

  body { font-size: 15.5px; }
  .shell { padding: 0 24px 110px; }

  .band { padding: 80px 0; }
  .band--tight { padding: 44px 0; }

  /* Running prose keeps a readable measure; grids and cards manage their own. */
  .band > p, .band > .callout, .band > .notice, .band > .plain, .band > .alert { max-width: 72ch; }

  .label { font-size: 38px; margin-bottom: 26px; }
  .label--mute { font-size: 13px; }
  h2 { font-size: 30px; }

  /* ---- hero: narrow left-aligned column, centred on the page ---- */

  /* The column is centred as a whole so every child shares one left edge —
     capping the children individually instead would indent the narrower ones. */
  .hero { max-width: 820px; margin: 0 auto; padding-top: 72px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(44px, 4.6vw, 62px); letter-spacing: -0.035em; }
  .hero .eyebrow { font-size: 15px; margin-bottom: 22px; }
  .hero .hero-sub { font-size: 16.5px; max-width: 660px; }
  .hero .hero-meta { margin-top: 30px; }
  .hero--brand .logo-tile--wide { max-width: 360px; margin-left: 0; }

  /* ---- bento grids ---- */

  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Bento rhythm from the reference: a full-width tile, then a pair of halves,
     repeating. With six tiles that tiles exactly, leaving no ragged row. */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > :nth-child(1),
  .bento > :nth-child(4) { grid-column: span 2; }

  .card, .brand { padding: 32px; }
  /* Cards stretch to equal height, so the call to action is pinned to the
     bottom to keep the button rows aligned across columns. */
  .grid-cards .brand { display: flex; flex-direction: column; margin-bottom: 0; }
  .grid-cards .brand > .btn { margin-top: auto; }
  .grid-cards .brand > .btn ~ .btn { margin-left: 0; margin-top: 10px; }

  /* ---- lists ---- */

  .band > .chev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; row-gap: 18px; }
  .band > .chev > li { margin-bottom: 0; }

  /* Steps sit in the right-hand column beside the decorative rings. */
  .steps-wrap { position: relative; }
  .band > .steps, .steps-wrap > .steps { max-width: 480px; margin-left: auto; }
  .steps li { margin-bottom: 56px; }
  .steps h3 { font-size: 36px; }
  .steps p { font-size: 14.5px; }

  /* Concentric rings bleeding off the left edge, as in the reference. */
  .steps-wrap::before,
  .steps-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
  }
  .steps-wrap::before {
    left: -320px; top: 0;
    width: 620px; height: 620px;
    border: 1px solid rgba(193, 122, 24, 0.3);
    box-shadow: 0 0 0 1px transparent, inset 0 0 0 120px transparent;
  }
  .steps-wrap::after {
    left: -460px; top: -60px;
    width: 900px; height: 900px;
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .band > .bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; row-gap: 18px; }
  .band > .bars > .bar-row { margin-bottom: 0; }

  .qa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 0; align-items: start; }
  .qa > summary { font-size: 16px; }

  .band > .facts { max-width: 820px; }
  .facts th { width: 36%; padding-right: 28px; }
  .band > form { max-width: 720px; }

  .endcta { padding: 72px 48px; margin-bottom: 24px; }
  .endcta h2 { font-size: 46px; }
  .endcta p { font-size: 15.5px; }

  .foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0 48px; }
  .foot-cols .foot-nav { flex-direction: column; gap: 11px; }
  .foot-cols .foot-sep { display: none; }
  .foot-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
  .foot-legal > .tiny:last-child { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line-soft); }
  .footmark { font-size: 34px; }
}

/* ==========================================================================
   WIDE DESKTOP — 1300px and up
   ========================================================================== */

@media (min-width: 1300px) {
  :root { --col: 1160px; }
  .band { padding: 96px 0; }
  .hero { padding-top: 92px; padding-bottom: 84px; }
}

/* ==========================================================================
   NARROW — under 900px
   ========================================================================== */

@media (max-width: 899px) {
  /* Pill bar wraps: logo and 18+ on the first row, links on their own. */
  .masthead { flex-wrap: wrap; gap: 8px; }
  .wordmark { order: 1; height: 46px; padding: 0 16px; font-size: 14px; }
  .age { order: 2; margin-left: auto; width: 46px; height: 46px; font-size: 11.5px; }
  .nav {
    order: 3;
    flex: 1 0 100%;
    height: auto;
    padding: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 0;
  }
  .nav a { font-size: 13px; padding: 7px 12px; }
  .nav .navcta { margin-left: 4px; padding: 9px 16px; }
}

@media (max-width: 600px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 10px 14px; }
  .band { padding: 44px 0; }
  .hero h1 { font-size: 32px; }
  .label { font-size: 25px; }
  h2 { font-size: 23px; }
  .steps h3 { font-size: 24px; }
  .endcta { padding: 40px 22px; }
  .endcta h2 { font-size: 27px; }
  .card, .brand, .tile { padding: 22px; }
  .btn { width: 100%; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
  /* Keep logo, name and score on one row. Letting this wrap made cards with
     longer taglines break differently from their neighbours. */
  .brand-top { flex-wrap: nowrap; gap: 12px; }
  .logo-tile { width: 84px; height: 46px; padding: 7px; }
  .logo-tile img { max-height: 30px; }
  .brand-id h3 { font-size: 17px; }
  .rank { margin-left: auto; }
  .rank .num { font-size: 24px; }
  .footmark { font-size: 20px; letter-spacing: 0.28em; }
}

@media print {
  body { background: #fff; color: #000; }
  .cookie, .topbar { display: none; }
  .card::after, .brand::after, .endcta::after, .hero::before { display: none; }
}
