/* Ko's Taekwondo: livingstontkd.com
   The look of a calm, well-run school: navy and cream like a clean uniform, yellow for the one
   action (Book a free class), and the belt colors as the only other colors, used as a small,
   consistent signature (a thin stripe, the timetable, eyebrow marks). */

:root {
  --navy: #132a4a;
  --navy-2: #1d3a63;
  --navy-ink: #0e1f38;
  --yellow: #f7c531;
  --yellow-dark: #e0ac12;
  --yellow-soft: #fff4d1;
  --cream: #fbf8f2;
  --tint: #f3eee4;
  --ink: #14213d;
  --muted: #5a6476;
  --line: #e6dfd2;
  --white: #ffffff;
  --eyebrow: #8a6a00;
  --on-navy: #dfe6f1;
  --on-navy-muted: #a9b6ca;

  /* Belt colors (Ko's order: white, yellow, orange, green, blue, purple, red, brown, high brown, bodan, black) */
  --belt-white: #ffffff; --belt-yellow: #f7c531; --belt-orange: #f08a24; --belt-green: #3a9d4a;
  --belt-blue: #2f63c6; --belt-purple: #7b4bb7; --belt-red: #c8312e; --belt-brown: #8a5a33;
  --belt-highbrown: #5c3a1e; --belt-black: #111111;
  --belt-stripe: linear-gradient(90deg,
    var(--belt-yellow) 0 14.3%, var(--belt-orange) 14.3% 28.6%, var(--belt-green) 28.6% 42.9%,
    var(--belt-blue) 42.9% 57.1%, var(--belt-red) 57.1% 71.4%, var(--belt-brown) 71.4% 85.7%,
    var(--belt-black) 85.7% 100%);
  --belt-stripe-v: linear-gradient(180deg,
    var(--belt-yellow) 0 14.3%, var(--belt-orange) 14.3% 28.6%, var(--belt-green) 28.6% 42.9%,
    var(--belt-blue) 42.9% 57.1%, var(--belt-red) 57.1% 71.4%, var(--belt-brown) 71.4% 85.7%,
    var(--belt-black) 85.7% 100%);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow: 0 1px 2px rgba(19, 42, 74, .06), 0 8px 24px rgba(19, 42, 74, .08);
  --shadow-lift: 0 2px 4px rgba(19, 42, 74, .06), 0 22px 48px rgba(19, 42, 74, .14);
  --header-h: 68px;
  --section-pad: clamp(76px, 10vw, 124px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.dialog-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--navy);
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Eyebrows carry a small belt mark: the signature that ties the page together */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 4px; border-radius: 2px; background: var(--belt-stripe); }
.center .eyebrow { justify-content: center; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font: 700 1rem/1.2 var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--yellow); color: var(--navy-ink); box-shadow: 0 2px 0 var(--yellow-dark), 0 10px 24px rgba(224, 172, 18, .28); }
.btn-primary:hover { background: #ffd04a; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.btn-lg { padding: 19px 34px; font-size: 1.1rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .btn:not([disabled]):hover { transform: translateY(-2px); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; }
.cta-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(230, 223, 210, .8);
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--belt-stripe); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.wordmark-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--navy); }
.wordmark-place { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { text-decoration: underline; }

.buddy-banner { background: var(--navy); color: var(--white); font-size: .95rem; padding: 10px 0; text-align: center; }
.buddy-banner .link-btn { color: var(--yellow); margin-left: .4em; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 0; }

/* Cards lift softly on hover. The shadow fades in on a pseudo-element, so only opacity and transform animate. */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow-lift); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); }
  .card:hover::after { opacity: 1; }
}

