@font-face { font-family: "B612"; src: url("fonts/B612-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url("fonts/B612-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("fonts/B612Mono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("fonts/B612Mono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* dusk sky, top to horizon */
  --sky-0: #081521;
  --sky-1: #0e2233;
  --sky-2: #1c3a4f;
  --haze: #2f5468;
  --ground: #040b11;
  /* what the eye reads */
  --text: #e9f1f3;
  --text-2: #bccbd2;
  --line: rgb(233 241 243 / .14);
  /* visor symbology and alert inks */
  --visor: #7cf5b0;
  --caution: #ffc04a;
  --warning: #ff5a52;

  --sans: "B612", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --column: max(var(--gutter), calc((100% - 1180px) / 2));
  --band: clamp(4rem, 10vw, 8.5rem);
  /* a tick ruler: the horizon's symbology carried down the page */
  --ticks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='9'%3E%3Cpath d='M0 .5h40M.5 0v9M20.5 0v4' stroke='%237cf5b0' fill='none'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--haze) var(--sky-0); }
body { margin: 0; background: var(--sky-0); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); caret-color: var(--visor); }
::selection { background: var(--visor); color: var(--sky-0); }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--visor); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 700; text-wrap: balance; }
p, figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 3; background: var(--visor); color: var(--sky-0); padding: .6rem 1rem; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 1rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Top bar, set over the sky ---------- */
.bar { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; fill: var(--visor); }
.bar nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); font-size: .95rem; }
.bar nav a { text-decoration: none; color: var(--text-2); padding: .6rem 0; }
.bar nav a:hover { color: var(--text); }
.bar nav .bar__cta { color: var(--text); border: 1px solid var(--visor); border-radius: 4px; padding: .55rem .9rem; }
.bar nav .bar__cta:hover { background: rgb(124 245 176 / .1); }

/* ---------- The view ---------- */
.view {
  position: relative;
  min-height: max(100svh, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gutter);
  padding: 7rem var(--gutter) 9rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 38%, var(--sky-2) 68%, var(--haze) 84%);
}
.view__copy { position: relative; z-index: 1; max-width: 34rem; }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; }
.lede { margin-top: 1.25rem; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--text-2); max-width: 30ch; }

.signup { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; max-width: 30rem; }
input[type="email"] {
  flex: 1 1 14rem;
  min-height: 52px;
  padding: .8rem 1rem;
  font: 400 1.05rem/1.2 var(--sans);
  color: var(--text);
  background: rgb(8 21 33 / .55);
  border: 1px solid rgb(233 241 243 / .3);
  border-radius: 4px;
}
input[type="email"]::placeholder { color: #93a8b2; }
input[type="email"]:hover { border-color: rgb(233 241 243 / .5); }
input[type="email"]:focus-visible { outline: none; border-color: var(--visor); box-shadow: 0 0 0 1px var(--visor); }
input[aria-invalid="true"] { border-color: var(--warning); }
/* the action is white light; green stays with the symbology */
.button {
  min-height: 52px;
  padding: .8rem 1.4rem;
  font: 700 1rem/1 var(--sans);
  color: var(--sky-0);
  background: var(--text);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.button:hover { background: #fff; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: progress; opacity: .7; }
.signup__note, .survey__note { flex-basis: 100%; font-size: .9rem; color: var(--text-2); min-height: 1.5em; }
[data-tone="error"] { color: var(--warning); }
[data-tone="ok"] { color: var(--visor); }

/* the pilot: a real dusk photo filling the right of the view, fading into the drawn sky on its left and into the page below */
.view__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; }
.view__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 16%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 16%);
          mask-composite: intersect;
}

/* ---------- The glasses panel: see-through, framed by visor brackets, white light only ---------- */
/* it rides over the dark mountains in the photo's lower left, clear of the drone and the pilot's face */
.lens { position: absolute; z-index: 1; left: 39%; bottom: clamp(1.5rem, 4vh, 2.5rem); width: min(24rem, 30vw); }
.lens .panel { aspect-ratio: 5 / 4; padding: 7% 8%; background: rgb(4 11 17 / .38); }
.lens .panel__title { font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); }
.lens .panel__line { font-size: clamp(.9rem, .8rem + .3vw, 1.02rem); }
.lens .num { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); }
.sev { font-size: .9rem; margin-bottom: .6rem; color: var(--visor); }
.sev::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; background: currentColor; vertical-align: .05em; }
.sev[data-severity="caution"] { color: var(--caution); }
.sev[data-severity="warning"] { color: var(--warning); }
.panel {
  --frame: var(--visor);
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9%;
}
.panel[data-severity="caution"] { --frame: var(--caution); }
.panel[data-severity="warning"] { --frame: var(--warning); }
.brackets { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--frame); stroke-width: 2; transition: stroke .3s; }
.brackets path { vector-effect: non-scaling-stroke; }
.panel__title { font: 700 clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem)/1.1 var(--sans); margin-bottom: .6rem; }
.panel__line { font: 400 clamp(.95rem, .85rem + .35vw, 1.15rem)/1.35 var(--sans); margin-top: .35rem; }
.panel__detail { color: var(--text); }
/* the numbers are the loudest marks after the headline; the words around them stay the app's words */
.num { font: 700 clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.panel.is-flip { animation: flip .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes flip { from { opacity: .3; } to { opacity: 1; } }

/* battery tape: page-side instrument showing the margin the alert is about */
.tape { margin-top: 1.25rem; }
.tape__bar { position: relative; height: 10px; border: 1px solid rgb(233 241 243 / .35); }
.tape__fill { position: absolute; inset: 1px auto 1px 1px; width: calc(var(--battery, 52) * 1% - 2px); background: var(--text); transition: width .25s linear; }
.tape__mark { position: absolute; top: -6px; bottom: -6px; left: calc(var(--home, 32) * 1%); width: 2px; background: var(--caution); }
.tape__label { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; font-size: .82rem; color: var(--text-2); }
.tape__home { color: var(--caution); }
.lens figcaption { margin-top: .85rem; font-size: .82rem; color: var(--text-2); }

/* ---------- Bands below the view: full-bleed tick rulers, content in a 1180px column ---------- */
.band { position: relative; padding: var(--band) var(--column); }
.band::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--ticks) repeat-x; opacity: .35; }
.band > h2, .band--join h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; }
.band > h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.note { margin-top: 1.5rem; font-size: .9rem; color: var(--text-2); max-width: 60ch; }

