/* =========================================================
   אקדמיית שער הביטחון | Landing page (V5)
   Design system
   - Narrative: night (worry) -> dawn (trust). Each section's
     background continues the previous one (--from/--to), so the
     page reads as one sky that gets lighter as you scroll.
   - Motif: the arch / gate (from the Sha'ar HaBitachon book cover).
   - Shape rule: arches for imagery + key frames, pills for all
     buttons, 20px radius for cards, 12px for inputs.
   - Type: headlines in Karantina (free stand-in for BarLev Bold;
     swap --font-display once the licensed files arrive), body in Assistant.
     Karantina is condensed, so display sizes run ~1.3x larger than
     they would for a regular-width face.
   ========================================================= */

:root {
  /* Brand */
  --navy: #193053;
  --sun: #f1cf07;

  /* Night -> dawn scale */
  --night-950: #08111f;
  --night-900: #0b1629;
  --night-800: #0f1e37;
  --night-700: #152a4a;
  --navy-600: #24406a;
  --twilight: #4f6b96;
  --mist-300: #c9d4e6;
  --mist-100: #e9eef6;
  --mist-50: #f1f4f9;
  --day: #f5f7fa;
  --morning: #f8f7f0;
  --sunlit: #f9f6e8;
  --sun-wash: #fcf3c6;
  --sun-soft: #f7e27a;
  --sun-deep: #c9a800;          /* yellow strokes on light backgrounds */

  /* Text */
  --paper: #eef2f9;             /* on dark */
  --paper-soft: #a8b8d2;
  --ink: #193053;               /* on light */
  --ink-soft: #4b5d7c;

  /* Lines */
  --line-dark: rgb(238 242 249 / 0.12);
  --line-light: rgb(25 48 83 / 0.12);
  --gold-line: rgb(241 207 7 / 0.55);

  /* Type */
  --font-display: "Karantina", "Assistant", system-ui, sans-serif;
  --font-body: "Assistant", system-ui, sans-serif;
  --display-weight: 700;
  --display-weight-strong: 700;

  --fs-h1: clamp(2.9rem, 1.6rem + 3.6vw, 4.9rem);
  --fs-h2: clamp(2.4rem, 1.5rem + 2.7vw, 3.8rem);
  --fs-h3: clamp(1.7rem, 1.45rem + 0.7vw, 2.1rem);
  --fs-display-m: clamp(2rem, 1.45rem + 1.8vw, 3.1rem);   /* big statements inside sections */
  --fs-lead: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Space + shape (one rhythm for the whole page) */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(48px, 5.5vw, 76px);
  --block-gap: clamp(32px, 4vw, 52px);   /* between blocks inside a section */
  --r-card: 20px;
  --r-input: 12px;
  --arch: 1000px 1000px 0 0;    /* oversized radius -> perfect semicircle top at any width */

  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 60px -28px rgb(25 48 83 / 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
}


/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
b, strong { font-weight: 600; }
mark { background: none; color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); }

