/*
 * The landing page's sections, on top of site.css (the palette, fonts,
 * header, theme button, buttons and footer the legal pages share).
 *
 * Rhythm: a white hero with the product stage, a bento of what players get,
 * the booking flow on a faint band, the owner pitch as a panel, the FAQ,
 * then one emerald call to action. Hairlines and soft shadows give depth.
 * The only gradient is the hero's faint emerald glow.
 *
 * Motion (the "Motion" section at the end) animates transform, opacity and
 * stroke-dashoffset only, and prefers-reduced-motion turns all of it off:
 * - the hero enters on load (CSS animations on [data-in] and the headline's
 *   words, staggered by their inline --d), then the stage plays a booking on
 *   a loop while it is on screen (main.js toggles .is-playing);
 * - [data-reveal] starts hidden only when JS runs (html.js, set by theme.js)
 *   and gets .is-in from main.js as it enters the viewport; children of
 *   [data-stagger] get their --d from main.js;
 * - court drawings ([data-draw]) trace their lines once on view;
 * - where the browser has scroll-driven animations, the header's progress
 *   hairline and the flow's connectors follow the scroll; elsewhere the
 *   connectors draw once and the hairline stays hidden.
 */

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

/* ---------- Header: the landing page's nav and mobile menu ---------- */
.top__nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.top__nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--text-3); text-decoration: none; font-size: var(--body-s); font-weight: var(--w-semi); white-space: nowrap; }
.top__nav > a { position: relative; }
.top__nav > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; border-radius: 2px; background: var(--bright); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.top__nav > a:hover { color: var(--text); }
.top__nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 2px; background: var(--bright); transform: scaleX(0); transform-origin: left; display: none; pointer-events: none; }
.top__nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu { display: none; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; place-items: center; }
.menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ''; position: absolute; left: 0; }
.menu__bars::before { top: -5px; }
.menu__bars::after { top: 5px; }
.menu[aria-expanded="true"] .menu__bars { background: transparent; }
.menu[aria-expanded="true"] .menu__bars::before { transform: translateY(5px) rotate(45deg); }
.menu[aria-expanded="true"] .menu__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: var(--caption); font-weight: var(--w-medium); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: var(--hero-1); line-height: 1.08; letter-spacing: var(--track-heading); font-weight: var(--w-bold); margin: 0; }
h2 { font-size: var(--hero-3); line-height: var(--lh-heading); letter-spacing: var(--track-heading); font-weight: var(--w-bold); margin: 0 0 16px; }
h3 { font-weight: var(--w-bold); letter-spacing: var(--track-heading); line-height: var(--lh-heading); }
.sub { font-size: var(--body-l); color: var(--text-3); max-width: 600px; margin: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.band { padding: 112px 0; }
.band--subtle { background: var(--subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--tight { padding-top: 32px; }
.band--cta { padding-top: 0; }
.head { max-width: 680px; }
.head--center { margin: 0 auto; text-align: center; }
.badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent); }
.badge .ico { width: var(--icon-md); height: var(--icon-md); }
.badge--lg { width: 48px; height: 48px; }
.badge--lg .ico { width: var(--icon-lg); height: var(--icon-lg); }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
/* The hover edge and glow: a pseudo-element's opacity, never a repaint of the card. */
.card::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--glow-edge); box-shadow: 0 18px 40px -18px var(--glow-shadow); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 64px 0 104px; }
/* Atmosphere: two slow glows in one emerald family, and a court drawn in
   perspective that fades out at its edges (a mask, so no hard lines). */
