/* ==========================================================================
   PushFit User Guide
   The design language is the app's: one idea, everywhere: the rep is a
   circle, the effort is a wave. Two worlds: the Arena (deep navy, doing)
   and the Ledger (near-black, reviewing). One accent, never decoration.
   ========================================================================== */

@font-face {
  font-family: "Montserrat Brand";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2"),
       url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Brand";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"),
       url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Canvas */
  --arena: #001229;          /* UIColor.pushUpBackgroundColor */
  --arena-lift: #101f35;     /* pushUpButtonBackgroundColor */
  --ledger: #0c0c0e;         /* the reviewing world */
  --ledger-lift: #151517;

  /* Ink */
  --ink: #f4f5f7;
  --ink-soft: rgba(244, 245, 247, 0.68);
  --ink-faint: rgba(244, 245, 247, 0.44);

  /* Accent: the user's effort. Deep is the app's real theme blue. */
  --accent-deep: #005cdb;
  --accent: #2f81ff;
  --accent-glow: rgba(47, 129, 255, 0.16);

  /* Roles borrowed from the app */
  --vital: #ff2d55;
  --destructive: #f2002d;
  --delta-up: #2daa4c;
  --gold: #f0b429;

  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.075);

  --shell: 1180px;
  --measure: 43rem;
  --rail: 244px;
  --header: 60px;

  --font-display: "Montserrat Brand", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ledger);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--ledger);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* height:auto is load-bearing: the hero images carry width/height attributes
   for layout stability, and without this the literal pixel height wins. */
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-deep); color: #fff; }

/* --------------------------------------------------------------------------
   The ribbon. The permanent brand mark: 45°, top-left, two tones. Never
   conditional, never repositioned, never a second angle.
   -------------------------------------------------------------------------- */
.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 104px;
  height: 104px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  left: -46px;
  width: 196px;
  transform: rotate(-45deg);
  transform-origin: center;
}
/* Two tones, accent over black, adjacent and parallel across the corner. */
.ribbon::before {
  top: 12px;
  height: 26px;
  background: var(--accent-deep);
}
.ribbon::after {
  top: 38px;
  height: 15px;
  background: rgba(0, 0, 0, 0.56);
}
.ribbon[data-tone="soft"]::before { background: var(--accent-deep); opacity: 0.9; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand .kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}

.header-spacer { flex: 1; }

.header-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.header-link:hover { color: var(--ink); text-decoration: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Shell: sticky chapter rail + content
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--header) + 26px);
  padding: 34px 0 60px;
  max-height: calc(100vh - var(--header) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.rail h2 {
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px 12px;
}
.rail ol { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: chapter; }
.rail li { counter-increment: chapter; }
.rail a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.35;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.rail a::before {
  content: counter(chapter, decimal-leading-zero);
  font: 600 10px/1 var(--font-display);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  flex: none;
}
.rail a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.rail a[aria-current="page"] {
  background: var(--accent-glow);
  color: #fff;
  font-weight: 600;
}
.rail a[aria-current="page"]::before { color: var(--accent); }

.rail .rail-aside {
  margin: 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.rail .rail-aside a { display: inline; padding: 0; color: var(--accent); }
.rail .rail-aside a::before { content: none; }

main { padding: 34px 0 40px; min-width: 0; }

/* --------------------------------------------------------------------------
   Chapter hero
   -------------------------------------------------------------------------- */
.chapter-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 58px 40px 52px 64px;
  margin-bottom: 56px;
  background:
    radial-gradient(120% 140% at 88% 4%, rgba(0, 92, 219, 0.30) 0%, transparent 58%),
    linear-gradient(168deg, #05203f 0%, var(--arena) 58%, #000a17 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.chapter-hero .eyebrow {
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}
.chapter-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.chapter-hero .deck {
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
  max-width: 46ch;
}

/* Jump chips under the hero */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.jump a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
}
.jump a:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
section { scroll-margin-top: calc(var(--header) + 22px); }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 3.4vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 76px 0 18px;
  max-width: 22ch;
}
h2:first-child { margin-top: 0; }

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  scroll-margin-top: calc(var(--header) + 22px);
}

h4 {
  font: 700 12px/1.3 var(--font-body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 30px 0 10px;
}

p, ul, ol, dl { max-width: var(--measure); }
p { margin: 0 0 18px; color: rgba(244, 245, 247, 0.86); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink); }

ul, ol { padding-left: 22px; margin: 0 0 20px; }
li { margin: 0 0 9px; color: rgba(244, 245, 247, 0.86); }
li::marker { color: var(--accent); }

strong { color: #fff; font-weight: 600; }
em { color: var(--ink); }

hr {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 56px 0;
  max-width: var(--measure);
}

code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-hi);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
}

/* A named path through the app: Settings › Counting › Face Detection */
.path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.94em;
  font-weight: 600;
  color: var(--ink);
}
.path span { white-space: nowrap; }
.path span + span::before {
  content: "›";
  color: var(--ink-faint);
  padding-right: 6px;
  font-weight: 400;
}

