/* DrivePlay web: tokens follow replica/design/tokens.json (app palette, Inter). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"),
       url("/assets/fonts/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"),
       url("/assets/fonts/Inter-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Inter-ExtraBold.woff2") format("woff2"),
       url("/assets/fonts/Inter-ExtraBold.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #0B0E17;
  --field: #1A2030;
  --surface: #181E2D;
  --raised: #222A3E;
  --text: #F5F6FD;
  --muted: #939DB5;
  --accent: #A0A2FF;
  --line: rgb(147 157 181 / 0.2);
  --selection: rgb(231 94 133 / 0.38);
  --display-shadow: 0 40px 80px -48px rgb(12 17 29 / 0.9);

  /* Fixed brand materials: identical in both themes. */
  --brand-a: #E75E85;
  --brand-b: #A677DD;
  --on-brand: #101424;
  --screen: #0C111D;
  --screen-text: #F5F6FD;
  --screen-copy: #D3C9E7;
  --hero-1: #493658;
  --hero-2: #27284F;
  --hero-3: #242E50;

  --radius: 18px;
  --radius-s: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F6F5FA;
    --field: #EBEAF3;
    --surface: #FFFFFF;
    --raised: #EBEAF3;
    --text: #191B29;
    --muted: #555C73;
    --accent: #5845A8;
    --line: rgb(25 27 41 / 0.13);
    --selection: rgb(166 119 221 / 0.3);
    --display-shadow: 0 32px 64px -40px rgb(39 40 79 / 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--raised) var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: var(--selection); color: inherit; }

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.9875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[href^="mailto:"] {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  padding-block: 10px;
}
.btn-light { background: #F5F6FD; color: #33324C; }
.btn-brand {
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  color: var(--on-brand);
}
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #FFFFFF; }
}

/* Hero: the car display with the phone docked beside it */
.hero {
  padding-block: clamp(8px, 2vw, 24px) clamp(16px, 3vw, 40px);
  overflow-x: clip; /* the docking phone must not widen the page mid-animation */
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 26vw, 318px);
  align-items: center;
}
.display {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  min-height: clamp(440px, 46vw, 540px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(32px, 5vw, 64px);
  padding-right: calc(clamp(250px, 26vw, 318px) + clamp(40px, 6vw, 96px));
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.13);
  color: var(--screen-text);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(166 119 221 / 0.34), transparent 60%),
    linear-gradient(120deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  box-shadow: var(--display-shadow);
}
.display h1 {
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.375rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.display .lede {
  max-width: 36ch;
  color: var(--screen-copy);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 6px;
}
/* A status, not a control: no box, so it never reads as a second button. */
.status {
  color: var(--screen-copy);
  font-weight: 700;
  font-size: 0.9875rem;
}
.phone {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  justify-self: end;
  margin-right: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 318px;
}

.device {
  border: 9px solid #05070D;
  border-radius: 40px;
  overflow: hidden;
  background: var(--screen);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 32px 64px -24px rgb(5 7 13 / 0.6);
}
.device img { width: 100%; }

/* Images delivered by Codex (GORSEL-TESLIM.md); sizes come from width/height attributes. */
.media img { width: 100%; height: auto; }
.media-card img { border-radius: var(--radius); }
.scene figcaption { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }

.scene { margin: clamp(32px, 5vw, 56px) 0 0; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-title {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 800;
  max-width: 20ch;
}
.section-intro {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--muted);
}

.ways { margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.ways li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 240px);
  align-items: center;
  gap: 24px clamp(32px, 6vw, 96px);
  padding-block: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.ways h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
}
.ways p { margin-top: 12px; color: var(--muted); max-width: 54ch; }
.ways figure { margin: 0; }
.note {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* Safety: the one surface the brand gradient owns */
.safety {
  background: linear-gradient(120deg, var(--brand-a) 0%, var(--brand-b) 100%);
  color: var(--on-brand);
  padding-block: clamp(64px, 9vw, 112px);
}
.safety h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 17ch;
}
.safety p {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
}

.privacy-grid {
  display: grid;
  grid-template-columns: clamp(220px, 24vw, 290px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}
.privacy-grid .phone { grid-column: auto; grid-row: auto; margin: 0; justify-self: start; }
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; max-width: 56ch; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
}
.facts strong { color: var(--text); }
.more { display: inline-block; margin-top: 28px; font-weight: 700; }

.closing {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
}
.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.closing h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; }
.closing p { margin-top: 14px; color: var(--muted); max-width: 44ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 44px;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap { display: grid; gap: 16px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { max-width: 80ch; }

/* Documents: privacy policy and support */
.doc { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.doc-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.doc-head { margin-bottom: 36px; }
.doc-head h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.doc-meta { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
.toc {
  position: sticky;
  top: 24px;
  font-size: 0.875rem;
}
.toc h2 {
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover { color: var(--text); }

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 800;
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 700; }
.path { font-weight: 700; }

.summary {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.9625rem;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  border-bottom-color: var(--text);
}
.data-table tbody th { font-weight: 700; width: 22%; }
.data-table td:last-child { padding-right: 0; }

/* Support */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 56px;
}
.contact h2 { margin: 0; font-size: 1.375rem; font-weight: 800; }
.contact p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.contact .mail { font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem); }

.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 12px; }
.faq .answer strong { color: var(--text); }

.notfound { padding-block: clamp(64px, 12vw, 160px); }
.notfound h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; font-weight: 700; }

/* Entrance: the phone docks beside the display once, on first paint. */
@media (prefers-reduced-motion: no-preference) {
  .hero .display > * { animation: rise 640ms var(--ease-out) both; }
  .hero .display > :nth-child(2) { animation-delay: 70ms; }
  .hero .display > :nth-child(3) { animation-delay: 140ms; }
  .hero .phone { animation: dock 900ms var(--ease-out) 160ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .phone { animation: fade 300ms ease both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes dock {
  from { opacity: 0; transform: translate(48px, 18px) rotate(2.5deg); }
}
@keyframes fade {
  from { opacity: 0; }
}

/* Responsive */
@media (max-width: 1023px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 40px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
}

@media (max-width: 819px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .display {
    min-height: 0;
    padding: 36px 24px 128px;
  }
  .hero .phone {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin: -96px 0 0;
    max-width: min(300px, 78vw);
  }
  .ways li { grid-template-columns: minmax(0, 1fr); }
  .ways figure { max-width: min(280px, 100%); }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-grid .phone { justify-self: center; max-width: min(280px, 74vw); order: 2; }
  .closing .wrap { align-items: start; }
}

@media (max-width: 599px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .data-table th, .data-table td { border: 0; padding: 0; }
  .data-table tbody th { width: 100%; font-size: 1.0625rem; margin-bottom: 6px; }
  .data-table td { margin-top: 8px; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 700;
  }
}

@media (max-width: 380px) {
  .brand span { font-size: 1rem; }
  .site-nav ul { gap: 11px; }
  .site-nav a { font-size: 0.875rem; }
  .site-nav .lang { padding: 0 9px; }
}
