:root {
  --ink: #181b21;        /* text */
  --ink-2: #5c5e62;      /* secondary text */
  --ink-3: #8e8e8e;
  --paper: #ffffff;
  --mist: #f4f4f4;       /* grey sections and surfaces */
  --line: #e3e3e3;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --bar: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Buttons: pills, big enough for a gloved finger on a car screen */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 240px; padding: 0 32px; border-radius: 999px; border: 0; font: 500 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.btn-solid { background: rgba(255,255,255,.94); color: var(--ink); }
.btn-solid:hover { background: #fff; }
.btn-glass { background: rgba(24,27,33,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(24,27,33,.75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33363c; }
.btn-light { background: #e9e9e9; color: var(--ink); }
.btn-light:hover { background: #dedede; }

/* Top bar: transparent over the first photo, white once you scroll */
.topbar { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; }
.topbar.solid { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.topnav a:hover { background: rgba(127,127,127,.18); }

/* Full-bleed photo panels: headline at the top, buttons at the bottom */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; text-align: center; padding: calc(var(--bar) + 7vh) var(--pad) clamp(40px, 8vh, 88px); color: #fff; overflow: hidden; isolation: isolate; background: #101215; }
.panel-photo { position: absolute; inset: 0; z-index: -1; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.panel:not(.panel-light) .panel-photo img { filter: brightness(.85); }
/* A soft shade behind the headline keeps white text readable on any sky */
.panel:not(.panel-light) .panel-photo::after { content: ''; position: absolute; inset: 0 0 auto; height: 55%; background: linear-gradient(180deg, rgba(10,12,16,.55), rgba(10,12,16,0)); pointer-events: none; }
.panel-light .panel-photo::after { content: ''; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none; }
.panel { background: var(--sky, #101215); }
.panel-hero .panel-photo img { object-position: 62% 22%; }
.panel-copy { max-width: 1000px; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.panel h1, .panel h2 { font-size: clamp(36px, 4vw, 60px); }
.panel-copy p { margin-top: 10px; font-size: clamp(16px, 1.3vw, 20px); color: rgba(255,255,255,.88); }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
.panel-light { color: var(--ink); background: var(--sky, #e9e6e2); }
.panel-light .panel-copy { text-shadow: none; }
.panel-light .panel-copy p { color: #393c41; }
.panel-light .panel-note { color: #5c5e62; }
.panel-light .btn-solid { background: rgba(24,27,33,.88); color: #fff; }
.panel-light .btn-solid:hover { background: var(--ink); }
.panel-light .btn-glass { background: rgba(244,244,244,.7); color: var(--ink); }
.panel-light .btn-glass:hover { background: rgba(255,255,255,.9); }
.panel.panel-light .panel-photo img { filter: none; }
.topbar.on-light { color: var(--ink); }
.panel.panel-top { grid-template-rows: auto auto auto 1fr; }
.panel-top .panel-actions { margin-top: 28px; }
.panel-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.72); }
.finale-url { display: inline-block; margin-top: 28px; font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; text-decoration: none; word-break: break-all; }
.finale-url:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Plain content blocks */
.block { padding: clamp(80px, 12vh, 140px) var(--pad); text-align: center; }
.block-grey { background: var(--mist); }
.block h2 { font-size: clamp(32px, 3.4vw, 48px); }
.block-lead { margin: 12px auto 0; max-width: 36em; color: var(--ink-2); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 56px auto 0; max-width: 1200px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; text-align: left; }
.step-n { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* Compare the two displays */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 36px; border-radius: 999px; background: var(--mist); }
.seg button { min-height: 48px; min-width: 150px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 16px var(--font); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.seg-small { margin-top: 18px; background: #ececec; }
.seg button:not([aria-pressed='true']):hover { color: var(--ink); }
.seg-small button { min-height: 44px; min-width: 104px; font-size: 15px; }
.compare { --split: 50%; --x: calc(var(--x0) + (var(--x1) - var(--x0)) * var(--s, .5)); position: relative; max-width: 1180px; margin: 32px auto 0; aspect-ratio: 1160 / 653; border-radius: 14px; overflow: hidden; background: #0e0f12; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.12); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp-night { opacity: 0; transition: opacity .5s ease; }
.compare { background: #d9d6d1; aspect-ratio: 1700 / 956; }
.compare[data-mn='night'] .cmp-night { opacity: 1; }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--s, .5)) * 100%) 0 0); }
/* The two app screenshots sit on the car's screen at full resolution, over the interior photo. */
.cmp-screen { position: absolute; left: var(--x0); top: var(--y0); width: calc(var(--x1) - var(--x0)); height: calc(var(--y1) - var(--y0)); border-radius: .6% / 1.3%; overflow: hidden; background: #08090b; }
.cmp-screen img { object-fit: fill; }
.cmp-glass { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(0,0,0,.08), rgba(0,0,0,0) 30%); pointer-events: none; }
.cmp-handle { position: absolute; top: var(--y0); bottom: calc(100% - var(--y1)); left: var(--x); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cmp-handle span::before, .cmp-handle span::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cmp-handle span::before { left: 14px; transform: rotate(45deg); }
.cmp-handle span::after { right: 14px; transform: rotate(-135deg); }
.compare.animate .cmp-top { transition: clip-path .6s cubic-bezier(.4,0,.2,1); }
.compare.animate .cmp-handle { transition: left .6s cubic-bezier(.4,0,.2,1); }
.cmp-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1180px; margin: 40px auto 0; text-align: left; }
.cmp-notes h3 { font-size: 22px; }
.cmp-notes p { margin-top: 6px; color: var(--ink-2); max-width: 32em; }
.hear { margin-top: 48px; gap: 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.hear.pressed { background: #000; transform: scale(.98); }
.hear-dot { width: 8px; height: 8px; border-radius: 50%; background: #8e8e8e; transition: background-color .2s; }
.hear.live .hear-dot { background: #e5483a; }

/* Cars */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 1400px; margin: 56px auto 0; text-align: left; }
.car { position: relative; display: grid; grid-template-rows: 150px auto auto; gap: 4px; padding: 28px 24px 24px; border-radius: 12px; background: var(--paper); text-decoration: none; transition: transform .2s; -webkit-tap-highlight-color: transparent; }
.car:hover { transform: translateY(-2px); }
.car img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 12px; }
.car h3 { font-size: 19px; }
.car p { font-size: 14px; color: var(--ink-2); }
.car .tag { position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .04em; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 24px; margin-top: 56px; text-align: left; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 36px; border-radius: 12px; background: var(--mist); }
.plan h3 { font-size: 22px; }
.price { margin-top: 10px; color: var(--ink-2); }
.price b { font-size: 44px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.price-sub { color: var(--ink-2); font-size: 15px; min-height: 1.5em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; align-content: start; flex: 1; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.fine-center { margin-top: 28px; font-size: 14px; color: var(--ink-3); }

/* FAQ */
.faq { max-width: 860px; margin: 48px auto 0; text-align: left; }
.faq details { border-top: 1px solid #dcdcdc; }
.faq details:last-child { border-bottom: 1px solid #dcdcdc; }
.faq summary { cursor: pointer; list-style: none; min-height: 64px; display: flex; align-items: center; padding: 16px 48px 16px 0; position: relative; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; max-width: 44em; color: var(--ink-2); }

/* Footer */
.footer { padding: 40px var(--pad) 110px; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; color: var(--ink-2); }
.safety { color: var(--ink); font-weight: 500; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.lang select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 16px; border: 1px solid #d6d6d6; border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 14px var(--font); cursor: pointer; }
.fine { font-size: 12px; color: var(--ink-3); max-width: 60em; }

/* Tall screens: show the whole photo at the bottom instead of a cropped close-up; the sky colour fills above */
/* Tall screens: the panel shrinks to its copy, and the whole photo follows below it, edge to edge.
   --sky is the photo's top colour, so the copy area runs straight into the picture. */
@media (max-aspect-ratio: 5/4) {
  .panel { min-height: 0; grid-template-rows: auto; padding-bottom: 0; }
  .panel.panel-top { grid-template-rows: auto; }
  .panel-photo { position: relative; inset: auto; z-index: 0; order: 10; width: calc(100% + 2 * var(--pad)); margin: 28px calc(-1 * var(--pad)) 0; }
  .panel-photo img, .panel-hero .panel-photo img { height: auto; object-fit: initial; }
  .panel-photo::after { display: none; }
  .panel-copy { text-shadow: none; }
  .sky-light { color: var(--ink); }
  .sky-light .panel-copy p { color: #393c41; }
  .sky-light .btn-solid { background: rgba(24,27,33,.88); color: #fff; }
  .sky-light .btn-glass { background: rgba(255,255,255,.6); color: var(--ink); }
}
@media (max-width: 980px) {
  .cmp-notes { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; gap: 32px; }
  .plan-grid { grid-template-columns: minmax(0, 520px); }
}
@media (max-width: 640px) {
  :root { --bar: 56px; }
  .hide-narrow { display: none !important; }
  .topnav a { padding: 0 10px; font-size: 14px; }
  .wordmark { font-size: 16px; letter-spacing: .1em; }
  .panel-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .btn { min-width: 0; }
  .plan { padding: 28px 22px; }
  .seg button { min-width: 0; flex: 1; }
  .seg { display: flex; max-width: 360px; margin-left: auto; margin-right: auto; }
  .compare { border-radius: 10px; }
  .cmp-handle span { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}
@media (max-width: 420px) {
  .nav-open { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .compare.animate .cmp-top, .compare.animate .cmp-handle, .cmp-night { transition: none; }
  .faq summary::after, .car { transition: none; }
}
