/* rislokka.app — next layout: the app on an iPhone, inside the cinematic frames.
   Loaded AFTER public/style.css (base: tokens, header, .frame/.media/.mov, .end/.wl, .foot). */

/* ================= iPhone: Apple's official bezel (iPhone 18 Pro Max, Burgundy), used as is =================
   Bezel PNG 1470 × 3000; transparent screen opening measured by alpha: x 75–1395, y 66–2934 (1320 × 2868, the 6.9" screen).
   The app screen sits under the opening, clipped by the opening's own shape (img/bezel/screen-mask.png).
   No shadows, reflections, tilt or animation on the device (App Store marketing guidelines, Apple product images). */
.phone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 1470 / 3000; flex: none; margin: 0; }
.ph-screen { position: absolute; left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; overflow: hidden; background: #000;
  -webkit-mask-image: url(/img/bezel/screen-mask.png); mask-image: url(/img/bezel/screen-mask.png);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ph-screen img, .ph-screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ph-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ================= (a) hero: footage + the app ================= */
.hero2 { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%); }
.hero2 .media { z-index: 0; }
.hero-in { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: calc(max(18px, env(safe-area-inset-top)) + 54px) var(--pad) clamp(24px, 4svh, 48px); }
.hero-in .phone { --w: min(66vw, 32.5svh, 340px); }
.hero-say { margin-top: clamp(22px, 3.6svh, 40px); text-align: center; }
.hero-say h1 { font-size: clamp(34px, 9.4vw, 96px); max-width: 13ch; margin: 0 auto; }
.hero-say .soon { margin-top: 14px; }

/* ================= (b) phone + one line ================= */
.feat { position: relative; padding: clamp(64px, 11vh, 150px) var(--pad); display: grid; gap: clamp(30px, 5vh, 56px); justify-items: center; }
.feat + .feat { border-top: 1px solid rgba(255,255,255,.07); }
.feat .phone { --w: min(68vw, 300px); }
.feat-say { width: 100%; max-width: 520px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--faint); margin-bottom: 14px; }
.feat h2 { font-size: clamp(36px, 8vw, 68px); max-width: 14ch; }
.line { margin-top: 16px; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.45; color: var(--mute); max-width: 34ch; }
.facts { margin-top: 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 14px; color: var(--mute); }
.facts li { list-style: none; padding: 0 16px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: #fff; line-height: 1.15; }

/* ================= (c) duo ================= */
.duo { padding: clamp(80px, 14vh, 160px) var(--pad); text-align: center; border-top: 1px solid rgba(255,255,255,.07); }
.duo h2 { font-size: clamp(36px, 8vw, 72px); max-width: 15ch; margin: 0 auto; }
.duo .line { margin-left: auto; margin-right: auto; }
.duo-row { margin-top: clamp(40px, 7vh, 72px); display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4vw, 56px); }
.duo-row .phone { --w: min(42vw, 280px); }
.duo-row .phone:nth-child(2) { margin-top: clamp(28px, 9vw, 90px); }
.duo-cap { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ================= (e) price ================= */
.price { padding: clamp(80px, 13vh, 150px) var(--pad); border-top: 1px solid rgba(255,255,255,.07); }
.price h2 { font-size: clamp(36px, 8vw, 72px); max-width: 14ch; }
.tiers { margin-top: clamp(36px, 6vh, 60px); display: grid; border-top: 1px solid var(--line); }
.tier { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 18px; }
.tier dt { font-size: 15px; color: var(--mute); }
.tier dd { font-size: clamp(30px, 7vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tier p { grid-column: 1 / -1; font-size: 15px; color: var(--faint); }
.tier .plus { color: var(--red); }
.price .fine2 { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* ================= reveal on scroll (only with JS, never with reduced motion) ================= */




/* ================= desktop ================= */
@media (min-width: 900px) {
  .hero-in { flex-direction: row; justify-content: center; align-items: center; gap: clamp(48px, 7vw, 120px); padding-top: 96px; }
  .hero-in .phone { --w: min(30vw, 37vh, 380px); order: 2; }
  .hero-say { order: 1; margin-top: 0; text-align: left; }
  .hero-say h1 { margin: 0; font-size: clamp(56px, 6.6vw, 104px); }
  .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: start; max-width: 1240px; margin: 0 auto; column-gap: clamp(48px, 7vw, 120px); }
  .feat .phone { --w: min(26vw, 340px); justify-self: end; }
  .feat.rev .phone { order: 2; justify-self: start; }
  .feat.rev .feat-say { order: 1; justify-self: end; }
  .tiers { grid-template-columns: repeat(3, 1fr); border-top: 0; border-left: 1px solid var(--line); }
  .tier { display: block; border-bottom: 0; border-right: 1px solid var(--line); padding: 8px 28px 6px; }
  .tier dd { margin-top: 10px; }
  .tier p { margin-top: 12px; }
  .price { max-width: 1240px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ================= (b2) phone on footage: the same template over a darkened clip ================= */
.feat.film { overflow: hidden; isolation: isolate; max-width: none; border-top: 0; }
.feat.film .media { z-index: -2; }
.feat.film::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,.42) 35%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.9)); }
@media (min-width: 900px) {
  .feat.film { padding-left: max(var(--pad), calc((100vw - 1240px) / 2)); padding-right: max(var(--pad), calc((100vw - 1240px) / 2)); }
  .feat.film::before { background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%); }
  .duo-row .phone { --w: min(24vw, 320px); }
}