.sec {
  --from: var(--night-900);
  --to: var(--night-800);
  position: relative;
  padding-block: var(--sec-pad);
  background: linear-gradient(180deg, var(--from), var(--to));
  overflow: clip;
}
.sec-head { margin-bottom: var(--block-gap); max-width: 780px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-head .lead { margin-top: 16px; }
.sec-head p:not(.lead):not(.eyebrow) { margin-top: 12px; color: var(--ink-soft); }

.sec-cta-row { margin-top: var(--block-gap); display: flex; justify-content: center; }
.sec-cta { margin-top: 10px; }

/* Dark / light text per sky position */
.sec--hero, .sec--feel, .sec--shift { color: var(--paper); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h2);
  line-height: 1.05;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 600;
  color: var(--sun);
}
.eyebrow::before {
  content: ""; width: 14px; height: 18px;
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: var(--arch);
}
.eyebrow--dark { color: var(--ink-soft); }
.eyebrow--dark::before { border-color: var(--sun-deep); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sun); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
}
.btn i { font-size: 1.25em; transition: transform 0.3s var(--ease-out); }
.btn:hover { box-shadow: 0 10px 30px -10px rgb(241 207 7 / 0.55); }
.btn:hover i.ph-arrow-left { transform: translateX(-4px); }
.btn:active { transform: scale(0.98); }
.btn--sun { --bg: var(--sun); --fg: var(--navy); }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--navy:hover { box-shadow: 0 10px 30px -12px rgb(25 48 83 / 0.55); background: var(--navy-600); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.9688rem; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.125rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  background: rgb(11 22 41 / 0.62);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header.is-scrolled.on-light {
  color: var(--ink);
  background: rgb(245 247 250 / 0.72);
  box-shadow: 0 1px 0 var(--line-light);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark__arch {
  width: 18px; height: 24px;
  border: 1.5px solid var(--sun); border-bottom: 0;
  border-radius: var(--arch);
}
.on-light .wordmark__arch { border-color: var(--sun-deep); }
.wordmark__text { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: 1.6rem; line-height: 1; }

/* ---------- Arch primitives ---------- */
.arch { position: relative; border-radius: var(--arch); overflow: hidden; }
.arch-outline {
  position: absolute; pointer-events: none;
  border: 1px solid var(--gold-line); border-bottom: 0;
  border-radius: var(--arch);
}

/* =========================================================
   1. HERO
   ========================================================= */
.sec--hero {
  --from: var(--night-950); --to: var(--night-900);
  padding-block: calc(var(--header-h) + 48px) clamp(32px, 4vw, 48px);
}
/* Night sky: a faint static field (works without JS) + twinkling stars
   generated by main.js. Denser near the top, fading out toward dawn. */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 96%);
}
.stars::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 80%, #fff 50%, transparent 51%);
}
.star {
  position: absolute;
  top: var(--y); left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--c, #fff);
  opacity: var(--lo);
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
  will-change: opacity, transform;
}
.star--glow { box-shadow: 0 0 6px 1px rgb(255 255 255 / 0.35); }
/* A handful of brighter four-point glints */
.star--glint { background: none; box-shadow: none; width: 17px; height: 17px; margin: -8px 0 0 -8px; }
.star--glint::before,
.star--glint::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: radial-gradient(closest-side, var(--c, #fff), transparent);
}
.star--glint::before { width: 100%; height: 1.5px; }
.star--glint::after  { width: 1.5px; height: 100%; }
.star--glint { animation-name: glint; }
.stars.is-paused .star { animation-play-state: paused; }

@keyframes twinkle {
  0%, 100% { opacity: var(--lo); transform: scale(0.75); }
  50%      { opacity: var(--hi, 1); transform: scale(1); }
}
@keyframes glint {
  0%, 100% { opacity: 0.15; transform: scale(0.35) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1) rotate(12deg); }
}
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: clamp(40px, 6vw, 96px);
}
.hero__copy { max-width: 640px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h1);
  line-height: 1.02;
  text-wrap: balance;
}
.hero__sub { margin-top: 22px; font-size: var(--fs-lead); color: var(--paper-soft); }
.hero__brand { margin-top: 16px; font-size: var(--fs-lead); color: var(--paper); }
.hero__brand strong { color: var(--sun); font-weight: 700; }
.hero__note { margin-top: 12px; color: var(--paper-soft); }
.hero__ctas { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); }
.arch--hero { aspect-ratio: 4 / 5; width: 100%; background: var(--night-950); }
.arch--hero img { width: 100%; height: 100%; object-fit: cover; }
.arch-outline--hero { inset: -18px -18px auto -18px; height: calc(100% + 18px); }

/* =========================================================
   2. FEEL: the gap between knowing and living
   ========================================================= */
.sec--feel { --from: var(--night-900); --to: var(--night-700); }
.feel__intro { max-width: 820px; }
.feel__punch { color: var(--sun); }
.feel__story { margin-top: 22px; display: grid; gap: 10px; font-size: var(--fs-lead); color: var(--paper-soft); }
.feel__story p:last-child { color: var(--paper); }
.feel__lead-in {
  margin-top: var(--block-gap);
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h3); line-height: 1.15;
}
.moments {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.moment {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line-dark); border-radius: var(--r-card);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.01));
  font-size: 1.0625rem; line-height: 1.5;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, background-color 0.45s;
}
.moment i { font-size: 1.9rem; color: var(--sun); }
@media (hover: hover) {
  .moment:hover {
    transform: scale(1.02);
    border-color: rgb(241 207 7 / 0.35);
    background-color: rgb(255 255 255 / 0.05);
  }
}

.gap-close { margin-top: var(--block-gap); max-width: 860px; display: grid; gap: 16px; font-size: var(--fs-lead); color: var(--paper-soft); }
.gap-close__thesis {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-display-m); line-height: 1.2;
  color: var(--paper);
}
.gap-close__thesis mark {
  background-image: linear-gradient(transparent 80%, rgb(241 207 7 / 0.55) 80%);
  background-repeat: no-repeat;
  background-position: right bottom;   /* grows from the reading start (RTL) */
  background-size: 100% 100%;
  padding-inline: 2px;
}

/* =========================================================
   3. SHIFT: maybe it's not more knowledge
   ========================================================= */
.sec--shift { --from: var(--night-700); --to: var(--navy); }
.shift { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 120px); row-gap: var(--block-gap); }
.shift__intro .lead { margin-top: 18px; color: var(--paper-soft); }
.shift__body { align-self: end; }
.shift__body .lead { color: var(--paper); }

