/* ==========================================================================
   Five Star Tennis Center: site.css
   Design system: "Court Lines"
   Ink: Court Navy. Accent: Optic Yellow. Structure: chalk hairlines.
   Program colours are the real USTA ball pathway (red > orange > green > yellow).
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted, latin subset) ------------------------ */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Core palette, light. Black, red and white from the mark; warm-neutral greys. */
  --ground:        #FAFAF8;
  --ground-alt:    #F2F2EF;
  --surface:       #FFFFFF;
  --surface-sunk:  #F3F3F0;
  --ink:           #101010;
  --ink-soft:      #4B4F55;
  --ink-faint:     #7B8087;
  --line:          #E3E3DF;
  --line-strong:   #C7C7C2;

  /* Dark grounds (CTA band, quote bands, footer) stay black in BOTH themes:
     they are a deliberate dark surface, not the page background.
     --on-navy is the only text colour allowed on top of them. The token names
     are kept from the first pass so nothing else has to change. */
  --navy:          #101010;
  --navy-deep:     #060606;
  --on-navy:       #FAFAF8;

  --accent:        #D01020;   /* the red in the mark */
  --accent-deep:   #B30E1B;   /* red that passes on light grounds at small sizes */
  --accent-ink:    #FFFFFF;   /* text sitting on accent */
  --deck:          #D01020;   /* links and focus */
  --deck-soft:     #FBE9EB;

  /* USTA ball pathway: content colour, not decoration. The red stage is
     pushed toward coral so it never reads as the brand red. */
  --ball-red:      #E8503F;
  --ball-orange:   #F08A1E;
  --ball-green:    #2FA45A;
  --ball-yellow:   #C9DB2E;
  --ball-live:     #D4EC3F;   /* the one yellow on the site: the ball in play */

  /* Semantic */
  --good:          #2FA45A;
  --warn:          #F08A1E;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.16vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.34vw, 1.40rem);
  --step-2:  clamp(1.45rem, 1.31rem + 0.68vw, 1.85rem);
  --step-3:  clamp(1.80rem, 1.55rem + 1.22vw, 2.55rem);
  --step-4:  clamp(2.20rem, 1.75rem + 2.20vw, 3.55rem);
  --step-5:  clamp(2.70rem, 1.90rem + 3.90vw, 5.00rem);

  /* Space */
  --sp-1: 0.375rem; --sp-2: 0.75rem;  --sp-3: 1.125rem;
  --sp-4: 1.75rem;  --sp-5: 2.5rem;   --sp-6: 3.75rem;
  --sp-7: 5.5rem;   --sp-8: 7.5rem;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 36, 54, .05), 0 10px 30px -12px rgba(14, 36, 54, .14);
  --shadow-lift: 0 2px 4px rgba(14, 36, 54, .06), 0 22px 48px -18px rgba(14, 36, 54, .28);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:        #0F0F0F;
    --ground-alt:    #141414;
    --surface:       #181818;
    --surface-sunk:  #131313;
    --ink:           #F3F3F0;
    --ink-soft:      #B4B7BB;
    --ink-faint:     #7E8286;
    --line:          #262626;
    --line-strong:   #3A3A3A;

    --navy:          #1A1A1A;
    --navy-deep:     #050505;
    --on-navy:       #F3F3F0;

    --accent:        #E8354A;
    --accent-deep:   #FF6B78;
    --accent-ink:    #FFFFFF;
    --deck:          #FF6B78;
    --deck-soft:     #3A1218;

    --ball-red:      #F0665A;
    --ball-orange:   #F59A3C;
    --ball-green:    #4CC078;
    --ball-yellow:   #D4EC3F;
    --ball-live:     #D4EC3F;

    --good:          #4CC078;
    --warn:          #F59A3C;

    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 22px 48px -18px rgba(0, 0, 0, .7);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground:        #0F0F0F;
  --ground-alt:    #141414;
  --surface:       #181818;
  --surface-sunk:  #131313;
  --ink:           #F3F3F0;
  --ink-soft:      #B4B7BB;
  --ink-faint:     #7E8286;
  --line:          #262626;
  --line-strong:   #3A3A3A;

  --navy:          #1A1A1A;
  --navy-deep:     #050505;
  --on-navy:       #F3F3F0;

  --accent:        #E8354A;
  --accent-deep:   #FF6B78;
  --accent-ink:    #FFFFFF;
  --deck:          #FF6B78;
  --deck-soft:     #3A1218;

  --ball-red:      #F0665A;
  --ball-orange:   #F59A3C;
  --ball-green:    #4CC078;
  --ball-yellow:   #D4EC3F;
  --ball-live:     #D4EC3F;

  --good:          #4CC078;
  --warn:          #F59A3C;

  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 22px 48px -18px rgba(0, 0, 0, .7);

  color-scheme: dark;
}

