/* Rally landing page. Direction: The product performs (seed 1041255082).
   Type: Stack Sans Headline 300 / Stack Sans Text 400-500. Colour: sheet and biro, with the court's green as the one stage.
   Grid: 12 columns, 24px gutters, equal outer margins (--m) at every width. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e9ebe9;
  --ink: #111111;
  --muted: #5e5e5e;
  --accent: #1a4be0;
  --accent-strong: #133bb8;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;
  --stage: #2e6a4c;          /* the green surround of an outdoor court: the one flat stage behind fragments */
  --stage-ink: #ffffff;

  --display: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --text: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;

  /* five steps */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 1rem + 8vw, 8rem);

  --m: clamp(20px, 2.8vw, 40px);
  --g: clamp(16px, 1.7vw, 24px);
  --section: clamp(112px, 12vw, 200px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; }
.shutter { overflow: hidden; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
ul, ol { padding: 0; list-style: none; }
.grid > * { min-width: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }

h1, h2, .display { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }

/* buttons: one shape, square-cornered */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.btn:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; color: var(--accent); font-weight: 500; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 84px; padding-inline: var(--m); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 28px; font-size: var(--step-small); }
.nav a:not(.wordmark) { text-decoration: none; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .nav ul a:hover::after { transform: scaleX(1); } }

/* ---------- hero: fragment on a shaped stage ---------- */
.hero { position: relative; min-height: max(100svh, 780px); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-top: 150px; }
.hero h1 { grid-column: 1 / 8; font-size: clamp(3.25rem, 1.3rem + 4.2vw, 5rem); line-height: 1.02; max-width: 12ch; }
.hero-sub { grid-column: 1 / 5; margin-top: 40px; max-width: 40ch; font-size: var(--step-body); }
.hero-act { grid-column: 1 / 5; margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-act .small { color: var(--ink); }
.stage { position: absolute; z-index: 1; left: calc(var(--m) + (100% - 2 * var(--m) - 11 * var(--g)) / 12 * 4 + 4 * var(--g)); right: 0; top: 46%; bottom: 0; background: var(--stage); color: var(--stage-ink);
  --tab-w: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12 * 2 + var(--g)); --tab-h: 44px;
  clip-path: polygon(0 0, var(--tab-w) 0, var(--tab-w) var(--tab-h), 100% var(--tab-h), 100% 100%, 0 100%); }
.stage-tab { position: absolute; top: 0; left: 0; width: var(--tab-w); height: var(--tab-h); display: flex; align-items: center; padding-left: 20px; font-size: var(--step-small); font-weight: 500; }
.stage .tonight { position: absolute; left: 56px; top: calc(var(--tab-h) + 40px); width: min(760px, calc(100% - 112px)); }

