/* matronorge.no (docs/WEBSITE_V1_DECISIONS.md, docs/INTRO_FILM_V1_DECISIONS.md).
   Same colours and fonts as the app. Fonts are served from this site, so no
   requests go to other services. */
@font-face { font-family: "Gloock"; src: url("fonts/Gloock-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ground: #F4F3F8;
  --ink: #1D1E2C;
  --muted: #555870;
  --navy: #3B3F8F;
  --navy-dark: #2A2D6B;
  --lilac: #E4E4F3;
  --sun: #F2B544;
  --line: #E3E2EC;
  --display: Gloock, Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.page { max-width: 960px; margin: 0 auto; padding-inline: 20px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { font-family: var(--display); font-size: 28px; color: var(--ink); text-decoration: none; }
.top a.login { font-weight: 600; text-decoration: none; }

.hero { padding-block: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--navy-dark); background: var(--lilac); border-radius: 999px; padding: 5px 12px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 7vw, 64px); line-height: 1.05; text-wrap: balance; }
.hero p { margin: 0; max-width: 58ch; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; font: 600 15px var(--body); color: var(--paper); background: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none; }
.btn.ghost { color: var(--navy); background: transparent; }
.mail { font-size: 14px; color: var(--muted); }

.film { display: flex; flex-direction: column; gap: 14px; padding-block: 8px 40px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin: 0; }
.stage { position: relative; width: 100%; aspect-ratio: 720 / 380; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.stage svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.stage svg.scene.on { opacity: 1; }
.stage svg.scene { fill: var(--ink); }
.stage text { font-family: var(--body); }
.stage .serif { font-family: var(--display); }
.caption { min-height: 6.2em; display: flex; flex-direction: column; gap: 6px; }
.caption h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; text-wrap: balance; }
.caption p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 62ch; color: var(--muted); }
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bar { flex: 1 1 260px; display: flex; gap: 4px; min-width: 0; }
.seg { flex: 1; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.seg span { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--lilac); overflow: hidden; }
.seg i { display: block; height: 100%; width: 0; background: var(--navy); }

/* Animation kit. Elements rest in their final state; keyframes run only while their scene is on. */
.a { transform-box: fill-box; transform-origin: center; }
.on .fadeUp { animation: fadeUp .6s ease-out var(--d, 0s) both; }
.on .fadeIn { animation: fadeIn .5s ease-out var(--d, 0s) both; }
.on .pop { animation: pop .55s cubic-bezier(.3,1.5,.6,1) var(--d, 0s) both; }
.on .slideIn { animation: slideIn .7s cubic-bezier(.2,.8,.3,1) var(--d, 0s) both; }
.on .walk { animation: walk 1s ease-out var(--d, 0s) both; }
.on .fan { animation: fan .7s cubic-bezier(.2,.8,.3,1) var(--d, 0s) both; }
.on .grow { animation: grow .8s cubic-bezier(.3,1.4,.6,1) var(--d, 0s) both; }
.on .press { animation: press .35s ease-in-out var(--d, 0s) both; }
.on .draw { stroke-dasharray: 1; animation: draw .6s ease-out var(--d, 0s) both; }
.on .spark { animation: spark .5s ease-out var(--d, 0s) both; }
.on .wobble { animation: wobble .5s ease-in-out var(--d, 0s) 4 both; transform-origin: center bottom; }
.on .spin { animation: spin 1.4s ease-in-out var(--d, 0s) both; transform-box: view-box; transform-origin: 198px 44px; }
.on .dream { animation: dream .9s ease-out var(--d, 0s) both; }
.on .blinkCaret { animation: caret .9s steps(1) var(--d, 0s) infinite; }
.flash { opacity: 0; pointer-events: none; }
.on .flash { animation: flash .6s ease-out var(--d, 0s) both; }
.scanline { opacity: 0; }
.on .scanline { animation: scan 1s ease-in-out var(--d, 0s) both; }
.fly { opacity: 0; }
.stage.paused svg * { animation-play-state: paused !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(140px); } }
@keyframes walk { from { transform: translateX(-36px); } }
@keyframes fan { from { opacity: 0; transform: translateX(var(--x)) rotate(var(--r, 0deg)); } }
@keyframes grow { from { opacity: 0; transform: scale(.7); } }
@keyframes press { 50% { transform: scale(.9); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spark { from { opacity: 0; transform: scale(.4); } }
@keyframes wobble { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes spin { from { transform: rotate(-360deg); } }
@keyframes dream { from { opacity: 0; filter: blur(8px); transform: scale(1.05); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(116px); } 100% { opacity: 0; transform: translateY(116px); } }
@media (prefers-reduced-motion: reduce) {
  .stage svg * { animation: none !important; }
  .stage svg.scene { transition: none; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding-block: 8px 48px; margin: 0; list-style: none; padding-inline: 0; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--paper); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.steps h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.2; }
.steps p { margin: 0; font-size: 16px; color: var(--muted); }
.section-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }

.data { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 48px; }
.data h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.data p { margin: 0; max-width: 64ch; }

.foot { border-top: 1px solid var(--line); padding-block: 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* Personvern */
.doc { max-width: 680px; padding-block: 8px 48px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 48px); margin: 8px 0 12px; }
.doc h2 { font-size: 18px; margin: 28px 0 6px; }
.doc p { margin: 0; }
.doc .lead { color: var(--muted); }