.hero__ambient { position: absolute; inset: 0 0 auto; height: 1040px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 760px; margin-left: -550px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero__glow--2 { left: 18%; top: 300px; width: 900px; height: 600px; margin-left: -300px; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.hero__floor { position: absolute; left: 50%; top: -260px; width: 1600px; height: 860px; margin-left: -800px; color: var(--court-line); transform: perspective(1000px) rotateX(58deg); transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 92%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 55% 70% at 50% 92%, #000 35%, transparent 80%); }
.hero__floor svg { width: 100%; height: 100%; }
.hero h1 { letter-spacing: -0.035em; }
.hl { position: relative; white-space: nowrap; }
.hl__stroke { position: absolute; left: 2%; bottom: -0.22em; width: 96%; height: 0.3em; overflow: visible; color: var(--bright); }
.hl__stroke path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.pill__text { display: none; }
.js .pill__text { display: inline-flex; align-items: center; gap: 0.3em; }
.js .pill__all { display: none; }
.spin { display: inline-grid; height: 1.4em; overflow: hidden; color: var(--accent); }
.spin > span { grid-area: 1 / 1; line-height: 1.4em; }
.spin > span + span { opacity: 0; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: var(--body-s); font-weight: var(--w-semi); color: var(--text-3); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); }
.w { display: inline-block; }
.hero__copy { max-width: 800px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; margin: 0 0 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text-2); font-size: var(--body-s); font-weight: var(--w-semi); box-shadow: var(--shadow-sm); }
.pill__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bright); box-shadow: 0 0 0 4px var(--tint); }
.hl { color: var(--brand); }
.lede { font-size: var(--body-xl); color: var(--text-3); max-width: 640px; margin: 28px 0 36px; }
.hero .ctas { justify-content: center; }

/* The stage: both halves of the product over a court drawn in hairlines. */
/* The stage leans back a little, on a glow of its own, rising into the hero. */
/* Two fragments of the app float at the stage's top corners, drifting gently. */
.frag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: var(--body-s); font-weight: var(--w-semi); color: var(--text); white-space: nowrap; }
.frag .ico { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); }
.frag--court { right: -28px; top: 360px; }
.frag--slot { left: 36%; top: -20px; }
.stage-wrap { position: relative; margin: 56px 0 0; perspective: 2200px; }
.stage-wrap::before { content: ''; position: absolute; left: 6%; right: 6%; top: -6%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; pointer-events: none; }
.stage { position: relative; height: 580px; margin: 0; border-radius: 28px; background: var(--subtle); border: 1px solid var(--line); overflow: hidden; transform: rotateX(9deg); transform-origin: 50% 0; box-shadow: var(--shadow-lg); }
.stage__court { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); }
.stage__cap { position: absolute; right: 24px; top: 20px; z-index: 3; font-size: var(--body-xs); color: var(--text-3); background: var(--subtle); padding: 2px 8px; border-radius: 999px; }

.phone { position: absolute; z-index: 2; left: 7%; top: 48px; width: 300px; height: 610px; padding: 10px; border-radius: 46px; background: var(--bezel); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg); }
.phone__screen { position: relative; height: 100%; border-radius: 36px; background: var(--ground); padding: 46px 18px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; font-size: var(--body-xs); color: var(--text-2); }
.phone__notch { position: absolute; top: 12px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 999px; background: var(--bezel); }
.app__top { display: flex; align-items: center; gap: 8px; }
.app__top b { font-size: var(--h-4); color: var(--text); letter-spacing: var(--track-heading); }
.app__mark { width: var(--icon-lg); height: var(--icon-lg); color: var(--brand); }
.app__search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--well); color: var(--text-3); font-size: var(--body-s); }
.app__search .ico { width: var(--icon-sm); height: var(--icon-sm); }
.app__chips { display: flex; gap: 6px; }
.app__chips span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: var(--w-semi); color: var(--text-2); }
.app__chips .is-on { background: var(--text); border-color: var(--text); color: var(--ground); }
.app__venue { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.app__venue img { width: 100%; height: 112px; object-fit: cover; }
.app__venue-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.app__meta { display: flex; align-items: center; gap: 6px; color: var(--text-4); }
.app__meta .ico { width: var(--icon-xs); height: var(--icon-xs); }
.sk { display: block; height: 10px; border-radius: 999px; background: var(--well); }
.sk--title { width: 64%; height: 12px; background: var(--line-strong); }
.sk--short { width: 96px; }
.app__label { margin: 4px 0 0; font-size: var(--caption-s); font-weight: var(--w-medium); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--text-3); }
.app__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.app__slots span { display: grid; place-items: center; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-weight: var(--w-semi); color: var(--text); }
.app__slots .is-taken { background: var(--well); border-color: var(--well); color: var(--text-3); text-decoration: line-through; }
.app__slots .is-pick { position: relative; }
.app__slots .is-pick i { position: absolute; inset: -1px; display: grid; place-items: center; border-radius: inherit; background: var(--action); color: var(--on-action); font-style: normal; }
.app__cta { display: grid; place-items: center; height: 44px; margin-top: 4px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: var(--body-s); font-weight: var(--w-semi); }

