:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #566176;
  --line: rgba(11, 18, 32, 0.09);
  --accent: #0062cc;
  --accent-strong: #004fa6;
  --accent-soft: rgba(0, 98, 204, 0.10);
  --car: #0d1220;
  --car-2: #1c2436;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px rgba(11, 18, 32, 0.08);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090f;
    --bg-soft: #0e121b;
    --card: #121826;
    --text: #eef2f8;
    --muted: #97a1b3;
    --line: rgba(238, 242, 248, 0.09);
    --accent: #0a84ff;
    --accent-strong: #3d9bff;
    --accent-soft: rgba(10, 132, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .wordmark { display: block; height: 26px; width: auto; }
.wordmark { color: inherit; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .wordmark.small { height: 16px; width: auto; display: block; color: var(--text); opacity: 0.55; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
/* On the home page the dashboard runs up under the bar, and the bar is dark glass while it's over it. */
.top.over-hero { margin-bottom: -61px; transition: background-color 0.25s ease, border-color 0.25s ease; }
.top.over-hero .brand, .top.over-hero nav a { transition: color 0.25s ease; }
.top.on-dark { background: rgba(6, 9, 16, 0.6); border-bottom-color: rgba(255, 255, 255, 0.08); }
.top.on-dark .brand { color: #fff; }
.top.on-dark nav a { color: rgba(235, 240, 248, 0.68); }
.top.on-dark nav a:hover { color: #fff; }

/* Hero: the night dashboard runs the full width behind the top of the page, in light and dark,
   with the three clips taking turns on its screen. */
.hero {
  --hero-bg: #060910;
  position: relative;
  background: var(--hero-bg);
  color: #f3f6fb;
  text-align: center;
  overflow: hidden;
}
.hero-text { position: relative; z-index: 2; padding-top: 113px; }
.eyebrow { display: inline-block; margin-top: 0; padding: 6px 12px; border-radius: 999px; background: rgba(10, 132, 255, 0.16); color: #7db8ff; font-size: 14px; font-weight: 600; }
h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 18px auto 16px;
  max-width: 14ch;
}
.hero h1 { color: #fff; }
.lede { color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); max-width: 36ch; margin: 0 auto; }
.hero .lede { color: rgba(235, 240, 248, 0.74); }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 16px;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button svg { width: 18px; height: 18px; }
.hero .button { background: #fff; color: #0b1220; }
.hero .button.ghost {
  background: rgba(255, 255, 255, 0.07); color: #fff; border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.hero .note { color: rgba(235, 240, 248, 0.58); }

/* The picture. --z zooms in from the middle, --u0 is where the view starts down the picture
   (a fraction of its height), --ar is the view's shape, --overlap how far it slides up behind the words.
   The screen sits at fixed percentages of the picture, measured from its green screen. */
.scene {
  --z: 1; --u0: 0; --ar: 1.932; --overlap: min(15vw, 290px); --fade: 30%;
  position: relative; z-index: 1;
  max-width: 1920px;
  margin: calc(-1 * var(--overlap)) auto 0;
  aspect-ratio: var(--ar);
  overflow: hidden;
  container-type: inline-size;
}
.scene .photo {
  position: absolute;
  top: calc(var(--u0) * var(--z) * -56.25cqw);
  left: calc((1 - var(--z)) * 50%);
  width: calc(var(--z) * 100%);
  aspect-ratio: 16 / 9;
}
.scene .photo > img { display: block; width: 100%; height: 100%; }
/* Fades the windshield into the dark behind the words, and the console into the dark below. */
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--hero-bg) 0%, rgba(6, 9, 16, 0.8) calc(var(--fade) * 0.45), rgba(6, 9, 16, 0) var(--fade), rgba(6, 9, 16, 0) 82%, var(--hero-bg) 100%);
}
@media (min-width: 1921px) {
  .scene { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
}
.scene .screen {
  position: absolute; z-index: 2;
  left: 27.3958%; top: 31.1111%; width: 41.9792%; height: 33.6111%;
  overflow: hidden;
  border-radius: 0.7% / 1.6%;
  /* The clips fill the screen. The blue shows only if they can't load. */
  background: linear-gradient(135deg, #0a84ff 0%, #0062cc 55%, #003f8a 100%);
  container-type: size;
}
/* The three clips, stacked; the one showing has .on. */
.scene video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.scene video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scene video { transition: none; } }
/* Darkens the top and bottom edges so the chip and timeline stay readable on any clip. */
.scene .screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.62) 100%);
}
.scene .bar, .scene .chip { position: absolute; z-index: 2; }
.scene .bar {
  left: 3.5cqw; right: 3.5cqw; bottom: 6cqh;
  display: flex; align-items: center; gap: 2cqw; color: #fff; font-size: max(9px, 2.1cqw); font-weight: 600;
}
.scene .track { flex: 1; height: max(2px, 0.7cqw); border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.scene .track span { display: block; width: 38%; height: 100%; background: #fff; }
.scene .chip {
  top: 6cqh; left: 3cqw;
  padding: 0.7cqw 1.8cqw; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: max(9px, 2cqw); font-weight: 600; line-height: 1.4;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip::before { content: ""; display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: #34c759; margin-inline-end: 0.6em; vertical-align: 0.04em; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .glyph svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 16px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plans .card h3 { font-size: 22px; }
.plans ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--muted); }
.plans li { margin: 6px 0; }
.plans .pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* Documents (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); max-width: none; margin: 0 0 8px; text-align: start; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 8px 0; }
.summary {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 0 0 8px;
}
.summary p { margin: 0; }
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0;
  background: var(--card);
}
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details[open] summary { margin-bottom: 8px; }
details p, details li { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  /* Zoom in as the page narrows so the car screen stays big. */
  .scene { --z: 1.45; --u0: 0.08; --ar: 1.495; --overlap: 15vw; --fade: 26%; }
}
@media (max-width: 600px) {
  .grid, .plans { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
  .hero-text { padding-top: 97px; }
  section { padding: 56px 0; }
  .scene { --z: 2; --u0: 0.13; --ar: 1.196; --overlap: 14vw; --fade: 20%; }
}

.plans-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted, #64748b);
}
.plans-note a { color: inherit; text-decoration: underline; }

/* Other languages (website-i18n/build_site.py writes them). Spacing letters apart breaks Arabic
   script, and full-width scripts need a wider headline. */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
:lang(ja) h1, :lang(ko) h1, :lang(zh) h1 { max-width: 11em; letter-spacing: -0.01em; }
:lang(ja) h2, :lang(ko) h2, :lang(zh) h2 { letter-spacing: 0; }
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { text-wrap: balance; word-break: auto-phrase; }
.legal-note { color: var(--muted); font-size: 14px; margin: -20px 0 32px; }

/* Language picker: its own row at the bottom of the footer; the languages open under it. */
.lang { flex-basis: 100%; border: 0; border-radius: 0; padding: 0; margin: 0; background: none; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang summary:hover { color: var(--text); }
.lang[open] summary { margin-bottom: 12px; }
.lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lang li { margin: 0; }
.lang a { color: var(--muted); }
.lang a[aria-current] { color: var(--text); font-weight: 600; }