/* alerts: one panel, five states */
.switcher { display: grid; grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.switcher__tabs { display: flex; flex-direction: column; gap: .25rem; border-left: 1px solid var(--line); }
.switcher__tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding: .6rem 1rem;
  margin-left: -1px;
  font: 400 1.05rem/1.2 var(--sans);
  color: var(--text-2);
  text-align: left;
  background: none;
  border: 0;
  border-left: 1px solid transparent;
  cursor: pointer;
}
.tab--warning { --tab: var(--warning); }
.tab--caution { --tab: var(--caution); }
.switcher__tabs .dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; background: var(--tab); }
.switcher__tabs [role="tab"]:hover { color: var(--text); }
.switcher__tabs [aria-selected="true"] { color: var(--tab); font-weight: 700; border-left-color: var(--tab); background: rgb(233 241 243 / .05); }
.panel--large { aspect-ratio: 16 / 9; padding: 6% 7%; background: linear-gradient(180deg, rgb(28 58 79 / .35), rgb(47 84 104 / .25)); }
.trigger { margin-top: 1.25rem; font-size: 1rem; color: var(--text-2); }
.trigger__k { color: var(--visor); margin-right: .4rem; }

/* how it works: a three-step chain joined by a data line */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.chain li { position: relative; counter-increment: step; }
.chain svg { width: 3rem; height: 3rem; fill: none; stroke: var(--visor); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.chain li:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 4.25rem; right: -1.25rem; border-top: 1px dashed rgb(124 245 176 / .5); }
.chain h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.chain h3::before { content: counter(step) " "; font-family: var(--mono); color: var(--visor); }
.chain p { color: var(--text-2); max-width: 28ch; }

/* status */
.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.status h3 { font-size: 1.05rem; color: var(--visor); font-weight: 400; margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  background: var(--visor);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks--open li { color: var(--text-2); }
.ticks--open li::before { background: none; border: 1.5px solid var(--text-2); border-radius: 50%; -webkit-mask: none; mask: none; width: .85rem; height: .85rem; top: 1.1rem; }

/* join */
.band--join { background: linear-gradient(180deg, var(--sky-0), var(--sky-1)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.join__lede { margin-top: 1rem; color: var(--text-2); max-width: 30ch; }
.survey { display: grid; gap: 1.75rem; }
.field label, legend { display: block; font-size: .95rem; color: var(--text-2); margin-bottom: .6rem; padding: 0; }
.field input { width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .55rem 1.1rem;
  font: 400 .98rem/1 var(--sans);
  color: var(--text-2);
  border: 1px solid rgb(233 241 243 / .3);
  border-radius: 999px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chips label:hover span { color: var(--text); border-color: rgb(233 241 243 / .55); }
.chips input:checked + span { color: var(--sky-0); background: var(--visor); border-color: var(--visor); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--visor); outline-offset: 3px; }
.survey .button { justify-self: start; }
.survey.is-logged fieldset, .survey.is-logged .field { opacity: .5; }

.foot { position: relative; padding: 2.5rem var(--column) 3rem; font-size: .88rem; color: var(--text-2); }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--ticks) repeat-x; opacity: .35; }
.foot p { max-width: 75ch; }
.foot p + p { margin-top: .5rem; }

/* ---------- Narrow ---------- */
@media (max-width: 900px) {
  .view { grid-template-columns: 1fr; align-content: start; padding-top: 6rem; padding-bottom: 3.5rem; gap: 2.5rem; }
  /* the photo joins the flow under the promise; the panel rides over its dark lower edge */
  .view__photo { position: static; width: auto; margin: 0 calc(var(--gutter) * -1); }
  .view__photo img { height: auto; aspect-ratio: 4 / 5; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 76%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 76%, transparent); }
  .lens { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -9rem; }
  .lens .panel { aspect-ratio: 5 / 4; background: rgb(4 11 17 / .5); }
  .switcher { grid-template-columns: 1fr; }
  .switcher__tabs { flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--line); gap: 0; }
  .switcher__tabs [role="tab"] { border-left: 0; border-bottom: 1px solid transparent; margin: 0 0 -1px; padding: .6rem .8rem; font-size: .95rem; }
  .switcher__tabs [aria-selected="true"] { border-bottom-color: var(--tab); }
  .panel--large { aspect-ratio: 5 / 4; }
  .chain { grid-template-columns: 1fr; }
  .chain li { padding-left: 4.5rem; min-height: 3.5rem; }
  .chain svg { position: absolute; left: 0; top: 0; }
  .chain li:not(:last-child)::after { top: 3.6rem; bottom: -1.25rem; left: 1.5rem; right: auto; border-top: 0; border-left: 1px dashed rgb(124 245 176 / .5); }
  .status { grid-template-columns: 1fr; }
  .band--join { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .bar nav a:not(.bar__cta) { display: none; }
  .view { padding-top: 5.25rem; }
  .signup { margin-top: 1.75rem; }
  .num { font-size: 1.55rem; }
}

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