.toast { position: absolute; z-index: 3; left: calc(7% + 252px); top: 300px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.toast__ic { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--action); color: var(--on-action); flex: none; }
.toast__ic .ico { width: var(--icon-md); height: var(--icon-md); }
.toast b { display: block; font-size: var(--h-6); line-height: var(--lh-heading); }
.toast small { display: block; font-size: var(--body-xs); color: var(--text-3); margin-top: 2px; }

.window { position: absolute; z-index: 1; left: 40%; right: 40px; top: 88px; bottom: -48px; display: flex; flex-direction: column; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: var(--body-xs); }
.window__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.window__bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.window__bar span { margin-left: 12px; color: var(--text-3); font-weight: var(--w-semi); }
.window__body { display: flex; flex: 1; min-height: 0; }
.window__side { width: 176px; flex: none; padding: 16px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.window__cap { margin: 0 8px 8px; font-size: var(--caption-s); font-weight: var(--w-medium); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--text-3); }
.window__nav { min-height: 34px; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--text-3); font-weight: var(--w-semi); white-space: nowrap; }
.window__nav .ico { width: var(--icon-sm); height: var(--icon-sm); }
.window__nav.is-on { background: var(--tint); color: var(--accent); }
.window__main { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.window__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.window__head b { font-size: var(--h-4); color: var(--text); letter-spacing: var(--track-heading); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.k { width: 8px; height: 8px; border-radius: 999px; margin-left: 6px; }
.k--app { background: var(--action); }
.k--walk { background: var(--text-4); }
.k--phone { box-shadow: inset 0 0 0 1.5px var(--text-3); }
.cal { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); gap: 6px; }
.cal__h { color: var(--text-3); font-weight: var(--w-semi); text-align: center; white-space: nowrap; padding-bottom: 2px; }
.cal__t { color: var(--text-3); padding-top: 10px; white-space: nowrap; }
.cal__e { height: 36px; border-radius: 8px; background: var(--subtle); border: 1px dashed var(--line); padding: 10px 4px; text-align: center; font-weight: var(--w-semi); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal__e--app { background: var(--action); border: 0; color: var(--on-action); }
.cal__e--walk { background: var(--well); border: 0; color: var(--text); }
.cal__e--phone { background: var(--paper); border: 1.5px solid var(--text-3); color: var(--text); padding: 8.5px 4px; }
.cal__e--new { position: relative; overflow: visible; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--bright); }
.cal__e--new::after { content: ''; position: absolute; inset: -5px; border-radius: 12px; border: 2px solid var(--bright); opacity: 0; pointer-events: none; }

/* ---------- Players: the bento ---------- */
/* Two halves over three thirds; every card is copy on top, a drawn visual at its foot. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.bento .card { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.bento h3 { font-size: var(--h-3); margin: 12px 0 0; }
.bento p { margin: 0; color: var(--text-3); font-size: var(--body-m); }
.tile-a, .tile-b { grid-column: span 3; }
.tile-c, .tile-d, .tile-e { grid-column: span 2; }
/* Courts near you: a sport filter and two venue rows, placeholders for names. */
.finder { margin: auto 0 0; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.finder__chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--body-s); font-weight: var(--w-semi); color: var(--text-2); }
.finder__chips .ico { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); }
.finder__chips .is-on { background: var(--text); border-color: var(--text); color: var(--ground); }
.finder__chips .is-on .ico { color: var(--ground); }
.finder__row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); transition: transform .35s var(--ease); }
.finder__thumb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent); }
.finder__thumb .ico { width: var(--icon-md); height: var(--icon-md); }
.finder__lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.finder__lines .sk--title { width: 58%; }
.finder__lines .sk--b { width: 44%; }
.finder__go { width: var(--icon-sm); height: var(--icon-sm); color: var(--text-4); transition: transform .35s var(--ease); }
.sports, .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 16px 0 0; list-style: none; }
.times { margin: auto 0 0; padding-top: 20px; }
.times__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: var(--caption-s); font-weight: var(--w-medium); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--text-3); }
.times__key { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: var(--track-body); font-size: var(--body-xs); }
.times__key i { width: 10px; height: 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--tint-line); }
.times__key i.is-taken { margin-left: 6px; background: var(--well); border-color: var(--line-strong); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots span, .sports li, .tags li { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--body-s); font-weight: var(--w-semi); color: var(--text-2); }
.slots span { background: var(--tint); border-color: var(--tint-line); color: var(--accent); }
.slots .is-taken { background: var(--well); border-color: var(--well); color: var(--text-3); text-decoration: line-through; }
.sports .ico { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); }
.confirm { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: auto 0 0; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--tint); border: 1px solid var(--tint-line); color: var(--accent); font-weight: var(--w-semi); font-size: var(--body-s); }
.tile-c .confirm { margin-top: auto; }
.confirm__ic { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--action); color: var(--on-action); }
.confirm__ic .ico { width: var(--icon-sm); height: var(--icon-sm); }
.tile-c p { margin-bottom: 16px; }

