/* ==========================================================================
   הסטודיו של עפר (demo) — main.css
   Built from templates/premium. Design plan: ../design.md

   Palette (bumper plates in a bright studio):
     light  #F3F6F9  page background
     ink    #0E1B2E  text + dark sections (rubber floor)
     cobalt #1F4BD1  buttons, links, focus (blue plate)
     volt   #FFD13B  accent on dark backgrounds only (yellow plate)
     steel  #4A5870  secondary text on light
     mist   #A8B6CC  secondary text on dark

   CONTRAST (WCAG AA, checked): ink/light 15.9:1, cobalt/light 6.5:1, white/cobalt 7.0:1,
   steel/light 6.6:1, steel/stone 5.9:1, volt/ink 11.9:1, mist/ink 8.4:1, error/light 6.0:1.
   ========================================================================== */

:root {
  --light: #F3F6F9;
  --stone: #E4EAF1;
  --white: #FFFFFF;
  --ink: #0E1B2E;
  --ink-line: #2B3E5C;
  --cobalt: #1F4BD1;
  --cobalt-deep: #173AA6;
  --volt: #FFD13B;
  --steel: #4A5870;
  --mist: #A8B6CC;
  --line: #CCD5E0;
  --field-border: #5B6A82;
  --error: #B3261E;
  --focus: var(--cobalt);

  --font: "Noto Sans Hebrew", "Arial Hebrew", "Arial", sans-serif;
  --display-stretch: 62.5%;

  /* Type scale (fluid, rem-based so browser zoom and text size settings work). */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --step-3: clamp(2.75rem, 1.75rem + 4.5vw, 5.75rem);
  --step-4: clamp(4.25rem, 1rem + 16vw, 13.5rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --header-h: 4rem;
  --radius-pill: 999px;
  --radius-field: 8px;
}

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

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

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

p { margin: 0 0 1em; }

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container {
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--light);
  border-radius: var(--radius-field);
  text-decoration: none;
  font-weight: 700;
  --focus: var(--volt);
}
.skip-link:focus { top: 1rem; }

/* Display type: the condensed, heavy cut of the same family. */
.wordmark,
.hero__title,
.section__title,
.why__title,
.reason__word,
.reviews__num,
.step::before,
.legal h1 {
  font-family: var(--font);
  font-stretch: var(--display-stretch);
  font-weight: 900;
}

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--volt);
  color: var(--ink);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.5rem var(--gutter);
}
.demo-banner p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 var(--step-0) / 1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--cobalt); color: var(--white); }
.btn--primary:hover { background: var(--cobalt-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--light); border-color: var(--ink); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}
.site-nav__list a:not(.btn):hover { text-decoration: underline; }

.nav-toggle,
.motion-toggle {
  display: none; /* Needs JS: shown only under .js */
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 500 var(--step--1) / 1.2 var(--font);
  cursor: pointer;
}
.nav-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.motion-toggle__icon { width: 1rem; height: 1rem; fill: currentColor; }

.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="true"] { background: var(--ink); color: var(--light); }
.motion-toggle[aria-disabled="true"] { cursor: not-allowed; }

@media (max-width: 1079.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none;
    position: absolute;
    inset-inline: calc(-1 * var(--gutter));
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--light);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a:not(.btn) {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
  }
  .js .site-nav__cta { padding-top: 1rem; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: var(--step-0); }
}

