/* The app's own palette (ScoreShared/Theme.swift): the dark court, lime for the first pair, blue for the second. */
:root {
  color-scheme: dark;
  --bg: #0e1613; --panel: #151f1b; --line: #2a3530; --text: #e9eee9; --muted: #9aa79f;
  --lime: #cdf547; --blue: #296bdb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background: radial-gradient(60rem 32rem at 50% -10rem, rgba(205, 245, 71, 0.2), transparent 72%) no-repeat, var(--bg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main { max-width: 62rem; margin: 0 auto; padding: 0 20px; }
a { color: var(--lime); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
p { margin: 0 0 1rem; overflow-wrap: break-word; }

/* The home page */
.hero { text-align: center; padding: 4.5rem 0 3rem; }
.icon { display: block; margin: 0 auto 1rem; border-radius: 22%; box-shadow: 0 12px 48px rgba(205, 245, 71, 0.18); }
.name { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; }
h1 { font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; margin: 0 auto 1.25rem; max-width: 14em; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); max-width: 32rem; margin: 0 auto 1.25rem; text-wrap: pretty; }
.team { display: inline-block; padding: 0 0.55em 0.05em; border-radius: 0.5em; font-weight: 700; }
.team.green { background: var(--lime); color: #000; }
.team.blue { background: var(--blue); color: #fff; }
.status { color: var(--muted); font-size: 0.95rem; margin: 0; }

.screens { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 5vw, 3.5rem); padding: 1rem 0 4.5rem; }
.screens img { display: block; height: auto; box-shadow: 0 0 0 1px var(--line), 0 24px 80px rgba(205, 245, 71, 0.1); }
.watch { width: min(40vw, 208px); border-radius: 18%; }
.iphone { width: min(46vw, 270px); border-radius: 12% / 5.6%; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; padding-bottom: 4.5rem; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; }
.features h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.5rem; }
.features p { color: var(--muted); margin: 0; }

.faq { max-width: 40rem; margin: 0 auto; padding-bottom: 3.5rem; }
.faq h2 { font-size: 1.8rem; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.faq h3 { font-size: 1.05rem; line-height: 1.35; margin: 1.75rem 0 0.25rem; }
.faq p { color: var(--muted); margin: 0; }

/* Support and the privacy policy */
.top { max-width: 40rem; margin: 0 auto; padding: 1.5rem 0 0; }
.top a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; text-decoration: none; }
.top img { border-radius: 22%; }
.doc { max-width: 40rem; margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 0.75rem; }
.doc .lead { font-size: 1.15rem; margin: 0 0 1.75rem; }
.doc .date { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.75rem; }

/* The missing page */
.lost { text-align: center; padding: 22vh 0; }
.lost h1 { font-size: 4rem; margin: 0 0 0.5rem; }

footer { max-width: 62rem; margin: 0 auto; padding: 1.5rem 20px 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.5rem; }
footer a { color: var(--muted); }
footer a[aria-current] { color: var(--text); text-decoration: none; }
footer p { margin: 0.75rem 0 0; font-size: 0.8rem; }