/* ---------- How it works: three steps on one line ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 64px 0 0; padding: 0; list-style: none; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.flow__step:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 72px; right: -16px; height: 1px; background: var(--line-strong); transform-origin: left; }
.flow__n { order: -1; font-size: var(--caption-s); font-weight: var(--w-medium); letter-spacing: var(--track-caption); color: var(--text-4); margin-bottom: 4px; }
.flow__step .badge { order: -2; margin-bottom: 8px; }
.flow h3 { font-size: var(--h-3); margin: 0; }
.flow p { margin: 0; color: var(--text-3); max-width: 320px; }

/* ---------- Owners: the black panel ---------- */
.owners { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 64px; padding: 72px; border-radius: 28px; background: var(--subtle); border: 1px solid var(--line); color: var(--text); }
.owners__court { position: absolute; right: -120px; top: -90px; width: 640px; color: var(--line); pointer-events: none; }
.owners > div { position: relative; }
.owners .ticks { list-style: none; padding: 0; margin: 32px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.owners .ticks li { display: flex; gap: 12px; color: var(--text-2); }
.owners .ticks .ico { width: var(--icon-md); height: var(--icon-md); color: var(--accent); margin-top: 1px; }
.owners__steps { align-self: center; padding: 32px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.owners__steps-title { margin: 0 0 24px; font-size: var(--caption-s); font-weight: var(--w-medium); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--text-3); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { position: relative; display: flex; gap: 16px; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -20px; width: 1px; background: var(--line-strong); }
.steps__n { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-strong); color: var(--text); font-weight: var(--w-semi); font-size: var(--h-6); }
.steps li:last-child .steps__n { background: var(--action); border-color: var(--action); color: var(--on-action); }
.steps b { display: block; font-size: var(--h-5); color: var(--text); margin: 5px 0 4px; }
.steps p { margin: 0; color: var(--text-3); font-size: var(--body-s); }
.owners__notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.owners__notes .ico { color: var(--accent); margin-bottom: 14px; }
.owners__notes b { display: block; font-size: var(--h-5); color: var(--text); margin-bottom: 6px; }
.owners__notes p { margin: 0; color: var(--text-3); font-size: var(--body-s); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.qs { border-top: 1px solid var(--line); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 0; font-size: var(--body-l); font-weight: var(--w-semi); cursor: pointer; list-style: none; color: var(--text); }
.qs summary::-webkit-details-marker { display: none; }
.qs__ic { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--text-3); }
.qs__ic .ico { width: var(--icon-sm); height: var(--icon-sm); transition: transform .25s var(--ease); }
.qs summary:hover .qs__ic { color: var(--text); border-color: var(--line-strong); }
.qs details[open] .qs__ic .ico { transform: rotate(45deg); }
.qs p { margin: -4px 0 24px; color: var(--text-3); max-width: 600px; }
/* The answer opens smoothly where the browser can size to auto (others snap). */
.qs details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.qs details[open]::details-content { block-size: auto; }

/* ---------- Closing call to action: the one emerald block ---------- */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 72px; border-radius: 28px; background: var(--action); color: var(--on-action); }
.cta__court { position: absolute; right: -60px; top: -40px; width: 560px; color: var(--on-action); opacity: .18; pointer-events: none; }
.cta > div { position: relative; }
.cta h2 { margin: 0 0 10px; color: var(--on-action); }
.cta p { margin: 0; font-size: var(--body-l); color: var(--on-action); max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--invert { background: var(--on-action); color: var(--action); }
.btn--invert:hover { background: var(--on-action); color: var(--action-hover); }
.btn--line { background: transparent; color: var(--on-action); border-color: var(--on-action); }
.btn--line:hover { background: var(--action-hover); color: var(--on-action); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translate3d(0, 0.45em, 0) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fill { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(-6%, 0, 0) scale(1); } to { transform: translate3d(6%, 8%, 0) scale(1.15); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translate3d(4px, 0, 0); } }
@keyframes answer { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }

/* The hero enters on load, staggered by each piece's --d. 'both' holds a
   piece hidden until its turn and visible after, so nothing ends up stuck. */
.js [data-in] { animation: rise .9s var(--ease) var(--d, 0ms) both; }
.js .hero h1 .w { animation: word .9s var(--ease) var(--d, 0ms) both; }
.js .stage-wrap[data-in] { animation-name: stage-in; animation-duration: 1.1s; }
@keyframes tilt-in { from { transform: rotateX(26deg); } to { transform: rotateX(9deg); } }
.js .stage { animation: tilt-in 1.6s var(--ease) .76s both; }
@keyframes spin { 0% { opacity: 0; transform: translate3d(0, 100%, 0); } 5%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translate3d(0, -100%, 0); } }
.js .spin > span { animation: spin 7.5s var(--ease) infinite both; }
.js .spin > span:nth-child(2) { animation-delay: 2.5s; }
.js .spin > span:nth-child(3) { animation-delay: 5s; }
.hero__glow--2 { animation-duration: 22s; animation-direction: alternate-reverse; }
@keyframes float { from { transform: translate3d(0, -5px, 0); } to { transform: translate3d(0, 5px, 0); } }
.frag { animation: float 5s ease-in-out infinite alternate; }
.frag--slot { animation-duration: 6.5s; animation-delay: -2s; }
.hero__glow { animation: drift 16s ease-in-out infinite alternate; will-change: transform; }

