/* Big Board landing page. Colours are the app's Oche Green tokens. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0A2419;
  --glow: #14432F;
  --bg2: #0D2C1F;
  --surface: #113526;
  --surface2: #18422F;
  --line: #2A5640;
  --text: #F6F2E7;
  --muted: #A8C0B1;
  --accent: #F2B33D;
  --accent-ink: #2A1A00;
  --p2: #9CCBEB;
  --danger: #FF6B57;

  --r-tv: 22px;
  --r-card: 16px;
  --r-key: 12px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 900px at 50% 0, var(--glow) 0, var(--bg) 70%) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

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

h1, h2 { font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.25rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.02; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.section-lede { color: var(--muted); max-width: 34em; margin-top: 16px; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 900; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); min-height: 56px; padding-inline: 28px; }
.btn-primary:hover { background: #F7C460; }
.btn-large { min-height: 68px; padding-inline: 40px; font-size: 1.3rem; }
.btn-quiet { background: var(--surface2); border-color: var(--line); font-size: 1rem; }
.btn-quiet:hover { background: #1E5039; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.wordmark { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; text-decoration: none; }

/* Hero */
.hero { padding-top: clamp(20px, 4vw, 56px); }
.hero-copy { display: grid; gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-note { color: var(--muted); font-size: .98rem; }
@media (min-width: 960px) {
  .hero-copy { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* Stage: the photo, the live TV and the keypad */
.stage { position: relative; margin-top: clamp(28px, 4.5vw, 60px); }
.stage-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 2752 / 1536;
  border-radius: var(--r-tv);
  background: var(--bg2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.stage-photo { position: absolute; top: 0; left: var(--shift, 0%); width: var(--zoom, 100%); aspect-ratio: 2752 / 1536; }
.stage-photo img { width: 100%; height: 100%; }
.stage-note { margin-top: 16px; color: var(--muted); font-size: .98rem; max-width: 36em; }

/* TV screen, placed over the television in the photo */
.tv {
  position: absolute; left: 10.05%; top: 25.4%; width: 43.3%; height: 45.2%;
  container-type: size;
  background: radial-gradient(120% 80% at 50% 0, var(--glow) 0, var(--bg) 62%);
  box-shadow: 0 0 40px rgba(20, 67, 47, .3);
  overflow: hidden;
}
.tv-in { height: 100%; display: flex; flex-direction: column; padding: 3.2cqw 3.4cqw 3.4cqw; gap: 2.4cqw; }
.tv-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 3.1cqw; line-height: 1; }
.tv-top span:last-child { color: var(--muted); font-weight: 800; font-size: 2.2cqw; letter-spacing: .08em; text-transform: uppercase; }
.tv-cards { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.4cqw; min-height: 0; }
.tv-cards.p1 { grid-template-columns: 1fr 1.3fr; }
.tv-card {
  position: relative; min-width: 0;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 2.4cqw;
  padding: 2.6cqw 3cqw; display: flex; flex-direction: column;
}
.tv-card.active { background: var(--surface); border: .45cqw solid var(--accent); box-shadow: 0 0 6cqw rgba(242, 179, 61, .22); }
.tv-name { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 4.4cqw; line-height: 1.1; }
.tv-card:not(.active) .tv-name, .tv-card:not(.active) .tv-rem { color: var(--muted); }
.pips { display: flex; gap: 1cqw; }
.pips i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: .35cqw solid var(--muted); }
.pips i.on { background: var(--pc, var(--accent)); border-color: var(--pc, var(--accent)); }
.tv-rem {
  font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  font-size: 18cqw; line-height: .92; margin-top: .6cqw;
  transform-origin: left center;
}
.tv-card:not(.active) .tv-rem { font-size: 14cqw; }
.tv-rem.pop { animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1); } }
.tv-card.bust { animation: bust .5s ease; border-color: var(--danger); }
@keyframes bust { 20% { transform: translateX(-1.2cqw); } 40% { transform: translateX(1.2cqw); } 60% { transform: translateX(-.8cqw); } 80% { transform: translateX(.6cqw); } }
.tv-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1.6cqw; }
.tv-darts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.tv-darts span {
  height: 5.6cqw; border-radius: 1.4cqw; border: 1px dashed var(--line);
  display: grid; place-items: center; font-weight: 900; font-size: 3.6cqw;
}
.tv-darts span.hit { background: var(--surface2); border: .3cqw solid var(--text); }
.tv-co {
  background: var(--accent); color: var(--accent-ink); border-radius: 1.4cqw;
  padding: 1.2cqw 1.8cqw; font-weight: 900; font-size: 3.6cqw; line-height: 1.1;
  display: flex; align-items: baseline; gap: 1.6cqw; white-space: nowrap; align-self: flex-start;
}
.tv-co small { font-size: 2cqw; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tv-meta { color: var(--muted); font-size: 2.8cqw; font-weight: 800; line-height: 1.1; }
.tv-meta b { color: var(--text); font-weight: 900; }
.tv-card.won .tv-rem { color: var(--accent); font-size: 26cqw; }

/* Keypad */
.pad {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  touch-action: manipulation;
}
/* Border beam: a light that laps the keypad's edge for a few seconds to show it can be played.
   app.js adds .beam when the keypad scrolls into view and removes it on the first tap. */
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pad::before, .pad::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--beam-angle), transparent 0 68%, var(--accent) 90%, var(--text) 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.pad::after { padding: 5px; inset: -3px; filter: blur(7px); }
.pad.beam::before { opacity: 1; }
.pad.beam::after { opacity: .85; }
.pad.beam::before, .pad.beam::after { animation: beam-lap 2.6s linear infinite; }
@keyframes beam-lap { to { --beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .pad.beam::before { background: var(--accent); }
  .pad::after { display: none; }
}
.pad-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; font-size: .95rem; font-weight: 800; }
.pad-head b { font-weight: 900; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px; margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: var(--r-key); font-size: .88rem; font-weight: 900; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 2px; }
.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.keys-foot { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: 8px; }
.key {
  appearance: none; font: inherit; font-weight: 900; font-size: 1.15rem; color: var(--text);
  min-height: 48px; border-radius: var(--r-key); border: 1px solid var(--line); background: var(--surface2);
  cursor: pointer; font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform .08s ease, background-color .08s ease;
}
.key:hover { background: #1E5039; }
.key:active { transform: scale(.94); background: #246046; }
.key:disabled { opacity: .35; cursor: default; }
.key-undo { background: var(--bg2); border: 2px solid var(--text); }
.pad-won { text-align: center; padding: 16px 4px 4px; display: grid; gap: 16px; justify-items: stretch; }
.pad-won[hidden], .pad-play[hidden] { display: none; }
.won-title { font-weight: 900; font-size: 1.7rem; line-height: 1.1; }
.pad-won .btn { white-space: normal; padding-inline: 16px; font-size: 1rem; text-align: center; }
.won-text { color: var(--muted); font-size: 1rem; }
.won-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.won-row .key { font-size: 1rem; }

@media (min-width: 900px) {
  .pad { position: absolute; right: 2.6%; top: calc(46% - 20px); width: clamp(264px, 25.5%, 316px); }
  .stage { padding-bottom: 96px; }
  .stage-note { position: absolute; left: 0; bottom: 0; max-width: min(36em, 64%); }
}
@media (max-width: 899.98px) {
  .stage-frame { aspect-ratio: 1 / 0.99; border-radius: var(--r-card); --zoom: 185%; --shift: -8.6%; }
  .pad { position: relative; max-width: 440px; margin: -84px auto 0; }
  .key { min-height: 52px; }
  .stage-note { text-align: center; margin-inline: auto; }
}

/* Free section */
.free { padding-top: clamp(80px, 11vw, 160px); }
.shots { display: grid; gap: 40px 32px; margin-top: clamp(32px, 5vw, 64px); }
.shot { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; }
.shot img, .wide-shot img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
figcaption p { color: var(--muted); margin-top: 8px; max-width: 30em; text-wrap: pretty; }
@media (min-width: 760px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .shot { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .shot img { border-radius: 30px; width: min(100%, 300px); }
  .shot:nth-child(2) { margin-top: 56px; }
  .shot:nth-child(3) { margin-top: 112px; }
}
.wide-shot { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 112px); }
@media (min-width: 900px) { .wide-shot { grid-template-columns: 1.5fr 1fr; } }
.plain { margin-top: 24px; display: grid; gap: 8px; }
.plain li { padding-left: 24px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--muted); }

/* Pro section */
.pro { margin-top: clamp(80px, 11vw, 160px); padding-block: clamp(56px, 8vw, 104px); background: var(--bg2); border-block: 1px solid var(--line); }
.pro-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); }
.pro-intro .btn { margin-top: 28px; }
@media (min-width: 900px) { .pro-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } .pro-intro { position: sticky; top: 40px; } }
.pro-list { display: grid; }
.pro-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.pro-list > div:last-child { border-bottom: 1px solid var(--line); }
.pro-list dt { font-weight: 800; font-size: 1.25rem; }
.pro-list dd { color: var(--muted); margin-top: 4px; max-width: 32em; }

