/* Corporate Goals Tracker landing — "Marcador": a printed scoreboard.
   Ultramarine ink on bone paper, hard black rules, nearly square corners, condensed capitals.
   Signature element: the progress bar with a black tick for the expected pace (.bar). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed_700Bold.ttf") format("truetype"); }

:root {
  --paper: #f1eee6;
  --paper-deep: #e6e2d6;
  --track: #e2ded2;
  --surface: #ffffff;
  --ink: #14161f;
  --ink-soft: #4d5160;
  --ultra: #1f35d8;
  --ultra-deep: #1526a3;
  --ultra-tint: #aebaff;
  --green: #12805a;
  --amber: #b86e00;
  --red: #d2331f;
  --rule: 3px solid var(--ink);
  --rule-heavy: 10px solid var(--ink);
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.2vw, 60px);
  --block: clamp(64px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ultra); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .maths :focus-visible, .download :focus-visible, .foot :focus-visible,
.doc-head :focus-visible, .lost :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- shared pieces ---------- */

.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.label::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--ultra); }
.label--light::before { background: #fff; }

.fine { margin-top: 20px; max-width: 78ch; font-size: 0.975rem; color: var(--ink-soft); }
.fine a { color: var(--ink); }

.arrow { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ultra); }
.arrow::after { content: " →"; }
.arrow:hover { color: var(--ink); }

