/* Rival Darts site. Layout follows the RunRoutes site (copy beside the app,
   bands that alternate, plans side by side, answers left open); the colours,
   the type and the phone are the app's own: ink blue, lime for you, coral
   for Rival, Unbounded for headings and Manrope for reading. */

@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

@layer base, layout, components, responsive;

@layer base {
  :root {
    color-scheme: dark;
    --bg: #10142B;
    --surface: #161B3A;
    --surface-2: #1A2045;
    --text: #EEF0F8;
    --muted: #A6ABC6;
    --accent: #C6F432;
    --accent-hi: #D8FF5C;
    --accent-soft: rgba(198, 244, 50, 0.14);
    --on-accent: #10142B;
    --coral: #FF5A47;
    --line: rgba(238, 240, 248, 0.10);
    --line-strong: rgba(238, 240, 248, 0.34);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --display: "Unbounded", "Arial Black", sans-serif;
    --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tap: 44px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
  }
  img { max-width: 100%; height: auto; }
  a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  button { font: inherit; cursor: pointer; }
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  p, h1, h2, h3, h4, figure { margin: 0; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
  h3, h4 { font-family: var(--body); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
  /* The second line of every title: the app's lime, flat, never a gradient. */
  h1 em, h2 em { display: block; font-style: normal; color: var(--accent); }
  ::selection { background: var(--accent); color: var(--on-accent); }
  [id] { scroll-margin-top: 96px; }
}

@layer layout {
  .wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
  /* The rays behind the phones may reach past the edge; clip, never scroll. */
  main { overflow-x: clip; }

  .site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
  .header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
  .nav { margin-left: auto; }
  .nav-links { display: flex; gap: 4px; }
  .header-end { display: flex; align-items: center; gap: 14px; }

  .hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 48px; padding-block: 72px 80px; }
  .hero h1 { font-size: clamp(42px, 4.4vw, 62px); margin-bottom: 28px; }
  .hero-copy { min-width: 0; }
  .hero-intro { font-size: 19px; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .small-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
  .small-note strong { color: var(--text); font-weight: 800; }
  .hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
  .hero-devices { position: relative; display: grid; place-items: center; }

  .section { padding-block: 112px; }
  .band { padding-block: 112px; background: var(--surface); }

  .feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 88px; align-items: center; }
  .feature-flip > .feature-copy { order: 2; }
  .feature-copy h2, .section-intro h2, .closing h2, .article-cta h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 24px; }
  .feature-lede { color: var(--muted); font-size: 18px; max-width: 34em; }
  .feature-lede + .feature-lede { margin-top: 16px; }
  .feature-lede strong { color: var(--text); }
  .feature-art { position: relative; display: flex; justify-content: center; align-items: center; }
  .more-link { margin-top: 12px; }

  .section-intro { max-width: 680px; margin-bottom: 56px; }
  .section-intro p { color: var(--muted); font-size: 18px; }
  .section-intro.center { text-align: center; margin-inline: auto; }

  .plans { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; max-width: 1040px; margin-inline: auto; align-items: start; }
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }

  .closing-band { padding-block: 120px; background: var(--surface); border-top: 1px solid var(--line); }
  .closing { text-align: center; max-width: 780px; }
  .closing > p { color: var(--muted); font-size: 18px; max-width: 34em; margin-inline: auto; }
  .closing-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 32px; }

  .site-footer { border-top: 1px solid var(--line); }
  .footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 36px 20px; }
  .footer-top > p { color: var(--muted); font-size: 15px; }
  .footer-top nav { margin-left: auto; }
  .footer-links { display: flex; flex-wrap: wrap; column-gap: 22px; }
  .footer-languages ul { display: flex; flex-wrap: wrap; column-gap: 22px; padding-bottom: 8px; }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

  .article { max-width: 820px; padding-block: 64px 96px; }
  .article-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 24px; }
  .article h1 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 24px; }
  .article h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; }
  .article p { color: rgba(238, 240, 248, 0.84); margin-bottom: 16px; }
  .article .article-lede { font-size: 19px; color: var(--text); }
  .article a:not(.button):not(.text-link) { color: var(--accent); }
  .article-cta { margin-top: 64px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
  .article-cta h2 { margin-top: 0; }
  .article-cta .closing-actions { justify-content: flex-start; margin-top: 20px; }

  .legal { max-width: 760px; padding-block: 64px 96px; }
}