/* ---------- 1. Hero (promise) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 10vw, 136px); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-glow-1 { width: 760px; height: 760px; right: -200px; top: -260px; background: radial-gradient(closest-side, rgba(247, 197, 49, .34), rgba(247, 197, 49, 0)); animation: drift-a 26s ease-in-out infinite alternate; }
.hero-glow-2 { width: 680px; height: 680px; left: -260px; bottom: -320px; background: radial-gradient(closest-side, rgba(47, 99, 198, .15), rgba(47, 99, 198, 0)); animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-70px, 60px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(80px, -50px, 0) scale(1.06); } }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.hero-grid:has(.hero-photo) h1 { font-size: clamp(2.6rem, 4.9vw, 4rem); }
.hero h1 { max-width: 13.5ch; margin-bottom: .4em; }
.lede-lines { margin: 0; }
.lede-lines span { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.4; color: var(--ink); }
.hero-cta { margin-top: 36px; }

/* Hero photo, with a navy backdrop (and belt stripe) peeking out behind it */
.hero-visual { position: relative; }
.hero-backdrop {
  position: absolute;
  inset: 28px -24px -24px 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(247, 197, 49, .38), rgba(247, 197, 49, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(47, 99, 198, .45), rgba(47, 99, 198, 0) 70%),
    linear-gradient(160deg, var(--navy-2), var(--navy-ink));
}
.hero-backdrop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--belt-stripe); }
.hero-photo { position: relative; z-index: 1; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 46% 60%; }

/* No photo (the MVP): one calm, centered column with room to breathe */
.hero:not(:has(.hero-photo)) { padding: clamp(72px, 11vw, 150px) 0 clamp(88px, 12vw, 160px); }
.hero-grid:not(:has(.hero-photo)) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-grid:not(:has(.hero-photo)) .hero-visual { display: none; }
.hero-grid:not(:has(.hero-photo)) .eyebrow { justify-content: center; }
.hero-grid:not(:has(.hero-photo)) h1 { max-width: 15ch; margin-inline: auto; }

/* "Next free classes": small chips under the final ask, where people decide */
.next-up { margin-top: 48px; }
.next-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.next-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf6a; box-shadow: 0 0 0 4px rgba(60, 207, 106, .2); }
.next-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.next-list li { flex: 0 1 236px; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-align: left; }
.next-when { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--white); white-space: nowrap; }
.next-what { font-size: .84rem; color: var(--on-navy-muted); }

/* ---------- 2. Problem ---------- */
.problem-text { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.9vw, 2.2rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--navy); text-wrap: pretty; }
.problem-text span { color: var(--muted); }

/* ---------- 3. Proof: the Grandmaster ---------- */
.gm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 6vw, 88px); align-items: start; }
.gm-copy > p { font-size: 1.1rem; }
.gm-copy h2 { max-width: 16ch; }
.compare { position: relative; overflow: hidden; margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px 18px 32px; }
.compare::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--belt-stripe-v); }
.compare-title { margin: 0 0 12px; font-weight: 700; color: var(--navy); }
.compare ol { counter-reset: q; }
.compare li { counter-increment: q; position: relative; padding-left: 38px; margin-bottom: 10px; }
.compare li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); color: var(--navy); font-weight: 700; font-size: .82rem; }

.gm-side { position: sticky; top: calc(var(--header-h) + 28px); }
.gm-photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lift); }
.gm-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 52% 40%; }
/* No photo (the MVP): the copy runs as one calm column */
.gm-grid:not(:has(.gm-photo)) { grid-template-columns: minmax(0, 760px); }
.gm-grid:not(:has(.gm-photo)) .gm-side { display: none; }

/* Your child is in good hands */
.hands { margin-top: clamp(72px, 9vw, 112px); }
.hands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hand-card { padding: 28px 24px 26px; display: flex; flex-direction: column; }
.hand-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--yellow-soft); color: var(--navy); margin-bottom: 20px; }
.hand-icon svg { width: 24px; height: 24px; }
.hand-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.hand-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.source { margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--navy-2); }

.ask { margin-top: clamp(56px, 7vw, 80px); text-align: center; }