/* Anchor affordance */
.anchor {
  margin-left: 10px;
  font-size: 0.55em;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  vertical-align: middle;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.anchor:hover { text-decoration: none; color: var(--accent); }

/* --------------------------------------------------------------------------
   Device frames
   -------------------------------------------------------------------------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 268px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(150deg, #4a4d55 0%, #16181c 24%, #0a0b0d 62%, #34373d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 28px 60px -22px rgba(0, 0, 0, 0.85),
    0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.phone > img,
.phone > video {
  width: 100%;
  height: auto;
  border-radius: 34px;
  display: block;
  background: var(--arena);
}
.phone > video { object-fit: cover; }

/* A screen recording reads as a demo, so it says so on the frame. */
.shot-live { position: relative; }
.shot-live::before {
  content: "LIVE RECORDING";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font: 700 9.5px/1 var(--font-body);
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.8);
}
.phone::after {
  /* Dynamic Island, drawn over the capture so the frame reads as hardware. */
  content: "";
  position: absolute;
  top: 1.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 3.6%;
  min-height: 14px;
  background: #000;
  border-radius: 999px;
  pointer-events: none;
}
.phone[data-island="off"]::after { content: none; }

.watch {
  position: relative;
  width: 100%;
  max-width: 208px;
  margin: 0 auto;
  padding: 12px 12px;
  border-radius: 52px;
  background: linear-gradient(150deg, #5a5d64 0%, #1b1d21 26%, #0a0b0d 64%, #3a3d43 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 22px 46px -18px rgba(0, 0, 0, 0.85);
}
.watch > img {
  width: 100%;
  height: auto;
  border-radius: 42px;
  display: block;
  background: #000;
}
.watch::after {
  /* Digital Crown */
  content: "";
  position: absolute;
  right: -5px;
  top: 30%;
  width: 6px;
  height: 15%;
  border-radius: 3px;
  background: linear-gradient(180deg, #6d7076, #26282c);
}

/* Widget / card render: no hardware, just the artefact on its wallpaper */
.plate {
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(0, 92, 219, 0.22), transparent 60%),
    linear-gradient(160deg, #10141d, #05070c);
  border: 1px solid var(--line-soft);
}
.plate img { margin: 0 auto; border-radius: 16px; }

/* --------------------------------------------------------------------------
   Figures & galleries
   -------------------------------------------------------------------------- */
figure { margin: 0; }

figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
figcaption b {
  display: block;
  color: var(--ink-soft);
  font: 700 10.5px/1.4 var(--font-body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Text beside a device, alternating sides on desktop */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 46px;
  align-items: start;
  margin: 34px 0 48px;
}
/* Top aligned, because a reader's eye should start on the same line in both
   columns. The device is nudged down to sit on the text's cap height. */
.split-media { padding-top: 6px; }
.split[data-flip] { grid-template-columns: 288px minmax(0, 1fr); }
.split[data-flip] > .split-media { order: -1; }
.split p:last-child, .split ul:last-child { margin-bottom: 0; }
.split .split-body > :first-child { margin-top: 0; }

/* A row of devices that scrolls on small screens */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 26px;
  margin: 34px 0 44px;
}
.gallery.tight { gap: 26px 18px; }
.gallery .phone { max-width: 232px; }
.gallery .watch { max-width: 176px; }

.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Cards, notes, spec tables
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.card h4 { margin-top: 0; color: var(--ink-soft); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  border: 1px solid rgba(47, 129, 255, 0.28);
  margin-bottom: 14px;
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
}

.note {
  position: relative;
  max-width: var(--measure);
  margin: 26px 0 30px;
  padding: 18px 20px 18px 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.note::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--font-display);
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(47, 129, 255, 0.3);
}
.note p { margin: 0; max-width: none; }
.note p + p { margin-top: 10px; }
.note strong { color: #fff; }
.note[data-kind="privacy"]::before { content: "🔒"; font-size: 11px; background: rgba(45,170,76,.14); border-color: rgba(45,170,76,.32); }
.note[data-kind="pro"]::before { content: "★"; color: var(--gold); background: rgba(240,180,41,.14); border-color: rgba(240,180,41,.32); }
.note[data-kind="warn"]::before { content: "!"; color: var(--destructive); background: rgba(242,0,45,.14); border-color: rgba(242,0,45,.34); }

.spec {
  width: 100%;
  max-width: var(--measure);
  border-collapse: collapse;
  margin: 22px 0 34px;
  font-size: 15px;
}
.spec caption {
  text-align: left;
  font: 700 11px/1.4 var(--font-body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
}
.spec th, .spec td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec thead th {
  font: 700 11px/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--line);
}
.spec tbody th { color: #fff; font-weight: 600; width: 34%; }
.spec td { color: var(--ink-soft); }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec .default {
  display: inline-block;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-scroll .spec { max-width: none; min-width: 480px; }

/* Definition-style list for "what each number means" */
.terms { max-width: var(--measure); margin: 20px 0 32px; }
.terms > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.terms > div:last-child { border-bottom: 0; }
.terms dt { font-weight: 600; color: #fff; }
.terms dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Theme swatch row */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; padding: 0; list-style: none; }
.swatches li { margin: 0; text-align: center; font-size: 12px; color: var(--ink-faint); }
.swatches i {
  display: block;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 6px 16px -6px rgba(0,0,0,.7);
}

/* Wave rule , the effort is a wave */
.wave {
  display: block;
  width: 100%;
  max-width: var(--measure);
  height: 22px;
  margin: 52px 0;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Home (guide index) specifics
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 72px 44px 0 64px;
  background:
    radial-gradient(100% 120% at 84% 0%, rgba(0, 92, 219, 0.34) 0%, transparent 56%),
    linear-gradient(170deg, #06254a 0%, var(--arena) 52%, #00060f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-home h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.hero-home .deck {
  font-size: clamp(17px, 2.1vw, 20px);
  color: rgba(255, 255, 255, 0.76);
  max-width: 50ch;
  margin: 0 0 34px;
}
.hero-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 16px;
  padding-bottom: 0;
}
.hero-fan .phone { max-width: 216px; margin: 0 -22px; }
.hero-fan .phone:nth-child(1) { transform: rotate(-7deg) translateY(26px) scale(0.9); z-index: 1; }
.hero-fan .phone:nth-child(2) { transform: translateY(0); z-index: 3; }
.hero-fan .phone:nth-child(3) { transform: rotate(7deg) translateY(26px) scale(0.9); z-index: 1; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
  margin: 28px 0 48px;
  padding: 0;
  list-style: none;
  max-width: none;
}
.chapter-grid li { margin: 0; }
.chapter-grid a {
  display: block;
  height: 100%;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.chapter-grid a:hover {
  text-decoration: none;
  transform: translateY(-3px);
  background: var(--surface-hi);
  border-color: rgba(47, 129, 255, 0.35);
}
.chapter-grid .num {
  font: 600 11px/1 var(--font-display);
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.chapter-grid strong { display: block; font-size: 17.5px; margin-bottom: 6px; font-weight: 600; }
.chapter-grid span.desc { display: block; font-size: 14.5px; color: var(--ink-faint); line-height: 1.5; }

/* Big stat strip */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 18px;
  margin: 34px 0 20px;
  padding: 0;
  list-style: none;
  max-width: none;
}
.figures li {
  margin: 0;
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.figures b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.figures span {
  display: block;
  margin-top: 6px;
  font: 700 10.5px/1.4 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Video */
.clip {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
}
.clip video { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Next / prev
   -------------------------------------------------------------------------- */
.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 76px 0 20px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.pager a {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
}
.pager a:hover { text-decoration: none; background: var(--surface-hi); border-color: rgba(47,129,255,.32); }
.pager small {
  display: block;
  font: 700 10.5px/1.4 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.pager b { font-weight: 600; font-size: 16.5px; }
.pager .next { text-align: right; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 38px 20px 54px;
  background: #08080a;
}
.site-footer .inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-soft); font-size: 14px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { color: var(--ink-faint); font-size: 13px; margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --rail: 210px; }
  .shell { gap: 34px; }
  .split { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
  .split[data-flip] { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 18px; gap: 0; }

  .menu-toggle { display: inline-flex; }

  .rail {
    position: fixed;
    inset: var(--header) 0 auto 0;
    max-height: min(72vh, 640px);
    padding: 18px 14px 26px;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    z-index: 55;
    display: none;
    box-shadow: 0 22px 40px -18px rgba(0,0,0,.9);
  }
  .rail.open { display: block; }
  .rail ol { margin-bottom: 16px; }

  main { padding: 26px 0 30px; }

  .chapter-hero { padding: 46px 24px 40px 30px; border-radius: 22px; margin-bottom: 44px; }
  .hero-home { padding: 56px 24px 0 30px; border-radius: 22px; }
  .ribbon { width: 84px; height: 84px; }
  .ribbon::before, .ribbon::after { left: -38px; width: 160px; }
  .ribbon::before { top: 8px; height: 21px; }
  .ribbon::after { top: 29px; height: 12px; }

  h2 { margin-top: 58px; }

  .split, .split[data-flip] { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split[data-flip] > .split-media { order: 0; }
  .split-media { max-width: 262px; margin: 0 auto; }

  .gallery, .gallery-3, .gallery-2 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px 16px;
  }
  .gallery .phone { max-width: 100%; }

  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .hero-fan .phone { max-width: 148px; margin: 0 -14px; }

  .pager .next { text-align: left; }
}

@media (max-width: 480px) {
  .brand .kicker { display: none; }
  .gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-hero { padding: 44px 20px 34px 26px; }
  .hero-home { padding: 52px 20px 0 26px; }
}

/* Print: support agents sometimes send PDFs */
@media print {
  .site-header, .rail, .pager, .site-footer, .jump { display: none !important; }
  body { background: #fff; color: #000; }
  .chapter-hero, .hero-home { background: #f2f4f7; color: #000; border: 0; }
  p, li, td { color: #222 !important; }
  h1, h2, h3, strong { color: #000 !important; }
}
