/* CarScreen website — one stylesheet for the landing page and the legal pages. */

:root {
  --bg: #07070a;
  --surface: #111116;
  --raised: #1a1a21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.62);
  --faint: rgba(245, 245, 247, 0.4);
  --accent: #5ed040;
  --live: #ee2a33;
  --radius: 28px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Glows reach past the edges; clip them here so phones never get a sideways scroll. */
main, .site-footer { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---- Header -------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.header-badge img { height: 36px; width: auto; }
@media (max-width: 720px) { .site-nav { display: none; } .header-badge { margin-left: auto; } }

/* ---- Type ---------------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(44px, 8vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 34em; margin: 18px auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; margin: 0 0 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.accent { color: var(--accent); }

/* ---- Buttons ------------------------------------------------------------------------------- */

.store-badge { display: inline-block; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; }
.store-note { color: var(--faint); font-size: 14px; margin: 14px 0 0; }

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero { position: relative; text-align: center; padding: clamp(56px, 10vw, 110px) 0 40px; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -10% -20% auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(94, 208, 64, 0.22), rgba(94, 208, 64, 0.05) 55%, transparent);
  filter: blur(10px);
}
.hero .cta { margin-top: 34px; }
.hero .dash-stage { margin-top: clamp(40px, 7vw, 72px); }

/* ---- Car dashboard with a playing screen --------------------------------------------------- */
/* The artwork is 2000 × 1118 with a transparent 1501 × 604 display at (305, 266). */

.dash-stage { position: relative; }
.dash-ambient {
  position: absolute; inset: 8% 10%; z-index: -1; border-radius: 40%;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.4); opacity: 0.55; transform: scale(1.1);
}
.dash {
  --x: 15.25%; --y: 23.79%; --w: 75.05%; --h: 54.03%;
  position: relative; width: 100%; max-width: 1040px; margin-inline: auto; aspect-ratio: 2000 / 1118;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}
.dash > .screen {
  position: absolute; left: calc(var(--x) - 0.2%); top: calc(var(--y) - 0.3%);
  width: calc(var(--w) + 0.4%); height: calc(var(--h) + 0.6%);
  overflow: hidden; background: #000;
}
.dash > .screen > video, .dash > .screen > .layer > video { width: 100%; height: 100%; object-fit: cover; }
.dash > .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.screen .chip { position: absolute; left: 2.2%; bottom: 5%; }
.screen .chip-top-left { position: absolute; left: 2.2%; top: 5%; }
.screen .chip-top-right { position: absolute; right: 2.2%; top: 5%; }

