
@property --base { syntax: '<color>'; inherits: true; initial-value: #EEEAE4; }
@property --b1 { syntax: '<color>'; inherits: true; initial-value: #F2CFB6; }
@property --b2 { syntax: '<color>'; inherits: true; initial-value: #D3DAF6; }
@property --b3 { syntax: '<color>'; inherits: true; initial-value: #D3E8D9; }
@property --b4 { syntax: '<color>'; inherits: true; initial-value: #F4E3C4; }

:root {
  --base:#EEEAE4; --b1:#F2CFB6; --b2:#D3DAF6; --b3:#D3E8D9; --b4:#F4E3C4; --blob-o:.9;
  --glass:rgba(255,255,255,.34); --glass-2:rgba(255,255,255,.55); --glass-3:rgba(255,255,255,.88);
  --sheen:rgba(255,255,255,.45); --hl:rgba(255,255,255,.95); --edge:rgba(255,255,255,.5);
  --glass-shadow:rgba(60,50,40,.28); --sunk:rgba(28,26,23,.06);
  --ink:#1C1A17; --ink-soft:#514C45; --muted:#6F695F; --muted-soft:#A39C91;
  --accent:#3F52D9; --accent-soft:rgba(63,82,217,.12); --accent-line:rgba(63,82,217,.30);
  --on-ink:#FBFAF8;
  --ring:0 0 0 3px rgba(63,82,217,.22);
  --logo-filter:none;
  --line:rgba(28,26,23,.12); --line-soft:rgba(28,26,23,.08); --shine:#B9C2FF;
  --err:#A23B26; --err-bg:rgba(162,59,38,.09); --ok:#1E6640; --ok-bg:rgba(30,102,64,.1);
}
[data-tod="morning"] { --base:#EEEAE4; --b1:#F2CFB6; --b2:#D3DAF6; --b3:#D3E8D9; --b4:#F4E3C4; }
[data-tod="day"]     { --base:#ECEEEC; --b1:#C9DDF6; --b2:#F3E4B8; --b3:#CDEBDD; --b4:#DCD6F4; }
[data-tod="evening"] { --base:#EEE5DF; --b1:#F2BDA8; --b2:#E6C1D6; --b3:#F2D2A0; --b4:#D9C6EC; }
[data-tod="night"]   { --base:#E5E4EA; --b1:#C5C9EE; --b2:#D9CCEA; --b3:#C7E0E2; --b4:#E7D5E4; }

html.dark body {
  --blob-o:.8;
  --glass:rgba(30,28,26,.38); --glass-2:rgba(52,49,45,.5); --glass-3:rgba(82,78,72,.72);
  --sheen:rgba(255,255,255,.07); --hl:rgba(255,255,255,.14); --edge:rgba(255,255,255,.08);
  --glass-shadow:rgba(0,0,0,.55); --sunk:rgba(255,255,255,.08);
  --ink:#F3F0EA; --ink-soft:#CFC9BF; --muted:#A39C91; --muted-soft:#6F695F;
  --accent:#AEB8F5; --accent-soft:rgba(174,184,245,.16); --accent-line:rgba(174,184,245,.34);
  --on-ink:#1C1A17;
  --ring:0 0 0 3px rgba(174,184,245,.26);
  --logo-filter:invert(1);
  --line:rgba(255,255,255,.12); --line-soft:rgba(255,255,255,.08); --shine:#FFFFFF;
  --err:#F0A08E; --err-bg:rgba(240,160,142,.12); --ok:#9BE3BC; --ok-bg:rgba(155,227,188,.12);
  --base:#161413; --b1:#5B3A28; --b2:#283163; --b3:#22402F; --b4:#4A3E22;
}
html.dark[data-tod="day"] body     { --base:#131516; --b1:#1F3D60; --b2:#4E4420; --b3:#1E4536; --b4:#352E5C; }
html.dark[data-tod="evening"] body { --base:#171312; --b1:#63301F; --b2:#56294A; --b3:#5C4118; --b4:#3A2857; }
html.dark[data-tod="night"] body   { --base:#111116; --b1:#232A66; --b2:#3D2A5E; --b3:#183E44; --b4:#2E1F3A; }

body {
  --glass-ring:inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--edge);
  --glass-lift:0 30px 60px -34px var(--glass-shadow);
  --glass-fill:linear-gradient(180deg, var(--sheen), rgba(255,255,255,0) 55%), var(--glass);
  --glass-blur:blur(40px) saturate(1.8);
  --ease:cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
html { background: var(--base); scroll-behavior: smooth; }
body { font-family: 'Schibsted Grotesk', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased;
       font-feature-settings: "cv11", "ss01"; font-size: 14px; line-height: 1.45;
       background: var(--base); transition: --base 1.2s ease, background-color .3s ease; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: var(--accent-soft); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .badge i { animation: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: ease; }
html.theme-switching body, html.theme-switching .blobs { transition: none !important; }
html.theme-fade body, html.theme-fade body *, html.theme-fade body *::before, html.theme-fade body *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }

.page { min-height: 100vh; min-height: 100dvh; position: relative; overflow: clip; display: flex; flex-direction: column; }
.blobs { position: absolute; inset: 0; opacity: var(--blob-o); pointer-events: none; will-change: transform;
  background:
    radial-gradient(ellipse 420px 380px at 12% 4%, var(--b1) 0%, var(--b1) 38%, transparent 100%),
    radial-gradient(ellipse 460px 400px at 88% 12%, var(--b2) 0%, var(--b2) 38%, transparent 100%),
    radial-gradient(ellipse 460px 380px at 60% 100%, var(--b3) 0%, var(--b3) 38%, transparent 100%),
    radial-gradient(ellipse 300px 300px at 0% 60%, var(--b4) 0%, var(--b4) 36%, transparent 100%);
  transition: --b1 1.2s ease, --b2 1.2s ease, --b3 1.2s ease, --b4 1.2s ease, opacity .6s ease; }
.wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 7vw, 96px); width: 100%; }

header.site { position: sticky; top: 0; z-index: 20; background: var(--glass); border-bottom: 1px solid var(--line-soft);
              -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
header.site .row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header.site .logo { height: 25px; width: auto; display: block; flex: none; filter: var(--logo-filter); }
header.site .right { display: flex; align-items: center; gap: 12px; }
header.site .home { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); margin-right: 16px; white-space: nowrap; }
@media (max-width: 640px) { header.site .home { display: none; } }
.pill { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
        background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge);
        font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; border: 0;
        transition: transform .5s var(--ease), background .2s, box-shadow .2s; }
.pill:hover { background: var(--glass-3); text-decoration: none; color: var(--ink); transform: translateY(-1px);
              box-shadow: inset 0 0 0 1px var(--edge), 0 8px 20px -12px var(--glass-shadow); }
.pill:active { transform: scale(.97); }
.theme-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px;
             background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); cursor: pointer;
             transition: transform .5s var(--ease), background .2s, box-shadow .2s; }
.theme-btn:hover { background: var(--glass-3); transform: translateY(-1px);
                   box-shadow: inset 0 0 0 1px var(--edge), 0 8px 20px -12px var(--glass-shadow); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .sun { display: none; }
html.dark .theme-btn .moon { display: none; }
html.dark .theme-btn .sun { display: block; }
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent);
            transform: scaleX(0); transform-origin: left; }

.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
         background: var(--glass-3); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--edge);
         color: var(--ink-soft); font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; }
.badge i { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: pulseDot 2.4s ease-in-out infinite; }
h1.display { margin-top: 28px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; perspective: 900px; }
h1.display > span { display: block; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); padding-right: .08em; }
em.shine { background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent) 40%, var(--shine) 50%, var(--accent) 60%, var(--accent) 100%);
           background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
           display: inline-block; backface-visibility: hidden; transform: translateZ(0); }
.lead { margin-top: 28px; max-width: 44ch; font-size: 18px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

.card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 3.6vw, 44px);
        background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-ring), var(--glass-lift); will-change: transform; transform-origin: 50% 50%; }
