/* Car Ambience — the app's look on the web: near-black surfaces, warm white type,
   Instrument Serif with italic emphasis, white pill buttons, spaced small capitals. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111112;
  --surface: #1e1e20;
  --elevated: #2a2a2d;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f6f3ec;
  --text-2: rgba(255, 255, 255, 0.6);
  --text-3: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.32);
  --accent: #a7d3f4;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; overflow-x: clip; }

/* A quiet scrollbar on the page's own colour, so it doesn't read as a strip down the right side. */
html { scrollbar-color: rgba(246, 243, 236, 0.22) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(246, 243, 236, 0.2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #0b0b0c; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: #000; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

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

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em, h1 em, h2 em { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(52px, 7vw, 104px); line-height: 0.94; }
h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 0.98; }
h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; }
h1, h2, h3, .lede { text-wrap: balance; }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin: 0; }

.label {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}

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

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--text); color: #0b0b0c;
  font: 600 17px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pill:hover { transform: translateY(-1px); background: #fff; }
.pill:active { transform: scale(0.97); }
.pill--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.pill--ghost:hover { background: var(--elevated); }
.pill small { font-weight: 500; opacity: 0.6; }

.soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 24px 0 18px; border-radius: 999px;
  background: var(--text); color: #0b0b0c; font: 600 16px/1.1 var(--sans);
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.18); }
.soon span small { display: block; font: 500 12px/1.2 var(--sans); opacity: 0.7; }

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

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.top.scrolled { background: rgba(17, 17, 18, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 400 26px/1 var(--serif); }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; color: var(--text-2); font: 500 15px/1 var(--sans); padding: 10px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--text); }
.top nav .pill { height: 40px; padding: 0 18px; font-size: 14px; color: #0b0b0c; }
.motion {
  display: grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--text-2);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: color 0.2s ease, background 0.2s ease;
}
.motion:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.motion svg { width: 14px; height: 14px; }
.motion .i-play, .still .motion .i-pause { display: none; }
.still .motion .i-play { display: block; }

/* ---------- Ambient background ---------- */

/* Soft coloured light. A radial gradient, not a blur filter: large blurred layers were drawn in
   tiles and left dark rectangles where content layers overlapped them. */
.glow {
  --c: #5973d9;
  position: absolute; border-radius: 50%; opacity: 0.46; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 100%);
}
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6; }
main, footer { position: relative; z-index: 1; }

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

.hero { position: relative; min-height: min(100svh, 840px); display: grid; align-items: center; padding: 112px 0 40px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero .label { color: var(--text-2); }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .works { margin-top: 22px; color: var(--text-3); font-size: 14px; }

.fan { position: relative; height: clamp(380px, 46vw, 560px); }
.fan .card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(170px, 18vw, 240px); aspect-ratio: 0.7;
  border-radius: 28px; overflow: hidden; background: var(--surface);
  box-shadow: 0 28px 40px -18px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--d);
}
.fan .card video, .fan .card img { width: 100%; height: 100%; object-fit: cover; }
.fan .card:nth-child(1) { --x: -64%; --y: 4%; --r: -11deg; --d: -1s; }
.fan .card:nth-child(2) { --x: 64%; --y: 4%; --r: 11deg; --d: -3s; }
.fan .card:nth-child(3) { --x: 0%; --y: -2%; --r: 0deg; --d: 0s; z-index: 2; width: clamp(190px, 20vw, 270px); }
@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(-50%, -50%) translate(var(--x), calc(var(--y) - 10px)) rotate(var(--r)); }
}

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

