/* ==========================================================================
   2027 Foundry Airway Course — styles
   Mobile first. One typeface (Plus Jakarta Sans), one palette.
   ========================================================================== */

/* ---------- Tokens ---------- */
/* The typeface is a file in this folder, so the page loads nothing from other sites. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #1A2530;
  --blue: #296199;
  --orange: #E65F2B;        /* highlights and large type only */
  --action: #C94E1F;        /* button fill: white text passes AA (4.57:1) */
  --action-hover: #A8401A;
  --tint-1: #EEF4FA;
  --tint-2: #E8F1FA;
  --tint-3: #E2ECF6;
  --tint-4: #DBE9F7;
  --tint-5: #BFDCF7;
  --warm-1: #FBF0EE;
  --warm-2: #F8E4E1;
  --white: #FFFFFF;
  --muted: #4D5964;         /* softened ink for secondary text (7:1 on white) */
  --field-border: #6F8499;  /* 3:1+ against white for form controls */
  --radius: 8px;
  --radius-lg: 14px;
  --font: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --stack-h: 3.75rem;       /* height of the sticky header, used for anchor offsets */
}
html.has-demo-bar { --stack-h: 5.75rem; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--stack-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 9vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
address { font-style: normal; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
/* on dark and blue surfaces the focus ring is white, so it stays visible */
.hero :focus-visible,
.rule :focus-visible,
.instructor :focus-visible,
.booking__session :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.lead { font-size: 1.1875rem; line-height: 1.5; max-width: 38rem; }

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

.skip-link {
  position: absolute;
  left: 0.75rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--action-hover); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--lg { min-height: 3.5rem; padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.btn--text {
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.btn--text:hover { color: var(--ink); }

/* ---------- Demo bar + header ---------- */
.top-stack { position: sticky; top: 0; z-index: 50; }

/* Only shown when demoBar is true in data/course-data.js */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.3125rem 1rem;
  background: var(--warm-2);
  border-bottom: 2px solid var(--orange);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.demo-bar__dot {
  flex: none;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
}

.site-header { background: var(--white); border-bottom: 1px solid var(--tint-4); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: 2.375rem; height: 2.375rem; }
.brand__name { font-size: 1.0625rem; }
.brand__year {
  padding: 0.125rem 0.4375rem;
  border-radius: 4px;
  background: var(--tint-4);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn__icon,
.menu-btn__icon::before,
.menu-btn__icon::after {
  display: block;
  width: 1rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-btn__icon { position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -5px; }
.menu-btn__icon::after { top: 5px; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%; left: -1.25rem; right: -1.25rem;
  padding: 0.5rem 1.25rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--tint-4);
  box-shadow: 0 18px 30px -18px rgba(26, 37, 48, 0.35);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav a {
  display: block;
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--tint-3);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--blue); }
.site-header__cta { display: none; }

@media (max-width: 23.5rem) {
  .brand__year { display: none; }
  .brand__name { font-size: 1rem; }
}

@media (min-width: 62rem) {
  :root { --stack-h: 4.25rem; }
  html.has-demo-bar { --stack-h: 6.25rem; }
  .site-header__inner { min-height: 4.25rem; }
  .site-header__cta { display: inline-flex; min-height: 2.75rem; margin-left: auto; padding: 0.5rem 1.125rem; }
  .menu-btn { order: 3; }
}
/* the full row of section links needs a wide screen; below that it stays behind Menu */
@media (min-width: 73rem) {
  .menu-btn { display: none; }
  .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 1.375rem; }
  .site-nav a { padding: 0.5rem 0; border: 0; font-size: 0.9375rem; }
  .site-header__cta { margin-left: 0; }
}

.anchor-top { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue) 38%, var(--ink) 100%);
  color: var(--white);
}
.hero__media { position: relative; height: min(74vw, 28rem); }
/* On phones the crop runs from the instructor's face down to his hands on the mask. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(41, 97, 153, 0.08) 0%, rgba(41, 97, 153, 0) 55%, rgba(41, 97, 153, 0.45) 88%, var(--blue) 100%);
}
.hero__inner { position: relative; padding-block: 1.25rem 2.75rem; }
.hero__course {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-5);
}
.hero h1 { max-width: 12ch; margin-bottom: 0.4em; }
.hero__lead { max-width: 33rem; font-size: 1.125rem; line-height: 1.5; color: var(--tint-2); }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1.5rem; }
.hero__actions .btn { padding-inline: 0.5rem; font-size: 1rem; }
.hero__points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
}
.hero__points li { position: relative; padding-left: 1.625rem; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0.125rem; top: 0.4375rem;
  width: 0.8125rem; height: 0.4375rem;
  border-left: 2.5px solid var(--tint-5);
  border-bottom: 2.5px solid var(--tint-5);
  transform: rotate(-45deg);
}

@media (max-width: 21.5rem) {
  .hero__actions { grid-template-columns: 1fr; }
}
@media (min-width: 36rem) {
  .hero__media { height: min(78vw, 36rem); }
  .hero__media img { object-position: 50% 26%; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .hero__actions .btn { padding-inline: 1.75rem; font-size: 1.0625rem; }
  .hero__points { grid-template-columns: repeat(2, max-content); gap: 0.5rem 2.5rem; }
}

@media (min-width: 56.25rem) {
  .hero {
    display: grid;
    min-height: min(45rem, 88vh);
    background: linear-gradient(90deg, var(--ink) -30%, var(--blue) 46%);
  }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 54%; height: 100%; }
  .hero__media img { object-position: 38% 30%; }
  /* the photo keeps its own color; only the seam with the text side is blended */
  .hero__media::after {
    background: linear-gradient(90deg, var(--blue) 0%, rgba(41, 97, 153, 0.8) 8%, rgba(41, 97, 153, 0.34) 22%, rgba(41, 97, 153, 0.06) 44%, rgba(41, 97, 153, 0) 70%);
  }
  .hero__inner { align-self: center; padding-block: 5rem; }
  .hero__inner > * { max-width: 31rem; }
  .hero h1 { max-width: 11ch; }
  .hero__lead { font-size: 1.25rem; }
  .hero__points { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Hook: the runway ---------- */
.hook { padding-block: 3rem 3.25rem; background: var(--white); }
.hook__head { display: grid; gap: 0.75rem; }
.hook__title { max-width: 23ch; margin-bottom: 0; font-size: clamp(1.5rem, 4.6vw, 2.375rem); }
.hook__count { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; color: var(--muted); font-weight: 600; }
.hook__days { color: var(--ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hook__note { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); }

@media (min-width: 56.25rem) {
  .hook { padding-block: 4.5rem 4rem; }
  .hook__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
  .hook__count { flex-direction: column; align-items: flex-end; gap: 0.25rem; padding-bottom: 0.375rem; text-align: right; }
  .hook__days { font-size: 3.25rem; }
}

.runway { position: relative; margin-top: 1.25rem; padding: 4.5rem 0 4rem; }
.runway__track { position: relative; height: 0; }
.runway__line {
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  transform-origin: left center;
}
.runway__year {
  position: absolute;
  top: 2.375rem;
  padding-left: 0.375rem;
  border-left: 2px solid var(--tint-5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--muted);
}
.runway__year::before {
  content: "";
  position: absolute;
  left: -2px; top: -2.375rem;
  width: 2px; height: 2.375rem;
  background: var(--tint-5);
}
.runway__sessions { list-style: none; }
.runway__sessions li { position: absolute; top: 0; }
.runway__dot {
  position: absolute;
  left: -1.375rem; top: -1.375rem;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.runway__dot .mark { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); transition: transform 0.15s ease; }
.runway__dot:hover .mark { transform: translate(-50%, -50%) scale(1.25); }
.runway__dot-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.runway__sessions li:nth-child(odd) .runway__dot-label { top: 2.375rem; }
.runway__sessions li:nth-child(even) .runway__dot-label { bottom: 2.375rem; }
.runway__dot-day { display: none; }
.runway__deadline {
  position: absolute;
  right: 0; top: -1.125rem;
  width: 4px; height: 2.25rem;
  border-radius: 2px;
  background: var(--orange);
}
.runway__deadline-label {
  position: absolute;
  right: 0; bottom: 1.625rem;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.runway__deadline-label small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.runway__today {
  position: absolute;
  top: -0.875rem;
  width: 2px; height: 1.75rem;
  background: var(--ink);
}
.runway__today span {
  position: absolute;
  left: 50%; top: -1.125rem;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .runway__dot-day { display: inline; }
  .runway__sessions li:nth-child(even) .runway__dot-label { top: 2.375rem; bottom: auto; }
  .runway__year { top: 3.75rem; }
  .runway__year::before { top: -3.75rem; height: 3.75rem; }
  .runway { padding-bottom: 5rem; }
}

/* one orchestrated moment: the line draws, then the dates land on it */
@media (prefers-reduced-motion: no-preference) {
  .runway--animate .runway__line { transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1); }
  .runway--animate .runway__sessions li,
  .runway--animate .runway__deadline,
  .runway--animate .runway__deadline-label { opacity: 0; transition: opacity 0.35s ease; }
  .runway--animate.is-in .runway__line { transform: scaleX(1); }
  .runway--animate.is-in .runway__sessions li,
  .runway--animate.is-in .runway__deadline,
  .runway--animate.is-in .runway__deadline-label { opacity: 1; }
  .runway--animate.is-in .runway__sessions li:nth-child(1) { transition-delay: 0.15s; }
  .runway--animate.is-in .runway__sessions li:nth-child(2) { transition-delay: 0.27s; }
  .runway--animate.is-in .runway__sessions li:nth-child(3) { transition-delay: 0.39s; }
  .runway--animate.is-in .runway__sessions li:nth-child(4) { transition-delay: 0.51s; }
  .runway--animate.is-in .runway__sessions li:nth-child(5) { transition-delay: 0.63s; }
  .runway--animate.is-in .runway__sessions li:nth-child(6) { transition-delay: 0.75s; }
  .runway--animate.is-in .runway__deadline,
  .runway--animate.is-in .runway__deadline-label { transition-delay: 1.05s; }
}

/* ---------- Status marks (shape carries the meaning, not just color) ---------- */
.mark {
  display: inline-block;
  flex: none;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  box-sizing: border-box;
}
.mark--open { background: var(--blue); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--blue); width: 0.75rem; height: 0.75rem; margin: 0.125rem; }
.mark--few { background: var(--white); border: 3px solid var(--orange); box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 1rem var(--orange); }
.mark--full {
  background:
    linear-gradient(45deg, transparent 43%, var(--white) 43%, var(--white) 57%, transparent 57%),
    var(--ink);
}

/* ---------- Why now ---------- */
.why { padding-block: 4rem; background: linear-gradient(180deg, var(--tint-1) 0%, var(--white) 100%); }
.why__grid { display: grid; gap: 2.5rem; }
.why h2 { max-width: 20ch; }
.why__main > p { max-width: 40rem; }

.rule {
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}
.rule blockquote { margin: 0; }
.rule blockquote p {
  font-size: clamp(1.125rem, 2.6vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.rule blockquote p::before { content: "\201C"; }
.rule blockquote p::after { content: "\201D"; }
.rule figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tint-5);
}

/* Foundry's own statement about the course, set directly under the quoted rule */
.rule-fit {
  margin: -0.75rem 0 2rem;
  padding: 1.125rem 1.25rem 1.125rem 1.375rem;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}
.rule-fit p { margin: 0; max-width: 38rem; }
.rule-fit__lead {
  padding-bottom: 0.3125rem;
  font-size: clamp(1.1875rem, 2.6vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.why__facts { display: grid; gap: 2rem; margin-top: 2rem; }
.why__facts h3 { margin-bottom: 0.625rem; }
.why__facts p { margin-bottom: 0.5rem; }

.tick-list { list-style: none; }
.tick-list li {
  position: relative;
  padding: 0.375rem 0 0.375rem 1.75rem;
  font-weight: 600;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.125rem; top: 0.8125rem;
  width: 0.875rem; height: 0.5rem;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
  transform-origin: center;
}

.asof { font-size: 0.875rem; color: var(--muted); }
.key-dates { border-top: 1px solid var(--tint-5); }
.key-dates > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--tint-5);
}
.key-dates dt { color: var(--muted); }
.key-dates dd { font-weight: 700; text-align: right; white-space: nowrap; }
.key-dates > .key-dates__final { border-bottom: 3px solid var(--orange); }
.key-dates__final dt { color: var(--ink); font-weight: 700; }

.confirm {
  margin-top: 2.25rem;
  padding: 1.25rem 1.25rem 1.25rem 1.375rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}
.confirm__line { font-weight: 700; }
.confirm__sources-title { margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 700; }
.confirm__sources { padding-left: 1.125rem; font-size: 0.9375rem; }
.confirm__sources li { margin-bottom: 0.375rem; }
.confirm__reviewed { margin-top: 0.875rem; font-size: 0.875rem; color: var(--muted); }

.selfcheck {
  align-self: start;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
}
.selfcheck h3 { font-size: 1.375rem; }
.selfcheck fieldset { margin: 0; padding: 0; border: 0; }
.selfcheck legend { padding: 0; margin-bottom: 0.75rem; font-weight: 500; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.choice:hover { background: var(--tint-1); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--blue); }
.selfcheck__result:empty { display: none; }
.selfcheck__result {
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: var(--tint-2);
}
.selfcheck__result--no { background: var(--tint-1); }
.selfcheck__answer { margin-bottom: 0.375rem; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.selfcheck__result p { font-size: 0.9375rem; }
.selfcheck__result .btn { margin-top: 0.25rem; }
.selfcheck__fine { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted); }

@media (min-width: 40rem) {
  .why__facts { grid-template-columns: 1fr 1fr; }
  .rule { padding: 2.25rem 2.25rem 1.75rem; }
}
@media (min-width: 62rem) {
  .why { padding-block: 6rem; }
  .why__grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; }
  .selfcheck { position: sticky; top: calc(var(--stack-h) + 1.5rem); }
}

/* ---------- The course: two parts, and what class is like ---------- */
.format { padding-block: 4rem; background: var(--tint-2); }
.format h2 { max-width: 18ch; }
.parts { list-style: none; margin-top: 2.5rem; display: grid; gap: 0; }
.part {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0 1.125rem;
  padding-bottom: 2.25rem;
}
.part:last-child { padding-bottom: 0; }
/* the rail that joins step 1, step 2 and the finish */
.part::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1.5px); top: 2.75rem; bottom: 0;
  width: 3px;
  background: var(--tint-5);
}
.part:last-child::before { display: none; }
.part__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
}
.part--done .part__num { background: var(--ink); }
.part__body { padding-top: 0.375rem; }
.part__body .label { margin-bottom: 0.375rem; }
.part__body h3 { font-size: 1.5rem; }
.part__note { color: var(--muted); font-size: 0.9375rem; }