/* The bar. --progress and --expected come from the markup. */
.bar { position: relative; height: 18px; background: var(--track); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--progress); background: var(--ultra); }
.bar__tick { position: absolute; top: -6px; bottom: -6px; left: var(--expected); width: 5px; margin-left: -2.5px; background: var(--ink); }
.bar--green .bar__fill { background: var(--green); }
.bar--amber .bar__fill { background: var(--amber); }
.bar--red .bar__fill { background: var(--red); }
.bar--white { background: var(--ultra-deep); }
.bar--white .bar__fill { background: #fff; }
.bar--lg { height: 28px; }
.bar--lg .bar__tick { top: -9px; bottom: -9px; width: 7px; margin-left: -3.5px; }
.bar--xl { height: clamp(34px, 4.4vw, 60px); }
.bar--xl .bar__tick { top: -14px; bottom: -14px; width: clamp(8px, 0.9vw, 12px); margin-left: calc(clamp(8px, 0.9vw, 12px) / -2); }

/* Google Play call to action */
.cta__button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px 26px;
  border: 3px solid var(--ink); border-radius: 3px;
  background: var(--ultra); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.1;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
a.cta__button:hover { background: var(--ink); color: #fff; }
.cta__icon { flex: none; width: 24px; height: 24px; }
.cta__button--soon { background: transparent; color: var(--ink); border: 2px dashed var(--ink); cursor: default; }
.cta__note { margin-top: 12px; max-width: 44ch; font-size: 0.975rem; color: var(--ink-soft); }
.cta--light .cta__button { background: #fff; color: var(--ink); }
.cta--light a.cta__button:hover { background: var(--ink); color: #fff; }
.cta--light .cta__button--soon { background: transparent; color: #fff; border-color: #fff; }
.cta--light .cta__note { color: #fff; opacity: 0.9; }

.button {
  display: inline-flex; align-items: center; min-height: 56px; padding: 8px 24px;
  border: 3px solid var(--ink); border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
}
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--ink); color: #fff; }
.button--outline { border-color: #fff; color: #fff; }
.button--outline:hover { background: #fff; color: var(--ink); }

/* ---------- header ---------- */

.top { background: var(--paper); border-bottom: var(--rule); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { flex: none; width: 34px; height: 34px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.top__nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.top__nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--ultra); box-shadow: inset 0 -4px 0 var(--ultra); }

/* ---------- hero: the billboard ---------- */

.hero { background: var(--ultra); color: #fff; padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); border-bottom: var(--rule-heavy); }
.hero__title {
  margin-top: clamp(18px, 2.4vw, 32px);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.9rem, 15vw, 11.5rem); line-height: 0.88; letter-spacing: -0.005em;
}
.hero__title span { display: block; }
.hero__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(28px, 3.4vw, 48px); }
.hero__lede { max-width: 58ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; }

.score { margin-top: clamp(40px, 5.5vw, 80px); }
.score__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; }
.score__caption { font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.score__value { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; }
.score__status { margin-left: auto; font-weight: 500; font-size: 1.0625rem; }
.score__bar { position: relative; margin-top: 14px; padding-top: 40px; padding-bottom: 14px; }
.score__tick {
  position: absolute; top: 0; right: calc(100% - var(--expected)); padding-right: 14px;
  font-weight: 500; font-size: 1.0625rem; line-height: 1.3; white-space: nowrap;
}
.score__source { margin-top: 10px; font-size: 0.95rem; opacity: 0.9; }

/* ---------- screens: the interface under the rule, frameless ---------- */

.screens { background: var(--paper-deep); border-bottom: var(--rule); padding-bottom: clamp(28px, 3.5vw, 44px); }
.screens__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); align-items: start; }
.screens__crop { overflow: hidden; border: 2px solid var(--ink); border-top: 0; background: var(--paper); }
.screens__crop img { width: 100%; }
/* Three columns of falling height, like the three bars of the mark. */
.screens__item--1 .screens__crop { aspect-ratio: 760 / 1220; }
.screens__item--2 .screens__crop { aspect-ratio: 760 / 1000; }
.screens__item--3 .screens__crop { aspect-ratio: 760 / 780; }
.screens figcaption {
  margin-top: 14px; padding-left: 14px; border-left: 6px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.1; text-transform: uppercase;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: clamp(28px, 3.4vw, 44px); padding-top: 18px; border-top: 1px solid var(--ink); }
.facts li { font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.facts li + li::before { content: "/"; margin: 0 16px; color: var(--ultra); }

/* ---------- generic content block ---------- */

.block { padding-block: var(--block); }
.block__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.block__title {
  margin-top: 18px; max-width: 16ch;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 5.4vw, 4.75rem); line-height: 0.95;
}
.block__title--wide { max-width: 24ch; }
.block__intro p + p, .block__lede + p { margin-top: 14px; }
.block__lede { margin-top: 22px; max-width: 56ch; }

/* ---------- pace: the scoreboard table ---------- */

.board { border-top: var(--rule); border-bottom: var(--rule); }
.board__row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 250px); gap: 16px clamp(24px, 4vw, 64px); align-items: center; padding: 30px 0; border-top: 1px solid var(--ink); }
.board__row--head { padding: 12px 0; border-top: 0; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.board__state { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 2.25rem; line-height: 1; text-transform: uppercase; }
.board__state::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; }
.board__row--green .board__state { color: var(--green); }
.board__row--amber .board__state { color: var(--amber); }
.board__row--red .board__state { color: var(--red); }
.board__what { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }
.board__figures { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.board__figures strong { font-family: var(--display); font-weight: 700; font-size: 2.75rem; line-height: 1; }
.board__figures span { font-size: 1rem; color: var(--ink-soft); text-align: right; }
.board__bar { padding-bottom: 9px; }
.board__points { font-family: var(--display); font-weight: 700; font-size: 2.75rem; line-height: 1; }
.board__rule { margin-top: 6px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- plan: the ladder ---------- */

.plan { background: var(--surface); border-block: var(--rule); }
.plan__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); align-items: start; }
.ladder { margin-top: 36px; }
.ladder__step {
  --indent: clamp(12px, 2.6vw, 40px);
  margin-left: calc(var(--depth) * var(--indent)); margin-top: -2px;
  padding: 14px 20px 16px; border: 2px solid var(--ink); border-left: 12px solid var(--ultra);
  background: var(--paper);
}
.ladder__step h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.ladder__step p { margin-top: 4px; font-size: 1.0625rem; }

.shot img { width: 100%; border: 2px solid var(--ink); border-radius: 5px; }
.shot figcaption { margin-top: 12px; font-size: 0.975rem; color: var(--ink-soft); }
.shot--dark img { border-color: #fff; }
.shot--dark figcaption { color: #d5d7e0; }

.types { grid-column: 1 / -1; padding-top: 28px; border-top: var(--rule); }
.types__title, .also__title { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.types__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 56px); margin-top: 18px; }
.types__list dt, .also__list dt { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; }
.types__list dd, .also__list dd { margin-top: 6px; font-size: 1.0625rem; }

/* ---------- maths: on ink ---------- */

.maths { background: var(--ink); color: #fff; }
.maths .block__intro { color: #d5d7e0; }
.maths__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.formulas { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.formulas__item { padding: 26px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.formulas__item h3 { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d5d7e0; }
.formulas__formula { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.7vw, 2.25rem); line-height: 1.1; color: var(--ultra-tint); }
.formulas__example { margin-top: 12px; max-width: 64ch; font-size: 1.0625rem; color: #e9eaef; }

/* ---------- tracking: stories with enlarged interface fragments ---------- */

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: var(--rule); }
.story--flip .story__text { order: 2; }
.story__kicker { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ultra); }
.story__title { margin: 10px 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.02; }
.story__text p + p { margin-top: 14px; }
.story__media { display: grid; gap: 16px; }
.frag { width: 100%; border: 2px solid var(--ink); border-radius: 5px; background: var(--paper); }

.report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; padding: clamp(40px, 5vw, 72px) 0; border-top: var(--rule); }
.report__sub { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.report__text .report__sub { margin-top: 28px; }
.report__actions { margin-top: 10px; }
.report__actions li { padding: 10px 0; border-top: 1px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.05em; text-transform: uppercase; }
.report__actions li:last-child { border-bottom: 1px solid var(--ink); }
.report__sheet { padding: clamp(20px, 2.6vw, 32px); background: var(--surface); border: 2px solid var(--ink); border-radius: 5px; }
.report__sections { margin-top: 12px; }
.report__sections li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--track); }
.report__sections li:first-child { border-top: 0; }
.report__sections strong { display: block; font-weight: 600; }
.report__sections small { display: block; font-size: 0.95rem; color: var(--ink-soft); }
.report__check { flex: none; position: relative; width: 26px; height: 26px; margin-top: 2px; background: var(--ultra); border-radius: 3px; }
.report__check::after { content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }

.also { padding-top: 28px; border-top: var(--rule); }
.also__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 44px); margin-top: 18px; }
.also__list dt { font-size: 1.5rem; }

/* ---------- fit ---------- */

.fit { background: var(--surface); border-block: var(--rule); }
.fit__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: clamp(32px, 4vw, 56px); border-top: var(--rule); }
.fit__col { padding: 28px 0 0; }
.fit__col--yes { padding-right: clamp(24px, 5vw, 72px); }
.fit__col--no { padding-left: clamp(24px, 5vw, 72px); border-left: 1px solid var(--ink); }
.fit__col h3 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.fit__col--yes h3 { color: var(--green); }
.fit__col--no h3 { color: var(--red); }
.fit__col ul { margin-top: 16px; }
.fit__col li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--track); }
.fit__col li::before { position: absolute; left: 0; top: 9px; font-family: var(--display); font-weight: 700; font-size: 1.75rem; }
.fit__col--yes li::before { content: "+"; color: var(--green); }
.fit__col--no li::before { content: "−"; color: var(--red); }