/* Glows may spill past a section's sides but never widen the page. */
section { position: relative; padding: clamp(64px, 7vw, 104px) 0; overflow-x: clip; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .copy h2 { margin-bottom: 22px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Hidden only when the script runs, so the page still reads without it. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* The hero arrives on load with CSS alone. */
.rise { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise--late { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Car screen: rounded glass with CarPlay's dock on the left, like the app's onboarding mockup. */
.car {
  --aspect: 2;
  position: relative; display: flex; width: 100%; aspect-ratio: var(--aspect);
  padding: 9px; border-radius: 6% / calc(6% * var(--aspect));
  background: #0f0f10;
  box-shadow: 0 30px 44px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.car .screen { position: relative; display: flex; flex: 1; overflow: hidden; border-radius: 4.6% / calc(4.6% * var(--aspect)); background: #000; }
.car .dock { flex: 0 0 11%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9%; background: rgba(255, 255, 255, 0.06); }
.car .dock i { display: block; width: 58%; aspect-ratio: 1; border-radius: 24%; }
.car .dock i:nth-child(1) { background: #34c759; }
.car .dock i:nth-child(2) { background: #0a84ff; }
.car .dock i:nth-child(3) { background: var(--accent); }
.car .view { position: relative; flex: 1; overflow: hidden; }
.car .view video, .car .view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.7s ease, transform 0.5s ease, object-fit 0s; }

/* Park / Drive */
.drive-demo .car .view video { transition: filter 0.7s ease; }
.drive-demo.driving .car .view video { filter: blur(22px) saturate(0.4) brightness(0.55); }
.sound-only {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center;
  opacity: 0; transform: scale(0.85); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
  font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}
.drive-demo.driving .sound-only { opacity: 1; transform: none; }
.bars { display: flex; gap: 5px; align-items: center; height: 40px; }
.bars span { width: 5px; height: 100%; border-radius: 3px; background: var(--text); animation: level 1.1s ease-in-out infinite; }
.bars span:nth-child(2) { animation-delay: -0.3s; } .bars span:nth-child(3) { animation-delay: -0.6s; }
.bars span:nth-child(4) { animation-delay: -0.15s; } .bars span:nth-child(5) { animation-delay: -0.45s; }
@keyframes level { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.segmented { display: inline-flex; position: relative; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); margin-top: 28px; }
.segmented button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--text-2); font: 600 15px/1 var(--sans); transition: color 0.3s ease;
}
.segmented button[aria-pressed="true"] { color: #0b0b0c; }
.segmented .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--text); transition: transform 0.55s cubic-bezier(0.3, 1.25, 0.5, 1), width 0.55s ease; }

/* Loops dial */
.dial { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.dial svg.ticks { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.dial .disc { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 60px rgba(217, 64, 115, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.dial .disc video { width: 100%; height: 100%; object-fit: cover; }
.dial .clock {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  padding: 6px 18px; border-radius: 999px; background: rgba(17, 17, 18, 0.88);
  font: italic 400 34px/1.1 var(--serif); font-variant-numeric: tabular-nums;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Moods */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; border-radius: var(--radius); }
.moods:focus-visible { outline-offset: 8px; }
.mood { position: relative; margin: 0; aspect-ratio: 0.72; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.mood img { width: 100%; height: 100%; object-fit: cover; animation: drift 18s ease-in-out infinite alternate; }
.mood:nth-child(2n) img { animation-delay: -6s; }
.mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78)); }
.mood h3 { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-style: italic; }
.mood:nth-child(odd) { transform: translateY(18px); }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }

/* Fit */
.fit .car { --aspect: 2.5; }
.fit .view video { transition: transform 0.5s cubic-bezier(0.3, 1.2, 0.5, 1); }
.options { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.option {
  display: grid; justify-items: center; gap: 10px; min-width: 104px; padding: 16px 18px;
  border-radius: 18px; border: 0; cursor: pointer; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline); font: 600 15px/1 var(--sans);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.option svg { width: 26px; height: 26px; }
.option[aria-pressed="true"] { background: var(--text); color: #0b0b0c; box-shadow: none; }
.option:active { transform: scale(0.96); }
.fit-note { color: var(--text-2); margin-top: 16px; min-height: 1.6em; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.tile { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.tile .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(167, 211, 244, 0.14); color: var(--accent); margin-bottom: 22px; }
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 10px; }
.tile p { margin: 0; color: var(--text-2); }

/* Moments */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.moment { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 26px; box-shadow: inset 0 0 0 1px var(--hairline); }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moment::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.88)); z-index: 1; }
.moment div { position: relative; z-index: 2; }
.moment p { margin: 8px 0 0; min-height: 3.1em; color: rgba(246, 243, 236, 0.78); }

/* Private */
.private { text-align: center; padding-block: clamp(48px, 6vw, 88px); }
.private h2 { font-size: clamp(40px, 6vw, 76px); }
.private h2 span { color: var(--text-dim); }

/* Finale */
.finale { min-height: 88svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.finale video, .finale .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 17, 18, 0.4) 35%, rgba(17, 17, 18, 0.6) 70%, var(--bg) 100%); }
.finale .wrap { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(64px, 11vw, 150px); margin-bottom: 18px; }
.finale .lede { margin: 0 auto 34px; }

/* ---------- Footer ---------- */

footer { padding: 48px 0 56px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { text-decoration: none; color: var(--text-2); }
footer a:hover { color: var(--text); }
footer .fine { flex-basis: 100%; font-size: 12px; color: var(--text-3); }

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

.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(48px, 8vw, 84px); margin-bottom: 14px; }
.doc .meta { color: var(--text-3); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 48px 0 12px; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 26px 0 6px; letter-spacing: 0; }
.doc p, .doc li { color: rgba(246, 243, 236, 0.82); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a:not(.pill) { color: var(--accent); text-decoration: none; }
.doc a:not(.pill):hover { text-decoration: underline; }
.doc .summary { padding: 22px 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.doc .summary p { margin: 0; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 18px/1.4 var(--sans); color: var(--text); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--text-3); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }
.contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 96px 0 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .fan { height: clamp(270px, 70vw, 420px); }
  .fan .card { width: clamp(140px, 34vw, 210px); }
  .fan .card:nth-child(3) { width: clamp(156px, 38vw, 230px); }
  .split .visual { order: -1; }
  .moods { grid-template-columns: repeat(5, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .moods::-webkit-scrollbar { display: none; }
  .mood { scroll-snap-align: center; }
  .mood:nth-child(odd) { transform: none; }
  .tiles, .moments { grid-template-columns: 1fr; }
  .moment { min-height: 280px; }
  .finale { min-height: 72svh; }
  .top nav:has(.pill) a:not(.pill) { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .segmented button { padding: 0 14px; }
  .option { min-width: 0; flex: 1; padding: 14px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* The visitor paused motion from the header. */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }
.still .rise { animation: none; }
.still #particles { display: none; }