@layer components {
  .skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; transform: translateY(-160%); padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
  .skip-link:focus { transform: none; }

  .wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
  .wordmark img { width: 34px; height: 34px; border-radius: 9px; }

  .nav-links a, .footer-links a, .footer-languages a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 10px; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 8px; transition: color 150ms ease; }
  .footer-links a, .footer-languages a { padding-inline: 0; font-size: 14px; }
  .footer-languages a[aria-current] { color: var(--text); text-decoration: underline; }

  /* Buttons: the app's lime, ink label. */
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 150ms ease; box-shadow: 0 14px 34px -16px rgba(198, 244, 50, 0.6); }
  .button svg { flex: none; margin-top: -2px; }
  .button:active { transform: scale(0.97); }
  .button-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .button-small { min-height: var(--tap); padding: 10px 18px; font-size: 15px; box-shadow: none; border-radius: 12px; }
  .text-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--accent); font-weight: 800; text-decoration: underline; }

  /* Until the app is live: a label, not a button, so nothing pretends to be clickable. */
  .store-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 22px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line-strong); }

  .language-menu, .nav-more { position: relative; }
  .language-menu > summary, .nav-more > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); list-style: none; cursor: pointer; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 700; transition: color 150ms ease, background-color 150ms ease; }
  .language-menu > summary { padding-inline: 12px; }
  .language-menu > summary::-webkit-details-marker, .nav-more > summary::-webkit-details-marker { display: none; }
  .language-menu[open] > summary, .nav-more[open] > summary { color: var(--text); background: var(--surface-2); }
  .language-menu ul, .nav-more-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 200px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); transform-origin: top right; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
  @starting-style { .language-menu[open] ul, .nav-more[open] .nav-more-panel { opacity: 0; transform: scale(0.97); } }
  .language-menu a, .nav-more-panel a { display: flex; align-items: center; min-height: var(--tap); padding-inline: 12px; border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
  .language-menu a[aria-current], .nav-more-languages a[aria-current] { color: var(--accent); }
  .nav-more { display: none; }
  .nav-more > summary span { width: 4px; height: 4px; border-radius: 999px; background: var(--text); box-shadow: 0 -7px 0 var(--text), 0 7px 0 var(--text); }
  .nav-more-links { display: grid; }
  .nav-more-languages { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .nav-more-languages a { font-size: 14px; color: var(--muted); }

  /* The rays of the app icon behind the hero phones: a dartboard's twenty
     beds in two navies, fading out towards the edge. */
  .board-rays { position: absolute; z-index: -1; pointer-events: none; mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
  .ray-a { fill: #161B3A; }
  .ray-b { fill: #222A5C; }
  .ray-treble, .ray-double { fill: none; stroke: rgba(198, 244, 50, 0.16); stroke-width: 6; }
  .rays-hero { width: 128%; max-width: 640px; top: 50%; left: 50%; translate: -50% -50%; }
  @media (prefers-reduced-motion: no-preference) {
    .rays-hero { animation: rays-in 900ms var(--ease-out) both; }
    @keyframes rays-in { from { opacity: 0; scale: 0.94; } }
  }

  /* The phones are the appshotted 3D render with a transparent background,
     so the shadow is a drop-shadow that follows the silhouette. */
  .phone { --w: 300px; position: relative; width: var(--w); flex-shrink: 0; }
  .phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 38px 46px rgba(0, 0, 0, 0.55)); }
  .hero-devices > .phone { grid-area: 1 / 1; }
  .phone-hero { --w: 340px; translate: 16% 0; }
  .phone-hero-back { --w: 260px; translate: -46% 40px; opacity: 0.9; }

  .pair { display: grid; place-items: center; padding-block: 20px; }
  .pair > .phone { grid-area: 1 / 1; --w: 260px; }
  .pair > .phone-back { translate: -30% -18px; }
  .pair > .phone-front { translate: 30% 30px; }
  .phone-solo { --w: 300px; }
  .phone-article { --w: 220px; }

  .demo-caption { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

  .promise-strip { border-block: 1px solid var(--line); }
  .promise-strip ul { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; }
  .promise-strip li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; font-weight: 700; }
  .promise-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }

  .steps { margin-top: 36px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
  .step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 18px; font-weight: 800; }
  .steps h3 { font-size: 21px; margin: 8px 0 6px; }
  .steps p { color: var(--muted); font-size: 16px; }

  .checklist { margin-top: 28px; display: grid; gap: 12px; }
  .checklist li { position: relative; padding-left: 32px; }
  .checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23C6F432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

  .plan { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
  .plan-pro { background: var(--surface-2); border-color: rgba(198, 244, 50, 0.5); box-shadow: 0 30px 70px -40px rgba(198, 244, 50, 0.35); }
  .plan h3 { font-family: var(--display); font-size: 26px; margin-bottom: 18px; }
  .plan-lede { color: var(--muted); margin: -8px 0 22px; }
  .plan-price { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .plan-price span { display: block; margin-top: 10px; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .price-options { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .price-option { padding: 22px 16px 0 0; }
  .price-option + .price-option { padding-left: 16px; border-left: 1px solid var(--line); }
  .price-option h4 { font-size: 17px; margin-bottom: 12px; color: var(--accent); }
  .price-option .plan-price { font-size: 26px; }
  .plan .checklist { padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
  .plan-disclosure { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

  .faq-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
  .faq-grid h3 { font-size: 21px; margin-bottom: 12px; }
  .faq-grid p { color: var(--muted); font-size: 16px; }
  .faq-grid a { color: var(--accent); }

  .closing-mark { position: relative; display: grid; place-items: center; width: 220px; height: 220px; margin: 0 auto 28px; isolation: isolate; }
  .closing-mark img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8); }
  .rays-closing { inset: 0; width: 100%; height: 100%; }

  .crumbs { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 24px; }
  .crumbs a { color: var(--muted); }
  .crumbs span[aria-hidden] { margin-inline: 8px; }
  .legal h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 20px; }
  .legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 14px; }
  .legal p, .legal-list li { color: rgba(238, 240, 248, 0.84); line-height: 1.7; }
  .legal p { margin-bottom: 16px; }
  .legal-lede { font-size: 19px; color: var(--text) !important; }
  .legal-updated { font-size: 14px; font-weight: 800; color: var(--muted) !important; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .legal-list { list-style: disc; padding-left: 22px; margin-bottom: 20px; }
  .legal-list li { margin-bottom: 12px; }
  .legal a { color: var(--accent); }

  @media (hover: hover) and (pointer: fine) {
    .button:hover { background: var(--accent-hi); }
    .button-quiet:hover { background: rgba(238, 240, 248, 0.06); }
    .nav-links a:hover, .footer-links a:hover, .footer-languages a:hover, .language-menu > summary:hover, .nav-more > summary:hover { color: var(--text); }
    .language-menu a:hover, .nav-more-panel a:hover { background: rgba(238, 240, 248, 0.06); }
    .text-link:hover, .legal a:hover { color: var(--accent-hi); }
  }
}

@layer responsive {
  @media (max-width: 1080px) {
    .wrap { width: calc(100% - 64px); }
    .nav-links a { padding-inline: 7px; font-size: 14px; }
    .feature { gap: 56px; }
    .phone-hero { --w: 300px; }
    .phone-hero-back { --w: 230px; }
    .pair > .phone { --w: 220px; }
  }
  @media (max-width: 900px) {
    .nav, .language-menu { display: none; }
    .nav-more { display: block; }
    .header-end { margin-left: auto; gap: 6px; }
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .feature { grid-template-columns: 1fr; gap: 48px; }
    .feature-flip > .feature-copy { order: 0; }
    .promise-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
    .plans { grid-template-columns: 1fr; max-width: 600px; }
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-top nav { margin-left: 0; width: 100%; }
    .article-head { grid-template-columns: 1fr; }
    .phone-article { display: none; }
  }
  @media (max-width: 600px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { min-height: 64px; gap: 12px; }
    .wordmark { font-size: 15px; }
    .button-small { padding-inline: 14px; font-size: 14px; }
    .hero { padding-block: 36px 56px; }
    .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
    .hero-intro { font-size: 17px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .store-soon, .hero-actions .button { justify-content: center; }
    .phone-hero { --w: 230px; translate: 18% 0; }
    .phone-hero-back { --w: 180px; translate: -48% 28px; }
    .rays-hero { width: 120%; }
    .section, .band { padding-block: 72px; }
    .closing-band { padding-block: 80px; }
    .feature-copy h2, .section-intro h2, .closing h2, .article-cta h2 { font-size: clamp(27px, 8vw, 36px); }
    .feature-lede, .section-intro p, .closing > p { font-size: 17px; }
    .promise-strip li { font-size: 14px; }
    .pair > .phone { --w: 180px; }
    .phone-solo { --w: 250px; }
    .plan { padding: 24px; }
    .price-options { grid-template-columns: 1fr; }
    .price-option + .price-option { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
    .article, .legal { padding-block: 40px 72px; }
    .article-cta { padding: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: background-color 150ms ease; }
    .button:active { transform: none; }
  }
}