/* ---------- 4. Bridge: how the free class works ---------- */
.step-card { padding: 30px 30px 28px; }
.step-card p { margin: 0; color: var(--muted); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-head h3 { margin: 0; font-size: 1.4rem; }
.step-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--navy-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.step-pick { margin-bottom: 20px; }
.step-pick > p { max-width: 62ch; }
.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step-photo { border-radius: var(--radius); overflow: hidden; min-height: 240px; }
.step-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }

/* Weekly timetable: swimlanes (rendered from CONFIG in main.js). Desktop: one row per age group,
   one column per day. Phones: one card per age group with a row per day. */
.timetable { display: grid; gap: 10px; margin-top: 28px; }
.tt-head, .tt-lane { display: grid; grid-template-columns: minmax(170px, 1.15fr) 6fr; }
.tt-head { grid-template-columns: minmax(170px, 1.15fr) repeat(6, 1fr); }
.tt-head span { padding: 0 14px 2px; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--navy); }
.tt-lane { position: relative; overflow: hidden; background: var(--cream); border-radius: 16px; }
.tt-lane::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line); }
.tt-tigers::before { background: var(--belt-yellow); }
.tt-kids::before { background: var(--belt-blue); }
.tt-teens::before { background: var(--belt-green); }
.tt-adults::before { background: var(--navy); }
.tt-lane-head { padding: 16px 14px 16px 24px; }
.tt-lane-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.2; color: var(--navy); }
.tt-lane-meta { margin: 2px 0 6px; font-size: .85rem; color: var(--muted); }
.tt-book { font-size: .85rem; color: var(--navy-2); }
.tt-lane-days { display: grid; grid-template-columns: repeat(6, 1fr); }
.tt-lane-days li { display: flex; align-items: center; padding: 14px; border-left: 1px solid rgba(19, 42, 74, .07); }
.tt-day-label { display: none; }
.tt-times { display: flex; flex-direction: column; gap: 6px; }
.tt-time { font-weight: 700; font-size: .95rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--ink); }
.tt-off { font-size: 0; }
.tt-off::before { content: "–"; font-size: 1rem; color: #b9b3a6; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); font-size: 1.25rem; font-weight: 600; color: var(--navy); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq details a { color: var(--navy-2); }

/* ---------- Find us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1em; line-height: 1.5; }
.storefront { margin-top: 24px; border-radius: var(--radius); overflow: hidden; max-width: 480px; }
.storefront img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 480px; height: 100%; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ---------- 5. Final ask ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 11vw, 136px) 0;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-ink));
  color: var(--on-navy);
}
.final-glow { position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 197, 49, .2), rgba(247, 197, 49, 0)); animation: breathe 12s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.92); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }
.final-cta h2 { color: var(--white); max-width: 17ch; margin: 0 auto .7em; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.final-cta .cta-note { color: var(--on-navy-muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-ink); color: #c5cfdd; font-size: .95rem; padding: 52px 0 110px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--belt-stripe); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-name { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.25rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-base p { margin: 0; }
.footer-tkd { color: #7f8da5; letter-spacing: .02em; }
.footer-tkd [lang="ko"] { color: #c5cfdd; font-weight: 600; letter-spacing: .08em; }
.site-footer .footer-book { color: var(--white); }

/* ---------- Sticky call to action (phones) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(19, 42, 74, .08);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
.sticky-call { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.sticky-call svg { width: 16px; height: 16px; }

/* ---------- Gentle fade-ups (main.js adds .motion only when motion is welcome) ---------- */
.motion .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
/* Cards keep their quick hover lift once they are in */
.motion .card.reveal.is-in { transition: opacity .8s ease, transform .3s ease; transition-delay: 0ms; }

/* ---------- Booking dialog ---------- */
.booking {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(14, 31, 56, .35);
  overflow: auto;
}
.booking::backdrop { background: rgba(14, 31, 56, .55); backdrop-filter: blur(3px); }
.booking-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0 28px; background: var(--white); z-index: 1; }
.booking-progress { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.booking-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); }
.booking-body { padding: 10px 28px 28px; }
.booking-body h2 { font-size: 1.7rem; margin-bottom: .35em; }
.booking-body .hint { color: var(--muted); margin-bottom: 20px; }