.asks { grid-column: 1 / -1; }
.asks__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-display-m); line-height: 1.15; text-align: center; margin-bottom: 22px;
}
.asks__rows { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.ask {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px;
  padding: 18px 28px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line-dark);
  text-align: center;
}
.ask__lbl { color: var(--sun); font-weight: 600; font-size: var(--fs-lead); }
.ask__q { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h3); line-height: 1.2; }
.ask--dim .ask__q { color: var(--paper-soft); }
.ask:not(.ask--dim) { border-color: rgb(241 207 7 / 0.4); background: rgb(241 207 7 / 0.06); }

.shift__more { grid-column: 1 / -1; max-width: 820px; margin-inline: auto; display: grid; gap: 12px; text-align: center; color: var(--paper-soft); font-size: var(--fs-lead); }
.shift__conclusion { grid-column: 1 / -1; text-align: center; max-width: 860px; margin-inline: auto; display: grid; gap: 8px; }
.shift__conclusion p:first-child { font-size: var(--fs-lead); color: var(--paper-soft); }
.shift__conclusion-strong {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-display-m); line-height: 1.15;
}

/* =========================================================
   4. THE GATE (meet the academy)
   ========================================================= */
/* Fixed-pixel stops: the dark part always sits behind the title + gate,
   and everything after the gate is on light background whatever its length. */
.sec--gate {
  background: linear-gradient(180deg,
    var(--navy) 0, var(--navy-600) 200px, var(--twilight) 460px,
    var(--mist-300) 700px, var(--mist-100) 920px, var(--mist-100) 100%);
}
.gate { display: grid; justify-items: center; text-align: center; }
.gate__title { color: var(--paper); }
.gate__arch {
  position: relative;
  margin-top: var(--block-gap);
  width: min(100%, 620px);
  border-radius: var(--arch);
  padding: 2px;
  background: linear-gradient(180deg, var(--sun) 0%, rgb(241 207 7 / 0.25) 60%, transparent 100%);
}
.gate__inner {
  border-radius: var(--arch);
  padding: clamp(88px, 11vw, 132px) clamp(28px, 6vw, 64px) 20px;
  /* the light fades out at the bottom so the gate "opens" into the dawn below */
  background:
    radial-gradient(90% 55% at 50% 0%, rgb(255 246 196 / 0.95), transparent 70%),
    linear-gradient(180deg, #fffbe6 0%, #f4f6fb 62%, rgb(233 238 246 / 0) 100%);
  color: var(--ink);
  box-shadow: 0 -40px 120px -40px rgb(241 207 7 / 0.35);
}
.gate__is {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.35rem); line-height: 1.2;
}
.gate__book {
  width: min(56%, 230px); margin: 28px auto 0;
  mix-blend-mode: multiply;        /* drops the render's white background into the arch light */
}
.gate__after { margin-top: var(--block-gap); max-width: 1080px; display: grid; justify-items: center; gap: 12px; color: var(--ink); }
.gate__after > p { max-width: 780px; }
.gate__after .lead { color: var(--ink-soft); }
.domains {
  margin-block: 8px 12px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
}
.domains li {
  padding: 6px clamp(14px, 1.3vw, 20px); white-space: nowrap; line-height: 1.3;
  border: 1px solid var(--line-light); border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.65rem);
  transition: box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}
/* The float itself is GSAP (motion.js); CSS only adds the glow. */
@media (hover: hover) {
  .domains li:hover {
    border-color: rgb(201 168 0 / 0.5);
    background: rgb(255 255 255 / 0.85);
    box-shadow: 0 0 0 3px rgb(241 207 7 / 0.07), 0 0 20px 1px rgb(236 214 120 / 0.3), 0 10px 22px -12px rgb(25 48 83 / 0.28);
  }
}
.gate__q-intro {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h3); line-height: 1.15;
}
.questions {
  margin-top: 6px; width: 100%; max-width: 980px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  text-align: start;
}
.question {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 18px 22px;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.78);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-card);
  line-height: 1.5;
}
.question i {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem; color: var(--navy); background: var(--sun-wash);
}
.gate__promise { margin-top: 24px; color: var(--ink-soft); font-size: var(--fs-lead); }
.gate__goal {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-display-m); line-height: 1.15;
}

/* =========================================================
   5. STATIONS (path through 7 gates)
   ========================================================= */
