/* Racket Relay marketing site. Brand colours from docs/brand/style-guide.md:
   navy #14213D, night #0E1626, chalk #F7F5EE, ball yellow #DCE85A (accent only).
   Contrast pairs are AA in both light and dark (ratios in the style guide). Light by default; dark only when
   the visitor switches it on at the bottom of the page (theme.js, an optional extra: the site works without it). */
:root { --ink: #14213d; --muted: #4a5866; --bg: #ffffff; --panel: #f7f5ee; --line: #c5cfd9; --link: #14213d; --btn: #14213d; --btn-ink: #f7f5ee; --focus: #b35900;
  --heading: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Dark mode: only when the visitor chooses it (owner decision 2026-10-21). */
:root[data-theme="dark"] {
  --ink: #f7f5ee; --muted: #b6c2ce; --bg: #0e1626; --panel: #172238; --line: #3b4855; --link: #f7f5ee; --btn: #f7f5ee; --btn-ink: #14213d; --focus: #dce85a; }
.theme-button { background: transparent; color: var(--link); border-color: var(--line); font-weight: 600; }
.theme-button[aria-pressed="true"] { border-color: var(--link); }
/* Archivo for headings, hosted by us (SIL Open Font License, see /fonts/OFL.txt). */
@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"); }
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: var(--ink); background: var(--bg); }
main, header.site, footer.site { max-width: 44rem; margin: 0 auto; padding: 1rem; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -0.01em; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 .5rem; font-weight: 800; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
a { color: var(--link); text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 2; }
header.site { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 .25rem; }
.brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.brand a:hover span { text-decoration: underline; }
.brand .mark { width: 1.3rem; height: 2.6rem; flex: none; }
header.site ul, footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
header.site nav a, footer.site a { display: inline-block; padding: .6rem .7rem; min-height: 44px; }
header.site nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
footer.site { border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted); }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }
.hero { padding: 1rem 0; }
.hero .button { display: block; width: fit-content; margin-bottom: .75rem; }
.button, button { display: inline-block; min-height: 44px; padding: .65rem 1.1rem; border: 2px solid var(--btn); border-radius: 8px; background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }
.steps li, .faq dd { margin-bottom: .75rem; }
.faq dt { font-weight: 700; margin-top: 1rem; }
.faq dd { margin-left: 0; }
.price { font-size: 1.1rem; }
.stack { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
label { font-weight: 600; }
input[type="email"], input[type="text"] { font: inherit; min-height: 44px; padding: .5rem .6rem; width: 100%; max-width: 26rem; border: 2px solid var(--muted); border-radius: 6px; background: var(--bg); color: var(--ink); }
input.narrow { max-width: 9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; min-height: 44px; padding: .4rem 0; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; }
legend { font-weight: 700; padding: 0 .4rem; }
/* The waitlist's spam trap (a drop-down people never see): off-screen, never focusable, hidden from assistive technology. */
.trap { position: absolute; left: -999rem; }
/* The string finder answers without JavaScript: the chosen radio reveals its answer. */
.finder .answer { display: none; background: var(--panel); border-left: 6px solid var(--btn); padding: .75rem 1rem; }
.finder:has(input[value="comfort"]:checked) .answer-comfort,
.finder:has(input[value="control"]:checked) .answer-control,
.finder:has(input[value="spin"]:checked) .answer-spin,
.finder:has(input[value="unsure"]:checked) .answer-unsure { display: block; }

/* String colour choice with a racket preview (owner decision 2026-10-21). The preview's strings follow the
   radio button chosen, with CSS alone. The preview sits on a fixed light card so every colour shows in both modes. */
.colour-pick { --string: #f4efe0; }
.colour-pick:has(input[value="BLACK"]:checked) { --string: #1d1d1d; }
.colour-pick:has(input[value="SILVER"]:checked) { --string: #9aa3ad; }
.colour-pick:has(input[value="YELLOW"]:checked) { --string: #e6de3e; }
.colour-pick:has(input[value="GREEN"]:checked) { --string: #7fcf3b; }
.colour-pick:has(input[value="RED"]:checked) { --string: #c8323c; }
.colour-pick:has(input[value="BLUE"]:checked) { --string: #2c63c9; }
.colour-layout { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; }
.colour-options { flex: 1 1 14rem; }
.racket-box { flex: 0 0 auto; background: #f7f5ee; border: 1px solid #c5cfd9; border-radius: 10px; padding: .75rem 1.25rem; }
.racket-preview { display: block; width: 9rem; height: auto; }
.rp-bed { fill: #c9d2db; }
.rp-strings line { stroke: var(--string); stroke-width: 1.7; }
.rp-frame { fill: none; stroke: #14213d; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rp-handle { fill: #14213d; }
.colour-swatch { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid #4a5866; vertical-align: -0.2em; margin-right: .4rem; }
.swatch-none { background: transparent; border-style: dashed; }
.swatch-natural { background: #f4efe0; }
.swatch-black { background: #1d1d1d; }
.swatch-silver { background: #9aa3ad; }
.swatch-yellow { background: #e6de3e; }
.swatch-green { background: #7fcf3b; }
.swatch-red { background: #c8323c; }
.swatch-blue { background: #2c63c9; }
.swatch-other { background: conic-gradient(#c8323c, #e6de3e, #2c63c9, #c8323c); }

/* String finder: the questions and the colour picker side by side on wider screens, stacked on phones. */
.finder-row { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 40rem) { .finder-row { grid-template-columns: 1fr 1fr; } .finder-row .racket-preview { width: 6.5rem; } .finder-row .colour-options { flex-basis: 8rem; } .finder-row .colour-layout { gap: 1rem; } }
.finder-row fieldset { margin: 0; }
@media (max-width: 39.99rem) { .finder-row .racket-preview { width: 5rem; } .finder-row .colour-options { flex-basis: 9rem; } .finder-row .colour-layout { gap: .75rem; flex-wrap: nowrap; } .finder-row .racket-box { padding: .5rem .75rem; } }