/* ---------- 2. Reset & base --------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.014em; }
h4 { font-size: var(--step-1); letter-spacing: -0.008em; font-weight: 700; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--deck);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--ground);
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--display); font-weight: 700;
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.wrap--narrow { max-width: 760px; }
.wrap--mid    { max-width: 940px; }

.section { padding-block: clamp(3.25rem, 7vw, var(--sp-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-6)); }
.section--sunk { background: var(--surface-sunk); }
.section--ink {
  background: var(--navy);
  color: var(--on-navy);
}
.section--ink,
.cta-band,
.site-footer {
  --line: rgba(250, 250, 248, .16);
  --line-strong: rgba(250, 250, 248, .30);
  --ink-soft: rgba(250, 250, 248, .78);
  --ink-faint: rgba(250, 250, 248, .55);
  --accent-deep: var(--accent);
}

.stack { display: flex; flex-direction: column; }
.stack-1 { gap: var(--sp-1); } .stack-2 { gap: var(--sp-2); }
.stack-3 { gap: var(--sp-3); } .stack-4 { gap: var(--sp-4); }
.stack-5 { gap: var(--sp-5); } .stack-6 { gap: var(--sp-6); }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}
.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--sp-3); }
.measure { max-width: 65ch; }

/* ---------- 4. Court-line structural devices ---------------------------- */

/* The eyebrow: a service-line tick plus a label. Used to open every section. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--accent-deep);
  flex: none;
  border-radius: 2px;
}
.section--ink .eyebrow,
.cta-band .eyebrow { color: rgba(250, 250, 248, .72); }
.section--ink .eyebrow::before,
.cta-band .eyebrow::before { background: var(--accent); }

/* A chalk hairline with a centre-mark, like a baseline centre mark. */
.courtline {
  position: relative;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.courtline::after {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 3px; height: 9px;
  background: var(--line-strong);
}

.section-head { display: flex; flex-direction: column; gap: var(--sp-3); }
.section-head .lede { margin-top: var(--sp-1); }
/* On wide screens the heading takes the left, the lede sits to its right on the
   baseline, so a section head uses the whole measure instead of the left half. */
@media (min-width: 960px) {
  .section-head:has(.lede) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "eyebrow ." "title lede";
    column-gap: var(--sp-6);
    row-gap: var(--sp-3);
    align-items: end;
  }
  .section-head:has(.lede) .eyebrow { grid-area: eyebrow; }
  .section-head:has(.lede) h1,
  .section-head:has(.lede) h2 { grid-area: title; }
  .section-head:has(.lede) .lede { grid-area: lede; margin: 0 0 .35em; max-width: none; }
  .section-head:has(.lede) .btn-row { grid-column: 1 / -1; }
  .center .section-head:has(.lede) { display: flex; }
}

/* ---------- 5. Header / nav --------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow .25s ease;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: var(--ground); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -16px rgba(14, 36, 54, .35); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 74px;
  padding-block: var(--sp-2);
}

.brand { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; flex: none; }
.brand-badge { height: 44px; width: auto; flex: none; }
.brand-badge--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-badge--light { display: none; }
  :root:not([data-theme="light"]) .brand-badge--dark  { display: block; }
}
:root[data-theme="dark"] .brand-badge--light { display: none; }
:root[data-theme="dark"] .brand-badge--dark  { display: block; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.brand-name span {
  display: block;
  font-size: .60rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--ink-soft);
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--surface-sunk); }
.nav-link[aria-current="page"] { color: var(--accent-deep); }
.nav-link[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-deep);
}

.has-sub { position: relative; }
.has-sub > .nav-link::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .5;
}
.has-sub[aria-current="page"] > .nav-link { color: var(--accent-deep); }

/* An invisible bridge so the pointer can travel from the link to the menu. */
.has-sub::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}
.subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 236px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: var(--sp-1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .28s;
}
.has-sub:hover .subnav,
.has-sub.is-open .subnav,
.has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.subnav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.subnav a:hover { background: var(--surface-sunk); color: var(--accent-deep); }

