/* ---------- Fonts (self-hosted, SIL Open Font License, see fonts/) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  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: "Archivo";
  src: url("fonts/archivo-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  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: "Archivo";
  src: url("fonts/archivo-latin-ext-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  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: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  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 {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #18213a;
  --muted: #5b6478;
  --rule: #dadfe8;
  --link: #3346c9;
  --accent: #14939a;

  /* dark band (header + intro) and dark panels */
  --band-bg: #121827;
  --band-ink: #e8ebf2;
  --band-muted: #a3abbd;
  --band-link: #9aa8ff;
  --band-accent: #35bcc3;
  --band-rule: #2b3347;
  --panel-bg: #18213a;
  --card-dark: #121827;
  --card-dark-hover: #18213a;
  --card-dark-border: transparent;
  --btn-light-bg: #e8ebf2;
  --btn-light-ink: #121827;

  /* section colours: decoration only (bars, dots, borders) */
  --c-purple: #7457e8;
  --c-pink: #d9467a;
  --c-amber: #e0a21c;
  --c-teal: #14939a;
  --c-blue: #3346c9;

  /* section inks: use for text; >= 4.5:1 on --paper/--surface */
  --ink-purple: #7457e8;
  --ink-pink: #b8325f;
  --ink-amber: #8a5d00;
  --ink-teal: #0e7177;
  --ink-blue: #3346c9;

  --cta-bg: #0e7177;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --max: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121827;
    --surface: #18213a;
    --ink: #e8ebf2;
    --muted: #a3abbd;
    --rule: #2b3347;
    --link: #9aa8ff;
    --accent: #35bcc3;

    --band-bg: #0b101c;
    --panel-bg: #0b101c;
    --card-dark: #0b101c;
    --card-dark-hover: #1f2943;
    --card-dark-border: var(--rule);

    --ink-purple: #a896ff;
    --ink-pink: #f07ba3;
    --ink-amber: #f0bf55;
    --ink-teal: #35bcc3;
    --ink-blue: #9aa8ff;

    --cta-bg: #0e7177;
  }
}

/* Section tones: --tone for decoration, --tone-ink for text */
.tone-purple { --tone: var(--c-purple); --tone-ink: var(--ink-purple); }
.tone-pink   { --tone: var(--c-pink);   --tone-ink: var(--ink-pink); }
.tone-amber  { --tone: var(--c-amber);  --tone-ink: var(--ink-amber); }
.tone-teal   { --tone: var(--c-teal);   --tone-ink: var(--ink-teal); }
.tone-blue   { --tone: var(--c-blue);   --tone-ink: var(--ink-blue); }
.tone-ink    { --tone: var(--ink);      --tone-ink: var(--ink); }
.tone-link   { --tone-ink: var(--link); }

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

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

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr));
}

.h2 {
  font: 800 clamp(2rem, 4.4vw, 3rem)/1.02 var(--display);
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--tone-ink, var(--ink));
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary { background: var(--band-ink); color: var(--band-bg); }
.btn--primary:hover { background: var(--band-link); color: var(--band-bg); }

.btn--outline { border: 2px solid var(--band-ink); color: var(--band-ink); }
.btn--outline:hover { background: var(--band-ink); color: var(--band-bg); }

.btn--light { background: var(--btn-light-bg); color: var(--btn-light-ink); padding-inline: 1.25rem; }

