/* Court One landing page. Tokens copied from the Court One v1.0 token layer (member app
   client/shared/court-one/tokens.css, N15 prep e34f7a93, derived from docs/design/court-one-v1.0, sha256 807c7f3f…dd7e),
   including its contrast correction: muted and placeholder text are #67686C so they reach 4.5:1 on paper, stone and white. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* If the font misses its short window (font-display: optional), this metric-matched fallback keeps the layout still. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 97%;
  ascent-override: 103%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  --c1-ink: #111214;
  --c1-ink-2: #55565B;
  --c1-muted: #67686C;
  --c1-placeholder: #67686C;
  --c1-paper: #FAFAF7;
  --c1-white: #FFFFFF;
  --c1-stone: #EEECE6;
  --c1-mist: #F3F3EF;
  --c1-line: rgba(17,18,20,.12);
  --c1-control: #838488;
  --c1-err: #A3271F;
  --c1-font: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --c1-tracking-label: .2em;
  --c1-tracking-button: .24em;
  --c1-radius-button: 12px;
  --c1-radius-field: 12px;
  --c1-radius-card: 14px;
  --c1-button-height: 48px;
  --c1-field-height: 56px;
  --c1-shadow-float: 0 20px 50px -20px rgba(17,18,20,.35);
  --c1-image-fade: linear-gradient(180deg, rgba(17,18,20,0) 40%, rgba(17,18,20,.72) 100%);

  --gutter: 18px;
  --column: 548px;
  --slide-w: min(624px, calc(100vw - 2 * var(--gutter)));
  --slide-gap: 36px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* "hidden" must win over any class that sets display (GStack review #3: the sent form stayed on screen). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c1-paper);
  color: var(--c1-ink);
  font: 400 15px/1.55 var(--c1-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 500; color: var(--c1-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { display: none; }
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--c1-ink); color: var(--c1-white);
  border-radius: 9px; text-decoration: none; font-size: 13px;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--c1-ink); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Labels: 500, capitals, tracked */
.eyebrow {
  font-size: 9.5px; font-weight: 500; line-height: 1.3;
  letter-spacing: var(--c1-tracking-label); text-transform: uppercase; color: var(--c1-muted);
}

/* Wordmark: the design pack's WM(): 400 weight, -.04em, a round full stop of .145em */
.wordmark { font-weight: 400; letter-spacing: -.04em; white-space: nowrap; line-height: 1; }
.wm-dot {
  display: inline-block; width: .145em; height: .145em; margin-left: .05em;
  border-radius: 50%; background: currentColor;
}
.mark { display: block; flex: none; overflow: visible; }

/* Header */
.site-header { padding-top: 18px; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 9px; }
.wordmark-small { font-size: 17px; }
.header-end { display: flex; align-items: center; gap: 18px; }
.header-end nav { display: flex; align-items: center; gap: 6px; }
.header-link {
  position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px;
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c1-ink); text-decoration: none; border-radius: 9px;
}
.header-signin { border: 1px solid var(--c1-control); padding: 0 12px; }
.header-link:hover { background: var(--c1-mist); }
/* Invisible 44px tap areas around small controls; the drawn size stays as designed (GStack review #7). */
.header-link::after, .nav-button::after, .progress button::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; min-width: 44px; height: 100%; min-height: 44px;
}
/* Phones: the two links matter more than the tag, which the hero repeats in spirit. */
@media (max-width: 479px) { .header-tag { display: none; } }

/* Hero */
/* The neighbouring slides peek in from the sides but must never widen the page (clip, not hidden: no scroll box). */
.hero { padding-top: 52px; overflow-x: clip; }
.stack { display: grid; justify-items: center; gap: 30px; }
.wordmark-hero { font-size: clamp(44px, 12vw, 56px); }
.hero-sub {
  max-width: 440px; margin: 20px auto 0; text-align: center;
  font-size: 14.5px; line-height: 1.65; color: var(--c1-ink-2);
}
/* PER-315 1.1a: the way in, on the first screen. Same drawn button as the form's, sized to its words. */
.hero-cta { display: flex; width: fit-content; align-items: center; margin: 22px auto 0; padding: 0 26px; text-decoration: none; }

