/* caraivo.com holding site (GL-3a). Mobile-first (D23): built for ~375 px, scaled UP with min-width
   queries only. Palette = the D43 tokens from fleet-car-manager/src/index.css (light default, dark via
   the OS). Two-blue discipline: --primary for user actions, --dani (coral) for Dani's elements only. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --canvas: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #edf1fa;
  --primary: #2a53d6;
  --primary-strong: #2348bc;
  --on-primary: #ffffff;
  --dani: #ff6a3d;
  --dani-ink: #c2410c;
  --ink: #15203a;
  --ink-muted: #5b6678;
  --line: #e2e7f1;
  --shadow: 0 1px 2px rgb(21 32 58 / 0.06), 0 8px 24px rgb(21 32 58 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #0f172a;
    --surface: #1b2638;
    --surface-2: #243247;
    --primary: #5a7bf7;
    --primary-strong: #7290f8;
    /* White on the dark-theme primary is 3.7:1 — under AA for button text — so dark buttons take the
       canvas ink instead (4.8:1). */
    --on-primary: #0f172a;
    --dani: #ff7a52;
    --dani-ink: #ff7a52;
    --ink: #f4f6fb;
    --ink-muted: #9aa6bd;
    --line: #33425c;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark .ai { color: var(--dani); } /* logotype: brand coral, as the app's Wordmark (text-dani) */
.langs { display: flex; gap: 2px; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-muted);
}
.langs a:hover { color: var(--ink); }
/* Active language = a filled pill: --primary under --on-primary clears AA in both themes (the tinted
   pill was 3.4:1 in dark). */
.langs a[aria-current] { color: var(--on-primary); background: var(--primary); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 36px 0 32px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-muted);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  text-wrap: balance;
}
.lead { margin-top: 16px; font-size: 18px; color: var(--ink-muted); max-width: 36rem; }
.cta-row { margin-top: 28px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--primary); color: var(--on-primary);
  font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow);
}
.cta:hover { background: var(--primary-strong); }
.cta .icon { width: 20px; height: 20px; }
.play { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--ink-muted); font-size: 15px; max-width: 34rem; }
.play .icon { width: 20px; height: 20px; margin-top: 2px; }
.hero-mark { display: none; }

/* ── Feature cards ──────────────────────────────────────────────────── */
.features { padding: 8px 0 32px; }
.cards { display: grid; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--surface-2); color: var(--primary);
}
.card-dani .card-icon { background: color-mix(in srgb, var(--dani) 14%, var(--surface)); color: var(--dani-ink); }
.card h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin-top: 6px; color: var(--ink-muted); }

/* ── Trust band ─────────────────────────────────────────────────────── */
.trust { padding: 28px 0 40px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.trust-list .icon { color: var(--primary); margin-top: 1px; }
.early { margin-top: 20px; color: var(--ink-muted); font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  color: var(--ink-muted); font-size: 14px;
}
.foot-row { display: grid; gap: 8px; }
.legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.legal a, .contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.imprint { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.imprint h2 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.imprint address { font-style: normal; display: grid; gap: 2px; }
.imprint strong { color: var(--ink); }
.imprint a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.copyright { margin-top: 16px; font-size: 13px; }

/* ── 404 ────────────────────────────────────────────────────────────── */
.notfound { padding: 48px 0; }
.nf + .nf { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.nf h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.nf h2 { font-size: 22px; font-weight: 800; }
.nf p { margin-top: 8px; color: var(--ink-muted); }
.nf a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ── Scale up ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 56px 0 44px; }
  .lead { font-size: 19px; }
  .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .hero { padding: 80px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .hero-mark { display: block; }
  .hero-mark img { width: 240px; height: 240px; border-radius: 56px; box-shadow: var(--shadow); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cta, .langs a { transition: background-color 120ms ease, color 120ms ease; }
}