.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice {
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 14px 12px;
  font: 600 1rem/1.3 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color .12s ease, background-color .12s ease;
}
.choice:hover { border-color: var(--navy-2); }
.choice[aria-pressed="true"] { border-color: var(--navy); background: var(--yellow-soft); }
.choice .sub { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.age-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.group-note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

.slot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.slot-list .choice { text-align: left; }
.slot-label { font-weight: 700; font-size: .9rem; color: var(--navy); margin: 22px 0 10px; scroll-margin-top: 72px; }
.slot-label:first-of-type { margin-top: 0; }
.more-link { margin-top: 6px; }

.booking-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.booking-actions .btn-primary { flex: 1; }
.back-link { background: none; border: 0; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; padding: 10px 4px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  font: 1rem var(--font-body);
  padding: 13px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--navy-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { color: #b42318; font-size: .85rem; margin-top: 4px; }
.consent { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.consent a { color: inherit; }
.form-error { background: #fdecea; color: #8a1c12; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }

.summary { background: var(--tint); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
.summary-row { display: flex; gap: 12px; align-items: baseline; }
.summary-row + .summary-row { margin-top: 8px; }
.bonus-box { margin: 22px 0 4px; padding: 16px 18px; border-radius: 16px; background: var(--yellow-soft); border: 2px solid var(--yellow); scroll-margin-top: 72px; }
.bonus-box.is-new { animation: pop .35s ease-out; }
.bonus-box p { margin: 0; font-size: .95rem; }
.bonus-box .bonus-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.summary-tag.bonus { background: var(--yellow); color: var(--navy-ink); }
.summary-tag { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--white); border-radius: 999px; padding: 3px 10px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.done-mark::before { content: ""; width: 22px; height: 12px; border-left: 4px solid var(--navy-ink); border-bottom: 4px solid var(--navy-ink); transform: rotate(-45deg) translate(2px, -2px); }
.done-list { margin: 0 0 20px; }
.done-list li { margin-bottom: 8px; padding-left: 18px; position: relative; color: var(--muted); }
.done-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-dark); }

/* Honeypot field: hidden from people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Siblings in the booking form */
.siblings { margin: -2px 0 14px; }
.sib-row { display: grid; grid-template-columns: 1fr 84px 40px; gap: 10px; align-items: end; }
.sib-row .field { margin-bottom: 10px; }
.sib-age select { width: 100%; font: 1rem var(--font-body); padding: 13px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.sib-remove { margin-bottom: 10px; height: 48px; border: 0; border-radius: 12px; background: var(--tint); color: var(--navy); font-size: 1.4rem; cursor: pointer; }
.add-sib { font-size: .95rem; color: var(--navy-2); }
.sib-note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; }

/* "Bonus class added" check mark */
.bonus-title { display: flex; align-items: center; gap: 8px; }
.bonus-check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); position: relative; }
.bonus-check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(45deg); }

/* ---------- Legal pages (privacy policy) ---------- */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin: 2.1em 0 .5em; }
.legal h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.legal ul:not(.checks) { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal ul:not(.checks) li { margin-bottom: .45em; }
.legal a { color: var(--navy-2); }
.legal-updated { color: var(--muted); font-size: .92rem; }
.legal-page .site-footer { padding-bottom: 40px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--yellow-dark); border-bottom: 3px solid var(--yellow-dark); transform: rotate(-45deg); }

