/* Forsiden (forside.html, svendsenmedia.net/kjorerapport/, 1.0.8). Bygger på side.css og profilen «Skilt og vei»:
   toppen er ett stort blått skilt med hvit kantlinje, og en asfaltstripe med gul midtlinje skiller den fra resten.
   Gult brukes bare på hovedknappen. Telefonene er de samme råbildene som App Store-bildene (tools/nettside-bilder.py). */
:root { --tint: #e7eefa; --asphalt-deep: #1d2328; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint: #16284a; --asphalt-deep: #2a3137; } }
:root[data-theme="dark"] { --tint: #16284a; --asphalt-deep: #2a3137; }

body.landing { overflow-x: clip; }
.landing h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: -0.02em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accel); margin: 0 0 14px; }
.kicker .lane { display: inline-block; width: 34px; height: 6px; border-radius: 3px; background: var(--lane); }

/* Toppen: fast meny som blir liggende øverst */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.nav-in nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.95rem; }
.nav-in nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-in nav a:hover { color: var(--ink); }
.nav-in .btn { min-height: 40px; padding: 6px 16px; font-size: 0.95rem; }
@media (max-width: 760px) { .nav-in nav { display: none; } .nav-in .btn { margin-left: auto; } }

/* Skiltet øverst */
.hero-sign { position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: radial-gradient(900px 520px at 88% 0%, rgba(255, 255, 255, .13), transparent 62%), linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); }
.hero-sign::after { content: ''; position: absolute; inset: 10px; z-index: 3; border: 3px solid rgba(255, 255, 255, .9); border-radius: 28px; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding-top: 64px; min-height: min(80vh, 700px); }
.hero-text { padding-bottom: 64px; }
.hero-sign .kicker { color: #d3e0f7; }
.hero-sign h1 { font-size: clamp(2.5rem, 6.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 18px; }
.hero-sign h1 .sub { display: block; color: #d3e0f7; }
.hero-sign .lead { color: #e6eefc; font-size: clamp(1.08rem, 2.2vw, 1.25rem); max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.btn.big { min-height: 56px; padding: 12px 26px; font-size: 1.08rem; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.ghost:hover { border-color: #fff; filter: none; background: rgba(255, 255, 255, .08); }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lane); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: #d3e0f7; font-size: 0.95rem; }
.trust li::before { content: '✓'; margin-right: 6px; color: var(--lane); font-weight: 800; }
.hero-phones { position: relative; align-self: end; height: 560px; }
.hero-phones img { position: absolute; bottom: -70px; height: auto; filter: drop-shadow(0 30px 40px rgba(2, 18, 52, .5)); }
.hero-phones .front { width: 280px; right: 6%; z-index: 2; }
.hero-phones .back { width: 250px; right: 44%; bottom: -30px; transform: rotate(-7deg); z-index: 1; }

/* Asfaltstripe med gul midtlinje som kjører forbi */
.road-band { position: relative; height: 44px; background: var(--asphalt-deep); overflow: hidden; }
.road-band::after { content: ''; position: absolute; left: -84px; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 44px, transparent 44px 84px); animation: drive 1.4s linear infinite; }
@keyframes drive { to { transform: translateX(84px); } }
@media (prefers-reduced-motion: reduce) { .road-band::after { animation: none; } }

/* Det appen gjør: tekst og telefon, annenhver side */
.features { padding: 24px 0 8px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .ft-media { order: -1; }
.ft-text .lead { font-size: 1.1rem; margin-bottom: 18px; }
.ft-media { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.ft-media::before { content: ''; position: absolute; z-index: 0; width: min(380px, 86%); aspect-ratio: 1; border-radius: 50%; background: var(--tint); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ft-media img { position: relative; z-index: 1; width: min(270px, 62vw); height: auto; filter: drop-shadow(0 24px 34px rgba(8, 13, 23, .24)); }
.ft-media.duo img.front { transform: translateX(16%); z-index: 2; }
.ft-media.duo img.back { position: absolute; z-index: 1; width: min(240px, 55vw); left: 50%; top: 52px; transform: translateX(-92%) rotate(-6deg); }
.check li { margin-bottom: 12px; }

/* Slik kommer dere i gang */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step { background: var(--bg); border-radius: 20px; padding: 24px; }
.step h3 { margin: 0 0 6px; }
.note-line { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* Forsikring og pris */
.section { padding: 80px 0; }
.insure { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.insure .km { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--accel); white-space: nowrap; }
.insure .km small { display: block; font-size: 0.9rem; letter-spacing: 0; color: var(--muted); font-weight: 700; margin-top: 6px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.price.plus { border: 2px solid var(--brand); box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 18%, transparent); }
.price .tag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 2px; }
.price .per { color: var(--muted); margin-bottom: 18px; }
.price .check { flex: 1; }
.price .foot { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }

/* For trafikkskoler: mørk asfalt i både lys og mørk modus */
.schools { background: var(--asphalt-deep); color: #e9eef6; padding: 72px 0; position: relative; overflow: hidden; }
.schools::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 44px, transparent 44px 84px); }
.schools h2 { color: #fff; }
.schools p { color: #c9d3e1; }
.schools-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.schools .btn.light { background: #fff; color: #0f1a2b; }
.schools .btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.schools ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schools li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.schools li strong { color: #fff; display: block; }

/* Spørsmål og svar */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.08rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 42em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Til slutt: et lite skilt til */
.end-sign { position: relative; isolation: isolate; color: #fff; text-align: center; border-radius: 28px; padding: 56px 24px; margin: 0 0 72px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); }
.end-sign::before { content: ''; position: absolute; inset: 8px; border: 3px solid rgba(255, 255, 255, .9); border-radius: 21px; pointer-events: none; }
.end-sign h2 { color: #fff; }
.end-sign p { color: #d3e0f7; }
.end-sign .cta { justify-content: center; }
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 44px; min-height: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-phones { height: 400px; margin: 0 -16px; }
  .hero-phones .front { width: 210px; right: calc(50% - 175px); bottom: -60px; }
  .hero-phones .back { width: 190px; right: calc(50% - 10px); bottom: -40px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .feature-row.flip .ft-media { order: 0; }
  .ft-media img { width: 220px; }
  .ft-media.duo img.back { width: 190px; top: 40px; }
  .steps3, .prices, .schools-in { grid-template-columns: 1fr; }
  .insure { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 380px) { .hero-phones .front { width: 190px; right: calc(50% - 160px); } .hero-phones .back { width: 170px; } }
.landing [id] { scroll-margin-top: 84px; }   /* overskriften havner ikke under den faste menyen */
