@font-face { font-family: Archivo; font-weight: 500; font-stretch: 100%; font-display: swap; src: url(fonts/Archivo-500.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 600; font-stretch: 100%; font-display: swap; src: url(fonts/Archivo-600.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 700; font-stretch: 100%; font-display: swap; src: url(fonts/Archivo-700.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 500 700; font-stretch: 75%; font-display: swap; src: url(fonts/ArchivoCondensed-700.woff2) format("woff2"); }

:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --soft: #eceeed;
  --border-subtle: #eceeed;
  --border: #dadddb;
  --ink: #1c1f1d;
  --ink-2: #424844;
  --muted: #565d58;
  --primary: #006d42;
  --primary-hover: #015533;
  --on-primary: #ffffff;
  --link: #006d42;
  --mint-bg: #daf6e4;
  --mint-ink: #015533;
  --cork: #e2bf9a;
  --frame: #0c110d;
  --band-start: #006d42;
  --band-end: #002614;
  --band-ink: #ffffff;
  --band-live: #89dbac;
  --placeholder: #5a615c;

  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c110d;
    --surface: #141915;
    --soft: #232a25;
    --border-subtle: #313532;
    --border: #424844;
    --ink: #f7f8f7;
    --ink-2: #c2c7c3;
    --muted: #a4aba6;
    --primary: #0f6b44;
    --primary-hover: #006d42;
    --link: #51c388;
    --mint-bg: #013f25;
    --mint-ink: #b8ebcc;
    --frame: #000000;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Archivo, "Noto Sans", system-ui, sans-serif; font-weight: 500; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--cork); outline-offset: 2px; border-radius: 8px; }

.n { font-stretch: 75%; font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 32px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.btn.p { background: var(--primary); color: var(--on-primary); }
.btn.p:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn.w { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.tile { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* Top bar */
.topbar { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); }
.brand b { font-size: 18px; font-weight: 600; }
.logo { width: 32px; height: 32px; flex: none; }
.logo.sm { width: 24px; height: 24px; }
.topnav { display: none; gap: 16px; }
.topnav a, .signin { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 16px; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); }
.signin { margin-right: -8px; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 24px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.kicker { font-size: 16px; font-weight: 600; color: var(--link); }
.hero h1 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.shot { position: relative; display: flex; justify-content: center; }
.phone-box { width: 303px; height: 640px; flex: none; }
.phone { position: relative; width: 390px; height: 844px; margin: 10px; border-radius: 44px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 10px var(--frame); transform: scale(.74); transform-origin: 0 0; display: flex; flex-direction: column; }

.status { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 32px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-r { display: flex; align-items: center; gap: 6px; }
.status-r .sig { width: 18px; height: 10px; border-radius: 2px; background: currentColor; opacity: .9; }
.status-r .batt { position: relative; width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; }
.status-r .batt::after { content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 15px; border-radius: 1px; background: currentColor; }

.screen { flex: 1; overflow: hidden; }
.scr-head { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.scr-head b { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.scr-head span { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.days { display: flex; align-items: center; gap: 8px; padding: 0 16px 16px; }
.day { width: 56px; height: 56px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-2); }
.day small { font-size: 12px; line-height: 16px; }
.day b { font-size: 18px; line-height: 24px; font-variant-numeric: tabular-nums; }
.day.on { background: var(--mint-bg); color: var(--mint-ink); }
.live-pill { margin-left: auto; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; font-weight: 600; }
.live-pill .dot { color: var(--primary); }

.group, .qas { border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle); overflow: hidden; }
.group { margin: 0 16px 12px; }
.group-head { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; }
.group-head b { flex: 1; font-size: 16px; font-weight: 600; }
.code { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.round { font-size: 14px; color: var(--muted); }
.ic.sm { width: 18px; height: 18px; color: var(--muted); }
.ic.turn { transform: rotate(-90deg); }

.score-row { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--border-subtle); }
.when { width: 48px; flex: none; font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.court { width: 44px; height: 44px; flex: none; margin-right: 4px; border-radius: 8px; background: var(--mint-bg); color: var(--mint-ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.court small { font-size: 12px; line-height: 14px; opacity: .8; }
.court b { font-size: 18px; line-height: 20px; font-weight: 600; }
.sides { flex: 1; min-width: 0; }
.side { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.side i { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.side i.serve { background: var(--cork); }
.name { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.games { display: flex; gap: 4px; }
.games span { width: 28px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.games .cur { font-weight: 700; background: var(--mint-bg); color: var(--mint-ink); }
.won .games span { font-weight: 700; color: var(--ink); }
.lost .name { color: var(--muted); }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; padding: 8px 8px 26px; background: var(--surface); box-shadow: 0 -1px 0 var(--border-subtle); }
.tabbar span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tabbar .on { color: var(--link); }
.ic.tab { width: 24px; height: 24px; }
.home-bar { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .85; transform: translateX(-50%); }

.band { background: linear-gradient(160deg, var(--band-start), var(--band-end) 75%); color: var(--band-ink); }
.tie { display: none; }
.tie-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 32px 32px 8px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; }
.crest { width: 48px; height: 53px; display: inline-flex; align-items: center; justify-content: center; background: var(--crest); color: var(--crest-ink); font-size: 18px; font-weight: 700; font-stretch: 75%; clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
.tie-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tie-mid b { font-size: 48px; line-height: 48px; font-weight: 700; }
.tie-live { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--band-live); }
.tie-foot { display: flex; justify-content: center; gap: 16px; padding: 8px 16px 32px; font-size: 14px; color: rgba(255, 255, 255, .72); }

/* Sections */
.block, .footer { position: relative; }
.block::before, .footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--border-subtle); }
.block { padding-top: 64px; padding-bottom: 64px; }
.h2 { margin-bottom: 24px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; max-width: 640px; }

.features { display: grid; gap: 40px; padding-top: 16px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
.feature p { font-size: 16px; line-height: 24px; color: var(--ink-2); }

.ask { display: grid; gap: 48px; align-items: start; }
.faq { max-width: 720px; }
.ask:has(> .demo:not([hidden])) .faq { max-width: none; }
.qa { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; }
.qa + .qa { border-top: 1px solid var(--border-subtle); }
.qa > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.qa b { font-size: 16px; line-height: 24px; font-weight: 500; }
.qa b + span { font-size: 14px; line-height: 20px; color: var(--muted); }

.demo:not([hidden]) { display: flex; }
.demo { border-radius: 24px; padding: 24px; flex-direction: column; gap: 16px; }
.demo h2 { font-size: 24px; line-height: 30px; font-weight: 700; }
.demo p { font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .8); }
.field input { width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: #ffffff; color: #1c1f1d; font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--placeholder); }
.demo .btn { background: #ffffff; color: var(--band-end); font-weight: 700; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (min-width: 640px) {
  .tie { display: block; position: absolute; right: 0; bottom: 48px; width: 340px; border-radius: 24px; }
  .shot { justify-content: flex-start; width: 100%; max-width: 600px; margin: 0 auto; padding-left: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .topnav { display: flex; }
  .hero h1 { font-size: 48px; line-height: 56px; }
  .lead { font-size: 20px; line-height: 30px; }
  .block { padding-top: 80px; padding-bottom: 80px; }
  .h2 { font-size: 36px; line-height: 44px; }
  .features { padding-top: 24px; }
  .qa { padding: 12px 24px; }
  .demo { border-radius: 32px; padding: 48px; }
  .demo h2 { font-size: 30px; line-height: 36px; }
  .footer { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .shot { margin: 0; }
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .ask:has(> .demo:not([hidden])) { grid-template-columns: 1fr 480px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .6s var(--ease-out) both; }
  .shot { animation: rise .6s var(--ease-out) .1s both; }

  @supports (animation-timeline: view()) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .tie { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { translate: 0 16px; }
  to { translate: 0 -16px; }
}

.legal { max-width: 720px; padding-block: 32px 48px; }
.legal h1 { font-size: 32px; font-weight: 800; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.legal p, .legal ul { margin-top: 12px; line-height: 1.6; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal b { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