.inclass { display: grid; gap: 2rem; margin-top: 3.5rem; }
.inclass__photos { position: relative; padding-bottom: 17%; }
.inclass__photo { object-fit: cover; border-radius: var(--radius-lg); }
.inclass__photo--main { width: 92%; aspect-ratio: 3 / 2; }
.inclass__photo--inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 54%;
  aspect-ratio: 16 / 10;
  border: 5px solid var(--tint-2);
}
.inclass__text h3 { margin-bottom: 0.875rem; font-size: clamp(1.5rem, 3.8vw, 2rem); letter-spacing: -0.02em; }

@media (min-width: 56.25rem) {
  .format { padding-block: 6rem; }
  .parts { grid-template-columns: 1fr 1.2fr 0.8fr; gap: 2.5rem; margin-top: 3.5rem; }
  .part { display: block; padding-bottom: 0; }
  .part::before {
    left: 2.75rem; right: -2.5rem; top: calc(1.375rem - 1.5px); bottom: auto;
    width: auto; height: 3px;
  }
  .part__body { padding-top: 1.5rem; }
  .inclass { grid-template-columns: 1.15fr 1fr; gap: 4.5rem; align-items: center; margin-top: 5rem; }
}

/* ---------- Fee and CE credit ---------- */
.glance { padding-block: 4rem; background: var(--blue); color: var(--white); }
.glance h2 { max-width: 18ch; }
.glance__grid { display: grid; gap: 0; margin-top: 2rem; border-top: 2px solid var(--white); }
.glance__grid > div { padding: 1.125rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.32); }
.glance__grid dt {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-5);
}
.glance__grid dd { color: var(--tint-2); }
.glance__grid dd strong {
  display: block;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 40rem) {
  .glance__grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 62rem) {
  .glance { padding-block: 5.5rem; }
  .glance__grid { grid-template-columns: repeat(4, 1fr); }
  .glance__grid > div { border-bottom: 0; padding: 1.5rem 0 0; }
  .glance__grid dd strong { font-size: 2rem; }
}