.sec--stations { --from: var(--mist-100); --to: var(--mist-50); }
.sec--stations .lead { color: var(--ink); }
.path { position: relative; display: grid; gap: clamp(20px, 3vw, 36px); max-width: 1040px; margin-inline: auto; }
.path::before {
  content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 50%;
  width: 1px; transform: translateX(50%);
  background: repeating-linear-gradient(180deg, var(--sun-deep) 0 6px, transparent 6px 14px);
  opacity: 0.6;
}
/* solid line that GSAP grows with scroll via --p (0 -> 1) */
.path::after {
  content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 50%;
  width: 2px; transform: translateX(50%) scaleY(var(--p, 0)); transform-origin: top;
  background: var(--sun-deep);
}
.station__gate { transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.station.is-lit .station__gate {
  background: var(--sun); border-color: var(--sun); color: var(--navy);
  box-shadow: 0 0 0 6px rgb(241 207 7 / 0.18), 0 10px 30px -8px rgb(241 207 7 / 0.7);
}
.station { position: relative; display: grid; grid-template-columns: 1fr 88px 1fr; align-items: start; }
.station__gate {
  grid-column: 2; justify-self: center;
  display: grid; place-items: end center;
  width: 58px; height: 74px; padding-bottom: 10px;
  border-radius: var(--arch);
  border: 1.5px solid var(--sun-deep);
  background: var(--mist-50);
  font-family: var(--font-display); font-weight: var(--display-weight-strong);
  font-size: 1.45rem; line-height: 1; color: var(--ink);
  position: relative; z-index: 1;
}
.station__card {
  grid-row: 1;
  padding: 24px 28px 26px;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.85);
  box-shadow: var(--shadow-card);
  border: 1px solid rgb(255 255 255 / 0.9);
}
.station:nth-child(odd) .station__card { grid-column: 1; }
.station:nth-child(even) .station__card { grid-column: 3; }
.station__title { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: var(--fs-h3); line-height: 1.1; }
.station__tag { margin-top: 6px; font-weight: 600; color: var(--ink); }
.station__card > p:not(.station__tag) { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

/* =========================================================
   6. INSIDE (7 items around the gate)
   ========================================================= */
.sec--inside { --from: var(--mist-50); --to: var(--day); }
.sec--inside .lead { color: var(--ink-soft); }
.inside {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px) 1fr;
  grid-template-areas:
    "i1 core i2"
    "i3 core i4"
    "i5 core i6"
    ".  i7   .";
  gap: clamp(20px, 2.6vw, 32px) clamp(24px, 4vw, 56px);
  align-items: center;
}
.inside__items { display: contents; }
.inside__core { grid-area: core; align-self: stretch; display: grid; }
.inside__arch {
  display: grid; align-content: center; gap: 12px; text-align: center;
  padding: 72px 28px 40px;
  border-radius: var(--arch);
  background:
    radial-gradient(100% 60% at 50% 0%, rgb(241 207 7 / 0.35), transparent 70%),
    var(--navy);
  color: var(--paper);
}
.inside__arch-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 1.6rem + 1.1vw, 2.6rem); line-height: 1.1; color: var(--sun); }
.inside__arch p:last-child { color: var(--paper); font-size: var(--fs-lead); }
.item { display: grid; gap: 6px; align-content: start; }
.item i { font-size: 2rem; color: var(--sun-deep); }
.item h3 { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: clamp(1.55rem, 1.35rem + 0.5vw, 1.8rem); line-height: 1.1; }
.item p { color: var(--ink-soft); font-size: 1rem; }
.item--1 { grid-area: i1; } .item--2 { grid-area: i2; }
.item--3 { grid-area: i3; } .item--4 { grid-area: i4; }
.item--5 { grid-area: i5; } .item--6 { grid-area: i6; }
.item--7 { grid-area: i7; text-align: center; justify-items: center; }
.item--1, .item--3, .item--5 { text-align: end; justify-items: end; }

/* =========================================================
   7 + 8. LIBRARY / WEEKLY (copy + a navy card, sides alternate)
   ========================================================= */
.sec--library { --from: var(--day); --to: var(--day); }
.sec--weekly { --from: var(--day); --to: var(--morning); padding-top: 0; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--flip { grid-template-columns: 0.8fr 1.2fr; }
.split--flip .split__copy { order: 2; }
.split__copy { display: grid; gap: 12px; color: var(--ink-soft); }
.split__copy .eyebrow { justify-self: start; }
.split__copy .h2 { color: var(--ink); margin-bottom: 4px; }
.split__copy .lead { color: var(--ink); }
.split__strong {
  margin-top: 8px; padding: 16px 20px; border-radius: var(--r-input);
  background: rgb(241 207 7 / 0.16); color: var(--ink);
  font-weight: 600; font-size: var(--fs-lead); line-height: 1.55;
}

.shelf {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center;
  min-height: 340px; padding: 64px 28px 40px;
  border-radius: var(--arch);
  background:
    radial-gradient(100% 60% at 50% 0%, rgb(241 207 7 / 0.35), transparent 70%),
    var(--navy);
  color: var(--paper);
}
.shelf__num { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: clamp(5rem, 3.5rem + 5vw, 8rem); line-height: 0.9; color: var(--sun); }
.shelf__label { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 1.35rem + 0.7vw, 2rem); line-height: 1.15; max-width: 14ch; }
.shelf__icon { margin-top: 10px; font-size: 2.2rem; color: var(--paper-soft); }