/* ---------- fragments (data-ui): the product's own conventions apply inside ---------- */
[data-ui] { --ui-border: #e4e6e4; --ui-rule: #eef0ee; --ui-control: #cfd3d0; --ui-muted: #5c605d; --ui-neg: #c4242a; --ui-neg-bg: #ffedea; --ui-neg-ink: #831c1e; --ui-pos: #247b50; --ui-pos-bg: #dcfae5; --ui-pos-ink: #04250e; --ui-book: #e8eefd; --ui-book-edge: #1a4be0; --ui-grey: #e7e9e7; --ui-grey-2: #d3d7d4;
  font-family: var(--text); font-size: 14px; line-height: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel-ui[data-ui], [data-ui] .panel-ui { background: #fff; border: 1px solid var(--ui-border); border-radius: 10px; }
[data-ui] .ui-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--ui-control); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease; }
[data-ui] .ui-btn:active { transform: translateY(1px); }
[data-ui] .ui-btn.primary { background: #1d1f20; border-color: #1d1f20; color: #fff; }
@media (hover: hover) { .ui-btn:hover { background: #f3f4f3; } .ui-btn.primary:hover { background: #000; } }
[data-ui] .ui-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; background: var(--ui-grey); }
[data-ui] .ui-pill.neg { background: var(--ui-neg-bg); color: var(--ui-neg-ink); }
[data-ui] .ui-pill.pos { background: var(--ui-pos-bg); color: var(--ui-pos-ink); }
[data-ui] .ui-muted { color: var(--ui-muted); }

/* the evening court sheet */
[data-ui] .tonight-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
[data-ui] .tonight-head b { font-weight: 500; font-size: 15px; }
[data-ui] .issues { border-top: 1px solid var(--ui-border); }
[data-ui] .issue { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 18px; }
[data-ui] .issue + .issue { border-top: 1px solid var(--ui-rule); }
[data-ui] .issue time { color: var(--ui-muted); font-size: 13px; align-self: start; padding-top: 1px; }
[data-ui] .issue .what b { display: block; font-weight: 500; }
[data-ui] .issue .what span { display: block; color: var(--ui-muted); font-size: 13px; line-height: 18px; }
[data-ui] .issue.is-done .what b { color: var(--ui-pos); }
[data-ui] .issue .state { min-width: 0; }
[data-ui] .issue .tick { width: 20px; height: 20px; color: var(--ui-pos); }
[data-ui] .sheet { position: relative; padding: 6px 18px 18px; border-top: 1px solid var(--ui-border); --rows: 8; --pitch: 30px; }
.sheet-hours { display: grid; grid-template-columns: 64px minmax(0, 1fr); font-size: 12px; color: var(--ui-muted); height: 26px; align-items: center; }
[data-ui] .hours-track { position: relative; height: 100%; }
[data-ui] .hours-track span { position: absolute; top: 4px; padding-left: 4px; }
[data-ui] .hour-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ui-rule); }
.sheet-body { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.sheet-courts { display: grid; grid-auto-rows: var(--pitch); font-size: 13px; color: var(--ui-muted); align-items: center; }
.sheet-lanes { position: relative; height: calc(var(--rows) * var(--pitch)); }
[data-ui] .slot { position: absolute; height: 22px; margin-top: 4px; border-radius: 4px; padding: 0 6px; font-size: 12px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--ui-book); box-shadow: inset 0 0 0 1px rgba(26, 75, 224, 0.18); transition: transform 700ms var(--ease-in-out), background-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
[data-ui] .slot.league { background: var(--ui-grey); box-shadow: none; }
[data-ui] .slot.ladder { background: var(--ui-grey-2); box-shadow: none; }
[data-ui] .slot.clinic { background: var(--ui-book); box-shadow: inset 3px 0 0 var(--ui-book-edge); }
[data-ui] .slot.open { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-control); }
[data-ui] .slot.free { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-control); color: var(--ui-muted); }
[data-ui] .slot.alert { box-shadow: inset 0 0 0 1.5px var(--ui-neg); color: var(--ui-neg-ink); background: var(--ui-neg-bg); }
[data-ui] .slot.half { height: 11px; line-height: 11px; font-size: 0; }
[data-ui] .slot.half + .slot.half { margin-top: 15px; }
[data-ui] .slot.fixed { background: var(--ui-pos-bg); box-shadow: inset 0 0 0 1px rgba(36, 123, 80, 0.35); color: var(--ui-pos-ink); }
[data-ui] .now-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent); }

