/* =============================================================
   Carin CPR Training — site stylesheet
   Layered on top of Bootstrap 5.3; loaded after it so these win.

   DESIGN NOTE — where the look comes from:
   The subject is resuscitation training, so the visual language is
   borrowed from the equipment, not from "medical website": the
   off-white of a training room wall, the red of an AED cabinet, and
   the green of a restored rhythm on a monitor. The signature element
   is the compression pulse in the hero — a ring beating at exactly
   110 per minute, the rate students are taught to internalize. It is
   the one loud thing on the page; everything else stays quiet.
   ============================================================= */

:root {
  /* Ink + ground */
  --ink:        #143138;   /* deep teal-slate: reads calm and clinical, not black */
  --ink-soft:   #3D565C;
  --muted:      #6B8086;
  --paper:      #F2F5F4;   /* cool off-white — a wall, not parchment */
  --surface:    #FFFFFF;
  --line:       #DDE6E4;
  --line-strong:#C4D3D0;

  /* Signal — AED cabinet red. Used for action and for the pulse only. */
  --signal:      #D92B1F;
  --signal-deep: #A81F16;
  --signal-wash: #FDECEA;

  /* Vital — a rhythm that came back. Availability, success, progress. */
  --vital:      #0F9B7A;
  --vital-deep: #0A7259;
  --vital-wash: #E4F4EF;

  /* Attention (never the only carrier of meaning — always paired with text) */
  --amber:      #C77A0E;
  --amber-wash: #FDF2E0;

  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body:    'IBM Plex Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(20,49,56,.05), 0 8px 24px -12px rgba(20,49,56,.18);
  --shadow-lg: 0 2px 4px rgba(20,49,56,.06), 0 24px 48px -20px rgba(20,49,56,.28);

  /* 110 compressions per minute = 545ms per beat. Used by the hero pulse. */
  --beat: 545ms;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-face {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

a { color: var(--signal-deep); text-underline-offset: 3px; }
a:hover { color: var(--signal); }

::selection { background: var(--ink); color: var(--paper); }

/* Keyboard focus must always be visible, on every interactive thing. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--vital);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Shared bits ------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .735rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.62; }
.muted-text { color: var(--muted); }
.mono { font-family: var(--mono); }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-line { border-top: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #E8F0EF; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: #7FA5A2; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

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

.btn {
  font-family: var(--body);
  font-weight: 600;
  border-radius: 10px;
  padding: .72rem 1.35rem;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-deep); color: #fff; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0C2429; color: #fff; }

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

.btn-vital { background: var(--vital); color: #fff; }
.btn-vital:hover { background: var(--vital-deep); color: #fff; }

.btn-lg { padding: .9rem 1.7rem; font-size: 1.04rem; }
.btn-sm { padding: .42rem .85rem; font-size: .88rem; }

/* -------------------------------------------------------------
   Navbar
   ------------------------------------------------------------- */

.site-nav {
  background: rgba(242,245,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-nav .wrap {
  display: flex; align-items: center; gap: 26px;
  height: 68px;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-wash);
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .96rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: 8px;
}
.nav-links a:hover { background: rgba(20,49,56,.06); color: var(--ink); }
.nav-links a.is-current { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 9px; padding: .4rem .6rem; color: var(--ink); font-size: 1.1rem; line-height: 1;
}

/* -------------------------------------------------------------
   Hero + the signature: a pulse at 110/min
   ------------------------------------------------------------- */

.hero { padding: 76px 0 68px; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { margin: 14px 0 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--signal);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note {
  margin-top: 22px; font-size: .93rem; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
}

/* The pulse. A ring that expands on every beat, at the rate you are
   taught to compress. Meaning first: the readout names the rate. */
.pulse {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1; width: 100%; max-width: 330px; margin-inline: auto;
}
.pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--signal);
  opacity: 0;
  animation: pulse-out calc(var(--beat) * 2) linear infinite;
}
.pulse-ring:nth-child(2) { animation-delay: var(--beat); }
.pulse-core {
  position: relative;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center;
  animation: pulse-beat var(--beat) ease-in-out infinite;
}
.pulse-rate {
  font-family: var(--display); font-size: 3.15rem; font-weight: 700;
  line-height: 1; color: var(--ink); letter-spacing: -.03em;
}
.pulse-unit {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 7px;
  max-width: 12ch; line-height: 1.5;
}

@keyframes pulse-out {
  0%   { transform: scale(.62); opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes pulse-beat {
  0%, 100% { transform: scale(1); }
  16%      { transform: scale(1.035); }
  40%      { transform: scale(.995); }
}

/* -------------------------------------------------------------
   Class (cohort) cards — date-forward, because the date is what
   people are actually choosing between.
   ------------------------------------------------------------- */

.class-list { display: grid; gap: 14px; }

.class-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.class-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.date-block {
  text-align: center; border-right: 1px solid var(--line); padding-right: 22px;
}
.date-month {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--signal); font-weight: 500;
}
.date-day {
  font-family: var(--display); font-size: 2.5rem; font-weight: 700;
  line-height: 1.05; color: var(--ink); letter-spacing: -.03em;
}
.date-weekday { font-size: .82rem; color: var(--muted); }

.class-body h3 { margin: 0 0 5px; }
.class-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .92rem; color: var(--muted);
}
.class-price {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink);
  text-align: right; letter-spacing: -.02em;
}
.class-cta { text-align: right; }

/* Seat state. Colour is support; the words carry the meaning. */
.seats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; font-family: var(--body);
  padding: .22rem .6rem; border-radius: 100px;
}
.seats-open   { background: var(--vital-wash); color: var(--vital-deep); }
.seats-few    { background: var(--amber-wash); color: var(--amber); }
.seats-full   { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.seats-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* -------------------------------------------------------------
   Course cards
   ------------------------------------------------------------- */

.course-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px;
}
.course-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.course-card h3 { margin: 0 0 4px; }
.course-for {
  font-size: .9rem; color: var(--signal-deep); font-weight: 600; margin-bottom: 12px;
}
.course-card p { font-size: .97rem; color: var(--ink-soft); flex: 1; }
.course-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.course-price { font-family: var(--display); font-size: 1.32rem; font-weight: 700; }
.course-len { font-size: .88rem; color: var(--muted); }