/* Carousel: the active photo centred, its neighbours peeking in, faded */
.carousel { margin-top: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--c1-line); width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }
.carousel:focus-visible { outline-offset: 8px; }
.viewport { position: relative; width: var(--slide-w); margin-inline: auto; left: 50%; transform: translateX(-50%); }
.track {
  --index: 0;
  display: flex; gap: var(--slide-gap);
  transform: translateX(calc(var(--index) * -1 * (var(--slide-w) + var(--slide-gap))));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.slide {
  position: relative; flex: 0 0 var(--slide-w); aspect-ratio: 16 / 9;
  border-radius: var(--c1-radius-card); overflow: hidden; background: var(--c1-stone);
  opacity: .35; transform: scale(.96); transition: opacity .45s ease, transform .45s ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide picture { height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.slide::after { content: ""; position: absolute; inset: 0; background: var(--c1-image-fade); pointer-events: none; }
.caption {
  position: absolute; left: 20px; right: 72px; bottom: 16px; z-index: 1;
  color: var(--c1-white); font-size: clamp(17px, 4.6vw, 22px); font-weight: 300; letter-spacing: -.02em; line-height: 1.2;
}
.slide-count {
  position: absolute; right: 22px; bottom: 21px; z-index: 1;
  color: var(--c1-white); font-size: 10px; letter-spacing: .2em;
}
.nav-button {
  position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--c1-white); color: var(--c1-ink); box-shadow: 0 6px 18px -6px rgba(17,18,20,.35);
}
.nav-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Phones: inside the photo, so they never sit half off the screen edge. Wider screens: straddling the edge, as in ref-3. */
.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }
@media (min-width: 700px) {
  .nav-button.prev { left: -20px; }
  .nav-button.next { right: -20px; }
}
.progress { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.progress button { position: relative; width: 54px; height: 24px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.progress span { display: block; height: 2px; border-radius: 2px; background: var(--c1-line); transition: background .3s ease; }
.progress button[aria-current="true"] span { background: var(--c1-ink); }

/* Sections */
.block { padding-block: 44px; }
.block + .block .wrap { border-top: 0; }
#note, #whats-new, #app, #renewal, #introduce, #details { border-top: 1px solid var(--c1-line); width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }
#note .wrap, #whats-new .wrap, #app .wrap, #renewal .wrap, #introduce .wrap, #details .wrap { width: 100%; }
#introduce { padding-bottom: 32px; }
h2 { margin-top: 18px; font-size: clamp(28px, 7.4vw, 32px); font-weight: 300; line-height: 1.12; letter-spacing: -.03em; }
.prose { margin-top: 20px; color: var(--c1-ink-2); }
.prose p + p { margin-top: 30px; }
/* Synthetic italic: one word doesn't justify a second 35 KB font file (GStack polish #13). */
.prose .signature { margin-top: 22px; font-style: italic; font-synthesis: style; font-weight: 300; color: var(--c1-ink); }
.lede { margin-top: 20px; color: var(--c1-ink-2); }

/* What's new */
.features { margin-top: 26px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--c1-line); }
.features li:first-child { border-top: 0; padding-top: 10px; }
.icon { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--c1-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 15px; font-weight: 500; line-height: 1.4; }
.features p { margin-top: 4px; font-size: 14px; color: var(--c1-ink-2); }

/* App preview */
.phones {
  margin-top: 20px; padding: 22px 18px 18px; background: var(--c1-stone); border-radius: var(--c1-radius-card);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 18px;
}
.phones figure { display: grid; gap: 12px; justify-items: center; }
.phones picture {
  width: 100%; max-width: 160px; padding: 4px; border-radius: 22px; background: var(--c1-ink);
  box-shadow: 0 18px 30px -18px rgba(17,18,20,.55);
}
.phones img { width: 100%; border-radius: 18px; background: var(--c1-white); }
.phones figcaption { font-size: 9.5px; font-weight: 500; letter-spacing: var(--c1-tracking-label); text-transform: uppercase; color: var(--c1-muted); text-align: center; }

/* Renewal */
.price-card { margin-top: 20px; padding: 22px 20px 24px; background: var(--c1-stone); border-radius: var(--c1-radius-card); color: var(--c1-ink-2); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.price { font-size: 30px; font-weight: 300; letter-spacing: -.03em; color: var(--c1-ink); line-height: 1.1; white-space: nowrap; }
.price-note { font-size: 9.5px; font-weight: 500; letter-spacing: var(--c1-tracking-label); text-transform: uppercase; color: var(--c1-muted); }

/* Introduce a friend */
.tracker { margin-top: 20px; padding: 18px 16px 16px; background: var(--c1-white); border: 1px solid var(--c1-line); border-radius: var(--c1-radius-card); }
.tracker-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(1px, .6vw, 6px); }
.tracker-steps li {
  aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--c1-ink); border-radius: 50%;
  font-size: 10px; font-weight: 500; letter-spacing: -.06em; color: var(--c1-ink);
}
.tracker-steps .is-goal { background: var(--c1-ink); color: var(--c1-white); }
.tracker-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10.5px; color: var(--c1-muted); }
.tracker-ends span { max-width: 48%; }
.tracker-ends span:last-child { text-align: right; }
/* Keeps a short phrase on one line so its last word never sits alone (GStack split review #4, #5). */
.nobreak { white-space: nowrap; }
.how { margin-top: 20px; counter-reset: how; display: grid; gap: 10px; }
.how li { counter-increment: how; position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.5; color: var(--c1-ink-2); }
.how li::before { content: counter(how); position: absolute; left: 0; color: var(--c1-ink); }