/* FAQ */
.faq { padding-top: clamp(80px, 11vw, 160px); display: grid; gap: 32px clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 800; font-size: 1.2rem; min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--muted); transition: transform .15s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 20px; max-width: 36em; }

/* Closing */
.closing { text-align: center; padding-block: clamp(96px, 13vw, 190px) clamp(72px, 9vw, 120px); display: grid; justify-items: center; gap: 0; }
.closing h2 { font-size: clamp(3.5rem, 13vw, 10rem); line-height: .9; }
.closing .section-lede { margin-top: 20px; }
.closing .btn { margin-top: 32px; }
.closing .cta-note { margin-top: 16px; }

.foot { padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Sticky download bar on phones */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 10;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 36, 25, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform .22s ease, opacity .22s ease;
  }
  .sticky-cta[hidden] { display: block; transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
  .sticky-cta .btn { width: 100%; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .top .btn-quiet { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* AirPlay section */
.airplay { padding-top: clamp(80px, 11vw, 160px); }
.airplay-grid { display: grid; gap: 48px clamp(40px, 6vw, 88px); margin-top: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .airplay-grid { grid-template-columns: 1.55fr 1fr; } }
.pair { position: relative; padding: 0 0 9% 0; }
.pair-tv { width: 88%; border-radius: 10px; border: 6px solid #050B08; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.pair-phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: clamp(12px, 2vw, 24px); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font-weight: 900; font-size: 3rem; line-height: .95; color: var(--text); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); margin-top: 4px; max-width: 28em; }

/* App Store badge (Apple's artwork, unmodified) and app icon */
.badge { display: inline-block; border-radius: 10px; transition: transform .12s ease; }
.badge img { height: 64px; width: auto; }
.badge:active { transform: scale(.97); }
.badge-large img { height: 72px; }
.pro-intro .badge { margin-top: 28px; }
.closing .badge { margin-top: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark img { width: 36px; height: 36px; border-radius: 8px; }
.closing-icon { width: 112px; height: 112px; border-radius: 25px; margin-bottom: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }

/* Text pages: privacy, support */
.doc { max-width: calc(44rem + 2 * var(--gutter)); padding-block: clamp(32px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.doc h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1; }
.doc h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; color: var(--muted); }
.doc strong { color: var(--text); font-weight: 800; }
.doc ul { list-style: disc; padding-left: 24px; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc-meta { font-size: .98rem; }
.foot-links { display: flex; gap: 8px; margin-left: -8px; }
.foot-links a { color: var(--text); text-decoration: none; min-height: 44px; min-width: 44px; padding-inline: 8px; display: inline-flex; align-items: center; justify-content: center; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Guide pages */
.doc .doc-lede { font-size: 1.2rem; color: var(--text); margin-top: 20px; }
.doc h3 { margin-top: 28px; }
.doc ol { margin-top: 12px; padding-left: 24px; color: var(--muted); }
.doc ol li + li { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 800; }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--text); font-weight: 800; white-space: nowrap; }
.doc-table { overflow-x: auto; }
.doc-cta { margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.doc-cta h2 { margin-top: 0; }
.doc-cta .badge { margin-top: 20px; }
.text-link { color: var(--text); text-underline-offset: 3px; font-weight: 800; }
.section-more { margin-top: 16px; }
.foot-links { flex-wrap: wrap; }
.doc-figure { margin-top: 24px; border-radius: 10px; border: 1px solid var(--line); }

/* Guide moments: dartboard key, checkout chart, connection methods */
.scoring { display: grid; gap: 24px 40px; margin-top: 20px; align-items: center; }
.board { width: 100%; max-width: 300px; justify-self: center; }
.board text { fill: var(--text); font: 800 16px var(--font); font-variant-numeric: tabular-nums; }
.doc .board-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc .board-key li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; margin: 0; }
.sw { width: 16px; height: 16px; border-radius: 4px; margin-top: 6px; }
.sw-single { background: var(--surface2); border: 1px solid var(--line); }
.sw-double { background: var(--accent); }
.sw-treble { background: var(--p2); }
.sw-bull { background: var(--muted); border-radius: 50%; }
.sw-none { visibility: hidden; }
@media (min-width: 700px) { .scoring { grid-template-columns: 300px 1fr; } }

.doc .outs td { padding-block: 8px; vertical-align: middle; }
.doc .outs .out-score { font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; width: 6.5rem; }
.out-darts { display: flex; flex-wrap: wrap; gap: 8px; }
.doc .outs td.out-darts { border-bottom: 0; }
.doc .outs tr { border-bottom: 1px solid var(--line); }
.doc .outs td.out-score { border-bottom: 0; }
.chip {
  display: inline-grid; place-items: center; min-width: 64px; height: 40px; padding-inline: 12px;
  border-radius: var(--r-key); background: var(--surface2); border: 1px solid var(--line);
  color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums;
}
.chip-out { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.ways { margin-top: 16px; }
.way { display: grid; gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.way:last-child { border-bottom: 1px solid var(--line); }
.doc .way h3 { margin: 0; }
.way dl { margin: 0; display: grid; gap: 12px; }
.way dt { color: var(--muted); font-size: .9rem; }
.way dd { margin: 0; color: var(--text); }
@media (min-width: 700px) { .way { grid-template-columns: 11rem 1fr; } }
