/* ==========================================================================
   Mile Marker Driving School
   Design system — palette derived from US highway signage (MUTCD), where
   green already means "guidance / direction" and yellow already means
   "warning". The site obeys that grammar, so colour carries meaning.
   ========================================================================== */

/* --- Faces ---------------------------------------------------------------
   Overpass is drawn from FHWA Highway Gothic — the literal lettering of
   American road signs. Self-hosted: no third-party request from a client site.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens: light is the base, complete and unconditional --------------- */

:root {
  /* Ground neutrals carry a faint green bias toward the accent — chosen,
     not inherited from a default grey ramp. */
  --ground: #eff1ed;
  --ground-alt: #e7eae5;
  --surface: #ffffff;
  --ink: #111a15;
  --ink-2: #35443b;
  --muted: #697a70;
  --rule: #d3d9d1;
  --rule-strong: #b6c0b8;

  /* Guide green: MUTCD highway guide-sign green. Used freely. */
  --guide: #04693f;
  --guide-deep: #034b2d;
  --guide-lift: #058650;
  --on-guide: #ffffff;
  --guide-tint: #e2ece6;

  /* A real guide sign is the same green at midnight as at noon, so this one
     barely moves between themes — it anchors the page instead of following it. */
  --sign: #034b2d;
  --on-sign: #ffffff;

  /* Sign yellow: signal only. Warnings, "don't miss this". Never decoration. */
  --warn: #f2c230;
  --on-warn: #3a2d04;
  --warn-tint: #fbf1d4;

  --shadow: 0 1px 2px rgb(17 26 21 / 0.06), 0 8px 24px -12px rgb(17 26 21 / 0.18);
  --shadow-lift: 0 2px 4px rgb(17 26 21 / 0.07), 0 20px 44px -20px rgb(17 26 21 / 0.26);

  /* Type */
  --face-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --face-body: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --face-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-xl: clamp(1.3rem, 1.14rem + 0.7vw, 1.65rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.9vw, 2.7rem);
  --fs-3xl: clamp(2.35rem, 1.6rem + 3.4vw, 4.15rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --measure: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --radius-lg: 6px;

  color-scheme: light;
}

/* Dark, for viewers who never made an explicit choice (the common case).
   Guarded so an explicit light choice still beats a dark OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1411;
    --ground-alt: #121b16;
    --surface: #151f1a;
    --ink: #e9efea;
    --ink-2: #b6c4bb;
    --muted: #8a9a90;
    --rule: #24302a;
    --rule-strong: #35443b;

    --guide: #4fb185;
    --guide-deep: #05684a;
    --guide-lift: #6cc79c;
    --on-guide: #04231a;
    --guide-tint: #16281f;
    --sign: #04351f;
    --on-sign: #ffffff;

    --warn: #f5ce52;
    --on-warn: #2a2103;
    --warn-tint: #2b2410;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45), 0 20px 44px -20px rgb(0 0 0 / 0.7);

    color-scheme: dark;
  }
}

/* Dark, chosen explicitly — wins over a light OS. */
:root[data-theme="dark"] {
  --ground: #0d1411;
  --ground-alt: #121b16;
  --surface: #151f1a;
  --ink: #e9efea;
  --ink-2: #b6c4bb;
  --muted: #8a9a90;
  --rule: #24302a;
  --rule-strong: #35443b;

  --guide: #4fb185;
  --guide-deep: #05684a;
  --guide-lift: #6cc79c;
  --on-guide: #04231a;
  --guide-tint: #16281f;
  --sign: #04351f;
  --on-sign: #ffffff;

  --warn: #f5ce52;
  --on-warn: #2a2103;
  --warn-tint: #2b2410;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45), 0 20px 44px -20px rgb(0 0 0 / 0.7);

  color-scheme: dark;
}

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

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

/* Class-level display rules outrank the UA's [hidden] rule, so state it here
   once rather than remembering it at every toggle. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  /* Explicit, from a token: the host paints its own ground behind the page. */
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--face-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

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

a:hover {
  color: var(--guide-lift);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 100;
  background: var(--guide);
  color: var(--on-guide);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
}

.skip:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  left: var(--s-4);
  top: var(--s-4);
}

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

/* --- Layout primitives -------------------------------------------------- */

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