/* ---------- courts: the eight courts, as they stand ---------- */
.courts { padding-top: var(--section); }
.courts-head { align-items: end; row-gap: 24px; }
.courts-head h2 { grid-column: 1 / 7; }
.courts-head .lead { grid-column: 8 / 13; }
.courts-photo { margin-top: 56px; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.courts-photo .map { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; transform: translateY(-10.5%); }
.courts-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; }
.chip-set { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms ease; }
.chip-set.is-on { opacity: 1; }
[data-ui] .chip { position: absolute; transform: translate(-50%, -50%); display: grid; gap: 1px; min-width: 150px; padding: 8px 12px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--ui-border); font-size: 13px; line-height: 17px; }
[data-ui] .chip b { font-weight: 500; }
[data-ui] .chip .ui-muted { font-size: 12px; }
[data-ui] .chip.alert { border-color: var(--ui-neg); }
[data-ui] .chip.alert .state { color: var(--ui-neg-ink); }
[data-ui] .chip.free { background: #f6f7f6; }
[data-ui] .court-no { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.courts-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.courts-foot figcaption { max-width: 70ch; }
.clock { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--surface); }
.clock button { height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: var(--step-small); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease; }
.clock button[aria-pressed="true"] { background: #fff; font-weight: 500; }
.court-list { display: none; }

/* ---------- book in plain words ---------- */
.ask { padding-top: var(--section); }
.ask h2 { max-width: 16ch; }
.ask-line { position: relative; margin-top: 40px; display: flex; align-items: baseline; }
.ask-input { width: 100%; border: 0; padding: 0; background: transparent; font-family: var(--display); font-weight: 300; font-size: var(--step-display); letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); caret-color: var(--accent); outline: none; }
.ask-input:focus-visible { outline: none; text-decoration: underline 3px var(--accent); text-underline-offset: 0.12em; }
.ask-body { margin-top: 48px; align-items: start; }
.ask-answer { grid-column: 1 / 7; }
.ask-examples { grid-column: 8 / 13; }
.ask-examples p { margin-bottom: 12px; }
.ask-examples ul { display: grid; gap: 8px; }
.ask-examples button { display: block; width: 100%; text-align: left; min-height: 52px; padding: 12px 18px; border: 0; border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: var(--step-body); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ask-examples button:active { transform: scale(0.98); }
@media (hover: hover) { .ask-examples button:hover { background: var(--surface-2); } }
.answer[data-ui] { padding: 0; overflow: hidden; }
[data-ui] .answer-head { padding: 14px 18px; border-bottom: 1px solid var(--ui-border); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
[data-ui] .answer-head b { font-weight: 500; }
[data-ui] .answer-rows .row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 18px; }
[data-ui] .answer-rows .row + .row { border-top: 1px solid var(--ui-rule); }
[data-ui] .answer-rows .row b { font-weight: 500; }
[data-ui] .answer-rows .amt { text-align: right; }
[data-ui] .answer-foot { padding: 12px 18px; background: #f7f8f7; color: var(--ui-muted); font-size: 13px; }

/* ---------- waitlist: pinned fragment, changing state ---------- */
.flow { padding-top: var(--section); }
.flow-grid { align-items: start; }
.flow-head { grid-column: 1 / 6; grid-row: 1; }
.flow-head h2 { max-width: 12ch; }
.flow-step { grid-column: 1 / 6; }
.flow-intro { margin-top: 24px; max-width: 40ch; }
.flow-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.flow-step:last-child { min-height: 60vh; }
.flow-step p:first-child { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; color: var(--muted); max-width: 22ch; transition: color var(--t-ui) ease; }
.flow-step p + p { margin-top: 12px; max-width: 40ch; }
.flow-step.is-active p:first-child { color: var(--ink); }
.flow-stage { grid-column: 7 / 13; grid-row: 1 / span 4; align-self: start; position: sticky; top: 14vh; height: min(560px, 72vh); background: var(--stage); display: grid; place-items: center; padding: 32px; }
.wl[data-ui] { width: min(500px, 100%); }
.wl[data-ui] .wl-court { padding: 16px 18px; border-bottom: 1px solid var(--ui-border); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.wl-court b { font-weight: 500; font-size: 15px; }
.wl-court .ui-muted { font-size: 13px; }
.wl-list { padding: 6px 18px 10px; }
.wl-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; }
.wl[data-ui] .wl-row + .wl-row { border-top: 1px solid var(--ui-rule); }
[data-ui] .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; background: hsl(var(--h) 60% 92%); color: hsl(var(--h) 45% 26%); }
.wl-row .ui-muted { display: block; font-size: 13px; line-height: 18px; }
[data-ui] .sms { margin: 4px 18px 16px; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: #f1f3f1; font-size: 13px; line-height: 18px; display: none; }
.wl[data-ui][data-state="2"] .sms, .wl[data-ui][data-state="3"] .sms { display: block; }
.wl[data-ui][data-state="3"] .sms { background: var(--ui-pos-bg); color: var(--ui-pos-ink); border-radius: 12px 12px 4px 12px; margin-left: 64px; }
.wl[data-ui] [data-show] { display: none; }
.wl[data-ui][data-state="1"] [data-show~="1"], .wl[data-ui][data-state="2"] [data-show~="2"], .wl[data-ui][data-state="3"] [data-show~="3"] { display: inline-flex; }
.wl[data-ui] .wl-row[data-show], .wl[data-ui] .wl-court [data-show].block { display: none; }
.wl[data-ui][data-state="1"] .wl-row[data-show~="1"], .wl[data-ui][data-state="2"] .wl-row[data-show~="2"], .wl[data-ui][data-state="3"] .wl-row[data-show~="3"] { display: grid; }

/* ---------- the rest of the club day ---------- */
.run { padding-top: var(--section); }
.run-says { margin-top: 40px; font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.25rem); line-height: 1.3; max-width: 58ch; font-weight: 400; letter-spacing: -0.01em; }
.slot-pic { display: inline-block; width: 1.9em; height: 1em; vertical-align: -0.12em; border-radius: 0.18em; overflow: hidden; background: var(--surface); }
.slot-pic img { width: 100%; height: 100%; object-fit: cover; }
.slot-ui { display: inline-flex; align-items: center; justify-content: center; gap: 0.2em; height: 1em; padding: 0 0.3em; vertical-align: -0.12em; border-radius: 0.18em; background: var(--surface); font-size: 1em; }
.slot-ui .score { font-size: 0.5em; font-weight: 500; line-height: 1; }
.slot-ui .switch { width: 1.1em; height: 0.62em; border-radius: 1em; background: var(--ui-pos); position: relative; }
.slot-ui .switch::after { content: ""; position: absolute; top: 0.08em; right: 0.08em; width: 0.46em; height: 0.46em; border-radius: 50%; background: #fff; }
.run-body { margin-top: 72px; align-items: start; row-gap: 40px; }
.run-video { grid-column: 1 / 7; }
.run-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.run-video figcaption { margin-top: 12px; }
.run-list { grid-column: 8 / 13; }
.run-list dl { display: grid; gap: 22px; }
.run-list dt { font-weight: 500; }
.run-list dd { margin-top: 2px; }
.run-list p { margin-top: 32px; }

/* ---------- pricing: plan names, one live figure ---------- */
.pricing { padding-top: var(--section); }
.plans-grid { align-items: start; row-gap: 40px; }
.plans-names { grid-column: 1 / 7; }
.plans-names h2 { max-width: 13ch; }
.plan-list { margin-top: 48px; display: grid; gap: 4px; }
.plan-row { display: flex; align-items: baseline; gap: 16px; }
.plan-row .plan-btn { width: auto; }
.plan-row .courts-n { margin-left: auto; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.plan-btn { display: flex; align-items: center; gap: 0.35em; width: 100%; padding: 0.04em 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--display); font-weight: 300; font-size: var(--step-head); letter-spacing: -0.022em; line-height: 1.12; color: var(--muted); transition: color var(--t-hover) ease; }
.plan-btn::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0.4); transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.plan-row .courts-n { }
.plan-btn[aria-selected="true"] { color: var(--ink); }
.plan-btn[aria-selected="true"]::before { opacity: 1; transform: none; }
@media (hover: hover) { .plan-btn:hover { color: var(--ink); } }
.plans-note { margin-top: 40px; max-width: 42ch; }
.plan-stage { grid-column: 8 / 13; display: grid; }
.plan-panel { grid-area: 1 / 1; transition: opacity 200ms ease; }
.plan-panel[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; }
.price { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; line-height: 0.9; font-size: var(--step-display); }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.plan-panel > p { margin-top: 24px; max-width: 40ch; }
.plan-panel .btn { margin-top: 28px; }
.plan-panel figure { margin-top: 40px; }
.plan-panel figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.plan-panel figcaption { margin-top: 10px; }
.plan-mobile { display: none; }

/* ---------- questions ---------- */
.faq { padding-top: var(--section); }
.faq-grid { align-items: start; }
.faq-side { grid-column: 1 / 5; }
.faq-side figure { margin-top: 40px; }
.faq-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.faq-side figcaption { margin-top: 10px; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq-list details { border-radius: var(--radius); background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 24px; cursor: pointer; font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq-list details[open] { background: var(--accent); color: var(--accent-ink); }
.faq-list details[open] .plus::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 24px 24px; max-width: 52ch; }
@media (hover: hover) { .faq-list details:not([open]) summary:hover { background: var(--surface-2); border-radius: var(--radius); } }

/* ---------- start: first step, already open ---------- */
.start { margin-top: var(--section); background: var(--accent); color: var(--accent-ink); min-height: 90svh; display: grid; align-items: stretch; }
.start .grid { padding-block: 72px; align-items: center; }
.start-copy { grid-column: 1 / 6; align-self: end; }
.start-copy h2 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.start-copy p { margin-top: 28px; max-width: 34ch; }
.start-dialog[data-ui] { grid-column: 7 / 12; width: 100%; max-width: 460px; justify-self: start; padding: 28px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22); }
.start-dialog h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.start-dialog .ui-muted { margin-top: 4px; }
[data-ui] .ui-field { margin-top: 22px; display: grid; gap: 8px; }
[data-ui] .ui-field label, [data-ui] .ui-field .lbl { font-weight: 500; font-size: 14px; }
[data-ui] .ui-input { height: 44px; padding: 0 12px; border: 1px solid var(--ui-control); border-radius: 6px; font-size: 15px; background: #fff; }
[data-ui] .ui-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
[data-ui] .seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 8px; background: #f1f2f1; }
[data-ui] .seg button { height: 38px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 14px; color: var(--ui-muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
[data-ui] .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 500; }
[data-ui] .start-plan { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #f6f7f6; font-size: 14px; }
.start-dialog .btn { margin-top: 20px; width: 100%; min-height: 48px; }

/* ---------- footer: a board of tiles ---------- */
.foot { padding: 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: var(--radius); background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-say { grid-column: 1 / 5; }
.tile-say p:first-child { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.tile-nav { grid-column: 5 / 8; }
.tile-nav ul { display: grid; gap: 6px; }
.tile-nav a { text-decoration: none; }
@media (hover: hover) { .tile-nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.tile-pic { grid-column: 8 / 10; padding: 0; overflow: hidden; position: relative; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-mail { grid-column: 10 / 13; justify-content: flex-end; }
.tile-mail a { font-size: var(--step-lead); text-decoration: none; overflow-wrap: anywhere; }
.tile-word { grid-column: 1 / 9; min-height: 320px; background: var(--field-1); color: var(--field-1-ink); display: grid; place-items: center; }
.tile-word span { font-family: var(--display); font-weight: 300; font-size: var(--step-display); letter-spacing: -0.045em; line-height: 1; display: inline-flex; align-items: center; gap: 0.12em; }
.tile-word svg { width: 0.62em; height: 0.62em; }
.tile-go { grid-column: 9 / 13; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: background-color var(--t-hover) ease; }
.tile-go p { font-size: var(--step-lead); line-height: 1.2; max-width: 12ch; }
.tile-go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .tile-go:hover { background: var(--accent-strong); } .tile-go:hover svg { transform: translate(4px, -4px); } }
.tile-credits { grid-column: 1 / -1; min-height: 0; gap: 8px; }
.tile-credits ul { display: grid; gap: 4px; }

/* ---------- motion: entrances, once, in reading order ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .shutter[data-reveal] img, .js .shutter[data-reveal] video { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img, .js .shutter[data-reveal].is-in video { transform: none; }
  .js .hero [data-rise] { opacity: 0; transform: translateY(20px); animation: rise var(--t-reveal) var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .js .stage[data-rise] { transform: translateY(48px); animation-duration: 1100ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .courts-photo.is-in .map img { animation: drift 24s var(--ease-soft) infinite alternate; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-sub, .hero-act { grid-column: 1 / 8; }
  .stage { left: var(--m); top: 54%; }
  .stage .tonight { left: 24px; width: min(720px, calc(100% - 48px)); }
  .flow-grid { display: block; }
  .flow-stage { position: sticky; top: 0; z-index: 2; height: 50svh; padding: 16px; margin-inline: calc(var(--m) * -1); }
  .flow-step { min-height: 56svh; }
  .flow-head { padding-bottom: 32px; }
  [data-ui] .chip { min-width: 0; padding: 6px 9px 7px; }
  [data-ui] .chip .ui-muted { display: none; }
  .ask-answer { grid-column: 1 / 9; }
  .ask-examples { grid-column: 1 / -1; margin-top: 40px; }
  .ask-examples ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .run-video, .run-list { grid-column: 1 / -1; }
  .faq-side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: end; }
  .faq-side figure { margin-top: 0; }
  .faq-side img { aspect-ratio: 3 / 2; }
  .faq-list { grid-column: 1 / -1; margin-top: 40px; }
  .start-copy { grid-column: 1 / -1; }
  .start-dialog[data-ui] { grid-column: 1 / -1; margin-top: 48px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav ul { gap: 18px; }
  .nav li:nth-child(-n+2) { display: none; }
  .hero { min-height: 0; overflow: clip; }
  .hero-copy { padding-top: 112px; }
  .hero h1 { font-size: 11vw; }
  .hero-sub { grid-column: 1 / -1; margin-top: 24px; }
  .hero-act { grid-column: 1 / -1; margin-top: 24px; }
  .stage { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin-top: 48px; height: 600px; overflow: hidden; --tab-w: 190px; }
  .stage .tonight { left: 16px; top: calc(var(--tab-h) + 16px); width: 560px; }
  [data-ui] .issue { grid-template-columns: 52px 278px; }
  [data-ui] .issue .state { grid-column: 2; justify-self: start; margin-top: 6px; }
  .courts-head h2, .courts-head .lead { grid-column: 1 / -1; }
  .courts-photo { aspect-ratio: 4 / 3; margin-top: 32px; }
  .courts-photo .map { transform: none; }
  .chip-set { display: none; }
  .court-list { display: grid; margin-top: 16px; }
  .court-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; font-size: 15px; }
  .court-list b { font-weight: 500; }
  .ask-input { font-size: var(--step-head); }
  .ask-body { margin-top: 28px; }
  .ask-answer { grid-column: 1 / -1; }
  .ask-examples ul { grid-template-columns: 1fr; }
  [data-ui] .answer-rows .row { grid-template-columns: minmax(0, 1fr) auto; }
  [data-ui] .answer-rows .row .ui-btn { grid-column: 1 / -1; justify-self: start; }
  .flow-stage .wl { transform: scale(0.86); transform-origin: center; }
  .run-says { font-size: 20px; }
  .slot-pic { width: 1.5em; }
  .run-body { margin-top: 40px; }
  .plans-names, .plan-stage { grid-column: 1 / -1; }
  .plan-stage { display: none; }
  .plan-btn { font-size: var(--step-head); }
  .plan-mobile { display: block; padding: 8px 0 28px; }
  .plan-mobile[hidden] { display: none; }
  .plan-row .courts-n { display: none; }
  .plan-mobile .price { font-size: var(--step-display); }
  .faq-side { display: block; }
  .faq-side figure { margin-top: 24px; }
  .faq-list summary { min-height: 64px; padding: 16px 20px; }
  .faq-list details p { padding: 0 20px 20px; }
  .start { min-height: 84svh; }
  .start .grid { padding-block: 56px 32px; }

  .start-dialog[data-ui] { padding: 20px; margin-top: 40px; }
  .start-dialog .btn { min-height: 52px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { padding: 20px; min-height: 160px; }
  .tile-word { grid-column: 1 / -1; order: 1; min-height: 160px; }
  .tile-go { grid-column: 1 / -1; order: 2; min-height: 160px; }
  .tile-nav { grid-column: 1; order: 3; }
  .tile-mail { grid-column: 2; order: 4; }
  .tile-mail a { font-size: var(--step-body); }
  .tile-pic { grid-column: 1; order: 5; }
  .tile-say { grid-column: 2; order: 6; }
  .tile-say p:first-child { font-size: var(--step-body); }
  .tile-credits { order: 7; }
}
.wl[data-ui][data-state] .sms[hidden] { display: none; }
