/* Spot FPV site. Tokens come from the app itself (spot-fpv.html): ground, ink, accent and the three signal states. */
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ChakraPetch-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ChakraPetch-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/ChakraPetch-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/ChakraPetch-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #0e1214;
  --panel: #141b1e;
  --panel-2: #1b2225;
  --line: #263034;
  --line-strong: #34403f;
  --ink: #e8efec;
  --mute: #9aa8a3;
  --accent: #ff6b1a;
  --accent-ink: #1c0b02;
  --ok: #3ddc84;
  --warn: #ffc53d;
  --lost: #ff5a4f;
  --contour: #c7a57a;
  --display: "Chakra Petch", "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 18px/1.55 var(--body); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 80px); line-height: 1.0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.mute { color: var(--mute); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; margin-left: 8px; }
.langs a { text-decoration: none; font: 600 14px/1 var(--body); color: var(--mute); padding: 7px 8px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--ink); background: var(--panel-2); }
@media (max-width: 760px) { .nav { display: none; } .langs { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font: 700 17px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8238; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -10% -20% -10% 30%; background: url("/assets/img/topo.svg") center / cover no-repeat; opacity: .09; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--ink); max-width: 46ch; }
.hero .actions { margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 15px; color: var(--mute); }
.reel { width: 100%; max-width: 340px; justify-self: center; display: grid; gap: 12px; }
.phone { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  border: 1px solid var(--line-strong); background: #000; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.sound { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font: 600 15px/1 var(--body); cursor: pointer; }
.sound:hover { border-color: var(--ink); }
.sound svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .reel { max-width: 300px; justify-self: start; }
}

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--mute); max-width: 60ch; font-size: 19px; }

/* the valley simulation: the one bold element */
.sim { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2.4vw, 28px); }
.sim svg { width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.sim .bar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; margin-top: 18px; }
.sim .readout { font: 600 20px/1.2 var(--display); }
.sim .readout .r-ok { color: var(--ok); }
.sim .readout .r-warn { color: var(--warn); }
.sim .readout .r-lost { color: var(--lost); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--mute); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.sim .hint { margin-top: 10px; font-size: 15px; color: var(--mute); }
.sim .caption { margin-top: 18px; font-size: 15px; color: var(--mute); max-width: 70ch; }
.sim .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
#pilot { cursor: grab; }
#pilot:active { cursor: grabbing; }
#pilot:focus { outline: none; }
#pilot:focus-visible .pin-ring { stroke: var(--ink); stroke-width: 3; }

/* steps: a real sequence, so they carry numbers */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps figure { margin: 0; }
.steps img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--panel); }
.steps h3 { margin-top: 22px; display: flex; gap: 12px; align-items: baseline; }
.steps h3::before { content: counter(step); font: 700 22px/1 var(--display); color: var(--accent); }
.steps p { margin-top: 10px; color: var(--mute); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps figure { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .steps h3 { margin-top: 4px; }
}

/* colours */
.colours { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.colours li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.colours b { display: inline-flex; align-items: center; gap: 12px; font: 700 22px/1 var(--display); }
.colours b::before { content: ""; width: 36px; height: 6px; border-radius: 3px; background: currentColor; }
.c-ok b { color: var(--ok); } .c-warn b { color: var(--warn); } .c-lost b { color: var(--lost); }
@media (max-width: 600px) { .colours li { grid-template-columns: 1fr; gap: 8px; } }

/* data */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.facts div { padding: 26px 0; border-top: 1px solid var(--line); }
.facts h3 { margin-bottom: 10px; }
.facts p { color: var(--mute); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* pricing */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 48px); }
.plan h3 { font-size: 24px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price strong { font: 700 clamp(56px, 8vw, 84px)/1 var(--display); letter-spacing: -0.02em; }
.price span { color: var(--mute); font-size: 18px; }
.founder { margin-top: 16px; color: var(--mute); max-width: 44ch; }
.left { margin-top: 12px; font-weight: 600; color: var(--accent); min-height: 1.55em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.plan li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--ok); }
.plan .actions { margin-top: 30px; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }

/* install */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 18px; }
.install ol li { counter-increment: i; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.install ol li::before { content: counter(i); font: 700 20px/1.4 var(--display); color: var(--accent); }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.dl .meta { margin-top: 16px; color: var(--mute); font-size: 15px; }
.dl .sha { margin-top: 10px; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.dl .sha code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); }
.dl .fine { margin-top: 16px; font-size: 15px; color: var(--mute); }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 20px/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--mute); max-width: 68ch; }

/* footer */
.foot { padding: 48px 0 64px; font-size: 15px; color: var(--mute); }
.foot .wrap { display: grid; gap: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--ink); }
.foot .credits { font-size: 13px; }

/* dialog */
dialog.buy { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel-2); color: var(--ink); padding: 0; }
dialog.buy::backdrop { background: rgba(5, 8, 9, .72); }
dialog.buy form { padding: 28px; display: grid; gap: 16px; }
dialog.buy h2 { font-size: 30px; }
dialog.buy p { color: var(--mute); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input { font: 500 18px/1.2 var(--body); color: var(--ink); background: var(--ground); border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px; min-height: 52px; }
.field input:focus { border-color: var(--accent); outline: none; }
.err { color: var(--lost); min-height: 1.4em; font-weight: 600; }
.small { font-size: 14px; }

/* plain pages */
.page { padding: clamp(48px, 7vw, 96px) 0; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 48px; }
.page h3 { margin-top: 28px; }
.page p, .page li { color: #c9d3cf; max-width: 72ch; }
.page p + p { margin-top: 14px; }
.page ul, .page ol { padding-left: 22px; display: grid; gap: 10px; }
.page .updated { margin-top: 12px; color: var(--mute); }
.page .toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.status { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); max-width: 720px; }
.status ol { margin-top: 12px; }
.status .email { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.steps figcaption { min-width: 0; }