/* ---------- What the course covers + instructor ---------- */
.learn { padding-block: 4rem; background: var(--white); }
.learn__grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.learn__grid h3,
.sim__text .label {
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.tick-list--roomy li { padding-block: 0.5rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.tick-list--roomy li::before { top: 0.9375rem; }

.topics { list-style: none; border-top: 2px solid var(--ink); }
.topics li {
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--tint-5);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.learn__photos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.75rem; margin-top: 2.5rem; }
.learn__photo { width: 100%; height: clamp(9rem, 31vw, 21rem); object-fit: cover; border-radius: var(--radius-lg); }

/* the simulated emergencies, on a dark panel beside the manikin */
.sim {
  display: grid;
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}
.sim__text { padding: 1.75rem 1.5rem 2rem; }
.sim__text h3 { max-width: 20ch; margin-bottom: 1.25rem; font-size: clamp(1.375rem, 3.6vw, 1.875rem); letter-spacing: -0.02em; }
.sim__hint { margin: -0.5rem 0 1.125rem; color: var(--tint-5); font-size: 0.9375rem; }
.pills { list-style: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; }
.pills li { max-width: 100%; }
/* an open tile takes a row of its own: the tiles after it move down, and nothing above it moves */
.pills li:has(> .pill[open]) { flex: 1 1 100%; }
.pill {
  display: block;
  border: 1.5px solid rgba(191, 220, 247, 0.6);
  border-radius: 1.375rem;
  color: var(--tint-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.pill--plain { padding: 0.5625rem 0.875rem; }
/* the radius is written out: a summary cannot inherit it from its details element */
.pill summary { display: block; border-radius: 1.375rem; cursor: pointer; list-style: none; }
.pill summary:focus-visible { border-radius: 1.375rem; outline-offset: 2px; }
.pill summary::-webkit-details-marker { display: none; }
.pill summary:hover { background: rgba(255, 255, 255, 0.12); }
.pill__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.8125rem 0.375rem 0.875rem;
}
/* plus when closed, minus when open */
.pill__sign { position: relative; flex: none; width: 0.75rem; height: 0.75rem; }
.pill__sign::before,
.pill__sign::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.pill__sign::after { transform: rotate(90deg); }
.pill[open] .pill__sign::after { transform: rotate(0deg); }
/* open: the tile becomes a white bubble holding the explanation */
.pill[open] {
  width: fit-content;
  max-width: min(100%, 34rem);
  border-color: var(--white);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
}
.pill[open] summary,
.pill[open] summary:focus-visible { border-radius: 12px; }
.pill[open] summary:hover { background: none; }
.pill[open] .pill__row { min-height: 0; padding: 0.75rem 0.875rem 0.25rem 1rem; }
.pill[open] .pill__name { font-size: 1rem; font-weight: 800; letter-spacing: -0.005em; }
.pill__what { margin: 0; padding: 0 1rem 0.875rem; color: var(--ink); font-weight: 500; }
/* the photo fills its side of the panel and never sets the panel's height */
.sim__media { position: relative; min-height: 17rem; }
.sim__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }

.teacher { padding-block: 4rem; background: var(--tint-1); }
.instructor {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1.5px solid var(--tint-4);
  border-radius: 16px;
  background: var(--white);
}
.instructor__photo { width: 9.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.instructor__body .label { margin-bottom: 0.5rem; }
.instructor h2 { margin-bottom: 0.75rem; font-size: clamp(1.875rem, 5vw, 2.625rem); }
.instructor__creds { color: var(--muted); font-size: 0.6em; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.instructor p { max-width: 41rem; }

@media (min-width: 40rem) {
  .instructor { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2.25rem; padding: 2.25rem; }
  .instructor__photo { width: 10.5rem; }
}
@media (min-width: 56.25rem) {
  .learn { padding-block: 6rem; }
  .learn__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; margin-top: 2.75rem; }
  .learn__photos { margin-top: 3.5rem; gap: 1rem; }
  .sim { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-top: 3.5rem; }
  .sim__text { padding: 3rem 3rem 3.25rem; }
  .sim__media { min-height: 22rem; }
  .teacher { padding-block: 5.5rem; }
  .instructor { gap: 3rem; padding: 3rem; }
}

/* ---------- Dates: calendar and list ---------- */
.dates { padding-block: 4rem; background: var(--white); }
.picker__subhead {
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.view-toggle {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: var(--tint-3);
}
.view-toggle__btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.view-toggle__btn[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(26, 37, 48, 0.25); }

.picker__grid { margin-top: 1.75rem; }
.picker__grid[data-view="calendar"] .list-wrap { display: none; }
.picker__grid[data-view="list"] .calendar-wrap { display: none; }

.calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.month {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.625rem 0.625rem;
  border-radius: 10px;
  background: var(--tint-1);
}
.month--has-session { background: var(--tint-3); }
.month__name { margin-bottom: 0.375rem; padding-left: 0.1875rem; font-size: 0.9375rem; letter-spacing: -0.005em; }
.month__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.month__grid th {
  padding: 0 0 0.1875rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted);
}
.month__grid td { padding: 0; height: 1.4375rem; text-align: center; font-size: 0.6875rem; color: var(--muted); font-weight: 500; }
.day--session {
  display: inline-grid;
  place-items: center;
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}
.day--open { background: var(--blue); color: var(--white); }
.day--few { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--orange); }
.day--full { background: var(--ink); color: var(--white); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.month__session {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5625rem 0.625rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.month__session:hover { background: var(--tint-1); box-shadow: 0 0 0 1.5px var(--blue); }
.month__session-date { display: block; font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.01em; }
.month__session-slot { display: block; color: var(--muted); }
.month__session-seats { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.3125rem; font-weight: 700; }
.month__session-seats .mark { transform: scale(0.8); }
.month--few .month__session { border-color: var(--orange); background: var(--warm-1); }
.month--few .month__session:hover { box-shadow: 0 0 0 1.5px var(--orange); }
.month--full .month__session { border-color: var(--ink); }
.month--full .month__session:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.month__none { margin: auto 0 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.tag--few { background: var(--warm-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--orange); }
.tag--full { background: var(--ink); color: var(--white); }
.tag--open { background: var(--tint-4); color: var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem; margin-top: 1.125rem; list-style: none; font-size: 0.875rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }

.session-list { list-style: none; border-top: 2px solid var(--ink); }
.session-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: start;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--tint-5);
}
.session-row__date { text-align: center; line-height: 1; }
.session-row__mon { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.session-row__num { display: block; margin: 0.1875rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.session-row__dow { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.session-row__title { margin-bottom: 0.125rem; font-size: 1.0625rem; }
.session-row__slot { margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--muted); }
.session-row__seats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.9375rem; font-weight: 700; }
.session-row .btn { grid-column: 2; justify-self: start; min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }

.pips { display: inline-grid; grid-template-columns: repeat(15, 0.4375rem); gap: 0.1875rem; }
.pip { width: 0.4375rem; height: 0.875rem; border-radius: 2px; background: var(--tint-5); }
.pip--left { background: var(--blue); }
.session-row--few .pip--left { background: var(--orange); }

.noscript { margin-top: 1.5rem; padding: 1rem; border-radius: var(--radius); background: var(--warm-1); }

@media (min-width: 36rem) {
  .calendar { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .month { padding: 0.875rem 0.75rem 0.75rem; }
  .month__grid td { height: 1.5625rem; font-size: 0.75rem; }
}
@media (min-width: 62rem) {
  .dates { padding-block: 6rem; }
  .view-toggle { display: none; }
  .picker__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: 2.5rem; }
  .picker__grid[data-view] .list-wrap,
  .picker__grid[data-view] .calendar-wrap { display: block; }
  .session-row { grid-template-columns: 3.5rem minmax(0, 1fr); padding: 1rem 0; }
}

/* ---------- Booking flow ---------- */
.booking { max-width: 46rem; margin-inline: auto; }
.booking:focus { outline: none; }
.booking__back { margin-bottom: 0.75rem; }
.booking__back svg { flex: none; }

.booking__session {
  padding: 1.375rem 1.375rem 1.25rem;
  border-radius: 12px 12px 0 0;
  background: var(--ink);
  color: var(--white);
}
.booking__session .label { color: var(--tint-5); margin-bottom: 0.5rem; }
.booking__session h2 { margin-bottom: 0.375rem; font-size: clamp(1.5rem, 5vw, 2rem); }
.booking__session p { margin-bottom: 0.25rem; color: var(--tint-2); }
.booking__session .tag { margin-top: 0.5rem; }
.booking__session .tag--open { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border: solid var(--tint-4);
  border-width: 0 1.5px;
  background: var(--tint-2);
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.steps__num {
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--field-border);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
}
.steps li[aria-current="step"] { color: var(--ink); font-weight: 800; }
.steps li[aria-current="step"] .steps__num { background: var(--blue); color: var(--white); box-shadow: none; }
.steps li.is-done .steps__num { background: var(--ink); color: var(--white); box-shadow: none; }
.steps li[aria-current="step"]::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.booking__body {
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1.5px solid var(--tint-4);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--white);
}
.booking__body:focus { outline: none; }
.booking__heading { font-size: 1.5rem; }
.booking__heading:focus { outline: none; }
.booking__intro { color: var(--muted); max-width: 36rem; }

.detail-list { margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--tint-5); }
.detail-list > div { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0.625rem 0; border-bottom: 1px solid var(--tint-5); }
.detail-list dt { font-size: 0.875rem; font-weight: 700; color: var(--muted); padding-top: 0.125rem; }
.detail-list dd { font-weight: 600; }
.detail-list dd small { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); }