/* Form */
.invite-form { margin-top: 20px; display: grid; gap: 10px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-wrap { display: grid; }
.field {
  display: grid; align-content: center; gap: 2px; min-height: var(--c1-field-height); padding: 8px 12px;
  background: var(--c1-white); border: 1px solid var(--c1-control); border-radius: var(--c1-radius-field); cursor: text;
}
/* A solid 2px ink ring (well over 3:1 on paper), as on the choice cards (GStack review #6). */
.field:focus-within { border-color: var(--c1-ink); outline: 2px solid var(--c1-ink); outline-offset: 2px; }
.field-label { font-size: 8.5px; font-weight: 500; letter-spacing: var(--c1-tracking-label); text-transform: uppercase; color: var(--c1-muted); }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 0; border: 0; background: none; outline: none;
  font-size: 16px; line-height: 1.4; color: var(--c1-ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c1-placeholder); opacity: 1; }
.field textarea { resize: vertical; min-height: 44px; }
.field-notes { align-content: start; min-height: 84px; }
.field:has([aria-invalid="true"]) { border-color: var(--c1-err); }
.field-error { color: var(--c1-err); font-size: 12px; line-height: 1.45; }
.field-error:not(:empty) { margin-top: 5px; }

.mobile-row { display: flex; align-items: center; }
.dial-prefix { flex: none; padding-right: 8px; margin-right: 8px; border-right: 1px solid var(--c1-line); font-size: 16px; line-height: 1.2; color: var(--c1-ink); }
.mobile-box.is-international .dial-prefix { display: none; }

.renewal { border: 0; margin-top: 2px; min-width: 0; }
.renewal legend { padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative; display: grid; gap: 1px; padding: 13px 12px; min-height: 56px;
  background: var(--c1-white); border: 1px solid var(--c1-control); border-radius: var(--c1-radius-field); cursor: pointer;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-title { font-size: 14px; color: var(--c1-ink); line-height: 1.3; }
.choice-hint { font-size: 11px; color: var(--c1-muted); line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--c1-ink); box-shadow: inset 0 0 0 1px var(--c1-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--c1-ink); outline-offset: 3px; }
.renewal[aria-invalid="true"] .choice { border-color: var(--c1-err); }

.button-primary {
  height: var(--c1-button-height); margin-top: 4px; border: 0; border-radius: var(--c1-radius-button);
  background: var(--c1-ink); color: var(--c1-white);
  font-size: 11.5px; font-weight: 500; letter-spacing: var(--c1-tracking-button); text-transform: uppercase;
}
.button-primary:disabled { opacity: .6; cursor: progress; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--c1-err); font-size: 13px; line-height: 1.45; }
.form-error:empty { display: none; }
.privacy a { color: inherit; }
.privacy { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--c1-muted); }
.invite-success { margin-top: 20px; padding: 22px 20px; background: var(--c1-stone); border-radius: var(--c1-radius-card); color: var(--c1-ink-2); }
.invite-success h3 { font-size: 22px; font-weight: 300; letter-spacing: -.02em; color: var(--c1-ink); margin-bottom: 8px; }
.invite-success h3:focus { outline: none; }

[data-placeholder] { outline: 1px dashed rgba(163,39,31,.55); outline-offset: 2px; }

/* Desktop: the design's wider rhythm */
@media (min-width: 600px) {
  .phones { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px 18px 20px; }
  .block { padding-block: 44px 40px; }
  .price-card { padding: 22px 22px 24px; }
}
@media (min-width: 900px) {
  .site-header { padding-top: 24px; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .track, .slide, .progress span { transition: none; }
}
.carousel.is-reduced-motion .track, .carousel.is-reduced-motion .slide { transition: none; }