/* ================= site integration (builder) ================= */
.hero-sub { margin: 14px auto 0; max-width: 30ch; font-size: clamp(16px, 4.2vw, 20px); line-height: 1.4; color: var(--mute); }
.eyebrow .free { color: var(--red); }
.facts.words li { font-size: 15px; color: #fff; font-weight: 500; }
.duo .facts { justify-content: center; margin-left: auto; margin-right: auto; }
.duo .facts li:first-child { padding-left: 16px; }
.duo .facts li { border-left: 1px solid var(--line); }
.duo .facts li:first-child { border-left: 0; }
/* the examiner button inside a feature block */
.feat .play { margin-top: 26px; }
.feat .subtitle { position: static; margin-top: 18px; text-align: left; font-size: clamp(19px, 2.4vw, 26px); min-height: 1.3em; }
/* language list */
.langs { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: clamp(22px, 5.4vw, 34px); font-weight: 650; letter-spacing: -.02em; }
.langs span:first-child { color: var(--red); }
.stations { margin-top: 14px; font-size: 15px; color: var(--mute); }
/* price: what's free, what's in the pass */
.incl { margin-top: clamp(30px, 5vh, 48px); display: grid; gap: 26px; }
.incl h3 { font-size: 15px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.incl ul { margin-top: 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.incl li { list-style: none; font-size: 16px; color: #fff; padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); line-height: 1.5; }
.incl li:last-child { border-right: 0; }
.price .lead2 { margin-top: 16px; font-size: clamp(18px, 2.1vw, 21px); color: var(--mute); max-width: 34ch; }
@media (min-width: 900px) {
  .incl { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feat .subtitle { min-height: 1.3em; }
}

/* ---- builder fixes after screenshots ---- */
/* number facts: equal columns, labels wrap inside their column */
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; max-width: 520px; }
.facts li { padding: 0 14px; line-height: 1.35; }
.facts b { margin-bottom: 4px; }
.duo .facts { max-width: 560px; text-align: center; }
.duo .facts li:first-child { padding-left: 14px; }
/* word facts: a quiet stacked list */
.facts.words { display: block; max-width: 420px; }
.facts.words li { padding: 11px 0; border-left: 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts.words li:last-child { border-bottom: 1px solid var(--line); }
/* tighter rhythm on phones */
@media (max-width: 899px) {
  .feat { padding: 56px var(--pad) 64px; gap: 30px; }
  .duo { padding: 64px var(--pad) 72px; }
  .price { padding: 72px var(--pad); }
  .feat-say { max-width: 560px; }
}
.facts li { overflow-wrap: break-word; hyphens: auto; }
/* price lists: plain stacked lines */
.incl ul { display: block; }
.incl li { padding: 5px 0; margin: 0; border-right: 0; }
@media (min-width: 900px) {
  .hero-sub { margin: 18px 0 0; text-align: left; max-width: 34ch; font-size: 20px; }
}

/* ---- critic pass: one voice, less template ---- */
/* phones: same visual weight everywhere; a touch larger on desktop */
@media (min-width: 900px) {
  .feat .phone { --w: min(28vw, 380px); }
  .feat h2 { font-size: clamp(48px, 5.2vw, 76px); }
  .feat .line { font-size: 22px; }
}
/* phones: centred story like the hero (phone, then title, then one line) */
@media (max-width: 899px) {
  .feat-say { text-align: center; }
  .feat h2, .feat .line { margin-left: auto; margin-right: auto; }
  .feat .play { margin-left: auto; margin-right: auto; }
  .feat .subtitle { text-align: center; }
  .langs, .stations { justify-content: center; text-align: center; }
  .duo-row .phone { --w: min(44vw, 280px); }
}
.price .fine2 { max-width: 46ch; line-height: 1.5; }
@media (max-width: 899px) { .end { padding-top: 72px; } }

/* hero without the phone (Dima 14.10: the iPhone shouldn't be on the first screen) */
.hero2.solo .hero-say { margin-top: 0; text-align: center; }
.hero2.solo .hero-say h1 { margin: 0 auto; font-size: clamp(44px, 12vw, 120px); max-width: 12ch; }
.hero2.solo .hero-in { justify-content: flex-end; padding-bottom: clamp(56px, 12svh, 140px); }
@media (min-width: 900px) {
  .hero2.solo .hero-in { flex-direction: column; justify-content: center; padding-bottom: 0; }
  .hero2.solo .hero-say { text-align: center; }
  .hero2.solo .hero-say h1 { margin: 0 auto; }
}
.hero2.solo .hero-sub { margin-left: auto; margin-right: auto; text-align: center; }

/* ================= story: four plain blocks — phone, number, title, one line (no sticky, no overlap) ================= */
.story { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(72px, 12vh, 140px) var(--pad) clamp(24px, 4vh, 60px); }
.story > h2 { text-align: center; font-size: clamp(36px, 8vw, 72px); margin-left: auto; margin-right: auto; }
.story-steps { list-style: none; margin: clamp(36px, 6vh, 64px) auto 0; padding: 0; max-width: 1240px; }
.step { display: grid; justify-items: center; gap: 26px; padding: 0 0 clamp(64px, 10vh, 120px); text-align: center; }
.step .phone { --w: min(68vw, 300px); }
.step-say { max-width: 520px; }
.step .n { display: inline-block; font-size: 15px; font-weight: 650; color: var(--red); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 6px; font-size: clamp(32px, 8.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.step p { margin: 12px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: var(--mute); max-width: 32ch; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(48px, 7vw, 120px); text-align: left; }
  .step .phone { --w: min(26vw, 340px); justify-self: end; }
  .step-say { justify-self: start; }
  .step p { margin-left: 0; }
  .step.rev .phone { order: 2; justify-self: start; }
  .step.rev .step-say { order: 1; justify-self: end; }
  .step h3 { font-size: clamp(44px, 4.6vw, 68px); max-width: 12ch; }
}

/* ================= trial: the only commercial line on the page ================= */
.trial { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(80px, 14vh, 170px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }
.t-num { font-size: clamp(190px, 52vw, 420px); font-weight: 800; line-height: .78; letter-spacing: -.06em; color: var(--red); margin-bottom: clamp(10px, 2vh, 22px); }
.trial h2 { font-size: clamp(36px, 8vw, 72px); max-width: 13ch; }
.trial .line { margin-left: auto; margin-right: auto; max-width: 30ch; }
.trial .fine2 { margin-top: 22px; font-size: 14px; color: var(--faint); max-width: 44ch; line-height: 1.5; }

/* contact under the waitlist */
.end .contact { margin-top: 30px; font-size: 15px; color: var(--mute); }
.end .contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

/* ================= four languages (agent A) ================= */
.top-r { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); }
.langsw { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.langsw a { color: var(--faint); text-decoration: none; padding: 6px 5px; border-radius: 6px; transition: color .2s; }
.langsw a:hover { color: #fff; }
.langsw a[aria-current="true"] { color: #fff; }
@media (min-width: 900px) { .langsw { font-size: 13px; gap: 4px; } }
/* the suggestion for an en/uk/ru browser on a Norwegian page (never a redirect) */
.lang-hint { position: relative; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 44px 10px var(--pad); background: #141414; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: #fff; font-weight: 600; }
.lang-hint button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: none; color: var(--mute); font: 400 20px/1 var(--font); cursor: pointer; }
.lang-hint button:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-hint ~ .top { top: 41px; }
/* the examiner: Norwegian subtitle + a smaller translation under it (en/uk/ru) */
.subtitle .tr { display: block; margin-top: 6px; font-size: .62em; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.langs span:first-child { color: inherit; }
.langs span.cur { color: var(--red); }
.doc .auth { margin-top: 10px; font-size: 14px; color: var(--faint); }
.doc .auth a { color: var(--mute); }
.langrow { margin-top: 40px; font-size: 14px; color: var(--faint); }
.langrow a { color: var(--mute); }
.fc a { text-decoration: none; }
/* uk/ru headlines are longer: give them more measure instead of hyphenating (hyphens in a headline look broken) */
:lang(uk) .hero2.solo .hero-say h1, :lang(ru) .hero2.solo .hero-say h1 { max-width: 16ch; }
:lang(uk) h2, :lang(ru) h2, :lang(en) h2 { max-width: 15ch; }
:lang(uk) .step h3, :lang(ru) .step h3 { max-width: 16ch; }
/* phones: the header keeps the brand + language switch; the waitlist link lives under the headline */
@media (max-width: 560px) { .top-r .top-link { display: none; } }

/* ================= theory: three real screens ================= */
.trio-row { margin-top: clamp(36px, 6vh, 60px); display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 22px 14px; }
.trio-row .phone { --w: min(43vw, 280px); }
.trio-row .phone:nth-child(3) { grid-column: 1 / -1; justify-self: center; }
@media (min-width: 900px) {
  .trio-row { grid-template-columns: repeat(3, auto); gap: clamp(20px, 3vw, 44px); }
  .trio-row .phone { --w: min(22vw, 300px); }
  .trio-row .phone:nth-child(3) { grid-column: auto; }
}

/* ================= roadmap: Først Norge. Så Norden. ================= */
.roadmap { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(80px, 13vh, 150px) var(--pad); }
.roadmap h2 { text-align: center; font-size: clamp(36px, 8vw, 72px); margin: 0 auto; }
.rm-in { max-width: 1160px; margin: clamp(32px, 6vh, 64px) auto 0; display: grid; gap: clamp(28px, 5vh, 48px); }
.rm-map { margin: 0; }
.rm-map img { width: 100%; height: auto; }
.rm-map figcaption { margin-top: 8px; font-size: 11px; color: var(--faint); text-align: right; }
.rm-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rm-steps li { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rm-k { font-size: 14px; font-weight: 650; color: var(--mute); letter-spacing: .01em; }
.rm-steps li:first-child .rm-k { color: var(--red); }
.rm-v { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; }
@media (min-width: 900px) {
  .rm-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; column-gap: clamp(40px, 6vw, 96px); }
}

/* no scroll-reveal: everything is simply there when you scroll to it (Dima: «ничего не понятно, когда листаешь») */

/* ================= height caps (Dima 14.10: on a laptop window only the top third of the phone was visible) =================
   The bezel is 1470 × 3000 (w = 0.49 × h). Every device must fit inside the viewport together with its heading,
   so each width is also capped by the viewport HEIGHT (svh, with vh as the fallback). */
:root { --cap-stack: calc(0.49 * 66vh); --cap-side: calc(0.49 * 80vh); --cap-duo: calc(0.49 * 54vh); --cap-trio: calc(0.49 * 42vh); }
@supports (height: 1svh) {
  :root { --cap-stack: calc(0.49 * 66svh); --cap-side: calc(0.49 * 80svh); --cap-duo: calc(0.49 * 54svh); --cap-trio: calc(0.49 * 42svh); }
}
.feat .phone, .step .phone { --w: min(68vw, 300px, var(--cap-stack)); }
.duo-row .phone { --w: min(43vw, 280px, var(--cap-duo)); }
.trio-row .phone { --w: min(43vw, 280px, var(--cap-trio)); }
@media (min-width: 900px) {
  .feat .phone, .step .phone { --w: min(26vw, 340px, var(--cap-side)); }
  :root { --cap-duo: calc(0.49 * 60vh); --cap-trio: calc(0.49 * 58vh); }
  @supports (height: 1svh) { :root { --cap-duo: calc(0.49 * 60svh); --cap-trio: calc(0.49 * 58svh); } }
  .duo-row .phone { --w: min(24vw, 320px, var(--cap-duo)); }
  .trio-row .phone { --w: min(22vw, 300px, var(--cap-trio)); }
}
/* one story, not islands of black: tighter rhythm between blocks */
.feat { padding: clamp(40px, 7vh, 96px) var(--pad); gap: clamp(18px, 3.2vh, 36px); }
.duo { padding: clamp(48px, 8vh, 104px) var(--pad); }
.duo-row, .trio-row { margin-top: clamp(22px, 4vh, 44px); }
.story { padding: clamp(48px, 8vh, 96px) var(--pad) clamp(8px, 2vh, 24px); }
.story-steps { margin-top: clamp(22px, 4vh, 44px); }
.step { padding-bottom: clamp(36px, 6vh, 72px); gap: 18px; }
.trial, .roadmap { padding: clamp(52px, 9vh, 112px) var(--pad); }
.rm-in { margin-top: clamp(22px, 4vh, 44px); }
.end { padding: clamp(56px, 9vh, 112px) var(--pad) clamp(56px, 9vh, 104px); }
@media (max-width: 899px) {
  .feat { padding: 40px var(--pad) 48px; }
  .duo { padding: 48px var(--pad) 52px; }
}
@media (min-width: 900px) {
  .feat, .step { min-height: 0; }
}

/* the language suggestion: impossible to miss, still one line and dismissible */
.lang-hint { padding: 12px 52px 12px var(--pad); background: #1c1c1e; font-size: 15px; color: #fff; gap: 14px; flex-wrap: wrap; }
.lang-hint a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 650; }
.lang-hint a:hover { background: #ef4a40; }
.lang-hint ~ .top { top: 59px; }

/* ================= theory: the app's own animated scenes (agent D), big, no phone, no signs =================
   Captures are 1164 × 728 (still) / 900 × 562 (loop); the app draws them with corner radius ≈ 5.2 % of the width. */
.illus { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(48px, 8vh, 104px) var(--pad); text-align: center; }
.illus h2 { font-size: clamp(36px, 8vw, 72px); margin: 0 auto; }
.illus .line { margin: 14px auto 0; max-width: 34ch; }
.ill-grid { max-width: 1180px; margin: clamp(26px, 4.5vh, 48px) auto 0; display: grid; gap: 30px; text-align: left; }
.ill { margin: 0; }
.ill-frame { border-radius: 5.2% / 8.3%; overflow: hidden; background: #F2F2F7; aspect-ratio: 1164 / 728; transform: translateZ(0); }
.ill-frame img, .ill-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ill figcaption { margin-top: 12px; display: grid; gap: 4px; }
.ill figcaption b { font-size: clamp(19px, 2vw, 22px); font-weight: 650; letter-spacing: -.015em; }
.ill figcaption span { font-size: 15px; line-height: 1.4; color: var(--mute); }
.ill-more { margin-top: clamp(22px, 4vh, 36px); font-size: 15px; color: var(--mute); }
.ill-more .d { display: none; }
/* phones: one column, four scenes, «+ 10 til i appen» */
@media (max-width: 699px) { .ill.x { display: none; } }
/* tablets and up: 2 columns; desktop: 3 × 2 */
@media (min-width: 700px) {
  .ill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
  .ill-more .m { display: none; } .ill-more .d { display: inline; }
}
@media (min-width: 1000px) { .ill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ================= the glass sheet (Dima 14.10: «добавь шторку стеклом») =================
   Slim glass bar pinned to the bottom → opens into a glass sheet (waitlist, contact, links). Real frosted glass where the
   browser supports backdrop-filter; a solid dark fill otherwise. Respects the home indicator (safe-area-inset-bottom). */
:root { --gs-h: 64px; --gs-gap: 12px; }
body { padding-bottom: calc(var(--gs-h) + var(--gs-gap) * 2 + env(safe-area-inset-bottom)); }
.gs { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--gs-gap) + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 2 * var(--gs-gap))); transform: translate(-50%, 0); will-change: transform, opacity;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s cubic-bezier(.2,.8,.2,1); }
/* .hide = home-page logic (hero not yet scrolled past / waitlist section on screen); .away = auto-hide while scrolling down
   (Dima 14.10: «когда страничка поднималась, оно пропадало красиво») — slides below the viewport edge incl. the home indicator */
.gs.hide, .gs.away:not(.open) { transform: translate(-50%, calc(100% + var(--gs-gap) + env(safe-area-inset-bottom) + 8px)); opacity: 0; pointer-events: none; }
/* matte (Dima 14.10: «убери эффект стекла либо сделай матовым» — iOS Chrome showed the page sharply through it) */
.gs-bar, .gs-panel {
  background: rgba(30, 30, 33, .93);
  -webkit-backdrop-filter: blur(40px) saturate(140%); backdrop-filter: blur(40px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 40px rgba(0,0,0,.45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gs-bar, .gs-panel { background: rgba(28, 28, 30, .97); }
}
.gs-bar { height: var(--gs-h); border-radius: 22px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; }
.gs-grab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; height: 100%; touch-action: none; }
.gs-ic { width: 36px; height: 36px; border-radius: 9px; }
.gs-ic svg { width: 15px; height: 18px; }
.gs-soon { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-cta { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #000;
  font-size: 15px; font-weight: 650; text-decoration: none; }
.gs-cta:hover { background: #e9e9ea; }
.gs-langs { flex: none; display: flex; gap: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.gs-langs a { color: rgba(255,255,255,.5); text-decoration: none; padding: 8px 5px; }
.gs-langs a[aria-current="true"] { color: #fff; }
@media (max-width: 479px) { .gs-langs { display: none; } }
/* the open sheet */
.gs-panel { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 26px; padding: 14px 22px calc(22px + env(safe-area-inset-bottom) * 0);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; text-align: center; }
.gs-panel[hidden] { display: none; }
.gs.open .gs-bar { visibility: hidden; }
.gs.open .gs-panel { animation: gs-up .32s cubic-bezier(.2,.8,.2,1); }
@keyframes gs-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.gs-handle { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 0 auto 6px; touch-action: none; cursor: grab; }
.gs-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12);
  color: #fff; font: 400 15px/1 var(--font); cursor: pointer; }
.gs-x:hover { background: rgba(255,255,255,.2); }
.gs-panel h2 { margin: 18px auto 0; font-size: clamp(28px, 7vw, 40px); max-width: 14ch; }
.gs-panel .wl { margin: 22px auto 0; }
.gs-contact { margin-top: 22px; font-size: 15px; color: var(--mute); }
.gs-contact a { color: #fff; }
.gs-links, .gs-social { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; }
.gs-links a, .gs-social a { color: rgba(255,255,255,.75); text-decoration: none; }
.gs-links a:hover, .gs-social a:hover { color: #fff; }
.gs-social { margin-top: 10px; padding-bottom: 6px; }
.gs-dim { position: fixed; inset: 0; z-index: 29; background: rgba(0,0,0,.45); }
.gs-dim[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gs { transition: opacity .2s linear; will-change: auto; }
  .gs.hide, .gs.away:not(.open) { transform: translate(-50%, 0); }   /* no slide, just a fade */
  .gs.open .gs-panel { animation: none; }
}
/* the language hint sits on top, the sheet at the bottom: they never meet; the header no longer has «Venteliste» */

/* ================= the live accident map ================= */
.lmap { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(48px, 8vh, 104px) var(--pad); text-align: center; }
.lmap h2 { font-size: clamp(36px, 8vw, 72px); margin: 0 auto; }
.lmap .line { margin: 14px auto 0; max-width: 34ch; }
.lm { position: relative; width: 100%; max-width: 1180px; margin: clamp(22px, 4vh, 40px) auto 0; aspect-ratio: 4 / 5; max-height: 74vh;
  border-radius: 24px; overflow: hidden; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); text-align: left; }
@supports (height: 1svh) { .lm { max-height: 74svh; } }
@media (min-width: 700px) { .lm { aspect-ratio: 16 / 10; } }
.lm-still, .lm-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm.live .lm-still { display: none; }
.lm-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.lm-svg:active { cursor: grabbing; }
/* the markers: the app's warning triangle (red body, white face, black «!»), scaled to ~22–34 px by site.js */
.lm-tri { cursor: pointer; outline: none; }
.lm-tri .tri-hit { fill: transparent; }
.lm-tri .tri-o { fill: #E33C33; stroke: #E33C33; stroke-width: 2.2; stroke-linejoin: round; paint-order: stroke; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.6)); }
.lm-tri .tri-i { fill: #fff; }
.lm-tri .tri-m { fill: #141416; }
.lm-tri:hover .tri-o, .lm-tri.sel .tri-o { stroke: #fff; }
.lm-tri.sel .tri-i { fill: #ffe9e7; }
.lm-tri:focus-visible .tri-o { stroke: #fff; stroke-width: 3.6; }
.lm-ctl { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 2; }
.lm-ctl button { width: 40px; height: 40px; border-radius: 12px; border: 0; color: #fff; font: 500 20px/1 var(--font); cursor: pointer;
  background: rgba(30,30,33,.93); -webkit-backdrop-filter: blur(40px) saturate(140%); backdrop-filter: blur(40px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08); }
.lm-ctl button:hover { background: rgba(60,60,66,.7); }
.lm-touch { position: absolute; left: 12px; bottom: 12px; right: 64px; margin: 0; font-size: 12px; color: rgba(255,255,255,.55); pointer-events: none; }
.lm-card { position: absolute; z-index: 3; width: min(320px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; overscroll-behavior: contain;
  padding: 14px 40px 14px 16px; border-radius: 18px; color: #fff;
  background: rgba(30,30,33,.93); -webkit-backdrop-filter: blur(40px) saturate(140%); backdrop-filter: blur(40px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.5); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lm-card, .lm-ctl button { background: rgba(28,28,30,.97); } }
.lm-card[hidden] { display: none; }
.lm-card .lm-when { font-size: 13px; color: rgba(255,255,255,.65); text-transform: none; }
.lm-card h3 { margin-top: 4px; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.lm-card .lm-street { margin-top: 6px; font-size: 14px; color: #fff; }
.lm-card .lm-meta { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.65); }
.lm-card h4 { margin-top: 12px; font-size: 12px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: #FF7A6E; }
.lm-card h4.lm-what { color: #5BD17A; }
.lm-card .lm-body { margin-top: 4px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.88); }
.lm-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font: 400 13px/1 var(--font); }
.lm-foot { max-width: 1180px; margin: 14px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.lm-attr { font-size: 11px; color: var(--faint); margin: 0; }
@media (max-width: 699px) { .lm-foot { justify-content: center; text-align: center; } }

/* ================= Følg oss ================= */
.follow { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(48px, 8vh, 96px) var(--pad); text-align: center; }
.follow h2 { font-size: clamp(36px, 8vw, 64px); margin: 0 auto; }
.follow-row { list-style: none; margin: clamp(22px, 4vh, 40px) auto 0; padding: 0; max-width: 1000px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.follow-row a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: #fff; text-decoration: none; text-align: left;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .2s; }
.follow-row a:hover { background: rgba(255,255,255,.12); }
.follow-row svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.follow-row span { display: grid; min-width: 0; }
.follow-row b { font-size: 15px; font-weight: 650; }
.follow-row small { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-row.mini { margin-top: 14px; grid-template-columns: repeat(5, auto); justify-content: center; gap: 6px; }
.follow-row.mini a { padding: 10px; border-radius: 12px; }
.follow-row.mini span { display: none; }
.follow-row.mini svg { width: 22px; height: 22px; }
@media (max-width: 699px) { .follow-row:not(.mini) { grid-template-columns: 1fr 1fr; } .follow-row:not(.mini) li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.lm-st { position: absolute; z-index: 1; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(170deg, #F24B3B, #D42D2A); box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(0,0,0,.5); pointer-events: none; }
.lm-st svg { width: 12px; height: 14px; fill: #fff; margin-left: 1px; }

/* ================= Din egen rute. Eller kjør fritt. (14.10) ================= */
/* three short facts from the app under the line: one centred row with hairlines on wide screens, the stacked list on phones */
.duo.route .facts.words { margin-top: 22px; }
@media (min-width: 700px) {
  .duo.route .facts.words { display: flex; flex-wrap: wrap; justify-content: center; max-width: 820px; gap: 8px 0; }
  .duo.route .facts.words li { padding: 0 16px; border-top: 0; border-bottom: 0; border-left: 1px solid var(--line); line-height: 1.3; }
  .duo.route .facts.words li:first-child { border-left: 0; }
}

/* ================= Alt til oppkjøringen. Én app. (14.10) =================
   The eight things a learner otherwise collects one by one, drawn into one iPhone (home screen, dark).
   Phones: the chips as a cloud, one hairline down into the phone. Desktop: four chips a side, each with a hairline
   running into the device — the same glass chips as «Følg oss», nothing new to learn. */
.allin { border-top: 1px solid rgba(255,255,255,.07); padding: clamp(52px, 9vh, 112px) var(--pad); text-align: center; }
.allin h2 { font-size: clamp(36px, 8vw, 72px); margin: 0 auto; }
.allin .line { margin: 14px auto 0; max-width: 38ch; }
.ai-stage { --ai-gap: clamp(36px, 5vw, 72px); max-width: 1100px; margin: clamp(28px, 5vh, 56px) auto 0; display: grid; justify-items: center; }
.ai-kick { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ai-side { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 600px; }
.ai-side li { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.25; color: #fff; text-align: left;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ai-side svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.ai-funnel { position: relative; display: block; width: 1px; height: clamp(30px, 5vh, 52px); margin: 16px auto 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), var(--red)); }
.ai-funnel::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(227,60,51,.22); }
.ai-stage .phone { --w: min(58vw, 260px, var(--cap-stack)); margin-top: 10px; }
@media (min-width: 900px) {
  .ai-stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto repeat(4, minmax(0, 1fr));
    column-gap: var(--ai-gap); align-items: center; }
  .ai-kick { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; }
  .ai-side { display: contents; }
  .ai-funnel { display: none; }
  .ai-stage .phone { --w: min(24vw, 300px, var(--cap-side)); grid-column: 2; grid-row: 2 / 6; margin-top: 0; }
  .ai-side li { max-width: 300px; }
  .ai-side li:nth-child(-n+4) { grid-column: 1; justify-self: end; }
  .ai-side li:nth-child(n+5) { grid-column: 3; justify-self: start; }
  .ai-side li:nth-child(1), .ai-side li:nth-child(5) { grid-row: 2; }
  .ai-side li:nth-child(2), .ai-side li:nth-child(6) { grid-row: 3; }
  .ai-side li:nth-child(3), .ai-side li:nth-child(7) { grid-row: 4; }
  .ai-side li:nth-child(4), .ai-side li:nth-child(8) { grid-row: 5; }
  /* the hairline from each chip into the phone, a red dot where it meets the device */
  .ai-side li::before, .ai-side li::after { content: ""; position: absolute; top: 50%; pointer-events: none; }
  .ai-side li::before { width: var(--ai-gap); height: 1px; margin-top: -.5px; }
  .ai-side li::after { width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(227,60,51,.22); }
  .ai-side li:nth-child(-n+4)::before { left: 100%; background: linear-gradient(90deg, rgba(255,255,255,.14), var(--red)); }
  .ai-side li:nth-child(-n+4)::after { left: calc(100% + var(--ai-gap) - 4px); }
  .ai-side li:nth-child(n+5)::before { right: 100%; background: linear-gradient(270deg, rgba(255,255,255,.14), var(--red)); }
  .ai-side li:nth-child(n+5)::after { right: calc(100% + var(--ai-gap) - 4px); }
}