/* -------------------------------------------------------------
   How it works — this really is a sequence, so it is numbered.
   ------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; color: var(--signal);
  display: block; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 2px solid rgba(217,43,31,.22);
}
.step h3 { font-size: 1.06rem; margin: 0 0 7px; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.section-ink .step p { color: #B9CFCD; }
.section-ink .step::before { color: #FF8A7E; border-bottom-color: rgba(255,138,126,.28); }

/* -------------------------------------------------------------
   Panels, forms, tables
   ------------------------------------------------------------- */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.panel-head h2, .panel-head h3 { margin: 0; }

.form-label { font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: .3rem; }
.form-hint { font-size: .86rem; color: var(--muted); margin-top: .3rem; }
.form-control, .form-select {
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: .66rem .85rem; font-size: 1rem; background: var(--surface); color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--vital); box-shadow: 0 0 0 3px var(--vital-wash);
}
.form-control::placeholder { color: #9DB0B4; }

.alert { border: 1px solid; border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .96rem; }
.alert-success { background: var(--vital-wash); border-color: #B9E3D6; color: var(--vital-deep); }
.alert-error   { background: var(--signal-wash); border-color: #F5C6C1; color: var(--signal-deep); }
.alert-info    { background: #EAF1F3; border-color: #C9DCE0; color: var(--ink); }
.alert-warn    { background: var(--amber-wash); border-color: #F0DCB4; color: #8A5509; }

.code-chip {
  font-family: var(--mono); font-size: .95rem; letter-spacing: .06em;
  background: var(--paper); border: 1px solid var(--line);
  padding: .18rem .5rem; border-radius: 6px; color: var(--ink);
}

/* Admin list rows — the house "spine rows" pattern: rounded corners
   with a coloured left bar carrying status. Base styles live here so
   pages stop re-declaring them. */
.schools-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: .95rem; }
.schools-table thead th {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 0 14px 4px; text-align: left; border: 0;
}
.schools-table td { background: var(--surface); padding: 13px 14px; vertical-align: middle; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schools-table td:first-child { border-left: 1px solid var(--line); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.schools-table td:last-child  { border-right: 1px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.spine-rows td:first-child { position: relative; padding-left: 20px; }
.spine-rows td:first-child::before {
  content: ''; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 4px;
  border-radius: 3px; background: var(--line-strong);
}
.spine-rows .bar-sb-teal  td:first-child::before { background: var(--vital); }
.spine-rows .bar-sb-gray  td:first-child::before { background: #A9BCC0; }
.spine-rows .bar-sb-amber td:first-child::before { background: var(--amber); }
.spine-rows .bar-sb-coral td:first-child::before { background: var(--signal); }
.spine-rows .bar-sb-blue  td:first-child::before { background: #3F7EA6; }

/* Admin section nav */
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-nav .wrap { display: flex; gap: 2px; overflow-x: auto; }
.admin-nav a {
  padding: 15px 15px 13px; text-decoration: none; color: var(--muted);
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.is-active { color: var(--ink); border-bottom-color: var(--signal); font-weight: 600; }

/* Inline per-seat editor inside the roster */
.seat-editor-row td { background: transparent !important; }
.seat-editor {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 0 0 8px;
  display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: start;
}
.seat-cert { border-left: 1px solid var(--line); padding-left: 22px; }
.gate-list ul { margin: 0; padding-left: 1.05rem; font-size: .86rem; color: var(--ink-soft); }
.gate-list li { margin-bottom: 3px; }

@media (max-width: 800px) {
  .seat-editor { grid-template-columns: 1fr; gap: 18px; }
  .seat-cert { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}

/* Stat tiles for the admin dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat-value {
  font-family: var(--display); font-size: 1.95rem; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1;
}
.stat-label { font-size: .86rem; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------------
   Portal — modules and progress
   ------------------------------------------------------------- */

.module-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 22px; margin-bottom: 10px;
}
.module-row.is-locked { background: #F7F9F9; border-style: dashed; }
.module-check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  font-size: .8rem; color: transparent; flex: none;
}
.module-row.is-done .module-check {
  background: var(--vital); border-color: var(--vital); color: #fff;
}
.module-row h3 { font-size: 1.03rem; margin: 0 0 2px; }
.module-meta { font-size: .87rem; color: var(--muted); }

.enrollment-block { margin-bottom: 46px; }
.enrollment-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

.progress-track { height: 7px; background: var(--line); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--vital); border-radius: 100px; }

/* Module assets */
.asset-row {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 18px; margin-bottom: 8px;
}
.asset-kind {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  color: var(--muted); background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; padding: .28rem 0; text-align: center;
}
.asset-title { font-weight: 600; font-size: .99rem; }

.module-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.module-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.module-nav a { text-decoration: none; font-weight: 500; }

/* Certificate card */
.cert-card {
  background: linear-gradient(140deg, var(--ink) 0%, #1D454E 100%);
  color: #fff; border-radius: var(--radius); padding: 28px;
}
.cert-card h3 { color: #fff; margin: 0 0 4px; }
.cert-card .code-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.cert-meta { color: #A8C4C2; font-size: .92rem; }

/* Auth pages */
.auth-card {
  max-width: 428px; margin: 24px auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow);
}

/* Confirmation "what happens next" */
.next-list { padding-left: 1.15rem; color: var(--ink-soft); }
.next-list li { margin-bottom: 10px; }

/* Verification result. State is named in words; colour only reinforces it. */
.verify-result { border-width: 1px; border-left-width: 5px; }
.verify-result.is-valid   { border-left-color: var(--vital); }
.verify-result.is-expired { border-left-color: var(--amber); }
.verify-result.is-invalid { border-left-color: var(--signal); }
.verify-badge {
  display: inline-block; font-family: var(--mono); font-size: .71rem;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 500;
  padding: .26rem .66rem; border-radius: 100px; margin-bottom: 14px;
}
.is-valid   .verify-badge { background: var(--vital-wash);  color: var(--vital-deep); }
.is-expired .verify-badge { background: var(--amber-wash);  color: #8A5509; }
.is-invalid .verify-badge { background: var(--signal-wash); color: var(--signal-deep); }

/* Class detail + booking panel */
.class-detail { display: grid; grid-template-columns: 1.4fr .8fr; gap: 44px; align-items: start; margin-top: 8px; }
.booking-panel { position: sticky; top: 92px; }
.booking-price {
  font-family: var(--display); font-size: 2.5rem; font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
}
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th {
  text-align: left; vertical-align: top; width: 148px; padding: 11px 14px 11px 0;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.detail-table td { padding: 11px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.detail-table tr:last-child td, .detail-table tr:last-child th { border-bottom: 0; }

/* Compact upcoming-date list in the course sidebar */
.date-list { list-style: none; padding: 0; margin: 0; }
.date-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.date-list li:last-child { border-bottom: 0; }
.date-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.date-list a:hover { color: var(--signal-deep); }
.date-list-time { font-weight: 400; color: var(--muted); margin-left: 7px; font-size: .92rem; }
.date-list-seats { font-size: .85rem; color: var(--muted); white-space: nowrap; }

.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }

/* Filter chips */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.filter-chip {
  font-size: .91rem; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px; padding: .38rem .95rem;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Home: instructor + verify strip */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.verify-strip { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.verify-strip > div:first-child { flex: 1; min-width: 260px; }
.verify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-form .form-control { min-width: 212px; letter-spacing: .08em; }

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

.site-footer {
  background: var(--ink); color: #A8C4C2;
  padding: 52px 0 34px; margin-top: 72px; font-size: .94rem;
}
.site-footer a { color: #DDEAE8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: #7FA5A2; font-weight: 500; margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px;
  font-size: .85rem; color: #7FA5A2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pulse { max-width: 250px; order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .class-detail { grid-template-columns: 1fr; gap: 32px; }
  .booking-panel { position: static; }
  .section { padding: 62px 0; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .7rem .85rem; }
  .nav-toggle { display: block; }

  .class-card { grid-template-columns: 68px 1fr; gap: 16px; padding: 17px 18px; }
  .date-block { padding-right: 14px; }
  .date-day { font-size: 1.95rem; }
  .class-price, .class-cta { grid-column: 1 / -1; text-align: left; }
  .class-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .module-row { grid-template-columns: auto 1fr; }
}

/* -------------------------------------------------------------
   Motion preferences — the pulse is the one animation on the site,
   and it is the first thing to go.
   ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .pulse-ring { opacity: .3; transform: scale(.85); }
}

@media print {
  .site-nav, .site-footer, .hero-actions, .btn { display: none !important; }
  body { background: #fff; }
}