/* fields */
.field { margin-bottom: 1.125rem; }
.field label, .field__label { display: block; margin-bottom: 0.375rem; font-size: 0.9375rem; font-weight: 700; }
.field__optional { font-weight: 500; color: var(--muted); }
.field__hint { margin: -0.125rem 0 0.375rem; font-size: 0.875rem; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;   /* 16px keeps iOS from zooming the page on focus */
  line-height: 1.3;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.875rem) 50%;
  background-size: 0.375rem 0.375rem;
  background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--action-hover); border-width: 2.5px; background-color: var(--warm-1); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0.375rem 0 0;
  color: var(--action-hover);
  font-size: 0.875rem;
  font-weight: 700;
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.125rem; height: 1.125rem;
  margin-top: 0.0625rem;
  border-radius: 50%;
  background: var(--action-hover);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}
.field__error:empty { display: none; }

.field-grid { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .booking__body { padding: 2rem 2rem 2.25rem; }
  .booking__session { padding: 1.75rem 2rem 1.5rem; }
}

.seat-pick { display: grid; gap: 1.25rem; align-items: end; margin-bottom: 0.5rem; }
.seat-pick .field { margin-bottom: 0; max-width: 14rem; }
.total {
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: var(--tint-2);
}
.total__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.total__sum { display: block; font-size: 1.0625rem; font-weight: 600; }
.total__sum strong { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 36rem) {
  .seat-pick { grid-template-columns: 14rem minmax(0, 1fr); }
}