/* The stage fills in after it lands: the times, then the dashboard's bookings
   (main.js numbers them as --i), then the toast. */
.js .stage .app__slots > span, .js .stage .cal__e:not(:empty) { animation: fill .5s var(--ease) calc(1300ms + var(--i, 0) * 50ms) both; }

/* Then one booking plays on a loop while the stage is on screen: the times
   reset, 6 PM is picked, Book is pressed, the toast slides in, the App block
   lands in the dashboard with a ping, and it holds. Each loop starts and ends
   on the finished picture, so a pause (off screen) never leaves it half-drawn. */
@keyframes loop-pick { 0% { opacity: 1; } 5%, 14% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes loop-press { 0%, 22% { transform: none; } 25% { transform: scale(0.95); } 29%, 100% { transform: none; } }
@keyframes loop-toast { 0% { opacity: 1; transform: none; } 5%, 30% { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.96); } 38%, 100% { opacity: 1; transform: none; } }
@keyframes loop-land { 0% { opacity: 1; transform: none; } 5%, 40% { opacity: 0; transform: scale(0.6); } 47% { opacity: 1; transform: scale(1.08); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes loop-ping { 0%, 50% { opacity: 0; transform: none; } 54% { opacity: .9; } 76%, 100% { opacity: 0; transform: scale(1.25, 1.5); } }
.js .stage .is-pick i { animation: fill .4s var(--ease) 1.8s both, loop-pick 8s var(--ease) 3s infinite paused; }
.js .stage .app__cta { animation: loop-press 8s var(--ease) 3s infinite paused; }
.js .stage .toast { animation: toast-in .6s var(--ease) 2.2s both, loop-toast 8s var(--ease) 3s infinite paused; }
.js .stage .cal__e.cal__e--new { animation: fill .5s var(--ease) 2.5s both, loop-land 8s var(--ease) 3s infinite paused; }
.js .stage .cal__e--new::after { animation: loop-ping 8s ease-out 3s infinite paused; }
.js .stage.is-playing .is-pick i, .js .stage.is-playing .toast, .js .stage.is-playing .cal__e.cal__e--new { animation-play-state: running, running; }
.js .stage.is-playing .app__cta, .js .stage.is-playing .cal__e--new::after { animation-play-state: running; }

/* Scroll reveal: fade and rise once, staggered. Once revealed (.is-done) the
   delay drops, so hover answers at once. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-done { transition: transform .35s var(--ease); transition-delay: 0ms; }

/* Court drawings trace their lines once, on view. */
.js .draw rect, .js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(0.65, 0, 0.35, 1); }
.js .draw path { transition-delay: .4s; }
.js .draw.is-drawn rect, .js .draw.is-drawn path { stroke-dashoffset: 0; }
.js .hl__stroke path { transition-duration: .9s; transition-delay: 1s; }
.js .hero__floor path { transition-delay: .9s; }

/* The flow's connectors draw once (or with the scroll, below). */
.js .flow__step:not(:last-child)::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .5s; }
.js .flow__step.is-in:not(:last-child)::after { transform: none; }

