/* ScorePuppy website: the app's colours (dark theme) and Barlow fonts. */
:root {
  --bg: #0A1422;
  --surface: #13233A;
  --surface-2: #1B2F4B;
  --border: #22395A;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --primary: #38BDF8;
  --live: #FB923C;
  --success: #34D399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(251, 146, 60, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.3px; }
.brand img { border-radius: 8px; }
.top-links { display: flex; align-items: center; gap: 10px; }
.top-link { text-decoration: none; color: var(--primary); font-weight: 600; }
.board-link { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; }
.board-link:hover { border-color: var(--primary); }

/* Scoreboard promo */
.board-promo { display: grid; gap: 22px; align-items: center; padding: 34px 0 6px; }
.board-promo h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.1; margin: 4px 0 10px; }
.board-promo p { color: var(--muted); margin-bottom: 10px; }
.board-shot { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.button { display: inline-block; text-decoration: none; background: var(--primary); color: #04111F; font-weight: 600; border-radius: 12px; padding: 12px 20px; margin-top: 6px; }
@media (min-width: 900px) { .board-promo { grid-template-columns: 5fr 7fr; gap: 40px; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { display: grid; gap: 28px; align-items: center; padding: 28px 0 40px; }
.eyebrow { color: var(--live); font-weight: 600; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(42px, 9vw, 72px); line-height: 0.98; letter-spacing: -0.5px; }
h1 span { color: var(--primary); }
.lead { color: var(--muted); font-size: 19px; margin: 18px 0 26px; max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.mascot-wrap { position: relative; width: min(78vw, 400px); container-type: inline-size; }
.mascot { display: block; width: 100%; height: auto; border-radius: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border); }
/* Puck-shaped tag over the collar charm. */
.tag { position: absolute; left: 50%; top: 59.2%; width: 5cqw; height: 4cqw; transform: translate(-50%, -40%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4B5563, #0B0D10 70%); box-shadow: 0 0 0 0.35cqw var(--primary), 0 0.5cqw 1cqw rgba(0, 0, 0, 0.5); }
/* Phone leaning against his paws, covering the banana on the floor. */
.mini-phone { position: absolute; left: 51.5%; bottom: 3%; width: 17cqw; aspect-ratio: 9 / 16; transform: translateX(-50%) rotate(-7deg);
  background: #05090F; border-radius: 2.22cqw; padding: 0.67cqw; box-shadow: -1.11cqw 1.48cqw 2.96cqw rgba(0, 0, 0, 0.55), 0 0 0 0.18cqw #2A3A52; }
.mini-screen { height: 100%; border-radius: 1.63cqw; background: linear-gradient(170deg, #13233A, #0A1422); padding: 1.48cqw 1.18cqw; display: flex; flex-direction: column; gap: 0.89cqw; }
.mini-brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 2.29cqw; color: var(--primary); }
.mini-score { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #3B2A22, #13233A); border-radius: 1.18cqw; padding: 1.18cqw 0.89cqw; }
.mini-score b { font-family: 'Barlow Condensed', sans-serif; font-size: 4.44cqw; line-height: 1; color: #fff; }
.mini-score i { font-style: normal; color: var(--muted); margin: 0 0.30cqw; }
.mini-logo { width: 4.2.96cqw; height: 3.26cqw; border-radius: 50%; display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.78cqw; color: #fff; }
.mini-live { font-size: 1.70cqw; font-weight: 600; color: var(--live); text-align: center; }
.mini-row { height: 1.92cqw; border-radius: 0.74cqw; background: #1B2F4B; }
.mini-row.short { width: 70%; }

/* Store buttons: big, easy to tap on a phone or tablet. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 22px 10px 18px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3A4A60; border-radius: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store:hover { transform: translateY(-2px); border-color: var(--primary); }
.store.primary { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.05; }
.store small { font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 12px; color: #C7D2DE; }
.store[aria-disabled='true'] { cursor: default; }
.small-print { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* App previews (HTML stand-ins for screenshots). */
.previews { display: grid; gap: 22px; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 18px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.previews::-webkit-scrollbar { display: none; }
.phone { scroll-snap-align: center; }
.screen {
  aspect-ratio: 9 / 14.5; background: var(--bg); border: 8px solid #05090F; border-radius: 34px;
  padding: 26px 14px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.screen-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; }
.phone figcaption { text-align: center; color: var(--muted); font-weight: 500; margin-top: 12px; }

.score-card { position: relative; border-radius: 18px; padding: 16px 12px 12px; background: linear-gradient(160deg, #3B2A22, var(--surface)); border: 1px solid #5A3B2A; overflow: hidden; }
.rink { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.10) 49.6% 50.4%, transparent 50.4%),
  radial-gradient(circle at 50% 50%, transparent 26px, rgba(255, 255, 255, 0.10) 27px, transparent 28px); }
.teams { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; font-weight: 600; font-size: 14px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
.t1 { background: #166534; } .t2 { background: #7C3AED; }
.score { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; }
.score span { color: var(--muted); margin: 0 3px; }
.clock { position: relative; text-align: center; color: var(--live); font-weight: 600; font-size: 13px; margin-top: 8px; }
.event { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 9px 8px; }
.table td { padding: 9px 8px; border-top: 1px solid var(--border); }
.table td:first-child { color: var(--muted); width: 22px; }
.table td:last-child, .table th:last-child { text-align: right; font-weight: 600; }
.table tbody tr:first-child td { color: var(--primary); }

.news { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 12px; padding: 11px 12px; }
.news + .news { border-left-color: var(--border); }
.news-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.news-body { color: var(--muted); font-size: 13.5px; }
.rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; background: var(--surface-2); border-radius: 12px; padding: 11px 12px; font-size: 13.5px; }
.rsvp b, .rsvp i { white-space: nowrap; font-style: normal; font-weight: 600; margin-left: 2px; padding: 3px 10px; border-radius: 999px; }
.rsvp b { background: var(--success); color: #062A1E; }
.rsvp i { background: #334155; }

/* Three reasons */
.features { display: grid; gap: 14px; padding: 34px 0 10px; }
.features article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.features h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; margin-bottom: 6px; }
.features article { display: flex; flex-direction: column; }
.features p { color: var(--muted); margin-bottom: 10px; }
.more { margin-top: auto; padding-top: 6px; color: var(--primary); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.foot { max-width: 1120px; margin: 40px auto 0; padding: 24px 20px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; color: var(--text); }
.foot a:hover { color: var(--primary); }

/* Simple text pages (privacy, terms) */
.page { max-width: 760px; margin: 0 auto; padding: 20px 20px 60px; }
.page h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 10px; }
.page h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; margin: 26px 0 8px; }
.page p, .page li { color: #CBD5E1; margin-bottom: 10px; }
.page ul { padding-left: 22px; }
.note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--live); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }

/* Tablet and up: hero side by side; previews in a row without scrolling. */
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding: 48px 0 56px; }
  .previews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 8px 0 18px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .previews { gap: 34px; padding: 8px 40px 18px; }
}
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }

/* Legal pages (generated from docs/legal by scripts/build-legal-pages.py). */
.page h3 { font-size: 19px; margin: 18px 0 6px; }
.page ul ul { margin-top: 6px; }
.page strong { color: var(--text, #fff); }
.page code { font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 6px; }
.legal-table { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px; background: var(--surface); }
.legal-table td { color: #CBD5E1; padding: 10px; border-top: 1px solid var(--border); vertical-align: top; }

/* Feature lists */
.ticks { list-style: none; margin: 0 0 12px; display: grid; gap: 6px; }
.ticks li { color: var(--muted); padding-left: 22px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Plans and savings estimate */
.plans { padding: 44px 0 10px; }
.plans h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; margin: 4px 0 8px; }
.plans-lead { color: var(--muted); max-width: 40em; margin-bottom: 18px; }
.plan-grid { display: grid; gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.plan.best { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.plan h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; }
.price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 38px; line-height: 1.1; margin: 4px 0 2px; }
.price small { font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-alt { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.plans .small-print a, .hero .small-print a { color: var(--primary); }
.calc { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.calc h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; margin-bottom: 14px; }
.calc-grid { display: grid; gap: 12px; }
.calc label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.calc input, .calc select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; min-height: 48px; width: 100%; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.calc-out { display: grid; gap: 12px; margin: 18px 0 4px; }
.calc-out div { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.calc-out span { color: var(--muted); font-size: 14px; font-weight: 600; }
.calc-out b { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; line-height: 1.1; }
.calc-out small { color: var(--muted); font-size: 13.5px; }
.calc-out .save { border-color: var(--success); }
.calc-out .save b { color: var(--success); }
@media (min-width: 760px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-out { grid-template-columns: repeat(3, 1fr); }
}
.calc label[hidden] { display: none; }

/* Hero: free line and quick links */
.free-line { margin-top: 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; color: var(--success); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hero-pills .board-link { padding: 9px 16px; font-size: 16px; }
.store { position: relative; }
.soon { position: absolute; top: -9px; right: -8px; font-style: normal; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; background: var(--live); color: #1A0E05; border-radius: 999px; padding: 2px 8px; }

/* Real app screenshots */
.shots { grid-auto-columns: min(62vw, 250px); }
.shot { display: block; width: 100%; height: auto; border: 8px solid #05090F; border-radius: 34px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border); background: #F1F5F9; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .shots { padding: 8px 0 18px; gap: 26px; } }

/* Screenshot rows and the bigger scoreboard */
.shots-block { padding: 10px 0 6px; }
.shots-lead { color: var(--muted); max-width: 46em; margin: -6px 0 14px; }
.shots-block h2, .board-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.1; margin: 4px 0 14px; }
.board-promo { display: block; }
.board-head p { color: var(--muted); max-width: 46em; }
.board-shot { margin: 16px 0 22px; }
.board-panel { display: grid; gap: 22px; align-items: start; }
.panel-shot { width: 100%; max-width: 440px; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.board-text h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; margin-bottom: 8px; }
@media (min-width: 760px) {
  .shots { grid-template-columns: repeat(5, 1fr); }
  .shots.four { grid-template-columns: repeat(4, 1fr); max-width: 1040px; }
  .board-panel { grid-template-columns: minmax(0, 440px) 1fr; gap: 40px; }
}
