/* VDV Live - landing page and documents.
   One stylesheet for both languages. Dark, because the app is dark, with the teal
   the icon and the map controls use. */

:root {
  --bg: #07100f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-edge: rgba(255, 255, 255, 0.09);
  --ink: #eef4f3;
  --ink-2: #a9bab7;
  --ink-3: #71857f;
  --accent: #17b3a3;
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }

header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(7, 16, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.brand:hover { text-decoration: none; }
header nav { display: flex; align-items: center; gap: 22px; }
header nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
header nav a:hover { color: var(--ink); text-decoration: none; }
header nav a.on { color: var(--ink); }
header nav a.lang {
  color: var(--ink); border: 1px solid var(--panel-edge); border-radius: 99px;
  padding: 5px 13px; font-size: 13.5px; background: var(--panel);
}
header nav a.lang:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative; overflow: hidden; padding: 84px 0 64px; text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero .glow {
  position: absolute; inset: -40% 10% auto; height: 720px;
  background:
    radial-gradient(46% 54% at 50% 42%, rgba(23, 179, 163, 0.30), transparent 70%),
    radial-gradient(38% 40% at 66% 26%, rgba(58, 122, 255, 0.20), transparent 72%);
  filter: blur(12px); pointer-events: none;
}
.hero-inner { position: relative; }
.app-icon {
  width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1 {
  margin: 0 auto; max-width: 15ch; font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.lede {
  margin: 20px auto 0;
  /* No 56ch cap: these are one-sentence straplines, and a cap breaks them into an
     orphaned second line. They take the width of the page and wrap only when they
     have to, evenly, because of `text-wrap: balance`. */
  max-width: none;
  text-wrap: balance;
  color: var(--ink-2);
  font-size: clamp(16.5px, 2.1vw, 19.5px);
}
.hero .meta { margin: 20px 0 0; color: var(--ink-3); font-size: 13.5px; letter-spacing: 0.02em; }
.cta { margin: 30px 0 0; }
.button {
  display: inline-block; padding: 13px 26px; border-radius: 99px;
  background: var(--accent); color: #04211d; font-weight: 650; font-size: 15.5px;
  box-shadow: 0 10px 26px rgba(23, 179, 163, 0.28);
}
.button:hover { text-decoration: none; filter: brightness(1.06); }

.shots { padding: 68px 0 24px; text-align: center; }
.shot-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; margin-top: 40px; align-items: start;
}
figure.phone { margin: 0; }
figure.phone img {
  width: 100%; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); background: #0d1417;
}
figure.phone figcaption { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

section h2 { margin: 0 0 10px; font-size: clamp(25px, 3.4vw, 34px); letter-spacing: -0.025em; line-height: 1.15; }
section .lede { margin-left: 0; margin-right: 0; }

.features { padding: 76px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.grid article {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); padding: 24px 22px;
}
.grid h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.grid p { margin: 0; color: var(--ink-2); font-size: 14.8px; line-height: 1.55; }

.watch {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(23, 179, 163, 0.05));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.watch-figure { margin: 0; display: flex; justify-content: center; }
.watch-figure img { width: min(300px, 70vw); border-radius: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.watch .lede { max-width: 40ch; }

.data { padding: 68px 0 84px; }
.sources {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.sources li {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-edge);
}
.sources strong { font-size: 14.5px; font-weight: 620; }
.sources span { font-size: 13.5px; color: var(--ink-3); }

footer.site { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 34px 0 46px; }
footer.site .wrap { display: flex; flex-direction: column; gap: 10px; }
.muted { margin: 0; color: var(--ink-3); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .links a { color: var(--ink-2); font-size: 13px; }
footer .links a:hover { color: var(--ink); }

body.doc main h1 { margin: 0 0 6px; font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.updated { margin: 0 0 34px; color: var(--ink-3); font-size: 14px; }
body.doc h2 {
  margin: 38px 0 10px; font-size: 19.5px; letter-spacing: -0.015em;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
body.doc p { margin: 12px 0; color: var(--ink-2); }
body.doc ul { margin: 14px 0; padding-left: 22px; color: var(--ink-2); }
body.doc li { margin: 7px 0; }
body.doc strong { color: var(--ink); font-weight: 620; }
body.doc code {
  font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px; padding: 1px 5px; color: var(--ink);
}
.table { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
th { color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--ink-2); }
.back { margin-top: 46px; }
pre.markdown {
  white-space: pre-wrap; word-break: break-word;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2); background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 14px; padding: 20px; overflow-x: auto;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .watch-figure { order: -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  header.site .wrap { height: 56px; }
  header nav { gap: 14px; }
  header nav a:not(.lang) { display: none; }
  .hero { padding: 58px 0 46px; }
  .shot-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; gap: 16px;
  }
  .shot-row figure { scroll-snap-align: center; }
  .grid, .sources { grid-template-columns: 1fr; }
  .features, .data { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- App Store button */

.store-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* The shape of Apple's badge, drawn in the site's own colours rather than copied:
   a dark pill with a light edge, the label in the reader's language. */
.button.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d1b19;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  padding: 11px 22px 11px 18px;
  font-size: 15px;
}
.button.store:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.34); }
.store-glyph { flex: none; opacity: 0.9; }

/* Not published yet: same shape, plainly not a control. */
.button.store.soon {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.button.store.soon .store-glyph { opacity: 0.5; }

.quiet-link {
  color: var(--ink-2);
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 1px;
}
.quiet-link:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--ink); }

.store-note {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}