.nav-cta { margin-left: var(--sp-2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: currentColor;
  position: relative; border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 11px 12px; font-size: 1rem; }
  .has-sub::after { display: none; }
  .subnav {
    opacity: 1; visibility: visible; transform: none; transition: none;
    position: static;
    border: 0; box-shadow: none; padding: 0 0 var(--sp-2) var(--sp-3);
    background: transparent;
    border-left: 2px solid var(--line);
    margin-left: 12px;
    border-radius: 0;
  }
  .nav-cta { margin: var(--sp-3) 0 0; width: 100%; justify-content: center; }
}

/* ---------- 6. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--deck)); }

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

/* Any dark ground: the hero, interior page heroes, ink sections and CTA bands
   all sit on navy, so ghost buttons and inline links have to flip. */
.section--ink .btn--ghost,
.cta-band .btn--ghost {
  color: var(--on-navy);
  border-color: rgba(247, 248, 244, .34);
  background: transparent;
}
.section--ink .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(247, 248, 244, .07);
}

.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; font-size: .93rem;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 2px solid transparent;
  transition: gap .18s ease, border-color .18s ease;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover { gap: 11px; border-bottom-color: currentColor; }
.section--ink .arrow-link,
.cta-band .arrow-link { color: var(--accent-deep); }

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
/* LED-lit indoor court: painted court lines receding under the headline. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .55;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  z-index: -1;
}

.hero-inner {
  padding-block: clamp(var(--sp-6), 8vw, var(--sp-8));
  display: grid;
  gap: var(--sp-5);
}
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 56ch; }

.hero-accent { color: var(--accent); }

/* Page hero for interior pages: shorter, keeps the court-line ground. */
.pagehero {
  background: var(--surface-sunk);
  color: var(--ink);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pagehero-inner {
  padding-block: var(--sp-6) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.pagehero h1 { font-size: var(--step-4); max-width: 18ch; }
.pagehero .btn-row { margin-top: var(--sp-2); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.breadcrumb a { text-decoration: none; color: inherit; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--accent-deep); border-bottom-color: currentColor; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- 8. Cards & panels ------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); }
.card .arrow-link { margin-top: auto; padding-top: var(--sp-2); align-self: flex-start; }

.card--link { text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card--link:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

/* A program card is a card with a ball-pathway stripe on its leading edge. */
.progcard { position: relative; padding-left: calc(var(--sp-4) + 6px); overflow: hidden; }
.progcard::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--stripe, var(--deck));
}
.progcard[data-ball="red"]    { --stripe: var(--ball-red); }
.progcard[data-ball="orange"] { --stripe: var(--ball-orange); }
.progcard[data-ball="green"]  { --stripe: var(--ball-green); }
.progcard[data-ball="yellow"] { --stripe: var(--ball-yellow); }
.progcard[data-ball="deck"]   { --stripe: var(--deck); }
.progcard[data-ball="ink"]    { --stripe: var(--ink); }

