/* fairfootball.app: Candy Night (dark) and Candy Day (light), the same palette as the app */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }

:root {
  --ink: #0e0b14;
  --bg: #18121f;
  --surface: #231a2e;
  --surface-2: #2f2340;
  --border: #43325a;
  --pink: #ff9ac1;
  --text: #fff1f7;
  --muted: #c0a9cf;
  --pitch-a: #2a2038;
  --pitch-b: #30243f;
  --line: rgba(255, 241, 247, .18);
  --glow: rgba(255, 154, 193, .16);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #0c1830;
    --bg: #fbf6f9;
    --surface: #ffffff;
    --surface-2: #f5ecf2;
    --border: #e6d5e1;
    --pink: #c94a7f;
    --text: #0c1830;
    --muted: #6a5a74;
    --pitch-a: #e9f5ee;
    --pitch-b: #deefe5;
    --line: rgba(12, 24, 48, .14);
    --glow: rgba(201, 74, 127, .10);
    --shadow: 0 24px 60px rgba(60, 20, 50, .14);
    color-scheme: light;
  }
}
/* the five pastel hues: pink, peach, lilac, mint, sky */
.hue-0 { --h: #ff9ac1; }
.hue-1 { --h: #ffc3a0; }
.hue-2 { --h: #c7b2ff; }
.hue-3 { --h: #9fe3d0; }
.hue-4 { --h: #a8d4ff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: var(--pink); }
img, svg { display: block; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--pink); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.wordmark b { font-family: var(--font-head); font-weight: 700; letter-spacing: .09em; font-size: 1.05rem; }
.wordmark .fair { color: var(--pink); }
.top nav { display: none; gap: 26px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
@media (min-width: 820px) { .top nav { display: flex; } }

/* hero */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 104px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; margin-bottom: 14px; }
h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); letter-spacing: -.01em; }
.hl { color: var(--pink); }
.lede { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.soon { display: inline-flex; align-items: center; gap: 10px; background: var(--pink); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; padding: 13px 22px; border-radius: 999px; }
.soon svg { width: 20px; height: 20px; fill: currentColor; }
.ghost { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--pink); padding-bottom: 2px; }

/* hero illustration */
.hero-art { position: relative; justify-self: center; width: min(100%, 540px); }
.phone { position: relative; width: min(78vw, 300px); margin: 0 auto; aspect-ratio: 300 / 610; background: var(--ink); border-radius: 46px; padding: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--border); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.screen { height: 100%; border-radius: 36px; background: var(--bg); padding: 54px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.scr-head { display: flex; align-items: center; justify-content: space-between; }
.scr-title { font-family: var(--font-head); font-size: 1.15rem; }
.scr-chip { font-size: .7rem; font-weight: 800; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quarters span { text-align: center; font-family: var(--font-head); font-size: .85rem; padding: 5px 0; border-radius: 10px; background: var(--surface); color: var(--muted); }
.quarters .on { background: var(--pink); color: var(--ink); }
.pitch { position: relative; flex: 1; border-radius: 16px; border: 2px solid var(--line); background: repeating-linear-gradient(180deg, var(--pitch-a) 0 12.5%, var(--pitch-b) 12.5% 25%); overflow: hidden; }
.halfway { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--line); }
.halfway::after { content: ''; position: absolute; left: 50%; top: -24px; width: 46px; height: 46px; transform: translateX(-50%); border: 2px solid var(--line); border-radius: 50%; }
.box { position: absolute; left: 26%; right: 26%; height: 13%; border: 2px solid var(--line); }
.box-top { top: -2px; border-top: 0; }
.box-bottom { bottom: -2px; border-bottom: 0; }
.tok { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--h, var(--pink)); color: #0e0b14; font-family: var(--font-head); font-weight: 700; font-size: .9rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.pitch .tok { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.tok.gk { outline: 3px solid var(--text); outline-offset: 2px; }
.tok.sm { width: 32px; height: 32px; font-size: .78rem; }
.bench { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 8px 10px; }
.bench-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 2px; }
.bench-note { margin-left: auto; font-size: .78rem; color: var(--muted); }
.suggest { text-align: center; font-family: var(--font-head); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 10px; font-size: .95rem; }

.float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.card-minutes { right: -4px; bottom: 16%; width: 190px; padding: 14px 16px; }
.float-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 8px; font-size: .8rem; }
.bars span { font-family: var(--font-head); color: var(--muted); }
.bars i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #9fe3d0, #a8d4ff); width: var(--w); }
.bars b { text-align: right; font-family: var(--font-head); font-weight: 600; }
.card-sub { left: -6px; top: 22%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .85rem; white-space: nowrap; }
.card-sub b { font-family: var(--font-head); font-weight: 600; color: var(--pink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9fe3d0; box-shadow: 0 0 0 4px rgba(159, 227, 208, .25); }
/* wide screens: the phone sits to the right and the cards hang off its left edge, between it and the words */
@media (min-width: 960px) {
  .phone { margin: 0 0 0 auto; }
  .card-sub { left: 0; top: 22%; }
  .card-minutes { left: 0; right: auto; bottom: 18%; }
}
/* narrow screens: the cards sit over the phone's top and bottom edges instead of over the pitch */
@media (max-width: 600px) {
  .hero-art { padding: 20px 0 110px; }
  .card-sub { left: 0; top: 0; }
  .card-minutes { right: 0; bottom: 0; width: 176px; }
}

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-title { font-size: clamp(1.8rem, 4.4vw, 2.6rem); max-width: 18em; }
.section-lede { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.section-lede + .section-lede { margin-top: 12px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; }
.step h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.step p { color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--h); color: #0e0b14; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }

.grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .98rem; }
.ic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--h); color: #0e0b14; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: '✓'; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #9fe3d0; color: #0e0b14; font-weight: 800; font-size: .8rem; transform: translateY(4px); }

.family-card { justify-self: center; width: min(100%, 400px); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
.fc-name { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.3rem; }
.fc-graph { width: 100%; height: 110px; margin: 18px 0 8px; }
.fc-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { background: var(--h); color: #0e0b14; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; }
.fc-note { margin-top: 6px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .95rem; }

/* lock screen */
@media (max-width: 899px) { .lock { order: 2; } }
.lock { justify-self: center; width: min(100%, 360px); border-radius: 34px; padding: 34px 18px 22px; background: radial-gradient(120% 80% at 20% 0%, #4a2a55 0%, #1c1426 55%, #0e0b14 100%); color: #fff1f7; box-shadow: var(--shadow); }
.lock-time { text-align: center; font-family: var(--font-head); font-size: 4rem; line-height: 1; margin-bottom: 26px; }
.activity { background: rgba(14, 11, 20, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 14px 16px; }
.act-row { display: flex; align-items: center; gap: 10px; }
.act-score { font-family: var(--font-head); font-size: 1.05rem; }
.act-score b { color: #ff9ac1; font-weight: 700; margin: 0 4px; }
.act-clock { margin-top: 10px; gap: 12px; font-size: .9rem; color: #c0a9cf; }
.act-clock b { font-family: var(--font-head); font-size: 1.6rem; color: #fff1f7; font-variant-numeric: tabular-nums; }
.act-next { margin-left: auto; }
.act-progress { margin-top: 10px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.act-progress i { display: block; height: 100%; width: 64%; background: #ff9ac1; border-radius: inherit; }
.notif { margin-top: 12px; background: rgba(255, 241, 247, .12); border-radius: 18px; padding: 12px 16px; font-size: .92rem; }
.notif b { font-family: var(--font-head); font-weight: 600; margin-right: 6px; color: #9fe3d0; }

/* footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: .9rem; }
.brand.small .wordmark b { font-size: .9rem; }
.foot-mail { font-weight: 700; text-decoration: none; }
.foot-mail:hover { text-decoration: underline; }
@media (min-width: 900px) { .foot-row .muted { margin-left: auto; } .foot-row { justify-content: flex-start; } }

.foot-links { display: inline-flex; gap: 20px; }
.foot-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.top nav a[aria-current='page'] { color: var(--pink); }

/* privacy and support: long text in one readable column */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 88px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.55rem; margin: 48px 0 12px; }
.doc h3 { font-size: 1.15rem; margin: 30px 0 8px; color: var(--pink); }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc ul + p, .doc ol + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 10px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 800; }
.doc-date { margin-top: 10px; font-size: .95rem; }
.doc-summary { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.doc-summary h2 { margin: 0 0 10px; font-size: 1.25rem; }
.doc-summary li, .contact-card p:first-of-type { color: var(--text); }
.doc details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.doc details:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; }
.doc summary { cursor: pointer; font-family: var(--font-head); font-size: 1.1rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--pink); font-size: 1.4rem; line-height: 1; }
.doc details[open] summary::after { content: '–'; }
.doc details p { margin-top: 10px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { margin: 0 auto 24px; }
.lost p { color: var(--muted); margin: 14px 0 26px; }