/* ---------- data tiles (the app's status tiles) ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.tiles__item { padding: 22px 20px 26px; background: var(--surface); border: 2px solid var(--ink); border-top: 14px solid var(--ink); border-radius: 5px; }
.tiles__item--red { border-top-color: var(--red); }
.tiles__item--amber { border-top-color: var(--amber); }
.tiles__item--green { border-top-color: var(--green); }
.tiles__item--blue { border-top-color: var(--ultra); }
.tiles__item h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.05; text-transform: uppercase; }
.tiles__item p { margin-top: 10px; font-size: 1.0625rem; }

/* ---------- download ---------- */

.download { background: var(--ultra); color: #fff; padding-block: var(--block); border-top: var(--rule-heavy); }
.download__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.download__title { margin-top: 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 7.4vw, 6.75rem); line-height: 0.9; }
.download__title span { display: block; }
.download__body { margin-bottom: 28px; font-size: 1.1875rem; }
.download__questions { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.5); }
.download a:not(.cta__button):hover { color: #fff; text-decoration-thickness: 3px; }

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

.foot { background: var(--ink); color: #d5d7e0; padding: clamp(44px, 5vw, 72px) 0 32px; font-size: 1.0625rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, 1.6fr); gap: 36px clamp(24px, 4vw, 64px); }
.brand--foot { color: #fff; margin-bottom: 10px; }
.foot__title { margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.foot__col li { margin-top: 2px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; }
.foot a:hover { color: var(--ultra-tint); }
.foot__mail { overflow-wrap: anywhere; font-weight: 600; }
.foot__dim { margin-top: 4px; font-size: 0.975rem; }
.foot__facts li { margin-top: 8px; }
.foot__base { margin-top: 40px; }
.foot__base p { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.28); max-width: none; font-size: 0.95rem; }

/* ---------- document pages (privacy, support, changelog) ---------- */

.doc-head { background: var(--ultra); color: #fff; padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 52px); border-bottom: var(--rule-heavy); }
.doc-head__title { margin-top: 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.5rem, 8vw, 6.5rem); line-height: 0.92; }
.doc-head__meta { margin-top: 20px; max-width: 64ch; font-size: 1.125rem; }

.doc { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--block); }
.doc__aside { position: sticky; top: 24px; }
.doc__aside-title { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.doc__toc { margin-top: 10px; border-top: var(--rule); counter-reset: toc; }
.doc__toc li { border-bottom: 1px solid var(--ink); counter-increment: toc; }
.doc__toc a { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 9px 0; font-size: 1rem; line-height: 1.3; text-decoration: none; }
.doc__toc a::before { content: counter(toc); flex: none; width: 1.4em; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ultra); }
.doc__body { max-width: 820px; min-width: 0; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__table + p, .doc__body p + .doc__table { margin-top: 14px; }
.doc__body ul li { position: relative; padding-left: 26px; margin-top: 10px; }
.doc__body ul li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 11px; height: 11px; background: var(--ultra); }
.doc__body a { color: var(--ultra); font-weight: 600; overflow-wrap: anywhere; }
.doc__body a:hover { color: var(--ink); }

.summary { padding: 24px clamp(18px, 2.6vw, 32px) 28px; background: var(--surface); border: 2px solid var(--ink); border-top: 14px solid var(--ultra); border-radius: 5px; }
.summary h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; text-transform: uppercase; }

.doc__section { margin-top: 48px; padding-top: 24px; border-top: var(--rule); scroll-margin-top: 16px; }
.doc__section h2 { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.08; }
.doc__num { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; background: var(--ink); color: #fff; font-size: 1.4rem; border-radius: 3px; }

.doc__table { border: 2px solid var(--ink); border-radius: 5px; background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--track); }
thead th { border-top: 0; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
tbody th { font-weight: 600; width: 34%; }

.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--block); }
.help h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; text-transform: uppercase; margin-bottom: 14px; }
.help h3 { margin-top: 36px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mailbox { display: block; margin-top: 22px; padding: 22px 24px 24px; background: var(--ultra); color: #fff; border: 3px solid var(--ink); border-radius: 3px; text-decoration: none; }
.mailbox:hover { background: var(--ink); color: #fff; }
.mailbox__label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; letter-spacing: 0.05em; text-transform: uppercase; }
.mailbox__label::after { content: " →"; }
.mailbox__address { display: block; margin-top: 6px; font-weight: 500; overflow-wrap: anywhere; }
.help__tips { margin-top: 6px; }
.help__tips li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--ink); }
.help__tips li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 11px; height: 11px; background: var(--ultra); }
.help__warning { margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-left: 12px solid var(--amber); font-size: 1.0625rem; }
.help__faq { min-width: 0; }
.faq { border-top: 1px solid var(--ink); }
.help__faq .faq:first-of-type { border-top: var(--rule); }
.help__faq .faq:last-of-type { border-bottom: var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 3px; background: var(--surface); font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.faq[open] summary::after { content: "−"; background: var(--ultra); color: #fff; }
.faq summary:hover { color: var(--ultra); }
.faq__answer { padding: 0 56px 22px 0; }
.faq__answer p + p { margin-top: 12px; }

.log { padding-block: clamp(40px, 5vw, 72px) var(--block); }
.log__release { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); padding: 28px 0 36px; border-top: var(--rule); border-bottom: var(--rule); }
.log__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 9vw, 7rem); line-height: 0.9; color: var(--ultra); }
.log__head p { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase; }
.log__items { max-width: 760px; }
.log__items li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--ink); }
.log__items li:first-child { border-top: 0; }
.log__items li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 11px; height: 11px; background: var(--ultra); }
.log .cta { margin-top: 36px; }