.attendee {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1rem 0.375rem;
  border: 1.5px solid var(--tint-5);
  border-radius: 12px;
  background: var(--tint-1);
}
.attendee legend {
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (min-width: 36rem) { .attendee { padding: 1.5rem 1.5rem 0.5rem; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0.125rem 0 0; accent-color: var(--blue); }
.check--plain { border: 0; padding: 0.25rem 0; background: none; font-weight: 500; margin-bottom: 1rem; }
.check[data-invalid="true"] { border-color: var(--action-hover); border-width: 2.5px; background: var(--warm-1); }

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  border: 2.5px solid var(--action-hover);
  border-radius: var(--radius);
  background: var(--warm-1);
}
.error-summary:focus { outline: 3px solid var(--orange); outline-offset: 3px; }
.error-summary h4 { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.error-summary ul { padding-left: 1.125rem; }
.error-summary li { margin-bottom: 0.25rem; }
.error-summary a { color: var(--action-hover); font-weight: 600; }

.booking__actions {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tint-5);
}
.booking__actions .btn--primary { flex: 1 1 14rem; }
@media (min-width: 36rem) { .booking__actions .btn--primary { flex: 0 0 auto; margin-left: auto; } }

.running-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--tint-2);
  font-weight: 600;
}
.running-total strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }

