/* GloveBox — shared styles */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #1f55e0;
  --blue-deep: #1846c0;
  --navy: #0c1f4d;
  --ink: #16224a;
  --muted: #4c5878;
  --mist: #eef3fd;
  --line: #d9e1f2;
  --paper: #ffffff;
  --amber: #f5a524;
  --go: #17975b;
  --soon: #c27a00;
  --stop: #d83a2e;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  opacity: 0.88;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: var(--blue);
  color: #fff;
  padding: 40px 0 96px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 12ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 0 32px;
  color: #e3eafc;
}

/* Notify form */
.notify { max-width: 30rem; }
.notify label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.notify-row {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
}
.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border-radius: 10px;
}
.notify input[type="email"]:focus-visible { outline-offset: 0; }
.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
}
.btn:hover { background: #142c66; }
.notify .fine {
  font-size: 0.875rem;
  color: #c9d6f7;
  margin: 10px 0 0;
}
.notify .fine a { color: #fff; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Translator (hero card) ---------- */
.translator {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(8, 24, 70, 0.55);
}
.translator-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.cel {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  background: #1b2340;
  display: grid;
  place-items: center;
}
.cel svg { width: 32px; height: 32px; }
.cel path { fill: var(--amber); }
.cel.lit svg { filter: drop-shadow(0 0 6px rgba(245, 165, 36, 0.8)); }
.code-read { line-height: 1.25; }
.code-read .code {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.code-read .tech {
  font-size: 0.875rem;
  color: var(--muted);
}
.plain {
  padding-top: 20px;
  min-height: 9.5rem;
}
.plain h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.plain p { margin: 0; color: var(--muted); font-size: 1rem; }

.severity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.severity li {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--mist);
  color: #8a94b0;
  transition: background 0.25s, color 0.25s;
}
.severity li.on[data-level="drive"] { background: var(--go); color: #fff; }
.severity li.on[data-level="soon"] { background: var(--amber); color: #2a1a00; }
.severity li.on[data-level="stop"] { background: var(--stop); color: #fff; }

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.examples button {
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.examples button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.translator .note {
  font-size: 0.8rem;
  color: #7a849f;
  margin: 14px 0 0;
}

/* One page-load moment: the explanation arrives after the code */
@media (prefers-reduced-motion: no-preference) {
  .js .translator .plain,
  .js .translator .severity { opacity: 0; transform: translateY(6px); }
  .js .translator.ready .plain,
  .js .translator.ready .severity {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js .translator.ready .severity { transition-delay: 0.15s; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--mist); }
.section h2.title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
  max-width: 20ch;
  text-wrap: balance;
}
.section .intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 48px;
}

/* Steps — a genuine sequence */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}
.steps h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.steps p { margin: 0; color: var(--muted); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 64px;
}
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.feature svg { width: 48px; height: 48px; }
.feature h3 {
  font-size: 1.2rem;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--muted); }

/* Launch band */
.launch {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}
.launch .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.launch h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.launch p { margin: 0; color: #c3cdea; max-width: 36rem; }
.btn-light {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  padding: 14px 22px;
}
.btn-light:hover { background: var(--mist); color: var(--navy); }

/* ---------- Subpages ---------- */
.page-head {
  background: var(--blue);
  color: #fff;
  padding: 24px 0 64px;
}
.page-head h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.page-head p { margin: 0; color: #dbe4fc; font-size: 1.1rem; max-width: 40rem; }

.prose {
  max-width: 44rem;
  padding: 64px 0 96px;
}
.prose h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 48px 0 12px;
}
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.prose p, .prose li { color: #2c3758; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
  margin: 16px 0;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}
.prose th { font-weight: 700; color: var(--ink); }

.contact-box {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0 0 16px;
}
.contact-box h2 { margin-top: 0; }
.contact-box p { margin: 0 0 6px; }
.contact-box .email {
  font-size: 1.3rem;
  font-weight: 800;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.075rem;
  padding: 16px 32px 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0 0 4px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 24px; }
  .site-nav { gap: 16px; }
  .hero { padding: 24px 0 64px; }
  .notify-row { flex-direction: column; }
  .btn { width: 100%; }
  .translator { padding: 20px; }
  .severity li { font-size: 0.78rem; }
}