.ask-card {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: var(--r-card);
  background: var(--navy);
  color: var(--paper);
}
.ask-card__intro { color: var(--paper-soft); font-size: var(--fs-lead); }
.ask-card__list { counter-reset: q; margin-top: 22px; display: grid; gap: 14px; }
.ask-card__list li {
  counter-increment: q;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.8rem); line-height: 1.15;
}
.ask-card__n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--sun);
}
.ask-card__n::before { content: counter(q); }

/* =========================================================
   9. MY STORY
   ========================================================= */
.sec--about { --from: var(--morning); --to: var(--sunlit); }
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.about__photo { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; width: min(100%, 400px); justify-self: center; }
.arch--portrait { aspect-ratio: 4 / 5; background: var(--navy); }
.arch--portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.arch-outline--portrait { inset: -16px -16px auto -16px; height: calc(100% + 16px); border-color: var(--sun-deep); opacity: 0.6; }
.about__copy .eyebrow { margin-bottom: 10px; }
.about__bio { margin-top: 22px; display: grid; gap: 14px; max-width: 62ch; }
.about__bio p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.75; }
.about__bio strong { color: var(--ink); font-weight: 800; }
.about__bio p.about__hook {
  font-family: var(--font-display); font-weight: var(--display-weight-strong);
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2rem); line-height: 1.2;
  color: var(--ink);
  padding-block: 4px; padding-inline-start: 20px;
  border-inline-start: 3px solid var(--sun-deep);
}
.about__bio p.about__realize {
  padding: 16px 20px; border-radius: var(--r-input);
  background: rgb(241 207 7 / 0.16); color: var(--ink);
  font-weight: 600; font-size: 1.125rem; line-height: 1.6;
}
.about__sign {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 2rem; line-height: 1; color: var(--ink);
}
.about__sign::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 14px; background: var(--sun-deep); }
.about__cta { margin-top: 26px; }

/* =========================================================
   10. WHO IT'S FOR
   ========================================================= */
.sec--fit { --from: var(--sunlit); --to: var(--sunlit); }
.sec--fit .lead { color: var(--ink); }
.fit__lead-in {
  text-align: center; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h3); line-height: 1.15;
}
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1100px; margin-inline: auto; }
.fit__item {
  position: relative;
  padding: 20px 22px 20px; padding-inline-start: 52px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-card);
  line-height: 1.55; color: var(--ink);
}
.fit__item::before {
  content: ""; position: absolute; inset-inline-start: 22px; top: 26px;
  width: 8px; height: 14px;
  border: solid var(--sun-deep); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.fit__close { margin-top: var(--block-gap); text-align: center; display: grid; gap: 4px; }
.fit__close p:first-child { font-size: var(--fs-lead); color: var(--ink-soft); }
.fit__close-strong {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-display-m); line-height: 1.15;
}

/* =========================================================
   11. PLANS
   ========================================================= */