/* policy inside booking and on the page */
.policy-list > div { padding: 1rem 0; border-bottom: 1px solid rgba(26, 37, 48, 0.18); }
.policy-list > div:first-child { border-top: 2px solid var(--ink); }
.policy-list dt { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.policy-list dd { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.booking .policy-list { margin-bottom: 1.5rem; }
.booking .policy-list dd { font-size: 1.0625rem; }

/* payment placeholder */
.order { margin-bottom: 1.5rem; border: 1.5px solid var(--tint-5); border-radius: 12px; overflow: hidden; }
.order__head { padding: 0.875rem 1.125rem; background: var(--tint-2); font-weight: 800; }
.order__rows { padding: 0.25rem 1.125rem; }
.order__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--tint-4); }
.order__rows > div:last-child { border-bottom: 0; }
.order__rows dt { color: var(--muted); }
.order__rows dd { font-weight: 600; text-align: right; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.875rem 1.125rem; background: var(--ink); color: var(--white); font-weight: 700; }
.order__total strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.pay-soon {
  position: relative;
  padding: 1.5rem 1.25rem;
  border: 2px dashed var(--field-border);
  border-radius: 12px;
  background: var(--tint-1);
  text-align: center;
}
.pay-soon__lock { margin: 0 auto 0.75rem; color: var(--blue); }
.pay-soon__title { margin-bottom: 0.375rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.pay-soon p { color: var(--muted); max-width: 30rem; margin-inline: auto; }
.pay-soon p.pay-soon__title { color: var(--ink); }
.pay-soon__ghost { display: grid; gap: 0.625rem; max-width: 20rem; margin: 1.25rem auto 0; }
.pay-soon__ghost span { display: block; height: 2.5rem; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--tint-3) 0 8px, var(--tint-2) 8px 16px); }
.pay-soon__ghost-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }

