/* CarCulator public site. Same look as the app: Rubik, the app's blue, dark by default with a light theme. */
@font-face {
  font-family: "Rubik";
  src: url("/static/fonts/rubik_variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0f1115;
  --bg-2: #151821;
  --surface: #1b1d24;
  --line: #2a2e38;
  --text: #ececee;
  --muted: #a6abb8;
  --accent: #2f6fed;
  --accent-soft: #8fb4ff;
  --radius: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef1f8;
    --surface: #ffffff;
    --line: #e1e5ee;
    --text: #17171a;
    --muted: #5a6170;
    --accent-soft: #2f6fed;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Rubik", system-ui, sans-serif;
}

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

a { color: var(--accent-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 10px; }
.lang-switch { color: var(--text); text-decoration: none; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.lang-switch:hover { border-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-muted { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); opacity: 0.55; pointer-events: none; }
.hero-row { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.lead p { margin: 0 0 24px; }
.hero-note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.hero-art { display: flex; justify-content: center; }
.phone { width: min(320px, 78vw); padding: 10px; border-radius: 44px; background: #1c1e24; border: 2px solid #3a3f4c; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.phone img { border-radius: 34px; width: 100%; }

/* Feature cards */
.features { padding: 40px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-soft); margin-bottom: 16px; }
.icon { width: 24px; height: 24px; }
.card-body { color: var(--muted); }
.card-body p { margin: 0; }

/* Screenshots: a grid that wraps (4 per row on wide screens, 3 on tablets, 2 on phones) */
.shots { padding: 48px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.shot-grid figure { margin: 0; }
.shot-grid img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.shot-grid figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

/* Text, FAQ, download */
.text-block, .faq { padding: 48px 0; }
.text-image { border-radius: var(--radius); margin-top: 16px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: inside; }
details .prose { color: var(--muted); padding-bottom: 8px; }
.download { padding: 32px 0 72px; }
.download-box { text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 28px; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.download-box img { border-radius: 18px; margin-bottom: 8px; }

/* Stand-alone pages (privacy policy) */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); }
.page .prose em:first-child { color: var(--muted); font-style: normal; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-row { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
