@import url('/fonts/fonts.css');

/* FRL Broadcast landing page.
 *
 * The palette is lifted from the operator console itself rather than invented, so somebody
 * arriving from a stream overlay or the phone app lands somewhere that looks like the same
 * product. One accent, the same mint the console uses for live state. One dark theme, no
 * section inverts. */

:root {
  --bg: #0b0d11;
  --bg-lift: #101319;
  --panel: #14171d;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --ink: #f4f6f8;
  --ink-2: #a8aeb8;
  --ink-3: #6b7079;

  --accent: #00e0a4;
  --accent-ink: #04120d;

  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;

  --shell: 1200px;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky header would otherwise sit on top of whatever an anchor jumps to. */
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is doing real work here. The width and height attributes on each <img> are
   there to reserve space and keep CLS down, but without this the height attribute keeps
   its literal pixel value while max-width shrinks the width, and a 1080x2240 phone shot
   renders 298px wide and 2240px tall. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- type */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(2.125rem, 1.5rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.3; }

p { margin: 0; }
.lede { color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); max-width: 58ch; }
.body { color: var(--ink-2); max-width: 62ch; }

.mono {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 17, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .shell { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.brand .live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 224, 164, .14);
}

.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a {
  font-size: .9375rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.nav a:hover { color: var(--ink); }

/* Below 820 the links would push the header onto a second line, so they fold away and the
   in-page sections carry the navigation instead. */
@media (max-width: 820px) { .nav .nav-link { display: none; } }

/*
 * The language switch.
 *
 * First in the nav rather than last: it is the one control that changes everything else on
 * the page, and somebody who cannot read the rest of the header should not have to scan it
 * to the end to find the way out.
 */
.langswitch {
  display: inline-flex; margin-right: 4px;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.langswitch button {
  font: 500 .6875rem/1 var(--mono); letter-spacing: .1em;
  padding: 7px 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-3);
}
.langswitch button + button { border-left: 1px solid var(--line); }
.langswitch button:hover { color: var(--ink); }
.langswitch button[aria-pressed="true"] { background: var(--panel); color: var(--accent); }
.langswitch button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: 600 .9375rem/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #2df0bb; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-lift); border-color: rgba(255, 255, 255, .28); }

.btn-sm { height: 38px; padding: 0 15px; font-size: .875rem; }

/* ---------------------------------------------------------------- hero */

.hero { padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #05070a;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}

/* ---------------------------------------------------------------- console */

.console { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.console-head { max-width: 62ch; margin-bottom: 36px; }
.console-head h2 { margin-bottom: 14px; }

/* ---------------------------------------------------------------- capabilities */

.caps { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); background: var(--bg-lift); }
.caps h2 { margin-bottom: 40px; max-width: 20ch; }

.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px 48px;
}
@media (min-width: 720px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cap h3 { margin-bottom: 12px; }
.cap ul { margin: 0; padding: 0; list-style: none; }
.cap li {
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.5;
  padding: 6px 0 6px 18px;
  position: relative;
}
.cap li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 7px; height: 1px;
  background: var(--line-strong);
}

/* ---------------------------------------------------------------- paths */

.paths { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.paths h2 { margin-bottom: 40px; }

.path-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 880px) { .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.path {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 30px 28px;
}
.path > .mono { display: block; margin-bottom: 20px; }
.path ol { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.path ol li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 42px;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.55;
}
.path ol li:last-child { padding-bottom: 0; }
.path ol li strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.path ol li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-3);
}
/* The connecting rule makes the sequence read as one run rather than three loose rows. */
.path ol li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px; top: 30px; bottom: 8px;
  width: 1px;
  background: var(--line);
}

/* ---------------------------------------------------------------- driver app */

.driver { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); background: var(--bg-lift); }
.driver .shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .driver .shell { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 72px; }
}

.driver h2 { margin-bottom: 16px; }
.driver .body { margin-bottom: 24px; }

.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.dl-meta { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }

.notes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.notes li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.notes li span:first-child { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; padding-top: 2px; }
@media (max-width: 560px) { .notes li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.phone {
  justify-self: center;
  max-width: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  overflow: hidden;
  background: #05070a;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}

/* ---------------------------------------------------------------- close */

.close { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); text-align: center; }
.close h2 { margin-bottom: 16px; }
.close .lede { margin: 0 auto 30px; }
.close .hero-actions { justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer .shell { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .mono { color: var(--ink-3); }
.footer nav { display: flex; gap: 20px; }
.footer nav a { font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- reveal */

/* Motion earns its place here by giving the page a reading order: the eye is walked down
   one section at a time instead of meeting everything at once. Nothing loops, nothing
   moves after it has arrived. */
/* Scoped to .js, which is set by an inline script in the head. Without that class the
   sections are simply visible: an earlier version started them at opacity 0 and hid two
   thirds of the page from anybody whose script did not run. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------------- focus */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
