/*
 * drivefr.app — shared styles for the landing page and the privacy policy.
 *
 * Tokens are transcribed from the app's own design system (core/designsystem/Color.kt, via
 * marketing/assets/tokens.css). If a value here disagrees with Color.kt, Color.kt wins.
 * The site is dark-only on purpose: it is the app's own surface, not a theme choice.
 */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/hanken_grotesk_400.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/hanken_grotesk_500.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/hanken_grotesk_600.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/hanken_grotesk_700.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm_plex_mono_400.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm_plex_mono_500.ttf") format("truetype"); }

:root {
  color-scheme: dark;

  --base: #17161B;
  --surface: #211F27;
  --surface-alt: #2C2A33;
  --surface-sunken: #1C1A21;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.12);

  --violet: #8B5CF6;
  --violet-hi: #A78BFA;
  --violet-dim: rgba(139, 92, 246, 0.16);
  --violet-line: rgba(139, 92, 246, 0.34);
  --warning: #F43F5E;
  --warning-dim: rgba(244, 63, 94, 0.14);
  --positive: #3FBF7F;

  --text: #FFFFFF;
  --text-2: #B9B7C0;
  --text-3: #8E8C97;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }

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

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

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

/* The app's eyebrow: spaced uppercase mono, exactly as the app labels its own panels. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}
.eyebrow--violet { color: var(--violet-hi); }
.eyebrow--warning { color: var(--warning); }

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

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 22, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.nav a {
  text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color 140ms var(--ease);
}
.nav a:hover { color: var(--text); }
.nav .nav-hide-sm { display: inline; }
@media (max-width: 560px) { .nav .nav-hide-sm { display: none; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-hi);
  background: var(--violet-dim);
  border: 1px solid var(--violet-line);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.status-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0); }
}

/* ---------- phone frame (real screenshots only) ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1080 / 2229;
  border-radius: 13% / 6.3%;
  padding: 3.2%;
  background: #0C0B0F;
  box-shadow:
    0 0 0 1px var(--hairline-strong),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -40px rgba(139, 92, 246, 0.35);
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 10.4% / 5%;
  background: var(--base);
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 56px;
  color: var(--text-3);
  font-size: 14.5px;
}
.site-footer .wrap {
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0 0 10px; max-width: 42ch; }