/* ---------- Draft markers (only used on draft pages) ---------- */
body:not(.draft) .draft-note { display: none; }
body.draft.show-tbd .tbd { background: rgba(247, 197, 49, .28); box-shadow: 0 0 0 2px rgba(247, 197, 49, .28); border-radius: 4px; cursor: help; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hands-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 28px; }
  .hero-grid, .gm-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { margin: 0 12px 12px 0; }
  .hero-backdrop { inset: 18px -12px -12px 18px; }
  .hero-photo img { aspect-ratio: 4 / 3.3; }
  .next-list li { flex: 1 1 100%; }
  .gm-side { position: static; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
  .sticky-cta { display: flex; }
  .header-phone { display: none; }
  .step-card { padding: 26px 22px 24px; }
  .tt-head { display: none; }
  .tt-lane { grid-template-columns: 1fr; }
  .tt-lane-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 18px 18px 8px 24px; }
  .tt-lane-meta { margin: 0; }
  .tt-book { flex-basis: 100%; text-align: left; margin-top: 2px; }
  .tt-lane-days { display: block; padding: 0 18px 10px 24px; }
  .tt-lane-days li { display: grid; grid-template-columns: 7rem 1fr; align-items: baseline; padding: 9px 0; border-left: 0; border-top: 1px solid rgba(19, 42, 74, .08); }
  .tt-day-label { display: block; font-weight: 600; color: var(--navy); }
  .tt-lane-days li.is-off .tt-day-label { color: var(--muted); font-weight: 500; }
  .tt-off { font-size: .92rem; color: #9a9384; }
  .tt-off::before { content: none; }
}