.panel {
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.panel--accent {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
:root[data-theme="dark"] .panel--accent,
.panel--accent { }

.note {
  max-width: 78ch;
  border-left: 3px solid var(--warn);
  background: var(--surface-sunk);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------- 9. Ball pathway (the signature device) ---------------------- */

.pathway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pathway-step {
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.pathway-step:last-child { border-right: 0; }
.pathway-step::before {
  content: "";
  display: block;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--dot, var(--deck));
  margin-bottom: 4px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--deck)) 20%, transparent);
}
.pathway-step[data-ball="red"]    { --dot: var(--ball-red); }
.pathway-step[data-ball="orange"] { --dot: var(--ball-orange); }
.pathway-step[data-ball="green"]  { --dot: var(--ball-green); }
.pathway-step[data-ball="yellow"] { --dot: var(--ball-yellow); }
.pathway-step b {
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  letter-spacing: -.01em;
}
.pathway-step span { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.pathway-step em {
  font-style: normal; font-family: var(--display); font-weight: 700;
  font-size: .70rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .pathway-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .pathway-step:last-child { border-bottom: 0; }
}

/* ---------- 10. Stat strip ---------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-4);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .9rem; color: var(--ink-soft); }
.section--ink .stat span { color: rgba(250, 250, 248, .70); }
.section--ink .stat b { color: var(--on-navy); }

/* ---------- 11. Tables (schedules, pricing) ----------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 480px; }
caption {
  text-align: left; padding: var(--sp-3) var(--sp-4) 0;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
}
th, td { padding: 12px var(--sp-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
  background: var(--surface-sunk);
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 12. Definition rows (hours, contact) ------------------------ */

.rows { list-style: none; display: flex; flex-direction: column; }
.rows li {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.rows li:last-child { border-bottom: 0; }
.rows dt, .rows .k { color: var(--ink-soft); }
.rows dd, .rows .v { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- 13. Ticks list ---------------------------------------------- */

.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: .96rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 2px solid var(--accent);
}
.ticks li strong { color: var(--ink); font-weight: 650; }
.section--ink .ticks li { color: rgba(250,250,248,.82); }
.section--ink .ticks li strong { color: var(--on-navy); }
.section--ink .ticks li::before { border-color: var(--accent); background: rgba(208,16,32,.25); }

/* ---------- 14. Tags / badges ------------------------------------------- */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft);
}
.tag--accent { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); color: var(--accent-deep); }
.tag--red    { background: color-mix(in srgb, var(--ball-red) 15%, transparent); border-color: var(--ball-red); color: var(--ball-red); }
.tag--orange { background: color-mix(in srgb, var(--ball-orange) 15%, transparent); border-color: var(--ball-orange); color: var(--ball-orange); }
.tag--green  { background: color-mix(in srgb, var(--ball-green) 15%, transparent); border-color: var(--ball-green); color: var(--ball-green); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* Neutral tags sitting on a navy ground. */
.section--ink .tag,
.cta-band .tag {
  background: rgba(247, 248, 244, .08);
  border-color: rgba(247, 248, 244, .24);
  color: rgba(247, 248, 244, .82);
}

/* Notes and panels keep their own light surface, so they need no override. */

/* ---------- 15. Accordion (FAQ, tier detail) ---------------------------- */

.accordion { display: flex; flex-direction: column; gap: var(--sp-2); }
details.acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
details.acc[open] { border-color: var(--line-strong); }
details.acc > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.01em;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--ink-soft);
  border-bottom: 2.5px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
