/* ==========================================================================
   Pulse and Purpose — CPR Training
   ========================================================================== */

:root {
  --ink: #1b1420;
  --ink-soft: #463d4c;
  --muted: #6d6472;
  --cream: #fbf6f0;
  --paper: #ffffff;
  --sand: #f4ebe1;
  --blush: #fde7e4;
  --red: #d7263d;
  --red-deep: #a3142a;
  --line: #e9ded3;
  --success: #1f7a4d;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(27, 20, 32, .05), 0 18px 40px -18px rgba(27, 20, 32, .22);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "opsz" 96;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "opsz" 36; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
em.accent, h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--red); }

[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand em { font-style: italic; font-weight: 400; color: var(--red); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 5px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--sand); }
.nav-links > li > a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-links .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }

.pill {
  display: inline-flex; align-items: center;
  font-size: .66rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 8px; border-radius: 999px;
  background: var(--blush); color: var(--red-deep);
  white-space: nowrap;
}
a[aria-current="page"] .pill { background: var(--red); color: #fff; }

.submenu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 250px; list-style: none; margin: 0; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { border-radius: 12px; padding: 10px 12px; gap: 12px; }
.submenu .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blush); color: var(--red); display: grid; place-items: center; flex: none; }
.submenu .ico svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .close { display: none; }
.menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .close { display: block; }

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(var(--header-h) - 4px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 22px; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-links .chev { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 12px; min-width: 0;
  }
  .submenu::before { display: none; }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { transform: none; }
  .submenu a { padding: 9px 12px; font-size: .95rem; }
  .submenu .ico { width: 30px; height: 30px; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(215, 38, 61, .7); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blush); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red-deep); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Common bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: ping 1.6s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(215, 38, 61, .5); }
  75%, 100% { box-shadow: 0 0 0 10px rgba(215, 38, 61, 0); }
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7263d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks.inline { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--ink-soft); }
.checks.inline li { align-items: center; }
.checks.inline li::before { margin-top: 0; width: 20px; height: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }

.icon-tile {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blush); color: var(--red); margin-bottom: 22px; flex: none;
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.bg-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { max-width: 52ch; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.split-head .section-head { margin-bottom: 0; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

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

.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 30px; }

.rhythm-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 30px;
  padding: 40px 32px 30px; text-align: center; box-shadow: var(--shadow);
}
.rhythm-card::after {
  content: ""; position: absolute; inset: auto 24px -12px; height: 24px; border-radius: 0 0 30px 30px;
  background: var(--sand); z-index: -1;
}
.rhythm { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; display: grid; place-items: center; }
.rhythm .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--blush); animation: ripple 1.1s ease-out infinite; }
.rhythm .ring.r2 { animation-delay: .55s; }
@keyframes ripple { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.rhythm-core {
  position: relative; width: 98px; height: 98px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(215, 38, 61, .7);
}
.rhythm-core svg { width: 46px; height: 46px; animation: squeeze .545s ease-in-out infinite; }
@keyframes squeeze { 0%, 100% { transform: scale(1); } 30% { transform: scale(.86); } }
.rhythm-num { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 3.1rem; line-height: 1; letter-spacing: -.02em; }
.rhythm-label { color: var(--muted); margin-top: 6px; }
.rhythm-steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; }
.rhythm-steps li {
  counter-increment: s; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem;
}
.rhythm-steps li::before {
  content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .75rem;
}
.rhythm-foot { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

.ecg { margin-top: clamp(40px, 6vw, 72px); height: 120px; color: var(--red); }
.ecg svg { width: 100%; height: 100%; overflow: visible; }
.ecg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.ecg .ecg-base { stroke-width: 2.5; opacity: .22; }
.ecg .ecg-draw { stroke-width: 2.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.6s ease-out .2s forwards; }
.ecg .ecg-run { stroke-width: 4; stroke-dasharray: 60 940; animation: run 3.4s linear 2.8s infinite; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes run { 0% { stroke-dashoffset: 60; opacity: 1; } 100% { stroke-dashoffset: -940; opacity: 1; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rhythm-card { max-width: 440px; }
}
@media (max-width: 420px) {
  .rhythm-steps { flex-wrap: wrap; }
}

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 36px 32px 8px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-num {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--red);
  font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 14px;
}
.stat-num small { font-size: .45em; letter-spacing: 0; font-weight: 500; margin: 0 .2em; color: var(--ink-soft); }
.stat p { color: var(--ink-soft); max-width: 30ch; }
.source { margin-top: 20px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0 4px; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- Audience & course cards ---------- */

.audience .card { display: flex; flex-direction: column; }
.audience .card ul { margin-top: auto; padding-top: 18px; }

.course-card { display: flex; flex-direction: column; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.course-card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-soft); margin-bottom: 18px;
}
.course-card .tag.hot { background: var(--red); color: #fff; }
.course-card p { color: var(--ink-soft); }
.course-card .meta { list-style: none; padding: 16px 0 0; margin: auto 0 18px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.course-card .meta b { color: var(--ink); font-weight: 600; }

/* ---------- BLS class (home) ---------- */

.bls-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.bls-options { display: grid; gap: 20px; }
.bls-covers { background: var(--ink); color: #fff; border-color: var(--ink); padding: clamp(28px, 4vw, 44px); }
.bls-covers h3 { color: #fff; font-size: 1.7rem; margin-bottom: 24px; }
.bls-covers .icon-tile { background: rgba(255, 255, 255, .08); color: #ff8b98; }
.bls-covers .checks { gap: 16px; color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
@media (max-width: 860px) { .bls-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1rem;
  color: var(--red); margin-bottom: 26px; letter-spacing: .04em;
}
.steps li p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Partner tiles (home) ---------- */

.partner-tile {
  display: flex; flex-direction: column; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 240px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.partner-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-tile p { color: var(--ink-soft); font-size: .97rem; }
.partner-tile .link-arrow { margin-top: auto; }

/* ---------- Dark feature band ---------- */

.band {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); color: #fff;
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
}
.band h2 { color: #fff; max-width: 18ch; }
.band h2 em { color: #ff8b98; }
.band p { color: rgba(255, 255, 255, .74); max-width: 48ch; }
.band .pill { background: rgba(215, 38, 61, .22); color: #ffb3bb; margin-bottom: 20px; padding: 7px 11px; font-size: .72rem; }
.band .band-art { color: var(--red); opacity: .9; }
.band .band-art svg { width: 100%; height: auto; }
.band-actions { justify-self: end; }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
  .band-actions { justify-self: start; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }

/* ---------- Forms ---------- */

.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-section + .form-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section > h3 { font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-section > h3 .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: "DM Sans", sans-serif; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; min-width: 0; border: 0; padding: 0; }
.field > label, .field > legend, .field .label { font-weight: 600; font-size: .93rem; padding: 0; }
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: -2px; }
.field .optional { font-weight: 400; color: var(--muted); font-size: .85rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-width: 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { min-height: 50px; }
textarea { min-height: 120px; resize: vertical; }
select {
  padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 15px center / 18px no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: #d6c7b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 61, .13); }
::placeholder { color: #a79da9; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c4162d; background-color: #fff8f8; }
.error-msg { display: none; color: #b0142a; font-size: .85rem; font-weight: 500; }
.field.invalid .error-msg { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .box {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px; border: 1.5px solid var(--line); border-radius: 15px; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice .box strong { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.choice .box strong svg { width: 20px; height: 20px; color: var(--red); }
.choice .box span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.choice:hover .box { border-color: #d6c7b8; }
.choice input:checked + .box { border-color: var(--red); background: var(--blush); box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + .box { outline: 3px solid var(--red); outline-offset: 2px; }
.field.invalid .choice .box { border-color: #c4162d; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.field.invalid .checkbox { color: #b0142a; }

.js [data-cond]:not(.show) { display: none; }
.js [data-cond].show { animation: fadeUp .25s ease; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-grid .checkbox {
  align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
  color: var(--ink); font-weight: 500; transition: border-color .15s ease, background .15s ease;
}
.check-grid .checkbox input { margin: 0; }
.check-grid .checkbox:hover { border-color: #d6c7b8; }
.check-grid .checkbox:has(input:checked) { border-color: var(--red); background: var(--blush); }
@media (max-width: 620px) { .check-grid { grid-template-columns: 1fr; } }

main [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.form-foot .small { margin: 0; max-width: 40ch; }

.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: .92rem; background: #fff4f4; color: #9c1226; }
.form-status.show { display: block; }

.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; }
.form-success .badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: #e5f4ec; color: var(--success);
}
.form-success .badge svg { width: 36px; height: 36px; }
.form-success p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }
.form-success .btn { margin-top: 10px; }

.aside-stack { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .aside-stack { position: static; } }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-card.dark p { color: rgba(255, 255, 255, .74); }
.aside-card.dark .link-arrow { color: #ffb3bb; }
.aside-card .checks { font-size: .95rem; color: var(--ink-soft); gap: 10px; }

/* ---------- Registration: organization code, class dates, summary ---------- */

.code-box {
  margin-bottom: 30px; padding: 22px; border-radius: 20px;
  background: var(--blush); border: 1.5px dashed rgba(215, 38, 61, .35);
  transition: background .2s ease, border-color .2s ease;
}
.code-box.is-applied { background: #eaf6ef; border: 1.5px solid rgba(31, 122, 77, .35); }
.code-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.code-label svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.code-box .small { margin: 0 0 14px; }
.code-row { display: flex; gap: 10px; }
.code-row input { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.code-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.code-row input[aria-invalid="true"] { border-color: #c4162d; }
.btn-ink { background: var(--ink); color: #fff; padding: 13px 22px; white-space: nowrap; }
.btn-ink:hover { background: #000; }
.code-status { margin: 10px 0 0; font-size: .9rem; font-weight: 500; color: #b0142a; }
.code-status:empty { display: none; }
.code-applied { display: flex; gap: 14px; align-items: flex-start; }
.code-applied-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.code-applied-icon svg { width: 20px; height: 20px; }
.code-applied-title { margin: 0 0 2px; font-weight: 500; }
.code-applied .small { margin: 0; }
.code-applied #code-org-note { margin-bottom: 2px; color: var(--ink-soft); }
.code-remove {
  margin-left: auto; flex: none; border: 0; background: none; cursor: pointer; padding: 4px;
  color: var(--red-deep); font: 600 .9rem "DM Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 480px) {
  .code-row { flex-direction: column; }
  .code-applied { flex-wrap: wrap; }
}

.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .choice-grid.two { grid-template-columns: 1fr; } }
.choice .box .price { margin-top: 8px; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.choice .box .price:empty { display: none; }

.session-list { display: grid; gap: 10px; }
.session-list:empty { display: none; }
.session { position: relative; display: block; cursor: pointer; }
.session input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.session-box {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px 12px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.session:hover .session-box { border-color: #d6c7b8; }
.session input:checked + .session-box { border-color: var(--red); background: var(--blush); box-shadow: inset 0 0 0 1px var(--red); }
.session input:focus-visible + .session-box { outline: 3px solid var(--red); outline-offset: 2px; }
.field.invalid .session-box { border-color: #c4162d; }
.session-date {
  flex: none; width: 60px; min-height: 66px; padding: 7px 0; text-align: center; line-height: 1.1;
  border-radius: 12px; background: var(--cream); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.session-date .mon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-deep); }
.session-date .day { font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; font-weight: 600; }
.session-date .wd { font-size: .72rem; color: var(--muted); }
.session-date svg { width: 24px; height: 24px; color: var(--red); }
.session-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.session-info strong { font-size: .98rem; }
.session-info span { font-size: .88rem; color: var(--muted); }
.session-price { flex: none; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem; }
@media (max-width: 480px) {
  .session-box { flex-wrap: wrap; gap: 4px 14px; }
  .session-info { flex-basis: calc(100% - 74px); }
  .session-price { margin-left: 74px; font-size: 1.1rem; }
}

.reg-summary { margin: 4px 0 24px; padding: 20px 22px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.reg-summary h4 { font-family: "DM Sans", system-ui, sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.reg-summary dl { margin: 0; display: grid; gap: 8px; }
.reg-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .95rem; }
.reg-summary dt { color: var(--muted); flex: none; }
.reg-summary dd { margin: 0; font-weight: 600; text-align: right; }
.reg-summary .total { padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line); }
.reg-summary .total dd { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; }
.reg-summary p { margin: 12px 0 0; }

/* ---------- Tabs (partnerships) ---------- */

.tablist {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 6px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line);
  margin-bottom: 28px;
}
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer;
  font: 600 1rem/1.2 "DM Sans", system-ui, sans-serif; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.tab svg { width: 20px; height: 20px; flex: none; }
.tab:hover { background: var(--sand); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"] svg { color: #ff8b98; }
@media (max-width: 720px) { .tablist { grid-template-columns: repeat(2, 1fr); } }

.tabpanel { scroll-margin-top: calc(var(--header-h) + 24px); }
.tabpanel:focus-visible { outline-offset: 6px; border-radius: 28px; }
.panel-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 5vw, 56px);
  animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 18ch; }
.panel-grid .lead { max-width: 52ch; }
.panel-grid h3 { font-size: 1.1rem; margin: 30px 0 16px; }
.panel-side { display: flex; flex-direction: column; gap: 16px; }
.panel-side .side-box { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.panel-side .side-box h4 { font-family: "DM Sans", sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.panel-side .side-box .chips li { background: #fff; }
.panel-side .quote { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; line-height: 1.3; font-style: italic; margin: 0; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }

/* ---------- Coming soon ---------- */

.soon-hero { text-align: center; padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 56px); }
.soon-hero h1 { max-width: 15ch; margin-inline: auto; }
.soon-hero .lead { margin-inline: auto; max-width: 52ch; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
.soon-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: ping 1.6s ease-out infinite; }
.planned .card { border-style: dashed; background: rgba(255, 255, 255, .6); }
.planned .card .pill { margin-bottom: 18px; background: var(--sand); color: var(--ink-soft); }
/* ---------- CTA ---------- */

.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

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

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand em { color: #ff8b98; }
.site-footer h4 { font-family: "DM Sans", sans-serif; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .pill { background: rgba(215, 38, 61, .25); color: #ffb3bb; margin-left: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ecg .ecg-draw { stroke-dashoffset: 0; }
  .ecg .ecg-run { display: none; }
  .rhythm .ring { opacity: .6; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
