/* recapture.no. Alltid mørk, som appen (docs/brand.md). Fargene er appikonets: #000, #1C1C1E og rødt #FF3B30.
   Ingen skript, ingen skrifter eller bilder utenfra. CSP-en tillater ikke style-attributter, så alt står her. */
:root {
  color-scheme: dark;
  --side: #000;
  --flate: #1C1C1E;
  --tekst: #fff;
  --dempet: rgba(255, 255, 255, .64);
  --linje: rgba(255, 255, 255, .16);
  --spor: rgba(255, 255, 255, .08);
  --rod: #FF3B30;
  --bred: 1080px;
  --les: 720px;
  --smal: 480px;
  --kant: 24px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--side); -webkit-text-size-adjust: 100%; }
body { font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--tekst); background: var(--side); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--tekst); outline-offset: 4px; border-radius: 4px; }
img, svg, video { display: block; }

/* Husbreddene 1080, 720 og 480 */
.kolonne { max-width: var(--bred); margin: 0 auto; padding: 0 var(--kant); }
.kolonne.les { max-width: var(--les); }
.kolonne.smal { max-width: var(--smal); }

/* Topplinja */
.topp .kolonne { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.merke { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; min-height: 44px; }
.topp nav { margin-left: auto; display: flex; gap: 24px; font-size: 15px; }
.topp nav a { text-decoration: none; color: var(--dempet); min-height: 44px; display: inline-flex; align-items: center; }
.topp nav a:hover, .topp nav a[aria-current] { color: var(--tekst); }

/* Typografi: størrelse og vekt gir hierarkiet */
h1 { font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 600; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.ingress { font-size: 20px; line-height: 1.45; color: var(--dempet); text-wrap: pretty; }
.dempet { color: var(--dempet); }

/* Forsiden: én setning, ingressen og én handling, så filmen */
.hero { padding-top: 80px; display: grid; justify-items: center; text-align: center; }
.hero h1 { max-width: 720px; }
.hero .ingress { max-width: 560px; margin-top: 20px; }

/* Plassholder for Apples merke «Last ned fra App Store»: samme høyde (40 px) og luft (10 px) som merket,
   så ingenting flytter seg ved byttet. Merket og lenken kommer først når appen er godkjent. */
.butikk { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin: 30px 0 10px; border: 1px solid var(--linje); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--dempet); }

/* Filmen: 16:9 på brede skjermer, 9:16 på mobil. Bildet ligger under videoen og vises til første bilde er
   klart, og alene med «Reduser bevegelse». */
.film { position: relative; margin: 56px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--flate); }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .film { aspect-ratio: 9 / 16; width: min(100%, calc(80svh * 9 / 16)); }
}
@media (prefers-reduced-motion: reduce) {
  .film video { display: none; }
}
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Delene under filmen */
.del { padding-top: 128px; }
.del > .kolonne > h2 + p { margin-top: 12px; max-width: 600px; color: var(--dempet); }

/* Bufferen: hvert spor er hele bufferen på 2:00 med «nå» til høyre. Fyllet er lengden målt mot sporet:
   30 s er 25 %, 15 s er 12,5 %. */
.tidslinje { margin-top: 40px; padding: 32px; background: var(--flate); border: 1px solid var(--linje); border-radius: 16px; display: grid; grid-template-columns: 56px 1fr; gap: 12px 16px; align-items: center; font-variant-numeric: tabular-nums; }
.tidslinje .navn { font-size: 15px; font-weight: 600; }
.tidslinje .spor { height: 32px; border-radius: 8px; background: var(--spor); display: flex; justify-content: flex-end; }
.tidslinje .spor span { height: 100%; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.tidslinje .l120 { width: 100%; }
.tidslinje .l30 { width: 25%; }
.tidslinje .l15 { width: 12.5%; }
.akse { grid-column: 2; position: relative; height: 24px; margin-top: 4px; font-size: 13px; color: var(--dempet); }
.akse span { position: absolute; top: 0; }
.akse .a0 { left: 0; }
.akse .a50 { left: 50%; transform: translateX(-50%); }
.akse .a75 { left: 75%; transform: translateX(-50%); }
.akse .na { right: 0; display: flex; align-items: center; gap: 6px; color: var(--tekst); font-weight: 600; }
.akse .na::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rod); }

/* Skjermen forklart: telefonen i midten, nummererte forklaringer på hver side.
   Telefonen er tegnet i skala 0,73 av iPhone 15 Pro (393 × 852 punkt), med kontrollene der appen har dem i «Loddrett». */