.sec--plans {
  --from: var(--sunlit); --to: var(--sunlit);
  background:
    radial-gradient(60% 40% at 50% 0%, rgb(241 207 7 / 0.16), transparent 70%),
    linear-gradient(180deg, var(--from), var(--to));
}
.sec--plans .lead { color: var(--ink-soft); }
.plans { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: stretch; max-width: 1060px; margin-inline: auto; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--r-card);
}
.plan--monthly { background: #fff; box-shadow: var(--shadow-card); border: 1px solid var(--line-light); }
.plan--yearly { background: var(--navy); color: var(--paper); box-shadow: 0 40px 80px -36px rgb(25 48 83 / 0.6); }
.plan__title { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: clamp(2.1rem, 1.8rem + 1vw, 2.7rem); line-height: 1.05; }
.plan--yearly .plan__title { color: var(--sun); }
.plan__price { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.plan__amount { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: clamp(3.4rem, 2.6rem + 2.4vw, 4.6rem); line-height: 0.95; }
.plan__per { color: var(--ink-soft); font-weight: 600; }
.plan--yearly .plan__per { color: var(--paper-soft); }
.plan__desc { margin-top: 12px; color: var(--ink-soft); }
.plan--yearly .plan__desc { color: var(--paper-soft); }
.plan__includes { margin-top: 22px; font-weight: 600; }
.plan__note { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-soft); text-align: center; }
.plan--yearly .plan__note { color: var(--paper-soft); }
.plan .btn { margin-top: auto; }
.plan--monthly .checks { margin-bottom: 28px; }
.plan--yearly .btn { margin-top: 24px; }

.checks { margin-top: 12px; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.3em;
  width: 7px; height: 12px;
  border: solid var(--sun-deep); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan--yearly .checks li::before { border-color: var(--sun); }
.checks__plus { color: var(--sun); font-weight: 600; }

.kit {
  margin-top: 18px; padding: 18px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line-dark);
}
.kit__items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kit__item { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.kit__zoom { position: relative; width: min(100%, 132px); padding: 0; border: 0; background: none; border-radius: 12px; cursor: zoom-in; display: block; }
.kit__zoom i {
  position: absolute; inset-block-end: 6px; inset-inline-end: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.9rem;
  background: var(--navy); color: #fff; opacity: 0.85;
}
.kit__zoom:hover i, .kit__zoom:focus-visible i { opacity: 1; background: var(--sun-deep); }
.kit__item img {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 12px;
  background: #fff; object-fit: contain; padding: 6px;
}
.kit__item b { color: var(--paper); font-size: var(--fs-small); }

/* =========================================================
   12. FAQ
   ========================================================= */
.sec--faq { --from: var(--sunlit); --to: #fbf9f0; }
.faq { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--line-light); }
.qa { border-bottom: 1px solid var(--line-light); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.125rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--sun); border-color: var(--sun); }
.qa__a { padding: 0 0 22px; display: grid; gap: 12px; color: var(--ink-soft); max-width: 64ch; }
.qa__a b { color: var(--ink); }

/* =========================================================
   13. FINAL
   ========================================================= */
.sec--final {
  --from: #fbf9f0; --to: #fff8d8;
  text-align: center;
  padding-block: var(--sec-pad) clamp(64px, 7vw, 96px);
}
.sun {
  position: absolute; left: 50%; bottom: -55vw; transform: translateX(-50%);
  width: 110vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(241 207 7 / 0.5), rgb(241 207 7 / 0.12) 55%, transparent 72%);
  pointer-events: none;
}
.final { position: relative; display: grid; justify-items: center; }
.final__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h1); line-height: 1.02; text-wrap: balance;
}
.final__turn {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: var(--display-weight-strong);
  font-size: var(--fs-h3); line-height: 1.2;
}
.final__body { margin-top: 22px; display: grid; gap: 10px; max-width: 680px; color: var(--ink-soft); font-size: var(--fs-lead); }
.final__strong { color: var(--ink); font-weight: 600; }
.final__punch {
  margin-top: 28px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h2); line-height: 1;
  background-image: linear-gradient(transparent 76%, rgb(241 207 7 / 0.7) 76%);
  padding-inline: 4px;
}
.final .btn { margin-top: 28px; }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: var(--paper-soft); padding-block: 44px 28px; font-size: var(--fs-small); }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.site-footer__brand { display: grid; gap: 8px; }
.site-footer__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1; color: var(--paper); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.site-footer__bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  font-size: 0.875rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; }
.site-footer__legal li + li::before { content: "·"; margin-inline: 10px; color: rgb(168 184 210 / 0.5); }

/* =========================================================
   ZOOM DIALOG (kit images at full size)
   ========================================================= */