.btn--white { background: #ffffff; color: #18213a; }
.btn--white:hover { background: #18213a; color: #ffffff; }

/* ---------- Dark band: header + intro ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-ink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--band-ink);
  text-decoration: none;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--band-ink); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.96875rem;
  font-weight: 700;
}
.site-nav a { color: var(--band-link); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--band-ink); }
.site-nav a[aria-current="page"] { text-decoration-thickness: 2px; }

/* Home hero */
.hero {
  padding-block: clamp(3rem, 10vh, 7rem) clamp(3.5rem, 9vh, 6rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  color: var(--band-muted);
  font-weight: 700;
}
.status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--band-accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  max-width: 13ch;
  font: 800 clamp(2.625rem, 8.5vw, 6rem)/0.96 var(--display);
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 1.25rem;
  font: 700 clamp(1.25rem, 3vw, 1.75rem)/1.2 var(--display);
  color: var(--band-accent);
}

.hero-lede {
  max-width: 36rem;
  margin-top: 2rem;
  font-size: 1.1875rem;
  color: var(--band-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.stripe {
  display: flex;
  height: 8px;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  border-radius: 4px;
  overflow: hidden;
}
.stripe span:nth-child(1) { flex: 8; background: var(--c-purple); }
.stripe span:nth-child(2) { flex: 8; background: var(--band-accent); }
.stripe span:nth-child(3) { flex: 10; background: var(--c-amber); }
.stripe span:nth-child(4) { flex: 3; background: var(--c-pink); }

/* ---------- Home sections ---------- */

.section { padding-block: 5.5rem; }

.on-surface {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.split {
  --min: 320px;
  gap: 1.5rem 4rem;
  align-items: end;
}

/* The skill */
.skill { gap: 2.5rem 4rem; align-items: start; }
.skill-copy {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  font-size: 1.09375rem;
}

/* Is this for you? */
.paths-heading { max-width: 18ch; margin-bottom: 2.5rem; }
.paths { --min: 280px; gap: 1.25rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.75rem;
}
.path::before {
  content: "";
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: var(--tone);
}
.path h3 {
  font: 700 1.5rem/1.15 var(--display);
  letter-spacing: -0.02em;
}
.path p { flex: 1; color: var(--muted); }
.path a { font-weight: 700; }

/* Competition */
.panel {
  background: var(--panel-bg);
  color: var(--band-ink);
}
.panel a { color: var(--band-link); }
.panel a:hover { color: var(--band-ink); }
.panel .eyebrow { color: var(--band-accent); }
.panel-muted { color: var(--band-muted); }

.competition-head { margin-bottom: 3rem; }

.cycle { margin-bottom: 3rem; }
.cycle > p { margin-bottom: 1rem; }
.cycle-cards { --min: 280px; gap: 1rem; }

.cycle-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
  border: 1px solid var(--band-rule);
  border-radius: 10px;
}
.cycle-card--next { border-color: var(--band-accent); }
.cycle-when { font-size: 0.875rem; font-weight: 700; color: var(--band-muted); }
.cycle-card--next .cycle-when { color: var(--band-accent); }
.cycle-name { font: 800 1.75rem/1.1 var(--display); }

.modules { margin: 0; padding: 0; list-style: none; }

.module {
  display: grid;
  grid-template-columns: 64px minmax(0, 260px) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--band-rule);
}
.module-letter { font: 800 1.75rem/1 var(--display); color: var(--tone); }
.module.tone-link { --tone: var(--band-link); }
.module h3 { font: 700 1.3125rem/1.2 var(--display); }
.module p { color: var(--band-muted); }

@media (max-width: 35rem) {
  .module { grid-template-columns: minmax(0, 1fr); }
}

.compete-note { margin-top: 2rem; }

/* Occupational Standard */
.standard-head { margin-bottom: 2.5rem; }

.weights {
  display: flex;
  gap: 3px;
  height: 16px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}
.weights span { min-width: 0; background: var(--tone); }
.weights span:nth-child(1), .weights span:nth-child(2) { flex: 5; }
.weights span:nth-child(3), .weights span:nth-child(4) { flex: 25; }
.weights span:nth-child(5) { flex: 40; }

.wsos { --min: 300px; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

.wsos-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
}
.wsos-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.wsos-num { font-size: 0.90625rem; font-weight: 700; color: var(--muted); }
.wsos-weight { font: 800 1.875rem/1 var(--display); color: var(--tone-ink); }
.wsos-card h3 { font: 700 1.3125rem/1.2 var(--display); letter-spacing: -0.01em; }
.wsos-card p { font-size: 0.96875rem; color: var(--muted); }

/* Test projects */
.projects-heading { max-width: 20ch; margin-bottom: 1rem; }
.projects-intro { max-width: 40rem; margin-bottom: 2.5rem; color: var(--muted); }

.feature {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  background: var(--card-dark);
  color: var(--band-ink);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  text-decoration: none;
}
.feature:hover { background: var(--card-dark-hover); color: var(--band-ink); }
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 320px;
  min-width: 0;
}
.feature-kicker { font-size: 0.875rem; font-weight: 700; color: var(--band-accent); }
.feature-title {
  font: 800 clamp(1.375rem, 2.6vw, 1.75rem)/1.15 var(--display);
  letter-spacing: -0.02em;
}
.feature-copy { max-width: 40rem; color: var(--band-muted); }

.archives {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  padding: 1.375rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.archive:hover { background: var(--paper); color: var(--ink); }
.archive-title { font: 700 1.25rem/1.25 var(--display); }
.archive-go { font-weight: 700; color: var(--link); white-space: nowrap; }
.archive-copy { font-size: 0.96875rem; color: var(--muted); }

.archives-note { margin-top: 1.5rem; font-size: 0.96875rem; color: var(--muted); }

/* Resources */
.resources-heading { margin-bottom: 2.5rem; }
.resources { --min: 240px; gap: 0.75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.resource {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
  border-top: 2px solid var(--ink);
}
.resource-kind { font-size: 0.84375rem; font-weight: 700; color: var(--muted); }
.resource a { font-size: 1.125rem; font-weight: 700; }

/* Journey call to action */
.cta-section { padding-bottom: 6rem; }

.cta {
  --min: 300px;
  gap: 2rem 4rem;
  align-items: end;
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--cta-bg);
  color: #ffffff;
  border-radius: 14px;
}
.cta h2 {
  font: 800 clamp(2rem, 4.8vw, 3.5rem)/1 var(--display);
  letter-spacing: -0.03em;
}
.cta p { max-width: 32rem; margin-top: 1rem; font-size: 1.125rem; }
.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.cta-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Learning journey ---------- */

.journey-intro {
  --min: 340px;
  gap: 2.5rem 4rem;
  align-items: end;
  padding-block: clamp(2.5rem, 8vh, 5.5rem) 4rem;
}
.journey-intro .eyebrow { margin-bottom: 1rem; color: var(--band-accent); }
.journey-intro h1 {
  font: 800 clamp(2.5rem, 7vw, 5rem)/0.98 var(--display);
  letter-spacing: -0.03em;
}
.journey-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.15625rem;
  color: var(--band-muted);
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #18213a;
  border: 1px solid var(--band-rule);
  border-radius: 12px;
}
.progress[hidden] { display: none; }
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.progress-label { font-weight: 700; color: var(--band-muted); }
.progress-pct { font: 800 2.75rem/1 var(--display); color: var(--band-accent); }

.segments { display: flex; gap: 4px; }
.segment {
  flex: 1;
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--band-rule);
  overflow: hidden;
}
.segment::before {
  content: "";
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: var(--tone);
}
/* The panel is always dark, so stage 06 fills in the band ink. */
.segment.tone-ink { --tone: var(--band-ink); }

.progress-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--band-muted);
}
.reset {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--band-link);
  cursor: pointer;
}
.reset:hover { text-decoration: underline; }