.forklart { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.forklart ol { list-style: none; padding: 0; display: grid; gap: 24px; }
.forklart li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.forklart li p { color: var(--dempet); font-size: 15px; margin-top: 2px; }
.nr { width: 24px; height: 24px; border-radius: 50%; background: var(--tekst); color: #000; display: grid; place-items: center; font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

.tlf { position: relative; width: 300px; height: 650px; background: #000; border-radius: 48px; border: 6px solid var(--flate); box-shadow: 0 0 0 1px var(--linje); overflow: hidden; font-size: 11px; font-weight: 500; }
.tlf > * { position: absolute; }
.tlf .soker { left: 0; right: 0; top: 0; height: 512px; background: linear-gradient(#1a1a1c, #0c0c0d); }
.tlf .oy { top: 10px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 13px; background: #000; }
.glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.tlf .chip { top: 48px; left: 12px; height: 32px; padding: 0 12px; border-radius: 16px; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tlf .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rod); }
.tlf .zoom { bottom: 156px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.tlf .zoom span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tlf .zoom .valgt { color: #FFD60A; }
.tlf .format { bottom: 114px; left: 50%; transform: translateX(-50%); display: flex; padding: 3px; border-radius: 17px; }
.tlf .format span { height: 26px; padding: 0 11px; border-radius: 13px; display: flex; align-items: center; }
.tlf .format .valgt { background: #fff; color: #000; }
.tlf .miniatyr { bottom: 58px; left: 12px; width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(#5a5a5e, #3a3a3c); }
.tlf .tannhjul { bottom: 58px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.tlf .tannhjul svg { width: 16px; height: 16px; }
.tlf .knapper { bottom: 46px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 30px; }
.tlf .knapper span { width: 38px; height: 38px; margin: 3px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 11px; font-weight: 600; box-shadow: 0 0 0 3px #000, 0 0 0 4.5px #fff; font-variant-numeric: tabular-nums; }
/* Numrene sitter på hjørnet av kontrollen de forklarer */
.tlf .nr { z-index: 1; width: 20px; height: 20px; font-size: 11px; box-shadow: 0 0 0 2px #000; }
.tlf .n1 { top: 40px; left: 4px; }
.tlf .n2 { bottom: 176px; left: 90px; }
.tlf .n3 { bottom: 140px; left: 40px; }
.tlf .n4 { bottom: 82px; left: 4px; }
.tlf .n5 { bottom: 90px; left: 58px; }
.tlf .n6 { bottom: 82px; right: 4px; }

/* Grenser og personvern: ett kort per gruppe */
.rutenett { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.kort { background: var(--flate); border: 1px solid var(--linje); border-radius: 16px; padding: 24px; }
.kort h3 + .liste, .kort h3 + p { margin-top: 12px; }
.liste { list-style: none; padding: 0; display: grid; gap: 12px; }
.liste li { padding-left: 18px; position: relative; color: var(--dempet); font-size: 15px; }
.liste li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--dempet); }

/* Lesesidene: /personvern og /support */
.dokument { padding-top: 64px; }
.dokument h1 { font-size: 40px; }
.dokument .ingress { margin-top: 12px; }
.dokument section { margin-top: 48px; }
.dokument h2 { font-size: 22px; line-height: 1.3; }
.dokument h2 + p, .dokument h2 + ul, .dokument p + p { margin-top: 12px; }
.dokument section > p, .dokument section > ul { color: var(--dempet); }
.dokument section > ul { padding-left: 20px; display: grid; gap: 8px; }
.dokument .kort { margin-top: 40px; }
.dokument .kort p { color: var(--dempet); }

.handling { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; margin-top: 20px; border-radius: 22px; background: var(--tekst); color: #000; font-weight: 600; text-decoration: none; }
.handling:hover { background: rgba(255, 255, 255, .85); }

/* Spørsmål og svar: én gruppe med skillelinjer, som lister i iOS */
.sporsmal { margin-top: 16px; background: var(--flate); border: 1px solid var(--linje); border-radius: 16px; }
.sporsmal details + details { border-top: 1px solid var(--linje); }
.sporsmal summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 600; }
.sporsmal summary::-webkit-details-marker { display: none; }
.sporsmal summary svg { width: 16px; height: 16px; flex: none; color: var(--dempet); transition: transform .2s ease; }
.sporsmal details[open] summary svg { transform: rotate(90deg); }
.sporsmal details p { padding: 0 20px 20px; color: var(--dempet); }
@media (prefers-reduced-motion: reduce) {
  .sporsmal summary svg { transition: none; }
}

/* Bunnen */
.bunn { margin-top: 128px; border-top: 1px solid var(--linje); padding: 40px 0 64px; font-size: 15px; color: var(--dempet); }
.bunn .kolonne { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.bunn nav { display: flex; gap: 24px; }
.bunn nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bunn nav a:hover { color: var(--tekst); }
.bunn .varemerke { flex-basis: 100%; font-size: 13px; }

/* 404 */
.borte { padding-top: 128px; display: grid; justify-items: center; text-align: center; gap: 16px; }

@media (max-width: 860px) {
  .forklart { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .forklart .tlf { order: -1; }
  .forklart ol { width: 100%; max-width: var(--smal); }
  .rutenett { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --kant: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .hero { padding-top: 48px; }
  .film { margin-top: 40px; }
  .del { padding-top: 96px; }
  .tidslinje { padding: 20px 16px; grid-template-columns: 44px 1fr; gap: 12px; }
  .topp nav { gap: 16px; }
  .dokument { padding-top: 40px; }
  .dokument h1 { font-size: 32px; }
  .bunn { margin-top: 96px; }
}