.card > * { position: relative; }
.card .spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; border-radius: inherit;
              background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), var(--sheen), transparent 70%); }
.card .label { color: var(--accent); }
.card h2 { margin-top: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }

.fields { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span, .fld > label { padding-left: 22px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.fld input, .fld textarea, .fld select { width: 100%; height: 56px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--glass-3); box-shadow: var(--glass-ring); font-size: 15px; outline: none;
  transition: box-shadow .2s; }
.fld textarea { height: auto; min-height: 104px; padding: 16px 22px; border-radius: 24px; line-height: 1.5; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { box-shadow: inset 0 0 0 1px var(--accent-line), var(--ring); }
.fld .hint { margin-top: -2px; padding-left: 22px; font-size: 12.5px; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
@media (max-width: 640px) { .fld input, .fld textarea, .fld select { font-size: 16px; } }

.alert { margin-top: 18px; padding: 12px 20px; border-radius: 18px; background: var(--err-bg); color: var(--err); font-size: 13.5px; line-height: 1.5; }
.alert:empty { display: none; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

.btn { margin-top: 22px; width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
       border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600;
       cursor: pointer; box-shadow: 0 12px 28px -12px var(--glass-shadow);
       transition: transform .5s var(--ease), opacity .2s ease; }
.btn:hover { opacity: .92; }
a.btn:hover { color: var(--on-ink); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.btn span { font-size: 16px; }

.consent { margin-top: 22px; display: flex; align-items: flex-start; gap: 14px; padding: 0 4px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.consent .box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 999px;
                background: var(--glass-3); box-shadow: inset 0 0 0 1.5px var(--muted-soft); color: var(--on-ink);
                font-size: 11px; font-style: normal; font-weight: 700; transition: background .2s, box-shadow .2s; }
.consent .box::after { content: '✓'; opacity: 0; }
.consent input:checked + .box { background: var(--accent); box-shadow: none; }
.consent input:checked + .box::after { opacity: 1; }
.consent input:focus-visible + .box { box-shadow: var(--ring); }
.consent .text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.consent .text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

.done { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 0; }
.done .pop { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--accent);
             color: var(--on-ink); font-size: 20px; font-style: normal; font-weight: 700; }
.done .label { margin-top: 28px; }
.done h2 { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }
.done p { margin-top: 14px; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.done p b { color: var(--ink); font-weight: 600; }
.done .pill { margin-top: 32px; height: 48px; padding: 0 22px; font-size: 14px; }

.steps { margin-top: 48px; max-width: 520px; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { flex: none; width: 28px; color: var(--muted); padding-top: 3px; }
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

.doc-head { padding: clamp(40px, 6vw, 80px) 0 40px; display: flex; flex-direction: column; align-items: flex-start; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); flex-wrap: wrap; }
.tabs a { height: 32px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); background: var(--glass-3); }
.tabs a.is-on { background: var(--ink); color: var(--on-ink); }
.tabs a.is-on:hover { background: var(--ink); color: var(--on-ink); }
.doc-head h1 { margin-top: 32px; max-width: 16ch; font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; perspective: 900px; }
.doc-head h1 small { display: block; font-size: .5em; font-weight: 600; letter-spacing: -.03em; margin-top: .2em; }
.doc { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-bottom: 96px; }
.toc { flex: 1 1 220px; max-width: 280px; position: sticky; top: 104px; display: flex; flex-direction: column; }
.toc .label { padding-bottom: 14px; color: var(--accent); }
.toc a { display: flex; gap: 14px; padding: 10px 0; padding-left: 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft);
         transition: color .3s, padding-left .5s var(--ease); }
.toc a:last-child { border-bottom: 1px solid var(--line); }
.toc a:hover { text-decoration: none; color: var(--ink); }
.toc a span { width: 22px; flex: none; color: var(--muted); padding-top: 1px; }
.toc a.is-on { color: var(--ink); font-weight: 600; padding-left: 8px; }
.toc a.is-on span { color: var(--accent); }
@media (max-width: 760px) { .toc { position: static; max-width: none; } }
@media (max-width: 640px) { .doc-head h1 { font-size: clamp(30px, 8.6vw, 40px); max-width: none; } h1.display { font-size: clamp(36px, 11vw, 48px); } }
article.card { flex: 999 1 520px; min-width: 0; max-width: 760px; padding: clamp(28px, 4vw, 52px); }
article .intro { font-size: 18px; line-height: 1.55; letter-spacing: -.005em; color: var(--ink); text-wrap: pretty; }
article .sec { scroll-margin-top: 96px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
article .sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
article .sec .head { display: flex; gap: 16px; align-items: baseline; }
article .sec .num { flex: none; width: 28px; color: var(--muted); }
article .sec h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
article .sec .body { margin-top: 14px; padding-left: 44px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
article .sec .body p.n { display: flex; gap: 12px; }
article .sec .body p.n .k { flex: none; width: 32px; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; padding-top: 3px; }
article ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
article li { display: flex; gap: 12px; }
article li i { flex: none; width: 5px; height: 5px; margin-top: 10px; border-radius: 999px; background: var(--accent); }
article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 640px) { article .sec .body { padding-left: 0; } }
.doc-links { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.doc-links .primary { background: var(--ink); color: var(--on-ink); }
.doc-links .primary:hover { background: var(--ink); color: var(--on-ink); opacity: .92; }

.reveal { transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
.reveal.hid { opacity: 0; transform: translateY(28px); filter: blur(10px); }
@media print { .reveal.hid { opacity: 1; transform: none; filter: none; } }

.door { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: clamp(32px, 6vw, 72px); }
.door .card { width: 100%; max-width: 460px; }
.door h1 { margin-top: 12px; font-size: clamp(22px, 6.9vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08;
           text-wrap: balance; overflow-wrap: break-word; }
.door .sub { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.door .sub + .sub { margin-top: 8px; }
.who { margin-top: 24px; padding: 14px 22px; border-radius: 22px; background: var(--sunk); font-size: 14px; line-height: 1.45; }
.who b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.who span { color: var(--muted); }
.who code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-soft); }
.door .pill { margin-top: 24px; height: 48px; padding: 0 22px; font-size: 14px; }

footer.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
              padding: 32px 0; border-top: 1px solid var(--line-soft); font-size: 13px; margin-top: auto; }
footer.site span { color: var(--muted); }