details.acc[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-body { padding: 0 var(--sp-4) var(--sp-4); color: var(--ink-soft); display: flex; flex-direction: column; gap: var(--sp-2); }
.acc-body p { max-width: 68ch; }

/* ---------- 16. Staff ---------------------------------------------------- */

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--sp-3); }
.staffcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--deck-soft);
  color: var(--deck);
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  letter-spacing: -.02em;
}
.staffcard b { font-family: var(--display); font-weight: 700; font-size: .98rem; display: block; letter-spacing: -.01em; }
.staffcard span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- 17. Pricing tiers -------------------------------------------- */

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.tier--featured { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow); }
.tier-head { display: flex; flex-direction: column; gap: 6px; }
.tier-head h3 { font-size: var(--step-1); }
.tier-price {
  font-family: var(--display); font-weight: 800;
  font-size: var(--step-3); line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.tier-price small { font-family: var(--body); font-size: .82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.tier .rows { margin-top: auto; }
.tier .btn { margin-top: auto; }

/* ---------- 18. Quote ---------------------------------------------------- */

.quote {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--accent);
}
.quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.quote figcaption { font-family: var(--display); font-weight: 700; font-size: .92rem; }
.quote figcaption span { display: block; font-family: var(--body); font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.section--ink .quote figcaption span { color: rgba(247,248,244,.66); }

/* ---------- 19. Media / doc links ---------------------------------------- */

.doclinks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: var(--sp-2); }
.doclink {
  display: flex; align-items: center; gap: 11px;
  padding: 13px var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600; font-size: .93rem;
  transition: border-color .18s ease, background .18s ease;
}
.doclink:hover { border-color: var(--accent-deep); background: var(--surface-sunk); }
.doclink::before {
  content: "PDF";
  flex: none;
  font-family: var(--display); font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 6px; border-radius: 4px;
  background: var(--ball-red); color: #fff;
}
.doclink[data-kind="video"]::before { content: "▶"; background: var(--deck); font-size: .7rem; padding: 3px 8px; }
.doclink[data-kind="link"]::before  { content: "\2197"; background: var(--navy); color: var(--on-navy); font-size: .72rem; padding: 3px 8px; }

/* ---------- 20. Forms ---------------------------------------------------- */

.form { display: grid; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: -.005em; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .96rem;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--ink-faint); }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .93rem; }
.check input { width: 17px; height: 17px; accent-color: var(--accent-deep); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-family: var(--display); font-weight: 700; font-size: .85rem; padding: 0; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-3); }

/* ---------- 21. News ------------------------------------------------------ */

.post {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: 0; }
.post-meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.post h3 { font-size: var(--step-2); }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--accent-deep); }
.post p { color: var(--ink-soft); max-width: 72ch; }

/* ---------- 22. CTA band -------------------------------------------------- */

.cta-band {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 130% at 100% 0%, rgba(208, 16, 32, .28), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; }
@media (max-width: 620px) {
  .cta-band { padding: var(--sp-4); }
  .cta-band .btn-row { width: 100%; }
  .cta-band .btn { flex: 1 1 100%; }
}
.cta-band p { color: rgba(250,250,248,.78); max-width: 46ch; margin-top: 8px; }

/* ---------- 23. Footer ---------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(247, 248, 244, .78);
  padding-block: var(--sp-6) var(--sp-4);
  margin-top: var(--sp-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(247, 248, 244, .14);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(247, 248, 244, .55); margin-bottom: var(--sp-2);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { text-decoration: none; font-size: .93rem; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: var(--accent-deep); border-bottom-color: currentColor; }

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-brand .brand--footer .brand-badge { height: 120px; width: auto; }
.footer-brand p { font-size: .93rem; max-width: 34ch; color: rgba(247,248,244,.66); }

.socials { display: flex; gap: 9px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(247, 248, 244, .22);
  color: inherit;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  padding-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: .84rem;
  color: rgba(247, 248, 244, .52);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-deep); }

.awards { display: flex; flex-wrap: wrap; gap: 8px; }
.award {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(247, 248, 244, .22);
  color: rgba(247, 248, 244, .74);
}
.section--ink .award {
  border-color: rgba(247, 248, 244, .24);
  color: rgba(247, 248, 244, .74);
}

/* ---------- 24. Utilities ------------------------------------------------ */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.center { text-align: center; }
.center .lede, .center .measure { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }

/* ---------- 25. Hero, second pass ---------------------------------------- */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: clamp(var(--sp-5), 6vw, var(--sp-7)) clamp(var(--sp-5), 5vw, var(--sp-6));
}
.hero-copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.hero-copy .lede { max-width: 50ch; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; }
.hero h1 br { display: none; }

.hero-art { position: relative; min-height: 220px; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

.hero-strip {
  grid-column: 1 / -1;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) { .court .label { display: none; } }
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    column-gap: var(--sp-6);
  }
  .hero h1 br { display: inline; }
}

/* ---------- 26. The court illustration --------------------------------- */