/* One class owns vertical rhythm so nothing fights it later in the cascade. */
.band {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.band--tight {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.band--alt {
  background: var(--ground-alt);
}

.band--ink {
  background: var(--sign);
  color: #eaf3ee;
}

.band--ink h2,
.band--ink h3 {
  color: #ffffff;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.stack--tight {
  gap: var(--s-3);
}

.stack--loose {
  gap: var(--s-7);
}

.prose {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: var(--fs-base);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

/* --- Typographic roles -------------------------------------------------- */

.eyebrow {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--guide);
  flex: none;
}

.h-sec {
  font-size: var(--fs-2xl);
  max-width: 20ch;
}

.h-sub {
  font-size: var(--fs-xl);
  letter-spacing: -0.012em;
}

.num {
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn--go {
  background: var(--guide);
  color: var(--on-guide);
}

.btn--go:hover {
  background: var(--guide-deep);
  color: var(--on-guide);
}

:root[data-theme="dark"] .btn--go:hover {
  background: var(--guide-lift);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--go:hover {
    background: var(--guide-lift);
  }
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--line:hover {
  border-color: var(--guide);
  color: var(--guide);
}

.btn--onsign {
  background: #ffffff;
  color: #04421f;
  border-color: #ffffff;
}

.btn--onsign:hover {
  background: var(--warn);
  border-color: var(--warn);
  color: var(--on-warn);
}

.btn--wide {
  width: 100%;
}

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Solid, not translucent: a backdrop-filter on a sticky bar triggers repaint
     glitches in more browsers than the effect is worth. */
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.masthead__in {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 4.25rem;
}

@media (min-width: 600px) {
  .masthead__in {
    gap: var(--s-5);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}

.brand__mark {
  width: 30px;
  height: 38px;
  flex: none;
}

.brand__name {
  font-family: var(--face-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand__sub {
  display: none;
  font-family: var(--face-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The strapline is the first thing to go when the bar gets tight. */
@media (min-width: 460px) {
  .brand__sub {
    display: block;
  }
}

/* Short label on narrow bars, full label once there's room. */
.cta-short {
  display: inline;
}

.cta-long {
  display: none;
}

@media (min-width: 560px) {
  .cta-short {
    display: none;
  }

  .cta-long {
    display: inline;
  }
}

.mast-nav {
  display: none;
  gap: var(--s-5);
}

.mast-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.mast-nav a:hover {
  color: var(--guide);
}

.mast-call {
  display: none;
  font-family: var(--face-mono);
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.mast-call:hover {
  color: var(--guide);
}

/* Late, so the nav never sits cramped — including inside the case study's
   embedded preview frame, which is narrower than a real browser window. */
@media (min-width: 1010px) {
  .mast-nav,
  .mast-call {
    display: flex;
  }
}

/* --- Mile-marker rail ---------------------------------------------------
   Encodes real scroll position against a page that is genuinely a sequence.
   ------------------------------------------------------------------------ */

.rail {
  display: none;
}

@media (min-width: 1360px) {
  .rail {
    display: block;
    position: fixed;
    left: calc((100vw - var(--measure)) / 2 - 5.5rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }

  .rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .rail__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--muted);
    font-family: var(--face-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .rail__tick {
    width: 14px;
    height: 2px;
    background: var(--rule-strong);
    flex: none;
    transition: width 180ms ease, background-color 180ms ease;
  }

  .rail__label {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
    white-space: nowrap;
  }

  .rail__link:hover .rail__label,
  .rail__link[aria-current="true"] .rail__label {
    opacity: 1;
    transform: none;
  }

  .rail__link[aria-current="true"] {
    color: var(--guide);
  }

  .rail__link[aria-current="true"] .rail__tick {
    width: 26px;
    background: var(--guide);
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 1020px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    gap: 4rem;
  }
}

.hero__title {
  font-size: var(--fs-3xl);
  max-width: 15ch;
}

.hero__title em {
  font-style: normal;
  color: var(--guide);
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 46ch;
}

.hero__note svg {
  flex: none;
  margin-top: 0.15rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* --- Guide sign (the roadmap widget) ------------------------------------
   Built to the proportions of a real MUTCD guide sign: green field, white
   retroreflective border inset from the edge, rounded corners.
   ------------------------------------------------------------------------ */

.sign {
  background: var(--sign);
  border-radius: 10px;
  padding: 9px;
  box-shadow: var(--shadow-lift);
  position: relative;
}

.sign__field {
  border: 2px solid rgb(255 255 255 / 0.92);
  border-radius: 5px;
  padding: var(--s-5) var(--s-5) var(--s-6);
  color: #ffffff;
  min-height: 22.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.sign__kicker {
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.sign__title {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.sign__q {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.sign__label {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.82);
}

.sign__opts {
  display: grid;
  gap: 0.5rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius);
  color: #ffffff;
  padding: 0.7rem 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease;
}

.opt:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.62);
}

.opt__key {
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  color: #04421f;
  background: #ffffff;
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  flex: none;
}

.opt:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}

.sign__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.6);
}

.sign__back {
  background: none;
  border: 0;
  padding: 0;
  color: rgb(255 255 255 / 0.75);
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.sign__back:hover {
  color: #ffffff;
}

/* Result state */
.sign__result {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.res__headline {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: #ffffff;
}

.res__body {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.86);
}

.res__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 0.28);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius);
  overflow: hidden;
}

.res__stat {
  background: var(--sign);
  padding: 0.7rem 0.8rem;
}

.res__stat dt {
  font-family: var(--face-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.66);
  margin: 0 0 0.2rem;
}

.res__stat dd {
  margin: 0;
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.1;
}

.res__flag {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--warn);
  color: var(--on-warn);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.res__flag svg {
  flex: none;
  margin-top: 0.1rem;
}

/* The one orchestrated moment on the page. */
.is-entering {
  animation: signIn 420ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes signIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.count-up {
  transition: none;
}

/* --- Trust strip -------------------------------------------------------- */

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

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

@media (min-width: 760px) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust__fig {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.trust__cap {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.35;
}

/* --- Cards / tracks ----------------------------------------------------- */

.grid-3 {
  display: grid;
  gap: var(--s-5);
}

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

.grid-2 {
  display: grid;
  gap: var(--s-6);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.card__who {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guide);
}

.card__title {
  font-size: 1.25rem;
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

.card__link {
  margin-top: auto;
  padding-top: var(--s-2);
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link:hover {
  gap: 0.65rem;
}

.card__link svg {
  transition: transform 140ms ease;
}

/* --- Steps (a real sequence, so it is numbered) ------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 2px solid var(--rule-strong);
  position: relative;
}

.step__n {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--guide);
}

.step__t {
  font-size: 1.1rem;
}

.step__d {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

/* --- Pricing ------------------------------------------------------------ */

.tiers {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

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

.tier {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.tier--pick {
  border-color: var(--guide);
  border-width: 2px;
  box-shadow: var(--shadow);
}

.tier__flag {
  align-self: flex-start;
  background: var(--warn);
  color: var(--on-warn);
  font-family: var(--face-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

.tier__name {
  font-size: 1.3rem;
}

.tier__for {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--face-display);
  font-weight: 800;
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.tier__unit {
  font-family: var(--face-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  letter-spacing: 0;
  color: var(--muted);
}

.tier__rate {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.tier__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
}

.tier__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.tier__list svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--guide);
}

.tier__meets {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--muted);
}

.tier__meets strong {
  color: var(--ink);
  font-weight: 600;
}

.tier__cta {
  margin-top: auto;
}

/* --- Instructors -------------------------------------------------------- */

.crew {
  display: grid;
  gap: var(--s-5);
}

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

.person {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.person__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--guide-tint);
  border: 1px solid var(--rule);
}

.person__photo svg {
  width: 100%;
  height: 100%;
}

.person__name {
  font-size: 1.1rem;
}

.person__role {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--guide);
}

.person__bio {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

.person__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.person__tags li {
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.15rem 0.45rem;
}

/* --- Testimonials ------------------------------------------------------- */

.quotes {
  display: grid;
  gap: var(--s-5);
}

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

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-5);
}

.quote__text {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.quote__by {
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.quote__by b {
  color: var(--ink);
  font-weight: 600;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--warn);
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--rule);
  max-width: 46rem;
}

.qa {
  border-bottom: 1px solid var(--rule);
}

.qa__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  background: none;
  border: 0;
  padding: var(--s-5) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.qa__q:hover {
  color: var(--guide);
}

.qa__sign {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  position: relative;
}

.qa__sign::before,
.qa__sign::after {
  content: "";
  position: absolute;
  background: var(--guide);
  transition: transform 180ms ease;
}

.qa__sign::before {
  inset: 9px 2px auto 2px;
  height: 2px;
}

.qa__sign::after {
  inset: 2px 9px 2px auto;
  width: 2px;
}

.qa__q[aria-expanded="true"] .qa__sign::after {
  transform: scaleY(0);
}

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.qa__a[data-open="true"] {
  grid-template-rows: 1fr;
}

.qa__a > div {
  overflow: hidden;
}

.qa__a p {
  padding-bottom: var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

/* --- Booking form ------------------------------------------------------- */

.book {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: var(--ground);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
  font-size: var(--fs-base);
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--guide);
  outline: 2px solid var(--guide);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.field__err {
  font-size: var(--fs-xs);
  color: #b3261e;
  min-height: 1rem;
}

:root[data-theme="dark"] .field__err {
  color: #ff9b93;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field__err {
    color: #ff9b93;
  }
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select {
  border-color: #b3261e;
}

.field-row {
  display: grid;
  gap: var(--s-4);
}

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

.book__ok {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-5) 0;
}

.book__ok-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--guide);
  color: var(--on-guide);
  display: grid;
  place-items: center;
}

.fineprint {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* --- Closing band ------------------------------------------------------- */

.close__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 960px) {
  .close__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.close__title {
  font-size: var(--fs-2xl);
  max-width: 16ch;
}

.close__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  color: #d3e5da;
  font-size: var(--fs-sm);
}

.close__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.close__list svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--warn);
}

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

.foot {
  border-top: 1px solid var(--rule);
  background: var(--ground-alt);
  padding-block: var(--s-7) var(--s-6);
}

.foot__grid {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.foot__h {
  font-family: var(--face-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.foot__list a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot__list a:hover {
  color: var(--guide);
  text-decoration: underline;
}

.foot__rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-6) 0 var(--s-5);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
}

.foot__note {
  max-width: 58ch;
}

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

/* --- Theme toggle ------------------------------------------------------- */

.themer {
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  flex: none;
}

.themer:hover {
  border-color: var(--guide);
  color: var(--guide);
}

.themer__moon {
  display: none;
}

:root[data-theme="dark"] .themer__sun {
  display: none;
}

:root[data-theme="dark"] .themer__moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themer__sun {
    display: none;
  }
  :root:not([data-theme="light"]) .themer__moon {
    display: block;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