.lost { background: var(--ultra); color: #fff; padding: clamp(56px, 9vw, 128px) 0; border-bottom: var(--rule-heavy); }
.lost__title { margin-top: 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.8rem, 10vw, 8rem); line-height: 0.9; }
.lost__bar { position: relative; height: clamp(28px, 4vw, 48px); margin: 44px 0 36px; background: var(--ultra-deep); }
.lost__bar span { position: absolute; top: -12px; bottom: -12px; left: 62%; width: 10px; background: var(--ink); }
.lost__body { font-size: 1.25rem; }
.lost__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .bar--xl .bar__fill { animation: bar-grow 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
  .bar--xl .bar__tick, .score__tick { animation: tick-in 300ms ease-out 950ms both; }
  @keyframes bar-grow { from { width: 0; } }
  @keyframes tick-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- narrower screens ---------- */

@media (max-width: 1000px) {
  .block__head { align-items: start; }
  .board__row { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .board__row--head span:last-child { display: none; }
  .board__gap { grid-column: 2; display: flex; align-items: baseline; gap: 14px; }
  .board__points { font-size: 2rem; }
  .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; }
  .doc__toc { columns: 2; column-gap: 32px; }
  .doc__toc li { break-inside: avoid; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .top__row { padding-block: 6px 0; }
  .brand__name { font-size: 1.25rem; }
  .top__nav { width: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid var(--ink); }
  .top__nav a { font-size: 1rem; letter-spacing: 0.08em; }

  .hero__cols, .block__head, .plan__grid, .maths__grid, .story, .report, .download__grid, .help, .log__release { grid-template-columns: minmax(0, 1fr); }
  .block__head { align-items: start; }
  .score__status { margin-left: 0; width: 100%; }
  .score__tick { font-size: 0.975rem; padding-right: 10px; }

  .screens__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens__item--1 { grid-column: 1 / -1; }
  .screens__item--1 .screens__crop { aspect-ratio: 760 / 900; }
  .screens__item--2 .screens__crop { aspect-ratio: 760 / 1080; }
  .screens__item--3 .screens__crop { aspect-ratio: 760 / 860; }
  .facts li { font-size: 1rem; }
  .facts li + li::before { margin: 0 10px; }

  .board__row { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .board__row--head { display: none; }
  .board__row:nth-child(2) { border-top: 0; }
  .board__gap { grid-column: auto; }
  .board__state { font-size: 2rem; }

  .plan__side { order: 3; }
  .types { order: 2; }
  .types__list { grid-template-columns: minmax(0, 1fr); }
  .story--flip .story__text { order: 0; }
  .also__list { grid-template-columns: minmax(0, 1fr); }
  .fit__cols { grid-template-columns: minmax(0, 1fr); }
  .fit__col--yes { padding-right: 0; }
  .fit__col--no { padding-left: 0; margin-top: 32px; border-left: 0; border-top: var(--rule); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .doc__toc { columns: 1; }
  .faq__answer { padding-right: 0; }

  /* The privacy table becomes one card per row. */
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding: 14px 14px 16px; border-top: 2px solid var(--ink); }
  tbody tr:first-child { border-top: 0; }
  tbody th, tbody td { width: auto; padding: 0; border: 0; }
  tbody td { margin-top: 8px; }
  tbody td::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
}

@media (max-width: 420px) {
  .top__nav a { font-size: 0.9375rem; letter-spacing: 0.05em; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .cta__button { font-size: 1.2rem; padding-inline: 18px; gap: 10px; }
}