/* Glass label used on screens and tiles. Sized relative to its container via --s. */
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.38em 0.8em 0.38em 0.45em; border-radius: 99px;
  font-size: var(--s, 13px); font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(30, 30, 36, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.chip.plain { padding-left: 0.8em; }
.chip svg { width: 1.05em; height: 1.05em; }
.live {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.55em; border-radius: 99px;
  background: var(--live); color: #fff; font-size: 0.78em; font-weight: 800; letter-spacing: 0.02em;
}
.live::before { content: ""; width: 0.42em; height: 0.42em; border-radius: 50%; background: #fff; }
.screen { --s: clamp(8px, 1.25vw, 13px); }

/* ---- Sections ------------------------------------------------------------------------------ */

.section { padding: clamp(80px, 12vw, 150px) 0 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 18px auto 0; max-width: 36em; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .text h2 { margin-bottom: 18px; }
.split .text p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split .text { text-align: center; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(94, 208, 64, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%235ed040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (max-width: 880px) { .points { width: fit-content; max-width: 100%; margin-inline: auto; } .points li { text-align: left; } }

/* ---- Channel wall -------------------------------------------------------------------------- */

.wall {
  position: relative; height: 440px; overflow: hidden; border-radius: var(--radius);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.wall-rows { position: absolute; inset: -20% -30%; display: grid; gap: 14px; align-content: center; transform: rotate(-8deg); opacity: 0.7; }
.wall-row { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.wall-row:nth-child(2) { animation-duration: 38s; animation-direction: reverse; }
.wall-row:nth-child(3) { animation-duration: 52s; }
.wall-row:nth-child(4) { animation-duration: 42s; animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.tile { position: relative; flex: none; width: 190px; aspect-ratio: 16 / 9.5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .live { position: absolute; left: 8px; top: 8px; font-size: 10px; }
.wall-feature { position: absolute; inset: 0; display: grid; place-items: center; }
.feature-card {
  position: relative; width: min(360px, 78%); aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}
.feature-card video { width: 100%; height: 100%; object-fit: cover; }
.feature-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); }
.feature-card .live { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 12px; }
.feature-card .meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.feature-card .meta b { display: block; font-size: 18px; }
.feature-card .meta span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.progress { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 42%; background: var(--live); border-radius: inherit; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---- Ambience bento ------------------------------------------------------------------------ */

.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 250px 170px 250px; gap: 14px; max-width: 560px; margin-inline: auto; }
.bento .scene:nth-child(1) { grid-row: 1 / 3; }
.bento .scene:nth-child(2) { grid-row: 1 / 2; }
.bento .scene:nth-child(3) { grid-row: 3 / 4; }
.bento .scene:nth-child(4) { grid-row: 2 / 4; }
.scene {
  position: relative; border-radius: 24px; overflow: hidden; background: #000;
  border: 1px solid var(--line); transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.scene video { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s ease; filter: saturate(0.55) brightness(0.62); }
.scene .chip { position: absolute; left: 12px; bottom: 12px; --s: 14px; }
.scene.on { transform: scale(1.02); border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); z-index: 1; }
.scene.on video { filter: none; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 0.8em; }
.scene.on .eq, .chip .eq.show { display: inline-flex; }
.eq i { width: 2.5px; background: currentColor; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 560px) { .bento { grid-template-rows: 190px 130px 190px; } }

/* ---- CarPlay mock (inside the dashboard screen) ------------------------------------------- */
/* Laid out in a 420 × 169 space, scaled to the screen by main.js (--k). */

.cp { position: absolute; left: 0; top: 0; width: 420px; height: 169px; transform: scale(var(--k, 1)); transform-origin: top left;
  background: linear-gradient(#26262b, #17171a); color: #fff; font-size: 10px; font-weight: 600; }
.cp .bar { position: absolute; left: 12px; right: 12px; top: 7px; display: flex; justify-content: space-between; }
.cp .seg { display: flex; gap: 2px; padding: 2px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.cp .seg span { padding: 4px 9px; border-radius: 99px; }
.cp .seg span:first-child { background: rgba(255, 255, 255, 0.18); }
.cp .np { display: flex; gap: 12px; align-items: center; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.cp .np svg { width: 10px; height: 10px; }
.cp .row-title { position: absolute; left: 12px; font-size: 12px; font-weight: 700; }
.cp .row-title::after { content: " ›"; color: rgba(255, 255, 255, 0.5); }
.cp .card { position: absolute; width: 116px; height: 65px; border-radius: 7px; overflow: hidden; }
.cp .card img { width: 100%; height: 100%; object-fit: cover; }
.cp .card::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.cp .card .live { position: absolute; left: 4px; top: 4px; font-size: 5.5px; }
.cp .card b { position: absolute; left: 5px; bottom: 4px; z-index: 1; font-size: 8px; }
.cp .focus { position: absolute; border: 2px solid var(--accent); border-radius: 9px; transition: left 0.25s ease, top 0.25s ease, opacity 0.2s ease, transform 0.15s ease; opacity: 0; }
.cp .player { position: absolute; overflow: hidden; background: #000; opacity: 0; transition: left 0.45s cubic-bezier(.65,0,.35,1), top 0.45s cubic-bezier(.65,0,.35,1), width 0.45s cubic-bezier(.65,0,.35,1), height 0.45s cubic-bezier(.65,0,.35,1), border-radius 0.45s ease, opacity 0.15s ease; }
.cp .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.cp .player .chip { position: absolute; left: 8px; bottom: 8px; --s: 10px; }

.wheel { position: relative; height: 90px; max-width: 460px; margin: 26px auto 0; }
.wheel::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 420px; height: 420px; transform: translateX(-50%); border-radius: 50%;
  border: 26px solid transparent; border-top-color: rgba(255, 255, 255, 0.12);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 55%); mask-image: linear-gradient(#000 30%, transparent 55%);
}
.wheel-buttons { position: relative; display: flex; justify-content: center; gap: 110px; padding-top: 6px; }
.wheel-button {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wheel-button svg { width: 20px; height: 20px; }
.wheel-button.pressed { background: var(--accent); color: #000; transform: scale(0.9); box-shadow: 0 0 24px rgba(94, 208, 64, 0.7); }

/* ---- Offline ------------------------------------------------------------------------------- */

.offline-stack { display: grid; gap: 16px; }
.downloads { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 0; max-width: 520px; width: 100%; margin-inline: auto; }
.dl { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.dl + .dl { border-top: 1px solid var(--line); }
.dl img { width: 60px; height: 40px; border-radius: 9px; object-fit: cover; }
.dl b { flex: 1; font-size: 16px; }
.ring { position: relative; width: 28px; height: 28px; }
.ring svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: rgba(255, 255, 255, 0.15); }
.ring .fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 69.1; stroke-dashoffset: 69.1; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); }
.ring .done { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.25s ease; }
.ring .done svg { width: 14px; height: 14px; transform: none; }
.dl.ready .fill { stroke-dashoffset: 0; }
.dl.ready .done { opacity: 1; transform: none; }
.offline .fade { opacity: 0; transform: scale(0.92); transition: opacity 0.35s ease, transform 0.35s ease; }
.offline .fade.show { opacity: 1; transform: none; }
.offline .screen video { transition: filter 0.4s ease; }
.offline:not(.playing) .screen video { filter: brightness(0.45); }

/* ---- Parked note --------------------------------------------------------------------------- */

.parked { display: flex; gap: 22px; align-items: center; max-width: 820px; margin: clamp(48px, 7vw, 72px) auto 0; padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.parked .gear { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #000; font-weight: 800; font-size: 26px; box-shadow: 0 0 24px rgba(94, 208, 64, 0.45); }
.parked p { margin: 0; color: var(--muted); }
.parked p b { color: var(--text); }

/* ---- Feature grid -------------------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(94, 208, 64, 0.12); color: var(--accent); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* ---- FAQ ----------------------------------------------------------------------------------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; }

/* ---- Closing CTA and footer ---------------------------------------------------------------- */

.closing { text-align: center; padding: clamp(90px, 13vw, 160px) 0 clamp(70px, 10vw, 120px); position: relative; isolation: isolate; }
.closing img.logo { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 0 60px rgba(94, 208, 64, 0.35); }
.closing .cta { margin-top: 30px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { flex-basis: 100%; font-size: 12px; line-height: 1.5; }

/* ---- Legal and support pages --------------------------------------------------------------- */

.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: clamp(48px, 8vw, 88px) 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc .updated { color: var(--faint); margin: 14px 0 40px; font-size: 15px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: rgba(245, 245, 247, 0.78); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc .summary { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.doc .summary p { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin: 30px 0; }
.contact-card a.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }

/* ---- Reveal on scroll ---------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wall-row, .feature-card, .eq i { animation: none; }
}