@media (max-width: 519.98px) {
  .wordmark { font-size: 1.65rem; }
  .nav-toggle span,
  .motion-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .motion-toggle { padding-inline: 0.7rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__title {
  margin: 0;
  font-size: var(--step-4);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__line { display: block; }

.hero__kicker {
  margin: 0.9rem 0 0;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cobalt);
}

.hero__lead {
  max-width: 40ch;
  margin-bottom: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--steel);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__plate {
  justify-self: end;
  width: min(58vw, 20rem);
  max-width: none;
  height: auto;
  margin-block: -0.5rem -1rem;
  margin-inline-end: calc(-1 * var(--gutter) - 12vw);
}

.facts {
  display: grid;
  gap: 1rem 2rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
}
.facts dt { font-size: var(--step--1); color: var(--steel); }
.facts dd { margin: 0; font-weight: 700; line-height: 1.45; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-areas:
      "head  plate"
      "text  plate"
      "facts facts";
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .hero__head { grid-area: head; }
  .hero__text { grid-area: text; }
  .facts { grid-area: facts; }
  .hero__plate {
    grid-area: plate;
    align-self: center;
    width: min(40vw, 38rem);
    margin: 0;
    margin-inline-end: calc(-1 * var(--gutter) - 8vw);
  }
}

/* Only while the entrance animation is about to run (class set by js/boot.js,
   removed by js/motion.js or by a 2.5s failsafe). Never hides content without JS. */
.intro-pending [data-intro] { visibility: hidden; }

/* ---------- Plate (hero illustration) ---------- */
.plate__body { fill: var(--cobalt); }
.plate__ring { fill: none; stroke: #4A6FE0; stroke-width: 3; }
.plate__ring--thin { stroke-width: 2; }
.plate__grips rect { fill: var(--light); }
.plate__hub { fill: #C9D3E3; stroke: #9AA8BF; stroke-width: 3; }
.plate__hole { fill: var(--light); }
.plate__label {
  fill: var(--white);
  font-family: var(--font);
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-size: 38px;
}

/* ---------- WHY: static (default, no JS, reduced motion, paused) ---------- */
.why {
  --focus: var(--volt);
  background: var(--ink);
  color: var(--light);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.why__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.why__title {
  margin: 0 0 0.75rem;
  font-size: var(--step-3);
  line-height: 0.95;
}

.why__intro { max-width: 48ch; margin: 0; color: var(--mist); }

.why__progress { display: none; }

.reasons {
  display: grid;
  gap: 2.5rem 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason__word {
  margin: 0 0 0.5rem;
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  line-height: 0.9;
  color: var(--light);
}

.reason__text { max-width: 38ch; margin: 0; color: var(--mist); font-size: var(--step-1); line-height: 1.55; }

.barbell {
  width: 100%;
  height: auto;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.barbell__bar { fill: #7F8DA6; }
.barbell__sleeve { fill: #A8B6CC; }
.barbell__collar { fill: var(--light); }
.barbell__plate--a { fill: var(--cobalt); }
.barbell__plate--b { fill: var(--volt); }
.barbell__plate--c { fill: var(--light); }
.barbell__plate--d { fill: #4A6FE0; }

@media (min-width: 720px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- WHY: staged (pinned + scrubbed, class added by js/motion.js) ---------- */
.why.is-staged { padding-bottom: 0; }
.why.is-staged .why__head { margin-bottom: 0; }

.why.is-staged .why__stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2.5vh, 2rem);
  height: calc(100vh - var(--hh, 4rem));
  height: calc(100svh - var(--hh, 4rem));
  padding-block: clamp(1rem, 4vh, 3rem);
}

.why.is-staged .why__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--volt);
}
.why__count { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.why__track {
  position: relative;
  flex: 1;
  max-width: 16rem;
  height: 3px;
  background: var(--ink-line);
}
.why__track > span {
  position: absolute;
  inset: 0;
  background: var(--volt);
  transform-origin: right center;
}

.why.is-staged .reasons {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}

.why.is-staged .reason {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why.is-staged .reason__word {
  font-size: clamp(6rem, 1rem + 24vw, 18rem);
  line-height: 0.82;
  margin-bottom: clamp(1rem, 3vh, 2.25rem);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.why.is-staged .reason__text { font-size: var(--step-2); line-height: 1.45; max-width: 30ch; color: var(--light); }

.why.is-staged .barbell {
  margin-top: 0;
  max-height: 22vh;
  width: 100%;
}

/* Phones: keep the bar clear of the floating WhatsApp button. */
@media (max-width: 719.98px) {
  .why.is-staged .why__stage { padding-bottom: 5.5rem; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }

.section__title {
  margin: 0 0 1.5rem;
  font-size: var(--step-3);
  line-height: 0.95;
}

.placeholder-line {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 2px dashed var(--field-border);
  border-radius: var(--radius-field);
  color: var(--steel);
  font-size: var(--step--1);
}

/* ---------- Ofer ---------- */
.ofer__grid { display: grid; gap: 2.5rem; }
.ofer__text p { max-width: 46ch; }
.ofer__lead { font-size: var(--step-1); line-height: 1.55; font-weight: 500; }

.placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  margin: 0;
  min-height: 18rem;
  padding: 2rem;
  border: 2px dashed var(--field-border);
  border-radius: 14px;
  background: var(--stone);
  color: var(--steel);
  text-align: center;
}
.placeholder__icon {
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.placeholder figcaption { font-weight: 500; }
.placeholder--portrait { aspect-ratio: 4 / 3; min-height: 0; }

@media (min-width: 900px) {
  .ofer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
  .placeholder--portrait { aspect-ratio: 4 / 5; max-height: 36rem; }
}

/* ---------- How it works ---------- */
.how { background: var(--stone); }

.steps {
  display: grid;
  gap: 2rem 2.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--cobalt);
}
.step__title { margin: 0 0 0.5rem; font-size: var(--step-1); line-height: 1.3; }
.step p { margin: 0; color: var(--steel); }
.how__prices { margin: 0; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Reviews ---------- */
.reviews__head {
  display: grid;
  gap: 0.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.reviews__head .section__title { margin: 0; }
.reviews__score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: var(--steel);
}
.reviews__num {
  font-size: 4.5rem;
  line-height: 0.9;
  color: var(--cobalt);
}

.reviews__grid { display: grid; gap: 2rem 3rem; }

.quote { margin: 0; }
.quote blockquote { margin: 0 0 0.75rem; }
.quote blockquote p { margin: 0; line-height: 1.6; }
.quote figcaption { font-size: var(--step--1); font-weight: 700; color: var(--steel); }

.quote--lead {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 18px;
  background: var(--cobalt);
  color: var(--white);
  --focus: var(--volt);
}
.quote--lead blockquote p { font-size: var(--step-1); line-height: 1.5; font-weight: 500; }
.quote--lead figcaption { color: #DCE4FA; }

.quote:not(.quote--lead) {
  padding-inline-start: 1.25rem;
  border-inline-start: 4px solid var(--cobalt);
}
.quote:not(.quote--lead) blockquote p { font-size: var(--step-1); }

@media (min-width: 900px) {
  .reviews__head { grid-template-columns: auto auto; align-items: end; justify-content: space-between; }
  .reviews__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
  }
  .quote--lead { grid-row: 1 / span 2; }
  .quote--lead blockquote p { font-size: var(--step-2); line-height: 1.45; }
}

/* ---------- Visit ---------- */
.visit { background: var(--white); }
.visit__grid { display: grid; gap: 2.5rem; }
.visit__blocks { display: grid; gap: 1.75rem 2.5rem; }
.visit__block h3 { margin: 0 0 0.35rem; font-size: var(--step-1); line-height: 1.3; }
.visit__block p { margin: 0; color: var(--steel); }
.visit__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  border-radius: 14px;
  background: var(--stone);
}

@media (min-width: 640px) { .visit__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .visit__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 5vw, 5rem); align-items: stretch; }
}

/* ---------- Trial form ---------- */
.trial__grid { display: grid; gap: 2.5rem; }
.trial__intro p { max-width: 40ch; }
.trial__privacy-note { font-size: var(--step--1); color: var(--steel); }

.trial-form { display: grid; gap: 1.25rem 1.5rem; align-content: start; }

.field { min-width: 0; }
.field label,
.field legend { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.req,
.opt { font-size: var(--step--1); font-weight: 400; color: var(--steel); }

.trial-form input[type="text"],
.trial-form input[type="tel"],
.trial-form input[type="email"],
.trial-form select,
.trial-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-0);
  line-height: 1.4;
}
.trial-form input[dir="ltr"] { text-align: right; }
.trial-form textarea { min-height: 7rem; resize: vertical; }
.trial-form [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.choice legend { padding: 0; margin-bottom: 0.6rem; }
.choice__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--light);
}
.chip input:checked + span::before { content: "✓"; margin-inline-end: 0.4rem; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice[aria-invalid="true"] .chip span { border-color: var(--error); border-width: 2px; }

.field__hint { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--steel); }
.field__error { margin: 0.4rem 0 0; font-size: var(--step--1); font-weight: 700; color: var(--error); }

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 0.75rem;
}
.field--check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.25rem 0 0;
  accent-color: var(--cobalt);
}
.field--check label { margin: 0; font-weight: 500; }
.field--check .field__hint,
.field--check .field__error { grid-column: 2; margin-top: 0; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.trial-form__submit .btn { min-width: 16rem; }

.form-status {
  padding: 1rem 1.25rem;
  border: 2px solid var(--cobalt);
  border-radius: var(--radius-field);
  background: #E6ECFB;
  color: var(--ink);
}
.form-status[data-state="error"] { border-color: var(--error); background: #FBEAE9; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.4rem; }

.form-noscript { margin: 0; font-weight: 500; }

@media (min-width: 640px) {
  .trial-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .trial__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #1C7C45;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(14, 27, 46, 0.25);
}
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: currentColor; }
.wa-float:hover { background: #166537; }

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--volt);
  background: var(--ink);
  color: var(--light);
  padding-block: 3.5rem 5.5rem;
}
.site-footer a { color: var(--light); }
.site-footer__grid { display: grid; gap: 2rem; }
.wordmark--footer { margin: 0 0 0.5rem; font-size: 2.75rem; color: var(--light); }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__demo {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  font-size: var(--step--1);
  color: var(--mist);
}
.site-footer__demo strong { color: var(--volt); }
.site-footer__demo p { margin: 0 0 0.4rem; }

@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Legal pages (accessibility statement) ---------- */
.page-header .site-header__bar { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 68ch; }
.legal h1 {
  margin: 0 0 1rem;
  font-size: var(--step-3);
  line-height: 0.95;
}
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: var(--step-2); line-height: 1.25; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--steel); }
.ph {
  padding: 0 0.2em;
  border-radius: 3px;
  background: #FFF0B8;
  color: var(--ink);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn,
  .motion-toggle,
  .nav-toggle,
  .chip span { border: 2px solid ButtonText; }
  .motion-toggle[aria-pressed="true"],
  .chip input:checked + span { outline: 2px solid Highlight; }
}
