/* Shared look for every landing site — the Drive Test app / drivetest.se
   design system ("Nordic Kinetic"): Swedish blue, Swedish yellow, indigo text
   on lavender white, Lexend headings, Plus Jakarta Sans body, pill buttons,
   italic blue accent words, uppercase tracked eyebrows. Each site may override
   --accent (see sites/*.json "accent"). */
:root {
  --brand: #0049e6;
  --brand-dark: #0039b8;
  --ink: #2a2b51;
  --muted: #575881;
  --subtle: #73739e;
  --bg: #f8f5ff;
  --bg-2: #f2efff;
  --card: #ffffff;
  --yellow: #ffd709;
  --orange: #ff7f36;
  --panel: #09082f;
  --panel-muted: #9999c6;
  --success: #15803d;
  --border: rgba(169, 169, 215, 0.3);
  --shadow: 0 1px 2px rgba(42, 43, 81, 0.04), 0 12px 32px rgba(42, 43, 81, 0.06);
  --shadow-lg: 0 2px 4px rgba(42, 43, 81, 0.05), 0 24px 56px rgba(42, 43, 81, 0.1);
  --accent: var(--brand);
  --display: "Lexend", system-ui, -apple-system, Arial, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 19px; letter-spacing: -0.015em; }
em.accent { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-family: var(--body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand b { color: var(--accent); font-style: italic; font-weight: 800; }
.nav a { font-weight: 600; color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none;
  border-radius: 999px; padding: 15px 26px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white)); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn-soft { background: #dbd9ff; color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.nav .btn { margin-left: 22px; color: #fff; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero .note { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.hero-visual { position: relative; }
.hero-visual .photo { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.hero-visual .phone { position: absolute; left: -28px; bottom: -28px; width: 38%; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual .phone { left: auto; right: 12px; bottom: -20px; width: 32%; }
}

/* sections */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 22px; }

/* exam / price list */
.exam { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.exam .info { flex: 1; }
.exam .name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.exam .meta { font-size: 13.5px; color: var(--muted); }
.exam .price { font-family: var(--display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.exam.featured { outline: 2px solid var(--accent); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 16%, transparent); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-left: 8px; vertical-align: 2px; }
.badge.yellow { background: var(--yellow); color: #5b4b00; }
.fineprint { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-top: 16px; }

/* steps (like onboarding "STEP 1 OF 4") */
.step { background: var(--bg-2); border-radius: 24px; padding: 26px; }
.step .num { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--subtle); text-transform: uppercase; }
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* screenshots strip */
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; height: auto; flex: none; border-radius: 22px; box-shadow: var(--shadow); scroll-snap-align: start; }

/* FAQ */
.faq details { background: var(--card); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA panel */
.cta-panel { background: var(--panel); color: #fff; border-radius: 32px; padding: 48px 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; }
.cta-panel h2 { color: #fff; }
.cta-panel h2 em { color: var(--yellow); font-style: italic; }
.cta-panel p { color: var(--panel-muted); }
.cta-panel .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 880px) { .cta-panel { grid-template-columns: 1fr; padding: 36px 24px; } .cta-panel .ctas { justify-content: flex-start; } }

/* footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; }
footer a { color: var(--muted); }
footer nav a { margin-right: 18px; }

/* guide / article pages */
.container.narrow { max-width: 760px; }
.article { padding: 40px 0 24px; }
.article h1 { margin: 6px 0 16px; font-size: clamp(32px, 4.6vw, 46px); }
.article .lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.article h2 { margin: 36px 0 12px; font-size: 26px; }
.article p, .article li { font-size: 17px; }
.article ul { margin: 0 0 1em; }
.crumbs { font-size: 14px; color: var(--subtle); margin-bottom: 18px; }
.crumbs a { color: var(--subtle); }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow); margin: 32px 0; }
.cta-inline strong { display: block; font-family: var(--display); font-size: 18px; }
.cta-inline span { color: var(--muted); font-size: 15px; }
.more a { font-weight: 600; }
.guide-card { text-decoration: none; color: var(--ink); transition: transform .15s; }
.guide-card:hover { transform: translateY(-2px); }
.guide-card h3 { margin-top: 0; }