/* live payment step */
.pay-live {
  padding: 1.25rem 1.25rem 1.375rem;
  border: 1.5px solid var(--tint-5);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint-1);
}
.pay-live p { color: var(--muted); max-width: 34rem; margin-bottom: 0.5rem; }
.pay-live p.pay-live__title { margin-bottom: 0.375rem; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.pay-live__test { margin-top: 1rem; padding: 0.875rem 1rem; border-radius: var(--radius); background: var(--warm-2); box-shadow: inset 0 0 0 1.5px var(--orange); }
.pay-live .pay-live__test p { color: var(--ink); margin-bottom: 0.25rem; }
.pay-live .pay-live__test p.pay-live__test-title { font-weight: 800; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* "you left the payment page" note above the calendar */
.return-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint-1);
}

/* confirmation */
.demo-notice.demo-notice--done { border-left-color: var(--blue); background: var(--tint-1); }
.demo-notice {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 1.375rem;
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--warm-1);
}
.demo-notice h3 { font-size: 1.375rem; line-height: 1.25; }
.demo-notice h3:focus { outline: none; }
.demo-notice p { color: var(--ink); }
.next-steps { margin: 0.75rem 0 1.5rem 1.25rem; }
.next-steps li { margin-bottom: 0.375rem; padding-left: 0.25rem; }
.contact-inline { font-size: 0.9375rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Cancellation policy section ---------- */
.policy { padding-block: 4rem; background: linear-gradient(180deg, var(--warm-1) 0%, var(--warm-2) 100%); }
.policy__grid { display: grid; gap: 1.5rem; }
@media (min-width: 56.25rem) {
  .policy { padding-block: 5.5rem; }
  .policy__grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
  .policy-list > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: baseline; }
  .booking .policy-list > div { grid-template-columns: 1fr 1.2fr; }
}

