/* Ballista landing. Layout: the page reads like the app's Shot screen, dark graphite with amber numbers;
   one bold moment (the live trajectory), everything else quiet. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/BarlowCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); }

:root {
  /* colours sampled from the app's dark theme */
  --bg: #0b0f0e;
  --surface: #141a18;
  --raised: #1d2522;
  --line: #27312d;
  --fg: #eef3f0;
  --fg2: #a3b2ac;
  --muted: #6a7973;
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, .12);
  --night: #ff6250;
  --sun: #f7f8f6;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --label: "Barlow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 68px); }
h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1; }
p { margin: 0; }
.amber { color: var(--amber); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 13px/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.lede { color: var(--fg2); font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--amber); color: #111; padding: 8px 14px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(11, 15, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--fg2); text-decoration: none; font: 600 13px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .top nav { display: none; } }

/* store badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badge { display: inline-flex; align-items: center; height: 54px; }
.badge img { height: 54px; width: auto; }
.badge-play { position: relative; gap: 12px; }
.badge-play img { height: 54px; }
.badge-play[aria-disabled="true"] { cursor: default; }
.soon { font: 600 12px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.badge-note { color: var(--muted); font-size: 14px; }

/* hero */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(24px, 4vw, 56px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(60px, 8.6vw, 124px); line-height: .86; margin-block: 14px 22px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lede { margin-bottom: 30px; }
.hero-copy { min-width: 0; }
.hero-phones { position: relative; min-width: 0; display: grid; justify-items: center; }
.hero-phones .front { width: min(400px, 82%); position: relative; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero-phones .back { position: absolute; width: min(340px, 64%); right: -4%; top: 12%; z-index: 1; opacity: .5; transform: rotate(4deg); }
.hero-glow { position: absolute; inset: 10% 0 0 10%; background: radial-gradient(closest-side, rgba(255,176,32,.16), transparent 70%); z-index: 0; pointer-events: none; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font: 600 13px/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phones .back { display: none; }
  .hero-phones .front { width: min(330px, 78%); }
}

/* the live trajectory */
.range { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.range-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 34px; }
@media (max-width: 860px) { .range-head { grid-template-columns: minmax(0, 1fr); } }
.range-board { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .range-board { grid-template-columns: minmax(0, 1fr); } }
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.ro-range { display: flex; align-items: baseline; gap: 8px; }
.ro-range b { font: 700 64px/1 var(--display); font-variant-numeric: tabular-nums; }
.ro-unit { font: 600 15px/1 var(--display); color: var(--fg2); letter-spacing: .08em; text-transform: uppercase; }
.ro-card { background: var(--raised); border-radius: 12px; padding: 12px 14px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.ro-label { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 600 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--fg2); margin-bottom: 6px; }
.ro-dir { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.ro-dir > span { display: flex; align-items: center; gap: 6px; color: var(--amber); font: 700 24px/1 var(--display); text-transform: uppercase; }
.ro-dir > span svg { width: 18px; height: 18px; fill: var(--amber); }
.ro-dir small { white-space: nowrap; font: 700 26px/1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.ro-dir small i { font: 600 12px/1 var(--display); font-style: normal; color: var(--fg2); letter-spacing: .08em; margin-left: 4px; text-transform: uppercase; }
.ro-val { justify-self: end; align-self: end; font: 700 58px/.9 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.ro-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ro-stats div { display: grid; gap: 3px; }
.ro-stats dt { font: 600 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ro-stats dd { margin: 0; font: 600 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.plot { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.plot svg { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: ew-resize; }
.plot .axis { fill: var(--muted); font: 600 17px var(--label); letter-spacing: .04em; }
.plot .drop { fill: var(--fg); font: 700 24px var(--display); letter-spacing: .04em; }
@media (max-width: 600px) { .plot .axis { font-size: 20px; } .plot .drop { font-size: 26px; } .plot .minor-label { display: none; } }
.plot .axis-strong { fill: var(--fg2); }
.ruler { position: relative; }
.ruler input { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 44px; margin: 0; cursor: ew-resize; }
.ruler input::-webkit-slider-runnable-track { height: 44px; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 100%) 0 100% / calc(100% / 44) 12px no-repeat, repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%) 0 100% / calc(100% / 220) 7px repeat-x; }
.ruler input::-moz-range-track { height: 44px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%) 0 100% / calc(100% / 220) 7px repeat-x; }
.ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 44px; border: 0; background: radial-gradient(circle at 50% 50%, var(--amber) 0 5px, transparent 6px), linear-gradient(var(--amber), var(--amber)) 50% 50% / 2px 100% no-repeat; }
.ruler input::-moz-range-thumb { width: 22px; height: 44px; border: 0; border-radius: 0; background: radial-gradient(circle at 50% 50%, var(--amber) 0 5px, transparent 6px), linear-gradient(var(--amber), var(--amber)) 50% 50% / 2px 100% no-repeat; }
.plot-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.plot-foot button { font: 600 12px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 32px; }
.source { margin-top: 18px; color: var(--muted); font-size: 13.5px; max-width: 70em; }

/* features */
.features { padding-block: clamp(56px, 8vw, 110px); display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-copy { display: grid; gap: 16px; align-content: center; min-width: 0; }
.feature-copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--fg2); }
.feature-copy li { padding-left: 22px; position: relative; }
.feature-copy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--amber); }
.feature-media { display: flex; justify-content: center; align-items: center; gap: 4%; min-width: 0; }
.feature-media img { width: min(340px, 70%); filter: drop-shadow(0 24px 48px rgba(0,0,0,.55)); }
.feature-media.pair img { width: min(300px, 48%); }
.feature-media.pair img + img { transform: translateY(8%); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-media { order: 0; }
}

/* themes */
.themes { padding-block: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.themes .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 13px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.swatch i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 700 15px/1 var(--display); font-style: normal; }
.swatch.dark i { background: var(--bg); color: var(--amber); border: 1px solid var(--line); }
.swatch.sun i { background: var(--sun); color: #111; }
.swatch.night i { background: #000; color: var(--night); border: 1px solid #3a0d08; }
@media (max-width: 860px) { .themes .wrap { grid-template-columns: minmax(0, 1fr); } }

/* more */
.more { padding-block: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.more-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.more-grid figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.more-grid img { width: 100%; aspect-ratio: 720 / 1509; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.5)); }
.more-grid figcaption { display: grid; gap: 6px; }
.more-grid figcaption b { font: 700 22px/1 var(--display); text-transform: uppercase; }
.more-grid figcaption span { color: var(--fg2); font-size: 15px; }
@media (max-width: 960px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* numbers band */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.numbers dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers div { padding: clamp(22px, 3vw, 34px) 16px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.numbers div:first-child { border-left: 0; }
.numbers dt { order: 2; color: var(--fg2); font: 600 13px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.numbers dd { order: 1; margin: 0; font: 700 clamp(40px, 5vw, 60px)/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .numbers dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers div:nth-child(3) { border-left: 0; } .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ipad */
.ipad { padding-block: clamp(56px, 8vw, 100px); }
.ipad .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ipad img { width: 100%; filter: drop-shadow(0 24px 48px rgba(0,0,0,.55)); }
@media (max-width: 860px) { .ipad .wrap { grid-template-columns: minmax(0, 1fr); } }

/* trust */
.trust { padding-block: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.trust-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.trust-grid h3 { font-size: 24px; }
.trust-grid p { color: var(--fg2); font-size: 15.5px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* final call */
.cta { padding-block: clamp(64px, 9vw, 120px); text-align: center; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 100%, rgba(255,176,32,.10), transparent 70%); }
.cta .wrap { display: grid; justify-items: center; gap: 22px; }
.cta img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cta .badges { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--fg2); text-decoration: none; }
footer nav a:hover { color: var(--fg); text-decoration: underline; }
.legal { font-size: 12.5px; line-height: 1.5; max-width: 80em; }

/* entrance: content is visible at rest; this only adds a short rise when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
