/* Kjørerapport – stil for de vanlige nettsidene (infoside for trafikkskoler og personvern).
   Samme farger og skrift som appen. */
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/overpass-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/overpass-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #e9ecea; --surface: #f7f8f6; --ink: #1f2428; --muted: #59626a; --line: #d2d7d3;
  --asphalt: #3b4146; --lane: #f2be22; --good: #2f7d4f; --brake: #c8412b; --accel: #1f5fa8;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1f22; --surface: #23282c; --ink: #e7eae8; --muted: #a3abb1; --line: #363c41;
    --asphalt: #4a5157; --lane: #f2c230; --good: #56b37c; --brake: #e3654e; --accel: #6a9fe0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1f22; --surface: #23282c; --ink: #e7eae8; --muted: #a3abb1; --line: #363c41;
  --asphalt: #4a5157; --lane: #f2c230; --good: #56b37c; --brake: #e3654e; --accel: #6a9fe0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--accel); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 16px; font-size: 0.95rem; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Forsiden */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 24px 0 56px; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.road { height: 10px; border-radius: 5px; background: var(--asphalt) repeating-linear-gradient(90deg, transparent 0 18px, var(--lane) 18px 40px, transparent 40px 58px) center / 100% 3px no-repeat; margin: 0 0 20px; max-width: 220px; }
.phones { display: flex; justify-content: center; gap: 0; position: relative; min-height: 420px; }
.phone { width: 220px; border-radius: 30px; padding: 8px; background: #111; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.phone img { display: block; width: 100%; border-radius: 23px; }
.phones .phone:nth-child(2) { margin-left: -50px; margin-top: 60px; }

section.block { padding: 48px 0; border-top: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 10px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; max-width: 240px; margin: 0 auto; }
.shots figcaption { text-align: center; margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.note { border-left: 4px solid var(--lane); padding: 12px 16px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Personvern og andre tekstsider */
.doc { padding: 16px 0 48px; }
.doc h2 { font-size: 1.3rem; margin-top: 32px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.table-wrap { overflow-x: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 32px; }
  .phones { min-height: 0; }
  .phone { width: 170px; border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 19px; }
  .phones .phone:nth-child(2) { margin-left: -36px; margin-top: 40px; }
  .grid3, .grid2, .shots { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
  .lead { font-size: 1.08rem; }
}

/* Lisenstekstene (lisenser/): lange tekster, lukket til man åpner dem */
.doc details.license { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 12px; }
.doc details.license summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 44px; box-sizing: border-box; }
.doc details.license pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.doc details.license .license-text { padding: 0 16px 8px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.doc details.license .license-text p { margin: 0 0 10px; }
.doc ul.credits { list-style: none; padding: 0; }
.doc ul.credits li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