.journey-main { padding-block: 3rem 6rem; }
.journey-main .feature { margin-bottom: 2rem; }

.stages { display: flex; flex-direction: column; gap: 1.25rem; }

.stage {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.stage::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--tone);
}
.stage.is-locked { opacity: 0.55; }

.stage-body {
  gap: 2rem 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.stage-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.stage-num { font: 800 0.9375rem/1 var(--display); color: var(--tone-ink); }

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.84375rem;
  font-weight: 700;
}
.pill[hidden] { display: none; }
.pill--level { border: 1px solid var(--rule); color: var(--muted); }
.pill--done { background: #0e7177; color: #ffffff; }
.pill--locked { background: var(--paper); color: var(--muted); }

.stage h2 {
  font: 800 clamp(1.75rem, 3.4vw, 2.25rem)/1.05 var(--display);
  letter-spacing: -0.03em;
}
.stage-copy { color: var(--muted); }

.stage-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.stage-copy + .stage-field { margin-top: 0.375rem; }
.field-label { font-size: 0.84375rem; font-weight: 700; color: var(--muted); }
.stage-tools { font-size: 0.96875rem; }

.chips, .stage-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips { gap: 0.375rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 4px 10px;
  background: var(--paper);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}
.stage-links { gap: 0.375rem 1.25rem; font-size: 0.96875rem; font-weight: 700; }

.goals-head { padding-bottom: 0.5rem; }

.goals {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Without JavaScript the goals stay a plain list. */
.goals:not(.is-interactive) li {
  padding: 0.875rem 0.375rem;
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}

.goal {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  min-height: 52px;
  padding: 0.875rem 0.375rem;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.goal:hover { background: var(--paper); }
.goal:disabled { cursor: not-allowed; }
.goal:disabled:hover { background: transparent; }

.goal-box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.goal[aria-pressed="true"] .goal-box {
  border-color: var(--tone-ink);
  background: var(--tone-ink);
}
.goal[aria-pressed="true"] .goal-box::after { content: "✓"; }
.goal[aria-pressed="true"] .goal-label {
  color: var(--muted);
  text-decoration: line-through;
}

.after {
  --min: 300px;
  gap: 1.5rem 4rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.after h2 {
  font: 800 clamp(1.625rem, 3vw, 2.125rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}

/* ---------- Imprint & privacy ---------- */

.legal {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 44rem;
  padding-block: 4rem 6rem;
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal h1 {
  font: 800 clamp(2.25rem, 5vw, 3.25rem)/1 var(--display);
  letter-spacing: -0.03em;
}
.legal h2 {
  font: 800 clamp(1.875rem, 4vw, 2.5rem)/1.05 var(--display);
  letter-spacing: -0.03em;
}
.legal h3 {
  margin-top: 0.5rem;
  font: 700 1.25rem/1.2 var(--display);
}
.legal-privacy {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.legal-block strong { font-weight: 700; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status::before { animation: none; }
}