.court .chalk {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 42%, transparent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: chalk-draw 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}
.court .chalk--net {
  stroke-dasharray: 6 8;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: fade-in .6s ease .9s forwards;
}
.court .chalk--outer { animation-delay: .05s; }
.court .chalk--inner { animation-delay: .35s; }
.court .chalk--service { animation-delay: .6s; }
.court .deck {
  fill: var(--surface-sunk);
  stroke: none;
}
.court .arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  opacity: .7;
  stroke-dashoffset: 900;
  animation: arc-draw 1.4s ease-out 1.2s forwards;
}
.court .ball {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ball-land .55s cubic-bezier(.2, .9, .3, 1.2) forwards;
}
.court .ball--red    { animation-delay: 1.3s; }
.court .ball--orange { animation-delay: 1.5s; }
.court .ball--green  { animation-delay: 1.7s; }
.court .ball--yellow { animation: ball-land .55s cubic-bezier(.2, .9, .3, 1.2) 1.9s forwards, ball-bounce 1.6s ease-in-out 2.6s infinite; }
.court .shadow {
  opacity: 0;
  animation: fade-in .4s ease 2.2s forwards, shadow-breathe 1.6s ease-in-out 2.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.court .label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--ink-faint);
  opacity: 0;
  animation: fade-in .5s ease 2.3s forwards;
}

@keyframes chalk-draw { to { stroke-dashoffset: 0; } }
@keyframes arc-draw   { to { stroke-dashoffset: 0; } }
@keyframes fade-in    { to { opacity: 1; } }
@keyframes ball-land  {
  0%   { opacity: 0; transform: translateY(-40px) scale(.6); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ball-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}
@keyframes shadow-breathe {
  0%, 100% { transform: scale(1); opacity: .35; }
  50%      { transform: scale(.72); opacity: .16; }
}

/* ---------- 27. Motion: load sequence + scroll reveal ------------------- */

.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .27s; }
.rise-4 { animation-delay: .38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* .reveal is added by JavaScript only, so nothing is hidden without it. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

.pathway-step::before { transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.pathway-step:hover::before { transform: translateY(-4px) scale(1.12); }

.doclink:hover::before { transform: translateY(-1px); }
.doclink::before { transition: transform .18s ease; }

.btn--primary { box-shadow: 0 0 0 0 rgba(208, 16, 32, 0); }
.btn--primary:hover { box-shadow: 0 8px 22px -10px rgba(208, 16, 32, .55); }

@media (prefers-reduced-motion: reduce) {
  .court .chalk, .court .chalk--net, .court .arc, .court .ball, .court .shadow, .court .label,
  .rise, .reveal { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; transition: none; }
}

/* ---------- 28. Brand wordmark ------------------------------------------ */

.brand-name em { font-style: normal; color: var(--accent); }

/* ---------- 29. Sign-up block (identical on every program page) ---------- */

.signup {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, var(--sp-6));
}
.signup-inner {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 1fr);
}
.signup-head { display: flex; flex-direction: column; gap: var(--sp-2); }
.signup-head h2 { font-size: var(--step-3); }
.signup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
@media (min-width: 960px) {
  .signup-inner {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-areas: "head steps" "actions steps";
    column-gap: var(--sp-6);
    align-items: start;
  }
  .signup-head { grid-area: head; }
  .steps { grid-area: steps; }
  .signup-actions { grid-area: actions; align-self: end; }
}

/* Numbered because it is a sequence: you cannot register before you are rated. */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--sp-3);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 58px;
  display: flex; flex-direction: column; gap: 4px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.steps li b { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.steps li span { color: var(--ink-soft); font-size: .96rem; max-width: 52ch; }
.steps li a { color: var(--accent-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- 30. Doors (the home page finder) ----------------------------- */

.doors {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.door {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.door:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.door-who {
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.door h3 { font-size: var(--step-2); }
.door p { color: var(--ink-soft); font-size: .96rem; }
.door .arrow-link { margin-top: auto; padding-top: var(--sp-2); }
.door[data-ball]::before {
  content: "";
  position: absolute; left: var(--sp-4); top: 0;
  width: 44px; height: 4px; border-radius: 0 0 3px 3px;
  background: var(--stripe, var(--ink));
}
.door[data-ball="red"]    { --stripe: var(--ball-red); }
.door[data-ball="yellow"] { --stripe: var(--ball-yellow); }
.door[data-ball="green"]  { --stripe: var(--ball-green); }
.door[data-ball="ink"]    { --stripe: var(--ink); }