.zoom-dialog {
  position: fixed; inset: 0; margin: auto;
  width: fit-content; height: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.zoom-dialog::backdrop { background: rgb(8 17 31 / 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.zoom-dialog[open] { animation: lead-in 0.35s var(--ease-out); }
.zoom-dialog img {
  display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  width: auto; height: auto; border-radius: 16px; background: #fff;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.7);
}
.zoom__close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--navy); color: #fff; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.5);
}
.zoom__close:hover { background: var(--sun-deep); }

/* =========================================================
   LEAD DIALOG
   ========================================================= */
.lead-dialog {
  width: min(100% - 32px, 480px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 24px;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 120px -30px rgb(8 17 31 / 0.6);
}
.lead-dialog::backdrop { background: rgb(8 17 31 / 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead-dialog[open] { animation: lead-in 0.4s var(--ease-out); }
@keyframes lead-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.lead__form { position: relative; padding: 36px clamp(22px, 5vw, 36px) 28px; display: grid; gap: 16px; }
.lead__close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--mist-50);
  display: grid; place-items: center; font-size: 1.2rem;
}
.lead__close:hover { background: var(--mist-100); }
.lead__kicker { color: var(--ink-soft); font-size: var(--fs-small); }
.lead__title { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: 2.5rem; line-height: 1; margin-top: -10px; }
.lead__plan {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-input);
  background: var(--navy); color: var(--paper);
}
.lead__plan-name { font-weight: 600; }
.lead__plan-price { color: var(--sun); font-weight: 600; white-space: nowrap; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9688rem; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid rgb(25 48 83 / 0.28); border-radius: var(--r-input);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1.0625rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(241 207 7 / 0.45); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.875rem; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.lead__legal { font-size: 0.8125rem; color: var(--ink-soft); text-align: center; }
.lead__status { font-size: 0.9375rem; text-align: center; padding: 10px; border-radius: var(--r-input); background: var(--mist-50); }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .inside {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "core core"
      "i1 i2"
      "i3 i4"
      "i5 i6"
      "i7 i7";
  }
  .inside__core { justify-self: center; width: min(100%, 420px); }
  .item--1, .item--3, .item--5 { text-align: start; justify-items: start; }
  .fit { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .hero__copy { margin-inline: auto; display: flex; flex-direction: column; }
  .hero__ctas { align-items: center; }
  .hero__brand, .hero__note { order: 1; }
  .hero__brand { margin-top: 28px; }
  .hero__visual { width: min(40%, 150px); order: -1; }
  /* Size the image off the screen height so the join button lands just above the fold with a peek of the next paragraph */
  @supports (height: 100svh) {
    .hero__visual { width: min(52%, clamp(110px, calc((100svh - 496px) * 0.8), 210px)); }
  }
  .arch-outline--hero { inset: -10px -10px auto -10px; height: calc(100% + 10px); }
  .hero__sub { margin-top: 12px; }
  .hero__ctas { margin-top: 22px; }
  .sec--hero { padding-top: calc(var(--header-h) + 16px); }

  .moments { grid-template-columns: 1fr; }

  .shift { grid-template-columns: 1fr; }
  .ask { border-radius: var(--r-card); padding: 16px 20px; }

  .questions { grid-template-columns: 1fr; }

  /* Stations: line on the start edge, cards after it */
  .path::before { inset-inline-start: 29px; transform: none; }
  .path::after { inset-inline-start: 28px; transform: scaleY(var(--p, 0)); }
  .station { grid-template-columns: 58px 1fr; gap: 16px; }
  .station__gate { grid-column: 1; }
  .station:nth-child(odd) .station__card,
  .station:nth-child(even) .station__card { grid-column: 2; }
  .station__card { padding: 20px 20px 22px; }

  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__copy { order: 0; }
  .shelf { min-height: 0; width: min(100%, 360px); justify-self: center; padding: 52px 24px 32px; }
  .sec--weekly { padding-top: var(--sec-pad); }

  .about { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: auto; width: min(80%, 340px); }
  .about__copy { text-align: center; }
  .about__bio { text-align: start; margin-inline: auto; }
  .about__sign::before { margin-inline: auto; }

  .fit { grid-template-columns: 1fr; }

  .plans { grid-template-columns: 1fr; }

  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .site-footer__brand { max-width: 360px; }
  .site-footer__links { justify-content: center; gap: 0 20px; }
  .site-footer__links a { display: block; padding: 10px 4px; }
  .site-footer__bottom { flex-direction: column-reverse; text-align: center; margin-top: 24px; }

  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq__head { position: static; }
}

@media (max-width: 560px) {
  .moment { padding: 16px 18px; gap: 14px; }
  .moment i { font-size: 1.6rem; }

  .inside { grid-template-columns: 1fr; grid-template-areas: "core" "i1" "i2" "i3" "i4" "i5" "i6" "i7"; }
  .item--7 { text-align: start; justify-items: start; }

  .btn { white-space: normal; text-align: center; }
  .btn--lg { min-height: 56px; padding: 0 22px; font-size: 1rem; gap: 8px; }
  .site-header .btn--sm { padding: 0 16px; font-size: 0.875rem; }
  .wordmark__text { font-size: 1.4rem; }
  .hide-sm { display: none; }

  .lead-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* Stars keep a slow, shallow twinkle (no movement, only light). */
  .star { animation-duration: calc(var(--d) * 1.6) !important; --lo: 0.45; }
}

/* =========================================================
   DESIGNER CREDIT STRIP (very bottom)
   ========================================================= */
.credit {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 12px 16px; background: #fff; color: #111; line-height: 1;
  font-size: 0.8125rem; letter-spacing: 0.01em; text-decoration: none;
}
.credit img { height: 15px; width: auto; display: block; transform: translateY(1px); }
.credit:hover span { text-decoration: underline; text-underline-offset: 3px; }
.credit:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }

/* =========================================================
   ACCESSIBILITY MENU (js/a11y.js) + the settings it toggles
   ========================================================= */
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 60; }
.a11y__toggle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid #fff; background: #1d4ed8; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgb(8 17 31 / 0.6);
}
.a11y__toggle:hover { background: #1e40af; }
.a11y__toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.a11y__panel {
  position: absolute; left: 0; bottom: 64px;
  width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto;
  padding: 18px; border-radius: 18px;
  background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.4;
  box-shadow: 0 30px 80px -24px rgb(8 17 31 / 0.55);
  display: grid; gap: 12px;
}
.a11y__panel[hidden] { display: none; }
.a11y__panel :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.a11y__head { display: flex; justify-content: space-between; align-items: center; }
.a11y__title { font-size: 1.15rem; font-weight: 700; font-family: var(--font-body); }
.a11y__close {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--mist-50); display: grid; place-items: center; font-size: 1.1rem;
}
.a11y__size { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.a11y__size-btns { display: flex; align-items: center; gap: 6px; }
.a11y__size-btns button {
  min-width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgb(25 48 83 / 0.3); background: #fff; font-weight: 700;
}
.a11y__size-btns output { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.a11y__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__opts button, .a11y__reset {
  width: 100%; min-height: 64px; padding: 8px;
  border: 1px solid rgb(25 48 83 / 0.3); border-radius: 12px; background: #fff;
  display: grid; justify-items: center; align-content: center; gap: 4px;
  font-size: 0.9rem; font-weight: 600; text-align: center;
}
.a11y__opts i, .a11y__reset i { font-size: 1.4rem; }
.a11y__opts button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y__reset { min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.a11y__statement { text-align: center; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

/* Text size: everything is sized in rem, so scaling the root scales the page. */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 150%; }

/* Colour filters sit on the root: a filter on a tall element like <main> makes Chrome
   paint it as one huge layer (blank patches), and would also pin the fixed header to it. */
html.a11y-contrast { --ink-soft: var(--ink); --paper-soft: var(--paper); --f-contrast: contrast(1.3); }
html.a11y-gray { --f-gray: grayscale(1); }
html:is(.a11y-contrast, .a11y-gray) { filter: var(--f-contrast,) var(--f-gray,); }

html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
html.a11y-links a:not(.btn, .credit) { outline: 1px dashed currentColor; outline-offset: 2px; }

html.a11y-font { --font-display: var(--font-body); }
html.a11y-font body { letter-spacing: 0.02em; word-spacing: 0.08em; line-height: 1.85; }

html.a11y-still { scroll-behavior: auto; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important;
}
html.a11y-still .star { opacity: var(--hi, 1); }

@media (max-width: 560px) {
  .a11y { left: 12px; bottom: 12px; }
  .a11y__toggle { width: 48px; height: 48px; }
}

/* =========================================================
   ACCESSIBILITY STATEMENT PAGE (accessibility.html)
   ========================================================= */
.doc-page { background: var(--day); }
.doc { padding-block: calc(var(--header-h) + 48px) var(--sec-pad); color: var(--ink); }
.doc section { margin-top: 36px; display: grid; gap: 12px; }
.doc__title { font-family: var(--font-display); font-weight: var(--display-weight-strong); font-size: var(--fs-display-m); line-height: 1.05; }
.doc__updated { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-small); }
.doc h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.doc ul { padding-inline-start: 1.3em; display: grid; gap: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc__contact { margin: 0; display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.doc__contact div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.doc__contact dt { font-weight: 700; }
.doc__contact dt::after { content: ":"; }
.doc__contact dd { margin: 0; }
/* Legal pages (terms.html, privacy.html, cancellation.html) */
.doc [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.doc ol { padding-inline-start: 1.5em; display: grid; gap: 8px; }
.doc ol ol, .doc ol ul { margin-top: 6px; }
.doc h3 { font-size: 1.12rem; font-weight: 700; margin-top: 8px; }
.doc__intro { color: var(--ink-soft); }
.doc__toc { padding: 18px 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.doc__toc ol { gap: 4px; }
.doc__box { padding: 20px 22px; border-radius: var(--r-card); background: var(--sun-wash); border: 2px solid var(--sun-deep); display: grid; gap: 10px; font-size: 1.05rem; }
.doc__box h2 { font-size: 1.3rem; }
.doc__fill { background: #ffe58a; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.doc__table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--fs-small); }
.doc th, .doc td { border: 1px solid var(--line-light); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { background: var(--mist-100); }
.doc-form { display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.doc-form label { font-weight: 700; display: block; margin-bottom: 4px; }
.doc-form input, .doc-form select, .doc-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--mist-300); border-radius: 10px; background: #fff; color: var(--ink); }
.doc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.doc-form legend { font-weight: 700; margin-bottom: 4px; }
.doc-form .choice { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.doc-form .choice input { width: auto; margin-top: 5px; }
.doc-form__status { font-weight: 700; }

.doc-page .site-footer { padding-block: 0 28px; }
.doc-page .site-footer__bottom { margin-top: 0; border-top: 0; }
.doc-page .site-header { background: var(--navy); }