/* Hover: cards lift with an emerald edge and glow; rows and arrows lean in. */
@media (hover: hover) {
  .js .bento .card:hover, .bento .card:hover { transform: translate3d(0, -4px, 0); }
  .bento .card:hover::after { opacity: 1; }
  .tile-a:hover .finder__row:first-of-type { transform: translate3d(4px, 0, 0); }
  .tile-a:hover .finder__row:first-of-type .finder__go { transform: translate3d(3px, 0, 0); }
}

.qs details[open] p { animation: answer .45s var(--ease) both; }

/* Scroll-driven, where supported: the header's progress hairline, and the
   flow's connectors drawing as the steps scroll into place. */
@supports (animation-timeline: scroll()) {
  .top__progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
  .flow { view-timeline: --flow block; }
  .js .flow__step:not(:last-child)::after, .js .flow__step.is-in:not(:last-child)::after {
    transform: none; transition: none;
    animation: grow-x linear both; animation-timeline: --flow; animation-range: entry 60% cover 55%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in], .js .hero h1 .w, .hero__glow, .frag, .js .stage, .js .stage *, .js .stage *::after, .js .spin > span, .qs details[open] p { animation: none !important; }
  .js .pill__text { display: none; }
  .js .pill__all { display: inline; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .draw rect, .js .draw path { stroke-dashoffset: 0; transition: none; }
  .js .flow__step:not(:last-child)::after { transform: none !important; animation: none !important; transition: none; }
  .top__progress { display: none !important; }
  .card::after, .finder__row, .finder__go, .qs__ic .ico, .top__nav > a::after, .menu__bars, .menu__bars::before, .menu__bars::after { transition: none; }
  .js .bento .card:hover, .bento .card:hover, .tile-a:hover .finder__row:first-of-type, .tile-a:hover .finder__row:first-of-type .finder__go { transform: none; }
  .qs details::details-content { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .top__bar { gap: 16px; }
  .top__nav > a { padding: 0 10px; }
  .phone { left: 4%; }
  .toast { left: calc(4% + 252px); }
  .window { left: 44%; }
  .window__side { width: 150px; }
  .frag--court { right: -8px; }
  .bento { gap: 16px; }
  .bento .card { padding: 28px; }
  .owners { grid-template-columns: minmax(0, 1fr); padding: 56px; gap: 48px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 960px) {
  .menu { display: grid; }
  .theme { margin-left: auto; }
  .top__nav {
    position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) + 4px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .top.is-open .top__nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .top__nav > a { min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: var(--body-m); color: var(--text); }
  .top__nav > a::after { display: none; }
  .top__nav > a:hover { background: var(--well); }
  .top__nav-actions { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px; }
  .top__nav-actions .btn { width: 100%; min-height: 48px; }
  .top__nav-actions .btn--ghost { border-color: var(--line-strong); }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 80px; }
  .stage { height: 540px; }
  .stage-wrap { margin-top: 48px; }
  .phone { left: 32px; }
  .toast { left: 220px; top: 340px; }
  .window { left: 356px; right: 32px; }
  .legend { display: none; }
  .window__side { display: none; }
  .frag { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .flow__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .flow__step .badge { grid-row: 1 / span 3; margin: 0; }
  .flow__n { margin: 0; }
  .flow__step:not(:last-child)::after { top: 64px; bottom: -32px; left: 24px; right: auto; width: 1px; height: auto; transform-origin: top; }
  .js .flow__step:not(:last-child)::after { transform: scaleY(0); }
  .js .flow__step.is-in:not(:last-child)::after { transform: none; }
  @supports (animation-timeline: scroll()) {
    .js .flow__step:not(:last-child)::after, .js .flow__step.is-in:not(:last-child)::after { transform: none; animation-name: grow-y; }
  }
  .owners__notes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: span 1; }
  .tile-e { grid-column: 1 / -1; display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 4px; align-items: center; }
  .tile-e .badge { grid-row: 1 / span 2; }
  .tile-e h3 { grid-column: 2; margin: 0; }
  .tile-e p { grid-column: 2; }
  .tile-e .tags { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; justify-content: flex-end; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 64px; }
  .hero__floor { top: -40px; width: 1000px; height: 640px; margin-left: -500px; }
  .hero__glow { width: 700px; margin-left: -350px; }
  .trust { flex-direction: column; align-items: center; gap: 6px; margin-top: 24px; }
  .stage-wrap { margin-top: 36px; }
  .pill { margin-bottom: 20px; font-size: var(--body-xs); }
  h1 { font-size: var(--hero-3); }
  h2 { font-size: var(--h-2); }
  .lede { font-size: var(--body-m); margin: 20px 0 28px; }
  .hero .ctas { width: 100%; flex-direction: column; }
  .hero .ctas .btn { width: 100%; }
  .stage { height: 628px; border-radius: 20px; }
  .phone { left: 50%; margin-left: -140px; width: 280px; height: 560px; top: 24px; }
  .app__venue img { height: 96px; }
  .toast { left: 12px; right: 12px; top: 214px; }
  .window { display: none; }
  .stage__cap { left: 0; right: 0; top: auto; bottom: 12px; text-align: center; background: none; }
  .band { padding: 80px 0; }
  .band--tight { padding-top: 16px; }
  .band--cta { padding-top: 0; }
  .sub { font-size: var(--body-m); }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: auto; }
  .tile-e { display: flex !important; }
  .tile-e h3 { margin: 12px 0 0; }
  .tile-e .tags { margin: auto 0 0; padding: 16px 0 0; justify-content: flex-start; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots span { padding: 0 4px; font-size: var(--body-xs); }
  .bento .card { padding: 24px; }
  .bento h3 { font-size: var(--h-4); }
  .flow { margin-top: 40px; }
  .flow h3 { font-size: var(--h-4); }
  .owners { padding: 32px 20px; border-radius: 20px; gap: 40px; }
  .owners__steps { padding: 24px 20px; }
  .owners .ctas .btn { flex: 1 1 auto; }
  .qs summary { font-size: var(--body-m); min-height: 64px; }
  .cta { padding: 40px 24px; border-radius: 20px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
}
