/* Road Sims – coming soon */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format("woff2"); }

:root {
  --orange: #e97e00;
  --orange-hover: #ff9214;
  --asphalt: #1e1e1e;
  --blue: #2797ff;
  --blue-hover: #6db8ff;
  --gutter: clamp(20px, 4vw, 48px);
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #000; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body { font-family: var(--font); color: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button { font-family: inherit; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
input::placeholder { color: #8a8a8a; opacity: 1; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.page > main { display: block; }

/* ---------------------------------------------------------------- header */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px var(--gutter);
  padding-top: max(28px, env(safe-area-inset-top));
}
.brand { display: block; flex: none; line-height: 0; border-radius: 6px; }
.brand-logo { display: block; width: 280px; max-width: 100%; height: auto; }

.langs { display: flex; gap: 4px; }
.lang {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  color: #9a9a9a;
  font: 600 13px/1.5 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.lang:hover { color: #fff; }
.lang[aria-current="true"] { color: #fff; border-bottom-color: var(--orange); }

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 40px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero .accent { color: var(--orange); }
.sub {
  margin: 0 0 10px;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.65;
  color: #c4c4c4;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ road */

.road {
  position: relative;
  margin: 56px 0 110px;
  min-height: 210px;
  background: var(--asphalt);
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  display: flex;
  align-items: center;
  padding: 24px var(--gutter);
  scroll-margin-top: 16px;
}
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  background: repeating-linear-gradient(90deg, #fff 0 64px, transparent 64px 112px);
  opacity: 0.9;
}

.card {
  position: relative;
  width: 640px;
  max-width: 100%;
  background: #000;
  border-radius: 16px;
}

/* Sign-up form */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-email {
  flex: 1 1 240px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  background: var(--asphalt);
  color: #fff;
  font: 15px var(--font);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.signup-email:focus { border-color: var(--blue); }
.signup-email:focus-visible { outline: none; }
.signup-email[aria-invalid="true"] { border-color: #ff8a7a; }
.signup-email:-webkit-autofill,
.signup-email:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px var(--asphalt) inset;
  caret-color: #fff;
}

.cta {
  flex: 1 0 auto;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #000;
  font: 600 15px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.cta:hover { background: var(--orange-hover); }
.cta[aria-disabled="true"] { cursor: progress; opacity: 0.8; }

.consent {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: #bdbdbd;
  cursor: pointer;
}
.consent-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.consent-box {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #6a6a6a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.consent-input:checked + .consent-box { background: var(--orange); border-color: var(--orange); }
.consent-input:checked + .consent-box::after { content: "✓"; }
.consent-input:focus-visible + .consent-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent-input[aria-invalid="true"]:not(:checked) + .consent-box { border-color: #ff8a7a; }

.signup-err { font-size: 12.5px; color: #ff8a7a; }

/* Honeypot: off-screen for people, visible to naive bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation / message cards */
.sent, .card-msg { padding: 22px 24px; }
.sent:focus { outline: none; }
.sent-title, .card-title { font-weight: 600; font-size: 17px; line-height: 1.4; }
.sent-body, .card-body { font-size: 14px; line-height: 1.55; color: #c4c4c4; margin-top: 4px; overflow-wrap: anywhere; }
.card-link { display: inline-block; margin-top: 14px; font-size: 14px; }
.card-actions { margin-top: 16px; display: flex; }
.card-actions .cta { flex: 0 0 auto; }

/* ------------------------------------------------------- video teaser */

.teaser {
  padding: 0 var(--gutter);
  margin: 0 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px 56px;
  align-items: center;
}
.road + .teaser { margin-top: -30px; }
.teaser-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.teaser-title .accent { color: var(--orange); }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--asphalt);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.video-play { position: absolute; inset: 0; display: block; color: #fff; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45)); }
.video-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.video-icon svg { width: 34px; height: 34px; margin-left: 4px; fill: #000; }
.video-play:hover img { transform: scale(1.03); }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { background: var(--orange-hover); transform: scale(1.06); }
.video-play:focus-visible { outline-offset: -4px; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------ contact */

.contact {
  margin-top: auto;
  padding: 36px var(--gutter) 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 40px;
}
.contact + .foot { margin-top: 0; }
.contact-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.contact-lead { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #fff; }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #0d0d0d;
  transition: border-color 0.15s;
}
.contact-item:hover, .contact-item:focus-within { border-color: var(--orange); }
.contact-icon { flex: none; width: 18px; height: 18px; fill: var(--orange); }
.contact-link { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.contact-link:hover { color: #fff; }
.contact-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }

/* ------------------------------------------------------- legal pages */

.legal { padding: 40px var(--gutter) 88px; }
.legal-body { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: #c4c4c4; }
.legal-body h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--orange);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.legal-updated { font-size: 13px; color: #8a8a8a; margin: 0 0 28px; }
.legal-body h2 { margin: 40px 0 10px; font-size: 20px; line-height: 1.35; font-weight: 700; color: #fff; }
.legal-body h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; color: #fff; }
.legal-body p { margin: 0 0 12px; text-wrap: pretty; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--orange); }
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { overflow-wrap: anywhere; }
.legal-body code { font-size: 13.5px; color: #fff; }
.legal-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}
.legal-link:hover { color: var(--blue-hover); }
.legal-table { margin: 16px 0 20px; overflow-x: auto; border: 1px solid #3a3a3a; border-radius: 12px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #2a2a2a; }
.legal-table th { background: var(--asphalt); color: #fff; font-weight: 600; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:nth-child(3) { min-width: 220px; }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 22px var(--gutter);
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
}
.foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.foot-links a { color: #8a8a8a; text-decoration: none; }
.foot-links a:hover { color: #bdbdbd; }
.foot-settings {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #bdbdbd;
  text-decoration: underline;
  cursor: pointer;
}
.foot-settings:hover { color: #fff; }

/* ---------------------------------------------------------- cookie bar */

.cc-bar {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 10px 12px 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cc-bar-text { flex: 1 1 360px; font-size: 12.5px; line-height: 1.45; color: #2a2a2a; }
.cc-bar-text strong { color: #000; }
.cc-bar-text a { color: #0062c4; }
.cc-bar-actions { display: flex; gap: 8px; flex: none; }
.cc-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: #000;
  color: #fff;
  font: 600 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.cc-btn:hover { background: #2a2a2a; }
.cc-btn-outline { border: 1.5px solid #000; background: #fff; color: #000; }
.cc-btn-outline:hover { background: #f0f0f0; }
.cc-bar :focus-visible, .cc-modal :focus-visible { outline-color: #0062c4; }

/* ------------------------------------------------------ cookie settings */

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal {
  width: 540px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cc-modal:focus { outline: none; }
.cc-title { font-weight: 700; font-size: 20px; line-height: 1.3; }
.cc-intro { font-size: 13.5px; color: #444; line-height: 1.55; margin-top: 6px; }
.cc-links { font-size: 12.5px; margin-top: 6px; color: #444; }
.cc-links a { color: #0062c4; }
.cc-list { display: flex; flex-direction: column; border: 1px solid #e3e3e3; border-radius: 12px; }
.cc-row { position: relative; display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e3e3e3; }
.cc-row:last-child { border-bottom: 0; }
.cc-row-toggle { cursor: pointer; }
.cc-row-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc-row-title { font-weight: 600; font-size: 14px; line-height: 1.5; }
.cc-row-desc { font-size: 12.5px; line-height: 1.5; color: #555; }
.cc-always { font-size: 12px; font-weight: 600; color: #555; text-align: right; }

.cc-switch-input { position: absolute; opacity: 0; width: 44px; height: 26px; right: 16px; margin: 0; cursor: pointer; }
.cc-switch {
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #cfcfcf;
  display: flex;
  padding: 3px;
  transition: background-color 0.15s;
}
.cc-switch > span {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.15s;
}
.cc-switch-input:checked + .cc-switch { background: var(--orange); }
.cc-switch-input:checked + .cc-switch > span { transform: translateX(18px); }
.cc-switch-input:focus-visible + .cc-switch { outline: 2px solid #0062c4; outline-offset: 2px; }

.cc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-mbtn {
  flex: 1 1 auto;
  min-width: 120px;
  white-space: nowrap;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font: 600 14px var(--font);
  cursor: pointer;
}
.cc-mbtn:hover { background: #f0f0f0; }
.cc-mbtn-primary { border: 0; background: #000; color: #fff; }
.cc-mbtn-primary:hover { background: #2a2a2a; }

html.cc-locked { overflow: hidden; }

/* ------------------------------------------------------------ responsive */

/* Touch devices: larger hit areas for the small controls. */
@media (pointer: coarse) {
  .lang { padding: 10px 10px; }
  .cc-btn { height: 44px; }
}

/* Tablet: hero text stacks, road gets a little tighter. */
@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .sub { max-width: 480px; }
  .road { margin: 48px 0 88px; }
  .teaser { grid-template-columns: 1fr; margin-bottom: 88px; }
  .road + .teaser { margin-top: -24px; }
}

/* Cookie bar: buttons go under the text and share the width. */
@media (max-width: 880px) {
  .cc-bar { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 14px 14px 12px 16px; }
  .cc-bar-text { flex-basis: 100%; }
  .cc-bar-actions { flex: 1 1 100%; flex-wrap: wrap; }
  .cc-btn { flex: 1 1 auto; height: 44px; }
}

/* Phones */
@media (max-width: 600px) {
  .top { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 20px; row-gap: 12px; }
  .brand-logo { width: 220px; }
  .hero { padding-top: 24px; gap: 18px; }
  .hero h1 { font-size: clamp(38px, 12.2vw, 64px); }
  .sub { font-size: 15px; margin: 0; }
  .road { margin: 40px 0 56px; min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .signup { padding: 14px; gap: 14px; border-radius: 14px; }
  .signup-row { flex-direction: column; }
  .signup-email { flex: 0 0 auto; font-size: 16px; } /* 16px stops iOS zooming on focus */
  .cta { flex: 0 0 auto; width: 100%; }
  .sent, .card-msg { padding: 18px 18px 20px; border-radius: 14px; }
  .legal { padding-top: 24px; padding-bottom: 56px; }
  .legal-body { font-size: 15px; }
  .legal-table table { min-width: 560px; }
  .foot { flex-direction: column; gap: 10px; }
  .teaser { margin-bottom: 56px; gap: 20px; }
  .road + .teaser { margin-top: -16px; }
  .video { border-radius: 14px; }
  .video-icon { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .video-icon svg { width: 28px; height: 28px; }
  .contact { flex-direction: column; align-items: stretch; padding-top: 28px; }
  .contact-lead { font-size: 16px; }
  .contact-links { flex-direction: column; }
  .cc-modal { padding: 22px 18px; gap: 16px; border-radius: 14px; }
  .cc-row { padding: 12px 14px; gap: 12px; }
  .cc-switch-input { right: 14px; }
  .cc-mbtn { flex-basis: 100%; }
}

/* Small phones (iPhone SE 1st gen, Galaxy Fold closed). */
@media (max-width: 374px) {
  .top { flex-direction: column; align-items: flex-start; }
  .brand-logo { width: 200px; }
  .langs { margin-left: -10px; }
}

/* Short landscape phones: the settings dialog must scroll, not clip. */
@media (max-height: 500px) {
  .cc-overlay { align-items: flex-start; padding: 8px; }
  .cc-modal { padding: 18px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