/* ---------- Location ---------- */
.location { padding-block: 4rem; background: var(--white); }
.location__grid { display: grid; gap: 2.5rem; }
.location__address { margin: 1.25rem 0; padding-left: 1rem; border-left: 4px solid var(--orange); font-size: 1.1875rem; line-height: 1.45; }
.location__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.location__links .btn { flex: 1 1 12rem; }
.location h3 { margin-bottom: 0.625rem; }
.arrival { margin-bottom: 0.875rem; border-top: 1px solid var(--tint-5); }
.arrival > div { padding: 0.625rem 0; border-bottom: 1px solid var(--tint-5); }
.arrival dt { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.arrival dd { font-weight: 700; }
.location__parking { font-weight: 700; }
.location__photo { width: 100%; margin-top: 1.5rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-lg); }
.locator svg { width: 100%; height: auto; }
.locator figcaption { margin-top: 0.625rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 56.25rem) {
  .location { padding-block: 6rem; }
  .location__grid { grid-template-columns: 1fr 1.12fr; gap: 4.5rem; align-items: start; }
  .location__links .btn { flex: 0 0 auto; }
}

/* ---------- FAQ and contact ---------- */
.faq { padding-block: 4rem; background: var(--tint-1); }
.faq__grid { display: grid; gap: 2.5rem; }
.faq__list h2 { margin-bottom: 1.25rem; }
.faq details { border-bottom: 1px solid var(--tint-5); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.125rem 2.75rem 1.125rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 1rem; height: 2.5px;
  margin-top: -1.25px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { max-width: 40rem; margin: 0; padding: 0 2.75rem 1.25rem 0; color: var(--muted); }
.faq details p:not(:last-child) { padding-bottom: 0.75rem; }

.contact {
  align-self: start;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
}
.contact h2 { font-size: 1.5rem; }
.contact .label { display: block; margin-bottom: 0.125rem; color: var(--tint-5); }
.contact__line { margin-bottom: 1rem; }
.contact a { color: var(--white); font-size: 1.1875rem; font-weight: 700; overflow-wrap: anywhere; }
.contact a:hover { color: var(--tint-5); }
.contact :focus-visible { outline-color: var(--white); }

@media (min-width: 56.25rem) {
  .faq { padding-block: 6rem; }
  .faq__grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4.5rem; }
  .contact { position: sticky; top: calc(var(--stack-h) + 1.5rem); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 6.5rem; background: var(--ink); color: var(--tint-4); font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--tint-5); }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__name {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-footer__name img { flex: none; width: 1.875rem; height: 1.875rem; }
.site-footer address { margin-bottom: 0.75rem; }
.site-footer__nav { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.site-footer__nav a { display: inline-block; padding: 0.25rem 0; }
.site-footer__legal p { margin-bottom: 0.625rem; }
@media (min-width: 56.25rem) {
  .site-footer { padding-bottom: 3rem; }
  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.3fr; gap: 3rem; }
}

/* ---------- Sticky reserve bar (phones) ---------- */
.reserve-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1.25rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--tint-5);
  box-shadow: 0 -10px 24px -14px rgba(26, 37, 48, 0.45);
}
.reserve-bar__text { margin: 0; font-size: 0.9375rem; line-height: 1.25; }
.reserve-bar__text strong { font-size: 1.125rem; font-weight: 800; }
.reserve-bar__sub { display: block; font-size: 0.8125rem; color: var(--muted); }
.reserve-bar .btn { min-height: 2.875rem; padding: 0.625rem 1.125rem; }
@media (min-width: 62rem) { .reserve-bar { display: none !important; } }

@media (prefers-reduced-motion: no-preference) {
  .reserve-bar { animation: bar-in 0.25s ease both; }
  @keyframes bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .booking__body { animation: step-in 0.25s ease both; }
  @keyframes step-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Reduced motion: no transitions or animations at all. Every change is instant. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: keep it readable ---------- */
@media print {
  .top-stack, .reserve-bar, .view-toggle, .menu-btn { display: none !important; }
  .hero { color: var(--ink); background: none; }
  .hero__media { display: none; }
}

/* ---------- "You are registered" page (registered/index.html) ---------- */
.registered { min-height: 70vh; }
.registered .booking__session { border-radius: 12px 12px 0 0; }
.registered__title { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.registered__sub { margin-top: 1.5rem; font-size: 1.25rem; }
.registered__test { margin: 0 0 1.25rem; }
.registered__test p { margin-bottom: 0.25rem; }
.registered__test .pay-live__test-title { font-weight: 800; }