@media (max-width: 560px) {
  .site-header .btn-sm { padding: 9px 14px; font-size: .85rem; }
  .wordmark-name { font-size: 1.12rem; }
  .hands-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .ask .btn, .final-cta .btn { width: 100%; }
  .booking { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .booking-body { padding: 10px 20px 28px; }
  .booking-top { padding-left: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Taekwondo drawings ---------- */
.hero-mark { display: block; width: 84px; height: 84px; color: var(--navy); margin: 0 0 18px -6px; }
.hero-grid:has(.hero-photo) .hero-mark { display: none; }
.hero-grid:not(:has(.hero-photo)) .hero-mark { margin: 0 auto 20px; }
.final-mark { display: block; width: 76px; height: 76px; margin: 0 auto 22px; color: var(--white); }

.hands-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; max-width: none; }
.belt-path { display: flex; gap: 6px; }
.belt-path li { display: block; }
.belt-path svg { display: block; width: 46px; height: 31px; color: var(--c); }
.hand-icon-belt { color: var(--c); }
.hand-icon-belt svg { width: 36px; height: 24px; }
.hand-icon-kick svg { width: 34px; height: 34px; }
.hands-grid-2 { grid-template-columns: repeat(2, 1fr); }
.problem-more { margin-top: .8em; color: var(--muted); }
#why-taekwondo .hands-grid { margin-top: 0; }
@media (max-width: 560px) {
  .belt-path { gap: 2px; }
  .belt-path svg { width: 33px; height: 22px; }
  .hands-grid-2 { grid-template-columns: 1fr; }
}

/* Hero illustration: kids lined up in front of the Grandmaster (no-photo version only) */
.hero-kids { display: block; width: min(100%, 380px); height: auto; margin: 0 auto 30px; }
.hero-grid:has(.hero-photo) .hero-kids { display: none; }

/* Full timetable: free-class times get a yellow dot, member-only times are lighter */
.tt-legend { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; max-width: 70ch; color: var(--muted); font-size: .95rem; }
.tt-legend strong { color: var(--ink); }
.tt-dot, .tt-time.is-free::before { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.tt-dot { margin-top: .45em; }
.tt-time { position: relative; display: block; font-weight: 500; color: var(--muted); }
.tt-time small { display: block; font-size: .76rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
.tt-time.is-free { font-weight: 700; color: var(--ink); padding-left: 16px; }
.tt-time.is-free::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; }
.tt-free-label { color: var(--eyebrow) !important; font-weight: 600 !important; }
.tt-higher::before { background: var(--belt-red); }
.tt-private::before { background: var(--navy-2); }
a.tt-book { display: inline-block; font-weight: 700; text-decoration: underline; }

/* Timetable starts with only the free-class times; "See the full timetable" (.show-all) shows the rest */
.timetable:not(.show-all) .tt-time:not(.is-free),
.timetable:not(.show-all) .tt-higher,
.timetable:not(.show-all) .tt-private { display: none; }
.tt-off-free { display: none; }
.timetable:not(.show-all) .tt-off-free { display: inline; }
.tt-toggle { color: var(--navy-2); font-size: inherit; }

/* Studies listed inside an FAQ answer */
.faq details p + p { margin-top: -8px; }
.faq-studies { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq-studies li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.faq-studies li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-dark); }
.faq-studies strong { color: var(--ink); }

/* More breathing room between "Pick a time", the free-class note, its link and the timetable */
.step-pick .step-head { margin-bottom: 16px; }
.step-pick > p:not(.tt-legend) { margin-bottom: 0; }
.tt-legend { margin-top: 22px; line-height: 1.55; }
.tt-toggle { display: inline-block; margin-top: 10px; }
.step-pick .timetable { margin-top: 40px; }

/* "Almost ready" page (site/soon/): booking works before the full site launches */
.soon-lede { max-width: 34ch; margin: 18px auto 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink); }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soon-trust { max-width: 46ch; margin: 28px auto 0; color: var(--muted); font-size: .95rem; }
.soon-address { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.soon-next { margin-top: 0; }
.soon-book { margin-top: 32px; }
@media (max-width: 560px) { .soon-actions .btn { width: 100%; } }

/* Almost-ready page: tighter top, so the Book button shows without scrolling on phones
   and the next free classes come up sooner on desktop. */
.soon-page .hero { padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 6vw, 64px); }
.soon-page .hero-kids { width: min(72%, 300px); margin-bottom: 12px; }
.soon-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.soon-page .soon-lede { margin-top: 12px; }
.soon-page .hero-cta { margin-top: 22px; }
.soon-page .soon-trust { margin-top: 20px; }
.soon-page .final-cta { padding: clamp(44px, 7vw, 80px) 0; }

/* Full site without a photo, on phones: same idea, less empty space above the drawing */
@media (max-width: 560px) {
  .hero:not(:has(.hero-photo)) { padding-top: 28px; }
  .hero-grid:not(:has(.hero-photo)) .hero-kids { width: min(78%, 300px); margin-bottom: 18px; }
}

.final-cta .soon-trust, .final-cta .soon-address { color: var(--on-navy-muted); }
.final-cta .soon-trust { margin-top: 32px; }

/* Centered labels: the belt stripe sits centered under the text instead of hanging on the left */
.center .eyebrow,
.hero-grid:not(:has(.hero-photo)) .eyebrow { flex-direction: column-reverse; align-items: center; gap: 10px; }
.center .eyebrow::before,
.hero-grid:not(:has(.hero-photo)) .eyebrow::before { width: 44px; }

/* Bigger belt bar under centered labels: seven belt colors with small gaps, so it reads as the belt path */
.center .eyebrow::before,
.hero-grid:not(:has(.hero-photo)) .eyebrow::before {
  width: 150px;
  height: 8px;
  border-radius: 0;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 7 - 4px), transparent calc(100% / 7 - 4px) calc(100% / 7));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 7 - 4px), transparent calc(100% / 7 - 4px) calc(100% / 7));
}
.center .eyebrow,
.hero-grid:not(:has(.hero-photo)) .eyebrow { gap: 12px; }

/* Next free classes, grouped by age: one card per group */
.next-list li.next-group { flex: 0 1 300px; gap: 6px; padding: 18px 22px 16px; }
.next-group-name { margin-bottom: 4px; font-weight: 700; font-size: .92rem; color: var(--yellow); }
.next-group-name small { margin-left: 4px; font-size: .85rem; font-weight: 500; color: var(--on-navy-muted); }
.next-group .next-when { font-size: 1.05rem; }
.next-book { align-self: flex-start; margin-top: 8px; font-size: .92rem; color: var(--white); }
@media (max-width: 860px) { .next-list li.next-group { flex: 1 1 100%; } }
