/* VeiMester — practice site styles. Light/dark aware, responsive, no framework. */

/* Plus Jakarta Sans, self-hosted from web/fonts/ — NOT from fonts.googleapis.com. Loading it from
   Google made every visitor's IP reach a US server before the page had asked them anything, which
   needs a legal basis a privacy-page mention is not (GDPR art. 6 and ch. V; German courts have
   awarded damages on these facts). Serving it ourselves removes the transfer and drops two DNS+TLS
   round trips. Do not reintroduce the CDN link.
   One variable file per subset (wght 200-800), so the five old static weights are one request: 27 KB
   latin + 21 KB latin-ext. Cyrillic and Vietnamese are deliberately not shipped. Licence: SIL OFL
   1.1, see fonts/OFL.txt, which is why the file has to travel with the font. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #12151b;
  --muted: #5b6472;
  --border: #e4e8ef;
  --brand: #c8102e;         /* Norwegian red accent */
  --brand-2: #ff5d52;       /* warm coral, gradient partner */
  --brand-ink: #ffffff;
  /* Ink for a surface that is white in BOTH themes, so its text cannot follow the
     theme either. `.cta-band .btn.primary` is `background: #fff` on purpose — a white
     button on the red band — and taking `var(--brand)` there put dark's #ff5a6e, which
     is tuned for a dark ground, on white at 3.03:1. That is an AA failure on the
     landing page's LAST call to action, and it is invisible in light mode, where
     --brand is already this value. Pinned here and deliberately NOT redefined under
     [data-theme="dark"]; same reasoning as --ok-ink and --gold-ink below. */
  --brand-on-white: #c8102e;
  --blue: #2f6fed;
  --amber: #e08a00;
  --violet: #7c5cff;
  --ok: #1a7f37;
  /* --ok is tuned for white; on the tinted --surface-2 wells it lands at 4.49:1
     for 12.5px text (.stat-delta), i.e. a hairline AA miss. --ok-ink is the same
     green a step darker, for small green text on a tint. Dark theme needs no
     such step (light ink on a dark well already measures ~8.9:1), so there it
     is just --ok — darkening it there would LOWER contrast, not raise it. */
  --ok-ink: #177030;
  --ok-bg: #e7f6ec;
  /* Gold, for an EARNED milestone (.jr-badge.is-earned). --amber could not do
     this job: it measures 2.69:1 on the light surface, which misses not just
     the 4.5:1 text floor but the 3:1 one for icons, so an amber tick on a card
     was invisible as a graphic before it was illegible as text. --gold-ink is
     the same hue walked dark enough to clear AA on BOTH the surface and its own
     tinted well (5.44:1 and 4.67:1, measured). Dark theme inverts the roles —
     there the ink is the light #f2b24a on a dark well (9.34:1 / 6.44:1) — which
     is the same flip --ok/--ok-ink documents above, for the same reason. */
  --gold-ink: #965d00;
  --gold-bg: #faecd6;
  --bad: #c0342a;
  /* --bad is an INK colour (it flips light in dark theme so it reads on a dark
     surface). A red button with white text needs the opposite — a colour that
     stays dark in both themes — or the dark-theme #f87171 puts white ink at
     2.77:1. Hence a separate solid for destructive button backgrounds. */
  --bad-solid: #c0342a;
  --bad-bg: #fdecea;
  /* DECORATIVE gradient. Runs to a bright coral, so it may only ever sit behind
     LARGE text (>=24px, or >=18.66px bold), which needs 3:1 — hero h1 is 4.8:1.
     Never put small white text on this: white needs backdrop luminance <= .1833
     for 4.5:1, and a red channel of 255 alone contributes .2126, so no #ff....
     coral can carry small white ink at AA no matter what green/blue do. */
  --grad: linear-gradient(135deg, #c8102e 0%, #e23048 55%, #ff5d52 100%);
  /* CONTROLS gradient — same brand ramp, stopped before it gets too light, so
     every point under the ink clears 4.5:1 (start 5.9:1, end 4.6:1). Use this,
     not --grad, on anything with normal-size white text: buttons, chips, pills.
     Added 2026-08-01 after measuring: .btn.primary was 3.4-4.2:1 and
     .chip.active 3.6:1 — i.e. every primary CTA in the app failed AA. */
  --grad-ui: linear-gradient(135deg, #c8102e 0%, #e12740 100%);
  /* Solid fallback = the gradient's dark start stop; renders under the gradient
     so the button stays legible if a gradient ever fails to paint.
     CAUTION: this is what masked the failure above. A contrast checker reads
     background-color and scores 5.9:1, but the opaque gradient painted on top is
     what the user actually sees — so --grad-solid made .btn.primary look
     compliant to tooling while rendering at 3.4:1. Measure the gradient. */
  --grad-solid: #c8102e;
  /* ---------------------------------------------------------------- elevation
     A 5-step scale, and every step is THREE layers: a 1px contact shadow, a tight key shadow and a
     wide ambient one. The old two tokens were each a single soft blur, which is why every surface
     read as a sticker on a flat ground — one blur cannot say both "this touches the page here" and
     "this floats". Negative spread on the wide layers keeps the ambient from bleeding out sideways
     past the card, which is what made a bigger shadow look like smudge rather than height.
     Shadow ink is a blue-grey (16,24,40), never black: the page ground is #f4f6fa, and a
     neutral-black shadow over a blue-grey ground reads as dirt. Same reason dark theme's steps are
     near-black AND lower-alpha per layer — on a #0d1015 ground a shadow cannot darken much, so depth
     there comes from --hairline (the lit top edge) more than from the shadow. */
  --e1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px -1px rgba(16,24,40,.05);
  --e2: 0 1px 2px rgba(16,24,40,.05), 0 4px 10px -3px rgba(16,24,40,.07), 0 10px 26px -12px rgba(16,24,40,.10);
  --e3: 0 1px 3px rgba(16,24,40,.06), 0 10px 22px -8px rgba(16,24,40,.10), 0 24px 52px -20px rgba(16,24,40,.16);
  --e4: 0 2px 6px rgba(16,24,40,.07), 0 18px 38px -12px rgba(16,24,40,.14), 0 40px 80px -28px rgba(16,24,40,.22);
  /* The original two names stay as the aliases everything already uses, so the
     whole sheet moved onto the layered scale in one edit instead of ~100. */
  --shadow: var(--e2);
  --shadow-lg: var(--e3);
  /* The lit top edge. A real raised surface catches light on the edge facing it,
     and this single inset line does more for "premium" than any blur — it is
     what separates a card from a rectangle of white. Paired with --surface-lift
     (a ~1.5% vertical wash) so the surface itself is shaded, not just its edge. */
  --hairline: inset 0 1px 0 rgba(255,255,255,.9);
  --surface-lift: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 42%);
  /* Frosted chrome (topbar, sticky bars, overlays). Kept as tokens because the
     blur radius and the surface alpha have to move together — raising one
     without the other is what makes glass read as "washed out" instead. */
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-blur: saturate(180%) blur(14px);
  /* Ambient page wash: three wide, very low-alpha radial pools painted once on
     a fixed body::before. 4-6% is deliberate — it has to be felt, not seen, and
     anything stronger moves the measured contrast of body-level text. */
  --amb-1: rgba(200,16,46,.05);
  --amb-2: rgba(47,111,237,.05);
  --amb-3: rgba(124,92,255,.04);
  /* corner radius scale. There were 21 distinct hard-coded radii in this sheet against 7 uses of the
     two tokens that already existed — so "rounded" meant something slightly different on every
     surface. Seven steps replace them, each within 2px of the values it absorbs, so this unified the
     system without moving any corner enough to notice.
       xs  hairline chrome: bar fills, kbd, small keys        <- 4,5,6,7
       sm  controls: inputs, small buttons, session rows      <- 8,9,10,11
       md  tappable blocks: answer options, explain, search   <- 12,13,14,15
       lg  cards (the house radius)                           <- 16,20
       xl  full-bleed panels: hero, stats band, showcase      <- 22,24,26
       2xl the landing hero                                    <- 30,32
       pill fully-round: chips, badges, segmented controls
     Deliberately NOT on the scale: 50% circles, the 2px underline caps, and the device shells in
     showcase.css (--pr, the laptop lid) — those are drawings of physical objects, not UI surfaces. */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 32px;
  --r-pill: 999px;
  /* the original two names, kept as aliases: they are load-bearing in 7 rules
     and `--radius` reads better than `--r-lg` for "a card". */
  --radius: var(--r-lg);
  --radius-sm: var(--r-sm);
  /* ONE page rail. Every horizontal container in the app — .view, the sticky
     topbar's contents, both footer rows, .course-wrap — centres on this width, so
     content lines up down the whole page and does not change width between routes.
     It used to be four different caps (920 .view / 1160 landing / 1240 schools /
     1120 footer), which meant signing in visibly shrank the front page: the
     signed-out landing added body.landing (1160) and the signed-in dashboard did
     not (920). Widened to the landing figure because that is the one that was
     designed against real content. */
  --page-w: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* type scale — every hero/section heading pulls from here so sizes stay
     in lockstep instead of each drifting its own clamp() over time */
  --fs-display: clamp(2.1rem, 5.2vw, 3.4rem); /* landing hero title */
  --fs-h1: clamp(1.8rem, 4.4vw, 2.6rem);      /* page hero h1 (dashboard, cta-band) */
  --fs-h2: clamp(1.6rem, 3.6vw, 2.3rem);      /* section headings */
  --fs-lead: clamp(1.05rem, 1.8vw, 1.2rem);   /* hero/section subheads */
  /* motion tokens — mirror the house curves already used across the sheet so the swipe settle
     (motion.css) and any future transition share one source of truth. --ease-out matches the existing
     cubic-beziers; --ease-spring matches the .brand/.btn spring.
     DURATION BUDGET (raised 2026-08-01, was <300ms): the ceiling is now 2s, but it is a ceiling per
     *moment*, not a licence. Cost scales with repetition: anything that fires constantly — hover,
     focus, per-option feedback, route changes, list re-renders — still belongs at --dur-quick/base,
     because a 2s animation on a control the user hits 45 times an exam is 90s of movement under the
     text they are reading. Spend the long end on things that happen ONCE per session, and never on
     the learning surfaces listed in docs/ARCHITECTURE.md's motion table. */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.2,1.5,.4,1);
  --dur-quick: .16s;
  --dur-base: .24s;
  --dur-slow: .5s;    /* one-shot reveals: answer feedback, gate/result icons */
  --dur-show: 1.2s;   /* once-per-session showpieces only (result celebration) */
}
:root[data-theme="dark"] {
  --bg: #0d1015; --surface: #161a21; --surface-2: #1f252e;
  --text: #e8eaed; --muted: #99a3b2; --border: #29313c;
  --brand: #ff5a6e; --brand-2: #ff8a7a; --blue: #7aa2ff; --amber: #f2b24a; --violet: #a996ff;
  --ok: #4ade80; --ok-ink: #4ade80; --ok-bg: #10261a; --bad: #f87171; --bad-solid: #b32d24; --bad-bg: #2a1615;
  --gold-ink: #f2b24a; --gold-bg: #3e3528;
  --grad: linear-gradient(135deg, #8f1023 0%, #c8324a 55%, #ff6b62 100%);
  /* dark's own ramp already clears AA up to the 55% stop (9.3:1 / 5.2:1); it is
     only the #ff6b62 end that can't (2.8:1), so controls stop at the mid stop. */
  --grad-ui: linear-gradient(135deg, #8f1023 0%, #c8324a 100%);
  --grad-solid: #8f1023;
  --e1: 0 1px 2px rgba(0,0,0,.35), 0 1px 3px -1px rgba(0,0,0,.3);
  --e2: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px -3px rgba(0,0,0,.42), 0 12px 28px -12px rgba(0,0,0,.5);
  --e3: 0 1px 3px rgba(0,0,0,.45), 0 12px 26px -8px rgba(0,0,0,.5), 0 28px 56px -20px rgba(0,0,0,.6);
  --e4: 0 2px 6px rgba(0,0,0,.5), 0 20px 42px -12px rgba(0,0,0,.55), 0 44px 84px -28px rgba(0,0,0,.65);
  /* Dark's lit edge is a whisper (4.5%, not 90%): on a #161a21 surface the same
     white line that reads as "lit" in light theme reads as a visible white
     stroke — a border someone forgot to remove. The wash flips to a black one
     from the BOTTOM, because in dark theme the depth cue is the surface getting
     darker as it recedes, not lighter as it rises. */
  --hairline: inset 0 1px 0 rgba(255,255,255,.045);
  --surface-lift: linear-gradient(180deg, rgba(255,255,255,.028), rgba(0,0,0,.06));
  --glass: color-mix(in srgb, var(--surface) 76%, transparent);
  --amb-1: rgba(255,90,110,.055);
  --amb-2: rgba(122,162,255,.05);
  --amb-3: rgba(169,150,255,.045);
}
* { box-sizing: border-box; }
/* Kill the grey tap flash on touch — we provide our own :active feedback, and the
   default highlight makes buttons/links feel unpolished on phones. */
a, button, .opt, .chip, .qgrid button, select, summary, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}
/* Shown only on touch devices (e.g. the swipe hint). The coarse-pointer rule in
   the mobile block flips it on; keyboard hints stay for pointer users. */
.touch-only { display: none; }
/* Content artwork — the drawn question scenes, the sign faces, the course figures and photographs —
   is not meant to be lifted out of the page, so the three casual routes to a local copy are closed:
   drag-to-desktop (`-webkit-user-drag`), the iOS long-press "Save Image" sheet
   (`-webkit-touch-callout`), and the selection halo that makes an image look draggable. Right-click
   "Save image as" is handled in app/main.js, since CSS cannot reach the context menu.
   Deterrent, not protection: every file is still a plain URL under web/. The point is that nobody
   does it by accident or in one gesture. */
.scene img, .scene svg, .cs img, .cs svg,
.signimg, .scene-photo, .cs-img, .course-ch-img, .tile-ico, .mk-cintro-ico {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Same reasoning for the words: the questions, the explanations and the course text are the product,
   so the page is not a document to select and lift text out of. The selection gesture is off
   everywhere — which also removes "Copy" from the right-click menu and the iOS long-press bar.
   Form fields are the one exception, and a hard one: you cannot fix an email address or edit a search
   term you are not allowed to select. `input, textarea` covers the real cases; the rest is listed so
   a future field type doesn't inherit the block.
   What this does NOT touch: the text is still in the DOM, so screen readers, browser translation,
   in-page find (⌘F) and the crawlable landing pages under web/no|en/ (they load seo.css, not this
   file) all work exactly as before. Same caveat as the artwork above — this stops casual copying. */
body {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select, option, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
/* …and every #/dev screen. The block above protects the question bank; #/dev is not the
   bank, it is the operator's own tooling, and every screen there exists to have something
   lifted out of it — a short_id to grep for, a customer's e-mail, a reviewer's note, a
   figure key. `body.devtools` is set by router() (see isDevRoute there) and clears itself
   on the next route, so no dev renderer has to remember anything. The `copy`/`cut`
   backstop in app/main.js reads the SAME class, so the two halves cannot drift apart. */
body.devtools, body.devtools * {
  -webkit-user-select: text;
  user-select: text;
}
/* …and the question ID, which exists to be quoted back to us. An ID you cannot copy
   is an ID nobody reports, so the one string on a question card that is worth lifting
   out stays selectable while the stem, the options and the explanation around it do not.
   `display: contents` rather than a plain inline span on purpose: .qmeta becomes a flex
   container when it carries the read-aloud toggle (see .qmeta:has(.tts-toggle) in
   tts.css), where a real span would become its own flex item and pick up the .5rem gap,
   detaching the "·" separator from the ID. With no box generated the run reflows exactly
   as the bare text did, and the text still inherits `user-select` from here. */
.qid {
  display: contents;
  -webkit-user-select: text;
  user-select: text;
}
/* Ground colour is declared on <html>, and <body> is transparent, so the ambient
   wash below has a defined place to sit. Left on <body>, the base colour would
   PROPAGATE to the canvas and body would paint as if it had no background — the
   wash then depends on that propagation rule to be visible at all, which is the
   kind of thing that quietly breaks the day someone gives <html> a background. */
html {
  background: var(--bg);
  /* Stop iOS inflating body text when the phone is turned to landscape. `100%` rather
     than `none`: `none` also disables the user's own pinch-zoom text scaling. */
  -webkit-text-size-adjust: 100%;
}
/* Horizontal overflow is stopped at the viewport, not only at .view — see the hero-route rule on
   .view. `clip`, not `hidden`: clip never makes body a scroll container, so position: sticky inside
   (the topbar, the exam's mobile bar) keeps the viewport as its scrollport. On the root it
   propagates to the viewport as hidden, which is the intent. Set on BOTH html and body because iOS
   Safari ignores it on body alone. */
html, body { overflow-x: clip; }
body {
  margin: 0; background: transparent; color: var(--text);
  /* `100%`, not `16px` (changed 2026-09-05). <html> declares no font-size, so `rem`
     already tracks the reader's browser font-size setting — which meant every padding,
     radius and clamp() in this sheet scaled with it while the prose that INHERITS from
     here stayed pinned at 16px. The layout got airier and the text did not, which is
     worse than ignoring the setting outright. `100%` is 16px on a default profile, so
     nothing moves for the overwhelming majority; it just stops overriding the minority
     who asked for something else. */
  font: 100%/1.55 var(--font);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Ambient ground: three wide radial pools, painted once, fixed to the viewport. The page reads as lit
   from somewhere instead of being a flat fill, and because the layer is `fixed` the content scrolls
   THROUGH the light rather than dragging it along — depth for one static paint and zero per-frame
   work. On html::before, not body::before: those two are the edge sign decorations (bottom of this
   file). z-index -1 keeps it behind those and behind the z-index:1 content column, so nothing is ever
   tinted by it — only the gaps. `fixed` here costs nothing; `background-attachment: fixed` on <body>
   would have done the same job while forcing a full repaint per scroll frame on mobile Safari. */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58rem 34rem at 8% -6%, var(--amb-1), transparent 62%),
    radial-gradient(52rem 32rem at 98% 6%, var(--amb-2), transparent 60%),
    radial-gradient(46rem 30rem at 46% 104%, var(--amb-3), transparent 62%);
}
a { color: inherit; }
/* Tracking and leading are size-specific, not one value for all headings: letters
   read too far apart as type grows (so large sizes tighten) and too tight as it
   shrinks, and leading moves the opposite way — an h3 here is body-sized (~1.1rem)
   and wraps to two lines on a card, so it needs room, not the display setting. */
h1, h2, h3 { margin: 0 0 .5rem; }
/* `balance` is the single cheapest typographic upgrade available to a heading:
   the browser evens out the line lengths instead of filling greedily and
   leaving one orphaned word on the last line. Scoped to headings because it is
   capped at ~6 lines and is only worth the layout cost on short text — body
   copy gets `pretty`, which just prevents the orphan. Both degrade to normal
   wrapping where unsupported, so neither needs a fallback. */
h1, h2, h3 { text-wrap: balance; }
h1 { line-height: 1.08; letter-spacing: -.025em; }
h2 { line-height: 1.18; letter-spacing: -.02em; }
h3 { line-height: 1.32; letter-spacing: -.008em; }
p { margin: 0 0 .75rem; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }

/* top bar */
/* The bar is sticky, so its height is a permanent tax on every screen — kept as low
   as the tallest thing inside it allows. That tallest thing is the logo, not the
   padding, which is why the image height is trimmed at each breakpoint too. */
.topbar {
  display: flex; align-items: center; gap: 1rem 1.25rem;
  padding: .28rem 1.25rem; background: var(--glass);
  /* -webkit- prefix is not vestigial here: Safari only dropped the requirement
     in 18, and an unprefixed-only rule degrades to a flat 78%-opaque bar with
     the page legible straight through it on anything older. */
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; min-height: 38px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: .22rem;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: currentColor;
}
.mainnav { display: flex; gap: 1.25rem; margin-left: auto; }
.mainnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9375rem; padding: .3rem 0; position: relative; }
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.15rem; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .22s ease;
}
.mainnav a:hover { color: var(--text); }
.mainnav a:hover::after { right: 0; }
/* `min-height` matches `.authnav .btn.small` below, and it is a CLS fix, not cosmetics:
   `#authnav` ships EMPTY in index.html and is filled by renderAuthNav() once the module
   loads, so without a reserved box the sticky bar grew 42px -> 46px on boot. Four pixels,
   but they move `#view` — ~94% of a phone viewport — which is a near-1.0 impact fraction,
   and that is most of the 0.96 CLS measured on 2026-08-22. */
.authnav { display: flex; align-items: center; gap: .6rem; margin-left: .45rem; min-height: 40px; }
/* 40px, not 44: these two sit in the sticky bar, whose height they would otherwise
   set. Still far above the 24px WCAG 2.5.8 target-size floor. */
.authnav .btn.small { min-height: 40px; }

/* ---- account menu (header) -------------------------------------------------
   One control per state: signed out it is the red primary "Logg inn" with sign-up
   inside; signed in it is the first name with "Min konto" and "Logg ut" inside. */
.authmenu { position: relative; }
/* Signed-out CTA: a plain link styled as the primary button, no menu affordance. */
.authlink-cta { min-height: 40px; }
.authmenu-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
/* The signed-in trigger is deliberately NOT the brand red: it states who you are, and
   should not outrank the page's own primary action the way the signed-out CTA should. */
.authmenu-btn.is-user { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.authmenu-btn.is-user:hover { background: var(--surface-2); }
.authmenu-avatar {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-solid); color: var(--brand-ink); font-size: .72rem; font-weight: 700;
}
.authmenu-label { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.authmenu-chev { width: 14px; height: 14px; flex: none; transition: transform .16s ease; }
.authmenu-btn[aria-expanded="true"] .authmenu-chev { transform: rotate(180deg); }
.authmenu-pop {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 60;
  min-width: 11rem; display: flex; flex-direction: column; gap: .1rem; padding: .3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.authmenu-pop[hidden] { display: none; }
.authmenu-item {
  display: flex; align-items: center; min-height: 40px; padding: .45rem .6rem;
  border: none; border-radius: var(--r-sm); background: transparent;
  color: var(--text); font: inherit; font-weight: 600; text-align: left;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.authmenu-item:hover, .authmenu-item:focus-visible { background: var(--surface-2); }
/* Sign-out is the one item that ends the session, so it is separated and toned like
   every other destructive action in the app. */
.authmenu-item.is-signout { color: var(--bad); border-top: 1px solid var(--border); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-top: .2rem; }
@media (prefers-reduced-motion: reduce) { .authmenu-chev { transition: none; } }
.view { flex: 1; width: 100%; max-width: var(--page-w); margin: 0 auto; padding: 1.75rem 1.25rem 3.5rem; overflow-x: clip; }
/* The hero halo (`.lp-hero::after` / `.hero::after` in motion.css) is 170% of the hero and orbits,
   so the clip above cut it at the rail edge — a hard vertical line through a moving glow, plain in
   dark mode once the hero card was gone (owner, 2026-09-14, twice). First attempt was
   `overflow-clip-margin: 30vw` here, and it did NOTHING: the margin is honoured only when overflow
   is `clip` on BOTH axes, and .view is clip on x alone. Verified by screenshot — with the margin
   and with it forced to 0 the frames were identical. (It was signed off from a light-mode shot,
   where the halo is too faint to show its own edge. Check halos in dark.)
   So on the two hero routes the rail does not clip at all, and the page is kept from scrolling
   sideways at the VIEWPORT instead (html/body below) — an edge nobody can see. Checked before
   widening: the only landing content wider than the rail is the sign marquee, which clips itself;
   the signed-in home has no horizontal overflow. */
/* And every page with the price cards (2026-10-02: #/pay, course, signs, practice, locked chapters): their pricing
   backdrop and sign marquee run full-bleed like the landing's. Measured first: nothing else on them passes the rail. */
.view:has(.lp-hero, .hero, .paywrap, .pricing) { overflow-x: visible; }
/* Checked before widening the clip: the only landing content whose GEOMETRY runs past the rail is
   the sign marquee (its track measures 1,765px over), and `.marquee` clips itself (computed
   overflow-x: hidden), so nothing new paints. The signed-in home has no overflow at all. If a
   future section leans on .view's clip to hide a wide track, it will show here first. */
/* ---- breadcrumbs (app/ui.js crumbs()) --------------------------------------
   Where am I, and how do I get back out. Until now only the course had one, it left
   out Home, and every other section had none — so anyone arriving on a deep route from
   a search result or a shared link had no way up except the topbar.
   The generated landing pages use this same rule (they load styles.css): the two halves of
   the site are one site, and the reader crosses between them.
   `ol` because the order carries the meaning. The separator is a ::before on every item
   but the first, so it is decoration a screen reader never reads out as a word — and it
   is --muted, not --border, because --border in dark mode (#29313c) disappears against
   the dark ground. `min-height: 24px` on the links keeps a comfortable tap target on a
   phone without making the row taller — 24px is the WCAG 2.5.8 floor for an inline text
   link (the 44px target rule is for controls). */
.crumbs { margin: 0 0 .75rem; font-size: .85rem; line-height: 1.5; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.crumbs li { display: flex; align-items: baseline; gap: .45rem; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--muted); opacity: .55; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
/* The current page, truncated rather than wrapped: a long lesson title as the last item
   would otherwise wrap to three lines and push the h1 under it down the fold. */
.crumbs [aria-current="page"] { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Phones (owner 2026-11-18): a wrapped trail sat ~22px per line. Text leading only there (~17px);
   the wrapped line is nearly always the current page (not a link), so the links stay a row apart. */
@media (max-width: 560px) {
  .crumbs { line-height: 1.25; }
  .crumbs a { min-height: 0; }
}
/* ----------------------------------------------------------------- footer */
/* Same --page-w rail as .view, so the brand block starts on the same line as the
   page content above it. */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footinner {
  max-width: var(--page-w); margin: 0 auto; padding: 1.3rem 1.25rem .95rem;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 2rem 2.5rem;
}
.footbrand { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
/* The footer's call to action and the wordmark share a line, the button first.
   Wraps rather than shrinks: at narrow widths the button keeps its tap target
   and the wordmark drops under it. */
.footlead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footlead .btn.primary { flex: none; }
.footlead [hidden] { display: none; }
.footbrand img { height: 40px; width: auto; }
.footbrand p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; max-width: 34ch; }
/* Statutory identity line. Takes the same muted colour and .8rem size as the brand
   note above it (owner's call, 2026-08-20) — it is a footer notice, not a callout.
   It only drops the 34ch clamp, so the name/org.nr/address stay on one line instead
   of wrapping mid-number. Do not shrink it below the note: the duty (and Vipps's
   onboarding review) is that the legal name and org number appear *clearly*, and
   fine-print sizing is the failure mode there. Selector carries `.footbrand` so it
   outranks `.footbrand p` — a bare `.footlegal` is one class against a class + a
   type and loses. */
.footbrand .footlegal { max-width: none; }
/* Hidden unless acq.js marks the visitor Android/Windows: an iPhone or Mac visitor can't install it. */
.footplay { display: none; margin-top: .25rem; border-radius: 6px; }
html.can-play .footplay { display: inline-flex; }
.footplay:focus-visible { outline: 2px solid var(--brand, currentColor); outline-offset: 3px; }
/* Two groups since 2026-11-15 (the "Øving" column repeated the header; legal moved to .footbar):
   "Om nettstedet" and the guides, whose 12 rows flow into two columns so the footer stays short. */
.footcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 1.25rem; }
.footcol.footcol-guides ul { display: block; columns: 2; column-gap: 1.25rem; }
.footcol-guides li { break-inside: avoid; }
.footcol .foothead {
  font-size: .72rem; line-height: 1.18; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text); margin: 0 0 .45rem;
}
.footcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
/* Generous vertical padding rather than tight text rows: these are the smallest
   tap targets on the page, and on a phone the columns collapse to a list where
   mis-taps are otherwise easy.
   28px, down from 32 then 30 (owner asked for a shorter footer on 2026-08-23 and again
   2026-09-25, ~10% each time): the tallest column is eight of these, so 2px a row is 16px
   off the whole footer. The phone value below is 24px — exactly the WCAG 2.5.8 target
   floor this sheet holds itself to, so it cannot go any further. */
.footcol a {
  display: inline-block;
  color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.4;
  padding: .25rem 0; min-height: 28px;
}
.footcol a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footcol a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-xs); }
/* inline-block, not a flex item: on a link whose label wraps to two lines a flex
   icon is pushed to the end of the whole box and floats away from the text.
   Inline keeps it glued to the last word, where it reads as part of the label. */
.ext-ico {
  display: inline-block; width: 12px; height: 12px;
  margin-left: .3rem; vertical-align: -0.05em; opacity: .75;
}

.footbar {
  border-top: 1px solid var(--border);
  max-width: var(--page-w); margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; justify-content: flex-start;
  color: var(--muted); font-size: .78rem;
}
.footbar > * { margin: 0; }
/* Personvern · Vilkår · Pass Protection, beside the copyright. 24px rows: the WCAG 2.5.8 floor. */
.footlegalnav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footlegalnav a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); text-decoration: none; }
.footlegalnav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footlegalnav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-xs); }
/* Social icons (operator.js SOCIAL): bare glyphs pushed to the bar's right end, as footers
   usually carry them. 40px hit area around a 24px glyph keeps the WCAG 2.5.8 target. */
.footsocial { list-style: none; padding: 0; display: flex; gap: .25rem; margin-left: auto !important; }
.footsocial a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); border-radius: var(--r-sm); transition: color .15s; }
.footsocial a:hover { color: var(--text); }
.footsocial a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.footsocial svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .footinner { grid-template-columns: 1fr; gap: .85rem; }
  /* Stacked, each group in two columns: about half the height of one long list. */
  .footcols { grid-template-columns: 1fr; gap: .65rem .9rem; }
  .footcol ul { display: block; columns: 2; column-gap: .9rem; }
  .footcol li { break-inside: avoid; }
  /* Denser rows on phones. 28px, not the desktop 32: still comfortably over the 24px
     WCAG 2.5.8 target floor this sheet holds itself to, but four stacked groups of
     them no longer run to a full screen of footer. The list gap stays where it is —
     it was already 1.6px, so the height was in the rows, not between them. */
  .footcol a { min-height: 24px; padding: .12rem 0; line-height: 1.35; }
  .footcol .foothead { margin-bottom: .3rem; }
  .footbrand { gap: .6rem; }
}
@media (max-width: 480px) {
  /* Two columns are kept down to 360px. Collapsing to one here was what made the
     footer ~910px tall on a 390px phone — taller than the screen it sits on — and it
     is not needed: at 350px of content the widest label ("Pass Protection") is ~100px
     against a 165px column. Below 360px there genuinely is not room, so it folds. */
  .footbar { justify-content: flex-start; }
  /* On phones the row wraps under the links; left-aligned there, glyphs on the text edge. */
  .footsocial { margin-left: -8px !important; }
}
/* Below ~340px (iPhone SE 1st gen and narrower) two columns leave ~130px each and
   the longer labels wrap to three lines, so there it folds to one. */
@media (max-width: 339px) {
  .footcol ul, .footcol.footcol-guides ul { columns: 1; }
}
.loading { color: var(--muted); }
/* Available to screen readers, invisible on screen. Used by the boot skeleton,
   which is decorative to the eye but must still announce "loading" — #view is an
   aria-live region, so silent grey boxes would tell a screen-reader user nothing. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* ------------------------------------------------------------ boot skeleton
   web/bank.json is ~1.7 MB, so on a real connection there is a visible wait before the first view
   paints. This lives in index.html rather than being rendered by JS: it is on screen during the
   module fetch + parse too, which is exactly the window a JS-rendered placeholder cannot cover. Its
   blocks mirror the shape every route opens with (heading, lead, a card, a grid) so the real content
   lands in roughly the same places instead of shifting the page. It carries `.lp` AND `.boot` and
   uses the real `.lp-hero` markup, so the heading lands at the y the router will paint it at instead
   of 58px higher — see the CLS note on `.authnav` above.
   ⚠️ `min-height: 100svh` is the third half of that fix: the skeleton used to be 721px tall in an
   844px viewport, which left the FOOTER on screen, and the first render then shoved it 10 000px down.
   A shift only counts for what is visible, so keeping the fold full of skeleton is what removes it.
   `svh`, not `vh`: on a phone `vh` is the toolbar-less height, which would overshoot. */
.boot { display: grid; gap: clamp(3rem, 7vw, 5.5rem); min-height: 100svh; align-content: start; }
.boot-line { height: 1rem; border-radius: var(--r-xs); }
.boot-line.title { height: 2.1rem; width: min(60%, 20rem); }
.boot-line.lead { width: min(85%, 34rem); }
.boot-card { height: 8.5rem; border-radius: var(--r-lg); }
/* The progress demo is 940px wide (REAL_W) and fitted to its column by armRealFit() (JS). Where CSS can divide
   lengths, do the same before JS: zoom (unlike scale) shrinks the layout box too, so the height matches. */
@supports (zoom: calc(100cqw / 940px)) {
  .boot .sc-real-fit { container-type: inline-size; }
  @container (width < 940px) { .boot .sc-real-fit > .sc-real { zoom: calc(100cqw / 940px); } }
}

/* soft entrance for freshly-rendered view content */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view > * { animation: rise .3s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion: reduce) { .view > * { animation: none; } * { scroll-behavior: auto; } }

/* ------------------------------------- the other two accessibility preferences
   Reduced motion has been handled exhaustively for a while (motion.css's kill list,
   plus the JS-side skips). These two were not handled at all until 2026-09-05, and they
   are the two that matter to a sheet built on translucency: every floating surface here
   is a `--glass` fill over a `backdrop-filter`, which is exactly what somebody asking
   for less transparency or more contrast is asking to be rid of.
   Tokens only, on purpose — redefining --glass/--glass-blur at :root reaches the topbar,
   the account popover and anything else that adopts them later, without a second list to
   keep in sync. The per-sheet surfaces that declare their own blur (the read-aloud player
   in tts.css, the map chrome in schools.css) carry their own copy of this block. */
/* The OPEN glass (owner, 2026-09-19): 70 % surface over a strong blur, for the one big card
   a page rests on — the landing-page article, the legal pages, the exam intro — so the edge
   shapes show through as blurred colour and the card stops reading as a white slab. It was
   30 % first, and the owner read that as "fully transparent": the surface is near-white on a
   near-white ground, so at 30 % nothing says "panel" and the shapes just show through. At 70 %
   the shapes dim to a frosted wash and the card is a card again. Never for chrome or small
   controls: --glass (78 %, lighter blur) is that. */
:root { --glass-open: color-mix(in srgb, var(--surface) 70%, transparent); --glass-open-blur: saturate(160%) blur(16px); }
/* The landing's feature and how-it-works cards: 40 % surface (owner, 2026-09-25) over a soft
   colour backdrop drawn behind their sections, so the frosting has something to show. */
:root { --glass-card: color-mix(in srgb, var(--surface) 40%, transparent); }
/* The rim of every glass box (owner, 2026-09-25): a faint dark OUTLINE outside, the border as a
   white line inside, and a soft shadow all round — a white-ish border alone vanished against the
   light ground. The rim is outline + border, not box-shadow, because every card's :hover swaps
   its box-shadow; a rim carried there vanished exactly when the card was pointed at. */
:root { --glass-edge: rgba(16,24,40,.09); --glass-hl: rgba(255,255,255,.6);
  --glass-shadow: 0 2px 6px rgba(16,24,40,.05), 0 12px 28px -12px rgba(16,24,40,.2); }
:root[data-theme="dark"] { --glass-edge: rgba(255,255,255,.1); --glass-hl: rgba(255,255,255,.05);
  --glass-shadow: 0 12px 28px -12px rgba(0,0,0,.6); }
@media (prefers-contrast: more) { :root, :root[data-theme="dark"] { --glass-edge: var(--muted); --glass-hl: transparent; } }
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--surface); --glass-blur: none; --glass-open: var(--surface); --glass-open-blur: none; --glass-card: var(--surface); }
}
@media (prefers-contrast: more) {
  /* Near-solid plus a defined edge: at high contrast the hairline+wash depth cues are
     the first thing to disappear, so the border has to carry the separation alone. */
  :root { --glass: var(--surface); --glass-blur: none; --glass-open: var(--surface); --glass-open-blur: none; --glass-card: var(--surface); --border: var(--muted); }
}

/* cards & buttons */
/* The house surface: base colour + the top-edge wash + the lit hairline, then
   the layered shadow. Written as background-color/-image rather than the
   `background` shorthand ON PURPOSE — a later rule that sets `background: X` on
   a specific card (there are several) then clears the wash along with the
   colour, which is the correct behaviour: a card that picks its own fill has
   opted out of the lighting model rather than getting a stale gloss over it. */
.card {
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--hairline), var(--shadow); padding: 1.35rem;
}
/* The page's one big card as open glass — see --glass-open. No --surface-lift: its 90 %
   white top wash would repaint the upper half solid. The border softens to match. */
.card.is-glass {
  background: var(--glass-open);
  -webkit-backdrop-filter: var(--glass-open-blur);
          backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge);
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; cursor: pointer; border: 1px solid var(--border);
  background-color: var(--surface); background-image: var(--surface-lift);
  color: var(--text); padding: .65rem 1.15rem;
  border-radius: var(--r-sm); text-decoration: none;
  box-shadow: var(--hairline), var(--e1);
  /* --dur-quick/base, not the 2s ceiling: a button is the single most
     repeatedly-hit surface in the app, so its cost is duration x frequency. */
  transition: transform .06s ease, box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.btn { white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.btn:active { transform: translateY(1px); }
/* The specular line is an INSET box-shadow, never an extra background-image
   layer: --grad-ui is the measured, AA-clearing ramp under this button's white
   ink (see the token), and stacking another gradient over it would change the
   thing tools/ui-audit.mjs samples. A 1px inset at the top edge sits above the
   glyph box, so it lights the edge without touching what carries the text. */
.btn.primary {
  background-color: var(--grad-solid); background-image: var(--grad-ui);
  color: var(--brand-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
              0 1px 2px rgba(16,24,40,.14),
              0 6px 18px -4px color-mix(in srgb, var(--brand) 42%, transparent);
}
.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28),
              0 2px 4px rgba(16,24,40,.16),
              0 10px 26px -6px color-mix(in srgb, var(--brand) 52%, transparent);
}
/* Ghost drops the wash AND the elevation — a transparent button that still
   casts a shadow reads as a raised pane of nothing. */
/* Ghost — a VISIBLE outline (2026-09-14). `transparent` + the 1px --border hairline made the
   hero's "Ta en gratis prøveeksamen" all but vanish on the light page (owner: "not very visible"),
   and once the hero card went, the decorative shapes ran straight behind it. The border is now
   the text colour at 22% — so it tracks both themes instead of a fixed grey — and a faint
   surface wash keeps the label legible over whatever passes behind. Still no elevation: a
   transparent button casting a shadow reads as a raised pane of nothing. */
.btn.ghost { background: color-mix(in srgb, var(--surface) 62%, transparent); box-shadow: none;
  border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent);
  background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: var(--e1); }
.btn.block { width: 100%; }
.btn.big { padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: var(--r-md); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
/* Signed-in home hero — UN-BOXED to match .lp-hero (2026-09-14, owner's call: "same treatment on
   both"). It was the brand-gradient card: red, --shadow-lg, white ink, dark-scrim chips, a white
   primary button. Logging in swapped the open landing hero for a big red box, so the two front pages
   spoke different languages. Now they share one: no card, page ink on the page, brand-tinted eyebrow,
   the standard red primary, the standard ghost, and the same orbit glow + art glow motion.css gives
   .lp-hero (see there: `.lp-hero::after, .hero::after`). `.hero` is used by this hero ONLY (checked
   2026-09-14), so these are rewrites, not overrides.
   The old scrim/contrast notes for white-on-red chips no longer apply — there is no red to sit on.
   Side padding 0 for the same reason as .lp-hero: .view carries the gutter and the text should start
   on the rail edge with the brand mark. */
.hero { position: relative; color: var(--text); padding: clamp(2rem, 5vw, 4rem) 0; margin-bottom: 1.5rem; }
.hero > * { position: relative; }
/* Same unboxed label as the landing .lp-eyebrow (owner 2026-10-01): spaced capitals between two fading rules. */
.hero-badge { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1rem; color: var(--brand); }
.hero-badge::before, .hero-badge::after { content: ""; width: 1.75rem; height: 1.5px; border-radius: 1px; flex: none; }
.hero-badge::before { background: linear-gradient(90deg, transparent, currentColor); }
.hero-badge::after { background: linear-gradient(90deg, currentColor, transparent); }
.hero h1 { font-size: var(--fs-h1); margin-bottom: .5rem; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); font-size: var(--fs-lead); max-width: 46ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.hero-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.3rem; }
/* Page-ink chips, opaque on purpose: the decorative shapes now pass behind the hero, and a
   translucent chip over a shape edge reads as a smudge. */
.pill { display: inline-flex; align-items: baseline; gap: .35rem; background: var(--surface); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); padding: .3rem .7rem; border-radius: var(--r-pill); font-size: .85rem;
  box-shadow: var(--e1); }
.pill b { font-size: 1rem; color: var(--brand); }

/* stats (legacy inline) */
.stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 0; color: var(--muted); }
.stats b { color: var(--text); font-size: 1.25rem; }

/* section headings
   An <h2> (not a <div>): these are the section headings of every view, and as
   divs they left the card <h3>s below them hanging off the page <h1> — a
   skipped level, which is what a screen-reader user navigates by. The size and
   weight are set here explicitly, so promoting the tag changed no pixels. */
.sec-title { display: flex; align-items: center; gap: .6rem; margin: 1.9rem 0 .9rem; font-size: 1.15rem; font-weight: 750; }
.sec-title .muted { font-weight: 500; font-size: .9rem; margin-left: auto; }
/* the trailing "See all →" link is 18px of text on its own — give it a 24px
   box so it clears the WCAG 2.5.8 minimum target without moving the heading */
.sec-title .muted a { display: inline-flex; align-items: center; min-height: 24px; }

/* dashboard */
.dash { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.dash-ring { display: grid; place-items: center; text-align: center; }
.dash-ring small { color: var(--muted); font-size: .8rem; display: block; margin-top: .3rem; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
/* A stat tile is a WELL, not a card: it sits inside a card that is already
   raised, so it gets the lit top edge and no drop shadow at all. Two raised
   things nested is how a UI starts looking like bubble wrap. */
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .8rem .9rem; box-shadow: var(--hairline);
}
.stat-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 600; }
.skill-lock { justify-self: center; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; color: var(--muted); }
.skill-lock svg { width: 1rem; height: 1rem; }
/* Home's option cards (areaCard) and #/progress's overview rows (overviewCard): one per learning area.
   Progress bars are work in progress, so blue — never the default brand red. */
.area-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
@media (max-width: 720px) { .area-grid { grid-template-columns: 1fr; } }
.area-card { position: relative; display: flex; flex-direction: column; gap: .35rem; transition: border-color .2s ease, box-shadow .2s ease; }
.area-card:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.area-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.area-top h3 { margin: 0; font-size: 1.1rem; flex: 1; min-width: 0; }
.area-link { color: var(--text); text-decoration: none; }
.area-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* whole card clicks */
.area-art { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; object-fit: cover; }
.area-art.is-sign { border-radius: 0; object-fit: contain; padding: .15rem; }   /* a sign keeps its own shape */
.area-arrow { color: var(--muted); display: grid; } .area-arrow svg { width: 1.1rem; height: 1.1rem; }
.area-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.area-stat { display: flex; align-items: baseline; gap: .8rem; margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.area-stat span { flex: 1; min-width: 0; } .area-stat b { color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bar.area-bar { margin: .15rem 0 0; height: 8px; }
.bar.area-bar > i, .ch-row .bar > i, .ready-req .bar > i { background: var(--blue); }
.area-short { position: relative; z-index: 1; margin-top: .35rem; }   /* above the card-wide link */
.area-go { font: inherit; font-size: .88rem; font-weight: 650; color: var(--blue); background: none; border: 0; padding: .3rem 0;
  min-height: 24px; cursor: pointer; text-align: left; text-decoration: none; }
.area-go:hover { text-decoration: underline; }
.area-go:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.area-safety { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; color: var(--text); text-decoration: none; }
.area-safety > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.area-safety small { color: var(--muted); font-size: .85rem; }
.quick-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.quick-ic { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: var(--ok-bg); }
.quick-ic svg { width: 1.3rem; height: 1.3rem; }
.quick-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.quick-txt { flex: 1; min-width: 200px; } .quick-txt h3 { margin: 0; font-size: 1.05rem; } .quick-txt p { margin: .15rem 0 0; color: var(--muted); }
.hero-pass { color: var(--ok); }
.ov-list { display: grid; padding: .4rem 1rem; }
.ov-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; color: var(--text); text-decoration: none; }
.ov-row + .ov-row { border-top: 1px solid var(--border); }
.ov-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ov-top { display: flex; align-items: baseline; gap: .8rem; } .ov-top b { flex: 1; min-width: 0; }
.ov-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-body small { color: var(--muted); font-size: .82rem; }
.ov-row:hover .ov-top b { color: var(--blue); }
/* The readiness card on #/progress (readyCard) and in the landing demo. */
.prog-ready .prog-verdict { margin-bottom: .2rem; }
.prog-ready .prog-verdict h3 { margin: 0; font-size: 1.25rem; }
.prog-ready.is-ready { background-image: radial-gradient(120% 150% at 2% 0%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 72%), var(--surface-lift); border-color: color-mix(in srgb, var(--ok) 34%, var(--border)); }
.ready-reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem 1.2rem; margin: .8rem 0 1rem; }
.ready-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; font-size: .9rem; }
.ready-req .ready-lbl { color: var(--muted); font-weight: 600; } .ready-req b { font-variant-numeric: tabular-nums; }
.ready-req .bar { grid-column: 1 / -1; margin: .1rem 0 0; height: 8px; }
.ready-req.is-met .bar > i { background: var(--ok); }
.prog-ready .statgrid { grid-template-columns: repeat(4, 1fr); }
.prog-ready .stat-num { font-variant-numeric: normal; }
.prog-ready .stat-num small { font-size: .55em; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .ready-reqs, .prog-ready .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ready-reqs { grid-template-columns: 1fr; } }
.card-h { margin: 0 0 .6rem; font-size: 1.05rem; }
.prog-ready, .prog-block { margin-bottom: 1rem; }
.prog-weak { margin: 0 0 .8rem; }
/* #/progress's chapter-by-chapter rows. */
.ch-list { grid-column: 1 / -1; display: grid; border-top: 1px solid var(--border); padding-top: .6rem; }
.ch-head { margin: 0 0 .3rem; font-size: .95rem; }
.ch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .45rem 0; color: var(--text); text-decoration: none; font-size: .9rem; }
.ch-row + .ch-row { border-top: 1px solid var(--border); }
.ch-row:hover .ch-name { color: var(--blue); }
.ch-val { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 650; }
.ch-row .bar { grid-column: 1 / -1; margin: 0; height: 6px; }
.ch-row.is-locked { color: var(--muted); }
.ch-lock { display: inline-grid; } .ch-lock svg { width: .95rem; height: .95rem; }
/* #/progress (2026-10-18): verdict strip atop «Oversikt», the exam stat row, slim course/sign
   summaries with folded detail, slim Pass Protection rows, desktop pairs. Blue = in progress, green = done. */
.ov-list .prv { padding: .7rem 0 .8rem; border-bottom: 1px solid var(--border); }
.prv-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.prv-ico { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.prv-ico svg { width: 1rem; height: 1rem; }
.prv-title { font-size: 1.05rem; }
.prv-count { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }
.prv.is-ready .prv-ico { color: var(--ok-ink, var(--ok)); background: var(--ok-bg); }
.prv.is-ready .prv-title { color: var(--ok-ink, var(--ok)); }
.prv-rule { margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .prv-count { flex-basis: 100%; margin-left: 2.2rem; margin-top: -.3rem; } .pstats { padding: .8rem .8rem; } .pstat { padding: 0 .45rem; } }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1rem; padding: .8rem 1rem; }
.pstat { min-width: 0; padding: 0 .6rem; display: flex; flex-direction: column; }
.pstat dd:not(.pstat-chip) { order: -1; } .pstat-chip { margin: 0; } .pstat-chip .stat-chip { margin-top: .35rem; white-space: normal; } .pstat + .pstat { border-left: 1px solid var(--border); } .pstat:first-child { padding-left: 0; }
.pstat dt { color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.pstat dd { margin: 0 0 .1rem; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Phones: 2 × 2, so each change chip fits on one line. After the base rules, which it overrides. */
@media (max-width: 560px) { .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .9rem; } .pstat:nth-child(odd) { padding-left: 0; border-left: 0; } }
.psum { margin: 0; font-size: .92rem; color: var(--muted); } .psum b { color: var(--text); font-size: 1rem; }
.bar.psum-bar { margin: .5rem 0 0; height: 8px; } .bar.psum-bar > i { background: var(--blue); } .bar.psum-bar.is-done > i { background: var(--ok); }
.pnote { margin: .55rem 0 0; color: var(--muted); font-size: .8rem; }
.prog-sum .nav-row { margin-top: .7rem; }
/* Question-bank coverage + the next paper's mix (#/progress, #/exam/random intro). Every segment is also a
   legend line with its number, so colour is never the only channel. */
.qb-bar { display: flex; gap: 2px; height: 10px; margin: .6rem 0 0; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.qb-bar > i { display: block; height: 100%; min-width: 4px; transform-origin: left; animation: qb-grow var(--dur-slow) var(--ease-out) both; }
.qb-bar > i:nth-child(2) { animation-delay: 60ms; } .qb-bar > i:nth-child(3) { animation-delay: 120ms; }
@keyframes qb-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .qb-bar > i { animation: none; } }
.qb-new { background: var(--blue); } .qb-wrong { background: var(--amber); } .qb-known { background: var(--ok); }
.qb-unseen { background: transparent; } .qb-dot.qb-unseen { box-shadow: inset 0 0 0 1.5px var(--muted); }
.qb-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .55rem 0 0; padding: 0; font-size: .86rem; color: var(--muted); }
.qb-legend li { display: inline-flex; align-items: center; gap: .4rem; } .qb-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.qb-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.qbank.is-loading, .nextmix.is-loading { min-height: 5.2rem; }
.qbank-next { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.qbank-next-h { margin: 0; font-size: .9rem; font-weight: 600; }
.nextmix { margin: 1rem 0 .2rem; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.nextmix-h { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 700; }
.nextmix-h svg { width: 1.05rem; height: 1.05rem; color: var(--brand); }
.nextmix-foot { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
/* Free tier: the next paper the pass would build (progress.js freeNextPanel). */
.freenext-lead { margin: .45rem 0 .55rem; font-size: .9rem; line-height: 1.45; }
.freenext-seen { margin-left: auto; font-weight: 500; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.freenext .nav-row { margin: .7rem 0 0; }
.freenext.is-used { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.resprice .freenext { margin: 0; }
.pdet { margin-top: .8rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.pdet > summary { cursor: pointer; font-weight: 650; font-size: .9rem; min-height: 40px; display: flex; align-items: center; gap: .4rem; list-style: none; }
.pdet > summary::-webkit-details-marker { display: none; }
.pdet > summary::before { content: "▸"; color: var(--muted); transition: rotate .15s ease; }
.pdet[open] > summary::before { rotate: 90deg; }
.pdet > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.pdet .ch-list { border-top: 0; padding-top: 0; }
.pp-rows { list-style: none; margin: .6rem 0 0; padding: 0; }
.pp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .6rem; row-gap: .25rem; align-items: center; padding: .55rem 0; }
.pp-row + .pp-row { border-top: 1px solid var(--border); }
.pp-row-ico { display: flex; color: var(--muted); } .pp-row-ico svg { width: 1rem; height: 1rem; }
.pp-row-lbl { font-size: .88rem; font-weight: 650; }
.pp-row-val { font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pp-row .bar { grid-column: 2; margin: 0; height: 5px; } .pp-row .bar > i { background: var(--blue); }
.pp-row-state { grid-column: 3; text-align: right; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pp-row.is-met .pp-row-ico, .pp-row.is-met .pp-row-state { color: var(--ok-ink, var(--ok)); }
.pp-row.is-met .bar > i { background: var(--ok); }
.pp-row-note { margin-top: .7rem; }
.prog-foot { display: flex; justify-content: flex-end; margin-top: 2rem; } .prog-foot .linkbtn { min-height: 40px; padding: 0 .25rem; }
@media (min-width: 900px) {
  .prog-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; align-items: start; }
  .prog-pair .journey { grid-template-columns: 1fr; }
}
/* A stat tile's small change chip. */
.stat-chip { display: inline-block; margin-top: .4rem; padding: .12rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 750;
  font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.stat-chip.up { color: var(--ok); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.stat-chip.down { color: var(--bad); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
/* Topic skill meters: accuracy bar in its band colour, the 85 % exam standard as a tick. */
.skill-list { display: grid; gap: .15rem; padding: .6rem 1rem; }
.skill-row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) 6.5rem 4.5rem; align-items: center; gap: 1rem; padding: .55rem 0; }
.skill-row + .skill-row { border-top: 1px solid var(--border); }
.skill-name { font-weight: 650; color: var(--text); text-decoration: none; }
.skill-name:hover { color: var(--brand); }
.skill-meter { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: visible; }
.skill-meter > i { display: block; height: 100%; border-radius: inherit; background: var(--muted); transition: width .6s ease; }
.skill-meter > i.strong { background: var(--ok); } .skill-meter > i.solid { background: var(--amber); } .skill-meter > i.weak { background: var(--bad); }
.skill-mark { position: absolute; left: 85%; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--text); opacity: .55; }
.skill-val { display: grid; line-height: 1.15; font-variant-numeric: tabular-nums; }
.skill-val small { color: var(--muted); font-size: .74rem; }
.skill-val .muted { font-size: .82rem; }
.skill-ok { justify-self: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); }
.skill-ok svg { width: 1rem; height: 1rem; }
.skill-row .btn.small { justify-self: end; }
@media (max-width: 640px) {
  .skill-row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: .45rem; column-gap: .7rem; }
  .skill-meter { grid-column: 1 / -1; grid-row: 2; }
}

/* ===================================================== state panels (.statecard)
   One shape for every "nothing here yet" / "that broke" panel, generalised from what used to be
   `.onboard`. Before this there were five different treatments for the same job, and worse, a
   *failed* sessions fetch rendered in the same muted grey as the loading message it replaced, so an
   error was indistinguishable from a placeholder.
   Three tones, and the tone is never carried by colour alone: each ships its own icon, and the error
   tone is a live region so a screen reader is actually told. An empty state always offers the next
   action where one exists — a dead end with no way forward is the thing being fixed here. */
.statecard { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.statecard-ico {
  flex: none; width: 3rem; height: 3rem; border-radius: var(--r-md);
  background: var(--surface-2); display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: var(--hairline);
}
.statecard-body { flex: 1; min-width: 200px; }
.statecard-body p { margin: .2rem 0 0; }
.statecard-title { display: block; font-weight: 700; }
.statecard-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
/* error: a left rule + tinted icon well, so it reads as "something went wrong"
   before the sentence is read. Text stays on text tokens (never --bad as body
   copy) so contrast does not depend on the status hue. */
.statecard.is-error { border-left: 3px solid var(--bad); }
.statecard.is-error .statecard-ico { background: var(--bad-bg); }
.statecard.is-info { border-left: 3px solid var(--blue); }
/* Compact variant for a panel nested inside a card that already has a heading
   (the strengths/weaknesses columns) — no icon well, just the sentence. */
.statecard.is-compact { gap: .6rem; }
.statecard.is-compact .statecard-ico { width: 1.9rem; height: 1.9rem; font-size: 1rem; border-radius: var(--r-sm); }
.statecard.is-compact .statecard-body { font-size: .9rem; }
@media (max-width: 560px) {
  /* stack rather than let a 200px body and a full-width button fight for one row */
  .statecard { align-items: flex-start; }
  .statecard-actions, .statecard-actions .btn { width: 100%; justify-content: center; }
}

/* progress ring (SVG) */
.ring { display: block; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--brand); transition: stroke-dashoffset .6s cubic-bezier(.22,.61,.36,1); }
.ring-fg.good { stroke: var(--ok); } .ring-fg.mid { stroke: var(--amber); } .ring-fg.low { stroke: var(--bad); }
.ring-txt { fill: var(--text); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }

/* ============================================================ progress panel
   Charts follow one rule set: thin marks, hairline SOLID grid one step off the
   surface, 2px surface-coloured rings/gaps doing the separating, and status
   colour never carrying meaning alone. --amber measures 2.69:1 on the light
   surface (sub-3:1), so every band also ships its name as a word and every
   value is repeated in the history tables below — that is the relief channel,
   not an optional nicety. Text always wears text tokens, never a data colour. */

/* hero: one readiness figure + the KPI row, side by side.
   This panel is the emotional peak of the page — where a learner finds out whether they are ready —
   and it was rendering as the same white card as the raw history table five screens down. It carries
   a wash in the verdict's own colour and a slightly deeper elevation, so the answer registers before
   the sentence is read. The tint tops out at 10%: the panel holds normal-size body copy, and the
   backdrop under that copy is exactly what tools/ui-audit.mjs measures — a heavier wash buys
   atmosphere by spending contrast on the one figure the page exists to deliver. */
/* The exam-history action column: right-aligned, never wrapping mid-button. */
.hist-act { text-align: right; white-space: nowrap; }

/* A soft pool under the course and sign rings. */
.prog-hero-fig { display: grid; place-items: center; text-align: center; position: relative; }
.prog-hero-fig::before {
  content: ""; position: absolute; width: min(92%, 11rem); aspect-ratio: 1; border-radius: 50%;
  top: 4%; left: 50%; translate: -50% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 28%, color-mix(in srgb, var(--tone, var(--brand)) 40%, transparent) 52%, transparent 76%);
  filter: blur(12px);
}
/* No verdict on these rings, so the pool is small and faint. */
.prog-signsum .prog-hero-fig::before, .prog-course .prog-hero-fig::before {
  width: min(92%, 8rem);
  background: radial-gradient(circle, transparent 30%, color-mix(in srgb, var(--tone, var(--brand)) 18%, transparent) 54%, transparent 74%);
}
.prog-hero-fig > * { position: relative; z-index: 1; }
.prog-hero-fig small { color: var(--muted); font-size: .8rem; display: block; margin-top: .35rem; font-weight: 600; }
.prog-verdict { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
/* stat-tile values are large standalone numbers -> proportional figures, and a
   signed delta gets its direction colour (up is good here). */
.stat-delta { font-size: .78rem; font-weight: 700; margin-top: .1rem; }
.stat-delta.up { color: var(--ok-ink); } .stat-delta.down { color: var(--bad); }
.stat-delta.flat { color: var(--muted); }
.prog-signsum .stat-num { font-variant-numeric: normal; }
/* The hamburger breakpoint. Raised 860px -> 1300px on 2026-08-22, and it is a BUG FIX
   rather than a preference: with Norwegian labels the bar already ran past the viewport
   from 1180px down (measured 11px at 1180, 291px at 900) before the safety link was
   added, and `.view { overflow-x: clip }` meant the page did not even scroll to reveal
   it — the right-hand end was simply cut off. Eight nav items plus the account menu do
   not fit a laptop width in Norwegian, so the panel now takes over while there is still
   room for it. If you add a ninth item, re-measure rather than assume. */
@media (max-width: 1300px) {
  /* `wrap` stays as a safety net for the bar's own controls; the hamburger panel no
     longer needs it, since it is out of flow (see .mainnav below). */
  .topbar { flex-wrap: wrap; padding: .18rem .75rem; gap: .4rem .5rem; }
  /* Same height scrolled or not (owner 2026-10-11): motion.css's `body.scrolled` padding made the bar grow on scroll. */
  html body.scrolled .topbar { padding-top: .18rem; padding-bottom: .18rem; }
  /* 24px, not 0: this is a link on every route, and at `min-height: 0` it measured
     74x20 — under the WCAG 2.5.8 floor. It cannot regrow the bar, because the round
     controls below set the height at 2.25rem/36px. */
  .brand { min-height: 24px; }
  /* 29px, up from 26 at the owner's request (2026-08-30). Free of charge: the round
     controls below hold the bar at 2.25rem/36px, so anything under that cannot grow it —
     and a bar that changes height on boot is the CLS bug this file keeps warning about.
     36px is the ceiling; past it the mark starts setting the bar's height itself. */
  .brand img { height: 29px; }
  /* Squeeze the two round controls that would otherwise set the bar's height. */
  .nav-toggle, .topbar .theme-toggle { width: 2.25rem; height: 2.25rem; }
  /* Mobile toolbar order (left → right): brand | language | login | theme | hamburger */
  .brand { order: 1; }
  .langtoggle { order: 2; }
  .authnav { margin-left: 0; order: 3; }
  .theme-toggle { order: 4; }
  .nav-toggle { order: 5; display: inline-flex; margin-left: 0; }
  /* The open panel is a dropdown under the hamburger (2026-09-25, owner): only as wide as
     its longest row, and floating over the page rather than pushing it down. Anchored to
     the sticky .topbar; scrolls inside itself if a short screen cannot hold it. */
  .mainnav {
    display: none; position: absolute; z-index: 30;
    top: calc(100% + .35rem); right: max(.75rem, env(safe-area-inset-right));
    width: max-content; min-width: 13.5rem; max-width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; gap: .15rem; margin-left: 0; padding: .4rem; border: 1px solid var(--border);
    border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg);
  }
  .mainnav.open { display: flex; }
  /* The campaign bar sits above the topbar at scroll-top, so the panel starts ~2.5rem lower. */
  :root:not([data-studbar="off"]) body:has(.studbar) .mainnav { max-height: calc(100dvh - 7.5rem); }
  /* .6rem, so a row is exactly 44px (9.6 + 24.8 line + 9.6) — the touch-target floor
     this app holds itself to, and no taller. The rows carry a hover/active fill, so
     they read as one list at a 2.4px gap; the old 12px padding + 14.4px gap made
     seven links fill a phone screen and look like seven separate cards. */
  .mainnav a { padding: .6rem .8rem; border-radius: var(--r-sm); }
  .mainnav a::after { display: none; }
  .mainnav a.active, .mainnav a:hover { background: var(--surface-2); color: var(--text); }
  /* The account control stays in the bar at every width — it is now a single menu
     button, not a login link plus a sign-up button competing for room. */
  /* Theme toggle moves inside the hamburger menu on mobile; hide the desktop one. */
  .topbar > .theme-toggle { display: none; }
  /* A full-width menu row, so it overrides the round 2.25rem box above. */
  .mainnav .theme-toggle--mobile { display: inline-flex; width: 100%; height: auto; min-height: 44px; justify-content: flex-start; padding: .6rem .8rem; border-radius: var(--r-sm); background: transparent; border: none; color: var(--muted); font-weight: 600; gap: .5rem; }
  .mainnav .theme-toggle--mobile:hover { background: var(--surface-2); color: var(--text); }
  .mainnav .theme-toggle--mobile svg { width: 1.15rem; height: 1.15rem; flex: none; }
  /* Push the icon group (language | login | theme | hamburger) to the right — from the
     BRAND, not from whichever control happens to come first. Hanging the auto margin off
     the leading control breaks the moment that control is hidden at a narrower width,
     which is exactly what happened at ≤560px below. */
  .brand { margin-right: auto; }
  .langtoggle, .theme-toggle { margin-left: 0; }
  .view { padding: 1rem 1rem 3rem; }
  .hero { padding: 1.3rem 0; }   /* sides 0: .view has the gutter; the card is gone */
  .hero-split { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn.big { width: 100%; justify-content: center; }
  .hero-pills { gap: .4rem; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 1rem; }
  .dash { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar { padding: .11rem .6rem; gap: .35rem .4rem; }   /* 2-3 % lower bar (owner 2026-10-11) */
  html body.scrolled .topbar { padding-top: .11rem; padding-bottom: .11rem; }   /* motion.css's scrolled padding grew it */
  .brand { min-height: 24px; }   /* same floor as above — the mark alone is still under it */
  /* 25px, up from 20 at the owner's request (2026-08-30). Same headroom as the tablet
     size above: the 36px round controls still set the bar's height. */
  .brand img { height: 25px; }
  .hero h1 { font-size: calc(var(--fs-h1) - .15rem); }
  /* Wrapping row, not a column: as opaque chips (they were translucent scrims on the old red
     card) three full-width bars read as three more buttons under the two real ones. */
  .hero-pills { justify-content: center; }
  .statgrid { grid-template-columns: 1fr; }
  .btn { min-height: 44px; }
  /* The iOS 16px no-zoom rule for inputs/selects is at the end of this file: here it lost to the
     later base `.select { font: inherit }`. */
}

/* trend chart */
.chartwrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; }                  /* hairline, solid */
.chart-axis-txt { fill: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-target { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; }  /* a target, not a gridline */
.chart-target-txt { fill: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart-area { fill: var(--blue); opacity: .10; }                          /* a wash, never a block */
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* 2px surface ring. pointer-events:none matters — the dot paints *over* its own
   hit circle, so without this it swallows the pointer and hovering the dot
   itself (the obvious target) did nothing while only the ring around it worked. */
.chart-dot { stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.chart-dot.pass { fill: var(--ok); } .chart-dot.fail { fill: var(--bad); }
.chart-endlabel { fill: var(--text); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-hit { fill: transparent; cursor: pointer; outline: none; }         /* ~28px hit target */
.chart-hit:focus-visible + .chart-dot, .chart-hit:hover + .chart-dot { stroke: var(--text); }
.charttip {
  position: absolute; transform: translate(-50%, -125%); pointer-events: none; opacity: 0;
  transition: opacity .12s ease; background: var(--text); color: var(--bg);
  padding: .4rem .6rem; border-radius: var(--r-sm); font-size: .78rem; font-weight: 650;
  white-space: nowrap; z-index: 5; box-shadow: var(--shadow);
}
.charttip.on { opacity: 1; }
.charttip b { font-variant-numeric: tabular-nums; }
/* The SVG scales with its container, and so does text sized in viewBox units —
   at ~430px the 11px axis text renders near 6px. Bump the viewBox font sizes so
   the on-screen size stays put, and drop the interior date labels (which would
   collide at the larger size) in CSS, so a resize needs no re-render. */
@media (max-width: 720px) {
  .chart--wide .chart-axis-txt { font-size: 16px; }
  .chart--wide .chart-target-txt { font-size: 15px; }
  .chart--wide .chart-endlabel { font-size: 17px; }
  .chart-axis-txt.x-mid { display: none; }
}
/* Two SVGs, one per width (trendChart): a 720-wide viewBox scaled into a phone set its
   11px labels at ~5px. The narrow one is drawn at 360 and renders near 1:1. */
.chartwrap.chart--narrow { display: none; }
.chart--narrow .chart-axis-txt { font-size: 12px; }
.chart--narrow .chart-endlabel { font-size: 13px; }
@media (max-width: 560px) {
  .chartwrap.chart--wide { display: none; }
  .chartwrap.chart--narrow { display: block; }
}
.chart-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .8rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
/* Lead left, legend right, on one row above the plot; they stack when there is no room. */
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.2rem; margin-bottom: .6rem; }
.chart-head .sw-sub { margin: 0; }
.chart-head .chart-legend { margin-top: 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: .38rem; }
.lg-key { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lg-key.pass { background: var(--ok); } .lg-key.fail { background: var(--bad); }
.lg-key.target { width: 16px; height: 0; border-top: 2px dashed var(--amber); border-radius: 0; }

.sw-sub { color: var(--muted); font-size: .82rem; margin: .25rem 0 .9rem; }
.sw-list { display: grid; gap: .8rem; }
.sw-item { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; align-items: baseline; }
.sw-name { font-weight: 650; font-size: .92rem; }
.sw-val { font-variant-numeric: tabular-nums; font-weight: 750; font-size: .92rem; }
.sw-sub:first-child { margin-top: 0; }   /* opening line of a card carries no top margin */
.sw-meta { color: var(--muted); font-size: .76rem; grid-column: 1 / -1; }
.sw-item .bar { grid-column: 1 / -1; margin: .15rem 0 0; }

/* banded topic table: bar + the band as a WORD (colour is never the only cue) */
.tbl.mastery td { padding: .6rem 0; vertical-align: middle; }
/* 24px tall (WCAG 2.5.8 — it was 21px of bare text), and the underline is kept
   but dialled back to 35% ink: seven of these stack in one column, and at full
   strength they read as a ladder of rules rather than a list of topics. Kept
   rather than removed because the link wears the body text colour, so the
   underline is the only thing distinguishing it from plain text (WCAG 1.4.1).
   Hover/focus restores it to full ink. */
.tbl.mastery .m-name {
  font-weight: 650; display: inline-flex; align-items: center; min-height: 24px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
.tbl.mastery .m-name:hover, .tbl.mastery .m-name:focus-visible { text-decoration-color: currentColor; }
.tbl.mastery .bar { margin: .35rem 1.2rem 0 0; }
.tbl.mastery td.m-band { text-align: right; white-space: nowrap; }
.tbl.mastery td.m-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.tbl.mastery .m-sub { color: var(--muted); font-weight: 500; font-size: .78rem; }
/* NB: `.mband`, not `.band` — `.band` WAS the landing page's stats strip (removed
   2026-09-22), and the two were never the same thing
   (display:grid), which silently stretched this pill across its whole cell. */
.mband {
  display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem;
  border-radius: var(--r-pill); font-size: .74rem; font-weight: 750; border: 1px solid;
}
.mband.strong { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-bg); }
.mband.weak { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-bg); }
/* light-mode amber is sub-3:1, so "solid" leans on the word + a darker ink step
   than the bar fill it labels. */
.mband.solid { color: #8a5400; border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
:root[data-theme="dark"] .mband.solid { color: var(--amber); }
/* bar fills: 4px rounded data-end, square at the baseline it grows from */
.bar > i.strong { background: var(--ok); } .bar > i.solid { background: var(--amber); } .bar > i.weak { background: var(--bad); }
.bar > i { border-radius: 0 var(--r-xs) var(--r-xs) 0; }

/* sign-practice summary */
.prog-signsum { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 560px) { .prog-signsum { grid-template-columns: 1fr; } }
/* Phones: the sign and course tiles as ONE compact row of three (stacked they were three
   full-width tiles each), and the history dates on one short line. */
@media (max-width: 560px) {
  .prog-signsum .statgrid, .prog-course .statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .prog-signsum .stat, .prog-course .stat { padding: .6rem .55rem; }
  .prog-signsum .stat-num, .prog-course .stat-num { font-size: 1.2rem; }
}
.tbl.hist .d-short { display: none; }
@media (max-width: 560px) {
  .tbl.hist .d-long { display: none; }
  .tbl.hist .d-short { display: inline; white-space: nowrap; font-variant-numeric: tabular-nums; }
}
/* Phones: an exam row is two short lines — date + the small "practise the mistakes" button,
   then score + result. Flex-wrap, not a grid: a long button wraps instead of overlapping. */
@media (max-width: 560px) {
  .tbl.hist-exams tr { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; border-bottom: 1px solid var(--border); padding: .45rem 0; }
  .tbl.hist-exams tr::after { content: ""; order: 2; flex-basis: 100%; }
  .tbl.hist-exams tr:last-child { border-bottom: 0; }
  .tbl.hist-exams td { border-bottom: 0; padding: .1rem 0; }
  .tbl.hist-exams td:nth-child(1) { order: 0; color: var(--muted); font-size: .82rem; }
  .tbl.hist-exams td:nth-child(2) { order: 3; }
  .tbl.hist-exams td:nth-child(3) { order: 4; }
  .tbl.hist-exams td.hist-act { order: 1; margin-left: auto; }
  .tbl.hist-exams td.hist-act:empty { display: none; }
  .tbl.hist-exams td.hist-act .btn { min-height: 40px; padding: .25rem .65rem; font-size: .8rem; }
  .tbl.hist-exams .thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* Long histories: the newest few, then "Show all" (progress() wires the toggle). */
.card:not(.is-open) .tbl.hist tr.is-more { display: none; }
.hist-more { margin-top: .8rem; }

/* theory-course summary — same ring-plus-stats shape as the sign summary above, so
   the two read as siblings rather than as two different kinds of panel. */
.prog-course { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 560px) { .prog-course { grid-template-columns: 1fr; } }
.prog-course .stat-num small { font-size: .55em; font-weight: 700; color: var(--muted); }
.prog-course .nav-row { margin-top: .9rem; }

/* Pass Protection eligibility checklist (#/pass-protection states the guarantee). */
.prog-pp .pp-summary { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin: .2rem 0 1rem; }
.prog-pp .pp-summary svg { width: 1.1rem; height: 1.1rem; flex: none; }
.prog-pp .pp-summary.is-met { color: var(--ok-ink, var(--ok)); }
.pp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.pp-req {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
}
/* Met state is a tick, a word and a tint — never the tint alone, same rule the
   mastery bands follow (see the progress-dashboard notes in ARCHITECTURE.md). */
.pp-req.is-met { border-color: color-mix(in srgb, var(--ok) 32%, var(--border)); background: var(--ok-bg); }
.pp-req-ico { color: var(--muted); display: flex; }
.pp-req-ico svg { width: 1.15rem; height: 1.15rem; }
.pp-req.is-met .pp-req-ico { color: var(--ok-ink, var(--ok)); }
.pp-req-txt { display: grid; gap: .25rem; min-width: 0; }
.pp-req-txt b { font-size: .92rem; font-weight: 700; }
.pp-req .bar { margin: 0; height: 6px; }
/* Work still in progress is blue (the chart line's colour); red on #/progress means a failed
   exam or a weak topic, and a red bar at "11 av 30" read as a failure. */
.pp-req .bar > i, .bar.jr-badge-bar > i { background: var(--blue); }   /* beats the later .bar > i */
.pp-req.is-met .bar > i { background: var(--ok); }
.pp-req-val { text-align: right; font-variant-numeric: tabular-nums; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.pp-req-state { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pp-req.is-met .pp-req-state { color: var(--ok-ink, var(--ok)); }
.pp-note { color: var(--muted); font-size: .84rem; margin: 1rem 0 0; }
@media (max-width: 520px) {
  .pp-req { grid-template-columns: auto 1fr; }
  .pp-req-val { grid-column: 2; text-align: left; }
}

/* ================================================== the journey (streak + milestones)
   Built by journeySection() in main.js over app/journey.js. Sits under the readiness hero: that panel
   answers "am I ready", this one answers "how far have I come", and both come before the diagnosis.

   MOTION: only the milestone bars move, and only because motion.js's fillBars() already grows every
   `.bar > i` from zero — a shape, not a number. There is deliberately no count-up on the streak
   figure and no flame pulse: `#/progress` is a learning surface in the motion table
   (docs/frontend.md), where nothing may loop while it is being read.

   TONE IS NEVER COLOUR ALONE: an earned badge says so in words next to the gold, an unearned one
   states its own shortfall ("3 av 10"), and the day ribbon is one role="img" carrying the count —
   fourteen bare dots announce nothing to a screen reader, and labelling each would announce too much. */
/* `stretch`, so the two cards share a baseline and a bottom edge — at `start` the streak card is
   roughly half the height of the milestone grid beside it and the pair reads as one card plus a
   leftover. The streak card then distributes its own rows to fill (`space-between` below), which is
   also what pushes the day ribbon down to sit against the footnote. */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem; align-items: stretch; }

/* --- streak card ---
   The warm wash is keyed to the LIVE state: a dead streak gets the plain card surface, so "you have a
   run going" is visible before a word is read — and the number plus `jr.noStreak` still say it
   outright for anyone who can't use the colour.
   Flex column, not a two-column grid: the flame has to stay locked beside the number, and in a grid
   the `span 2` cell that achieved that drifted downward as soon as the card was stretched to match
   the milestone panel, leaving the icon floating under its own figure with a hole above it. A column
   with one `margin-top: auto` on the ribbon pins the top and bottom groups independently. */
.jr-streak { display: flex; flex-direction: column; gap: .35rem; }
.jr-streak-top { display: flex; align-items: center; gap: .9rem; }
.jr-streak.is-live {
  background-image: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--amber) 13%, transparent), transparent 62%), var(--surface-lift);
  border-color: color-mix(in srgb, var(--amber) 32%, var(--border));
}
.jr-flame {
  flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface-2); box-shadow: var(--hairline);
}
.jr-flame svg { width: 1.3rem; height: 1.3rem; }
.jr-streak.is-live .jr-flame { color: var(--gold-ink); background: var(--gold-bg); }
.jr-streak-body { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
/* tabular figures: the number changes daily in place, and proportional digits
   make it jump sideways as it goes 9 -> 10 */
.jr-streak-num { font-size: 1.7rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.jr-streak-label { color: var(--muted); font-size: .85rem; font-weight: 650; }
.jr-streak-note { margin: 0; }
.jr-streak-what { margin: .1rem 0 0; color: var(--muted); font-size: .74rem; }
/* --- the 14-day ribbon --- */
/* The strip GROWS to absorb whatever height the milestone panel beside it
   imposes (`flex: 1`, clamped) instead of sitting as a hairline with a hole
   above it. That is also the better drawing: fourteen full-height columns read
   as a fortnight of practice at a glance, where a 6px line read as a decorative
   rule. Clamped at both ends so it is neither a sliver on a short card nor a
   banner on a tall one. */
.jr-days { display: flex; align-items: stretch; gap: .28rem; flex: 1 1 auto; min-height: 1.6rem; max-height: 2.6rem; margin-top: .5rem; }
.jr-day {
  flex: 1; border-radius: var(--r-xs);
  background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(16,24,40,.10);
}
.jr-day.is-on { background-image: linear-gradient(180deg, color-mix(in srgb, var(--blue) 72%, #fff), var(--blue)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
/* Today reads as the open end of the run rather than as one more filled cell.
   An outline, not a pulse — this panel is read for minutes at a time. */
.jr-day.is-today { outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; }

/* --- milestones --- */
.jr-miles-head { font-size: .95rem; margin: 0 0 .5rem; }
.jr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.jr-badge {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center;
  padding: .4rem .55rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); box-shadow: var(--hairline);
}
.jr-badge-ico {
  grid-row: span 2; width: 1.7rem; height: 1.7rem; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
}
.jr-badge-ico svg { width: .95rem; height: .95rem; }
.jr-badge-name { font-weight: 650; font-size: .86rem; line-height: 1.25; align-self: end; }
.jr-badge-state { color: var(--muted); font-size: .74rem; font-weight: 600; align-self: start; font-variant-numeric: tabular-nums; }
.jr-badge-bar { grid-column: 2; height: 4px; margin: .25rem 0 0; }
/* Earned: gold ink on a gold well, plus the word "Oppnådd" — the treatment and
   the label always ship together, per the bands rule. */
.jr-badge.is-earned { border-color: color-mix(in srgb, var(--amber) 42%, var(--border)); background: color-mix(in srgb, var(--amber) 9%, var(--surface)); }
.jr-badge.is-earned .jr-badge-ico { color: var(--gold-ink); background: var(--gold-bg); border-color: color-mix(in srgb, var(--amber) 38%, var(--border)); }
.jr-badge.is-earned .jr-badge-state { color: var(--gold-ink); }

@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  /* Two badge columns at 390px leave ~150px for a name like "Alle temaer over
     kravet", which wraps to four lines and makes the tiles ragged. */
  .jr-list { grid-template-columns: 1fr; gap: 0; }
  /* phones: compact rows split by hairlines, not a stack of boxes */
  .jr-badge, .jr-badge.is-earned { border: 0; border-radius: 0; background: none; box-shadow: none; padding: .45rem 0; }
  .jr-badge + .jr-badge { border-top: 1px solid var(--border); }
}

/* legacy tile (kept for any other callers) */
.tile { display: flex; align-items: center; gap: .8rem; text-decoration: none; padding: .9rem; }
.tile h3 { color: var(--brand); }
.tile p { color: var(--muted); margin: 0; font-size: .92rem; }
.tile-ico { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
/* The same 48px disc, but drawn rather than photographed — for a #/dev tile that has
   an icon instead of a chapter image. object-fit does nothing for an inline SVG. */
.tile-ico-svg { display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.tile-ico-svg svg { width: 1.5rem; height: 1.5rem; }
.tile-body { min-width: 0; flex: 1; }

.chip-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .15rem .5rem; border-radius: var(--r-pill); white-space: nowrap; }  /* a pill that wraps to two lines is two pills (seen: IKKE BESTÅTT in the mobile history table) */
/* --gold-ink, not --amber: this is the badge that tells a free account a section costs
   money, so it is text and has to be readable. Raw --amber measured 2.36:1 here — the
   same failure --gold-ink was introduced for (see the token comment above). */
.chip-tag.paid { color: var(--gold-ink); background: var(--gold-bg); }
.chip-tag.free { color: var(--muted); background: var(--surface-2); }
.chip-tag.active { color: var(--ok); background: var(--ok-bg); }
/* Pass/fail in the history tables. They were bare coloured text (`.tag-ok`/`.tag-bad` on the
   <td>); as chips they read at a glance down a column and match every other status tag here. */
.chip-tag.ok { color: var(--ok); background: var(--ok-bg); }
.chip-tag.bad { color: var(--bad); background: var(--bad-bg); }

/* exam runner */
.exam-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; padding: .3rem .7rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
/* Under five minutes. A static state change, not a pulse — it has to hold for the
   whole five minutes, so it is built to be unmissable at a glance and then ignorable
   while you read: filled background + the bad border + heavier digits. */
.timer.warn { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); font-weight: 800; }
.progress { color: var(--muted); font-weight: 600; }
.spacer { margin-left: auto; }
/* the demo-exam nudge that sits between the progress bar and the question card */
.exam-demonote { margin: 0 0 1rem; }
/* One row on every width: ✕ quit, clock, progress, hand-in pushed to the far right. */
.exam-head.is-exam { flex-wrap: nowrap; gap: .6rem; }
.exam-quit { padding: .5rem; flex: none; }
.exam-prog { display: flex; flex-wrap: wrap; column-gap: .7rem; min-width: 0; flex: 1 1 auto; }
.exam-submit { margin-left: auto; flex: none; }
/* Previous / next are arrows either side of a wide "check answer". */
.exam-nav { flex-wrap: nowrap; }
.exam-nav > :not(.exam-arrow) { flex: 1 1 auto; }
.exam-arrow { flex: none; width: 3.1rem; padding-left: 0; padding-right: 0; }
.exam-arrow svg { width: 1.35em; height: 1.35em; }
/* Desktop: bigger arrows at the row's ends, a compact centred "check" instead of a full-width bar. */
@media (min-width: 561px) {
  .exam-nav { justify-content: space-between; }
  .exam-arrow { width: 3.6rem; min-height: 3rem; }
  .exam-arrow svg { width: 1.5em; height: 1.5em; }
  .exam-nav > .exam-check { flex: 0 1 15rem; padding: .5rem 1rem; font-size: .95rem; }
}
/* Topic on one line, difficulty · ID tight underneath. */
.qmeta-txt { display: flex; flex-direction: column; gap: .05rem; line-height: 1.25; min-width: 0; }
/* Keyboard hints are for keyboards: a phone has none to press. */
@media (hover: none) and (pointer: coarse) { #view .kbdhint { display: none; } }
@media (max-width: 560px) {
  .exam-demonote { line-height: 1.32; }
  #view .kbdhint { display: none; }
  .exam-head.is-exam { gap: .45rem; }
  .exam-head.is-exam .timer { font-size: 1rem; padding: .25rem .55rem; }
  .exam-prog { flex-direction: column; row-gap: 0; }
  .exam-prog .progress { font-size: .78rem; line-height: 1.3; white-space: nowrap; }
  .exam-submit { padding: .55rem .85rem; }
  /* Previous · Check · Next share one row instead of wrapping Next underneath. */
  .exam-nav { flex-wrap: nowrap; gap: .4rem; }
  .exam-nav > :not(.exam-arrow) { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
  .exam-nav .lockednote { font-size: .8rem; text-align: center; justify-content: center; }
  /* The answers get the width: less card and box padding, a smaller letter badge. */
  .qcard { padding: 1rem .8rem; }
  .qcard .options { gap: .55rem; }
  .qcard .opt { padding: .7rem .65rem; gap: .55rem; }
  .qcard .opt .key { width: 1.55rem; height: 1.55rem; font-size: .8rem; }
}
/* Phones: the question numbers become a one-row tape of circles above the card (as in the
   app), scrolled sideways. Flex order moves it; the markup — and desktop's grid — stay put. */
@media (max-width: 560px) {
  #view:has(> .exam-head.is-exam) { display: flex; flex-direction: column; }
  #view > .exam-tape { order: 1; }
  #view:has(> .exam-head.is-exam) > .qcard { order: 2; }
  .qgrid.exam-tape {
    position: relative; display: flex; gap: .4rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 0 .8rem; padding: .3rem .2rem .4rem; min-width: 0;
  }
  .qgrid.exam-tape::-webkit-scrollbar { display: none; }
  .qgrid.exam-tape button { flex: none; width: 2.3rem; height: 2.3rem; aspect-ratio: auto; border-radius: 50%; }
}
@media (max-width: 360px) {
  .exam-head.is-exam { gap: .35rem; }
  .exam-quit { padding: .4rem; }
  .exam-head.is-exam .timer { padding: .2rem .4rem; }
  .exam-submit { padding: .5rem .6rem; font-size: .9rem; }
  .exam-prog { overflow: hidden; }
  .exam-prog .progress { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
}
/* Track is a groove (inset), fill is a lit ribbon (inset highlight) — so the two
   read as different depths rather than as two stripes. No outer glow on the
   fill: `overflow: hidden` is what keeps the ribbon inside the rounded track,
   and it clips any outward shadow anyway. The `width` transition stays the only
   motion here — see the no-loops-while-reading rule in docs/frontend.md. */
.pbar { height: 7px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(16,24,40,.10); overflow: hidden; margin-bottom: 1.1rem; }
.pbar > i { display: block; height: 100%; background: var(--grad); border-radius: var(--r-pill); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); transition: width .35s var(--ease-out); }

/* pan-y keeps vertical scroll native while our JS owns the horizontal axis for
   swipe-to-navigate — the browser never fights the gesture. */
.qcard { margin-bottom: 1rem; touch-action: pan-y; }
.qmeta { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
/* The exam runner's flag toggle, inline in the meta row. Quiet until on; on = the
   gold pair (--amber alone cannot carry ink — see the token's comment). */
.qflag {
  display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; vertical-align: middle;
  background: none; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: .12rem .55rem; font: inherit; font-size: .74rem; font-weight: 700;
  text-transform: inherit; letter-spacing: inherit; color: var(--muted); cursor: pointer;
}
.qflag svg { width: .95em; height: .95em; }
.qflag:hover { color: var(--text); border-color: var(--border); }
/* The house press idiom — every pressable answers the finger. */
.qflag { transition: transform .1s ease; }
.qflag:active { transform: scale(.94); }
.qflag.is-on { color: var(--gold-ink); background: var(--gold-bg); border-color: color-mix(in srgb, var(--gold-ink) 30%, transparent); }
/* The question is the one thing on screen that must be read carefully, so it gets
   its own leading rather than the body's 1.55 — tighter than body copy binds the
   two or three lines into a single sentence instead of a stack. */
.qtext { font-size: 1.2rem; font-weight: 650; line-height: 1.42; margin-bottom: 1.1rem; }
/* Gap sits a touch above the options' own inner padding so four answers read as
   four separate targets rather than one striped block. `flex-start` keeps the A/B/C
   badge beside the FIRST line of a wrapping answer instead of drifting to the
   vertical middle of a three-line block, where it stops looking like its label. */
.options { display: grid; gap: .7rem; }
.opt {
  display: flex; gap: .7rem; align-items: flex-start; text-align: left;
  padding: .85rem .9rem; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; font: inherit; color: inherit; width: 100%;
  box-shadow: var(--hairline), var(--e1);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .06s ease;
}
/* Elevation, not a wash: this is a learning surface, so an option gets the
   depth that says "tappable" and nothing that says "look at me". Press
   COLLAPSES the shadow as the option drops the 1px — the two together are what
   make it feel like a physical key rather than a rectangle changing colour.
   All three states stay at .14s/.06s: 45 questions x 4 options is not a place
   to spend the 2s ceiling. */
.opt:hover { border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.opt:active { transform: translateY(1px); box-shadow: var(--hairline), var(--e1); }
/* Selected is the one option the eye must find again after scrolling past it,
   so it carries a brand-tinted halo on top of the border colour it already had. */
.opt.selected { box-shadow: var(--hairline), 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent), var(--e1); }
.opt .key { flex: none; width: 1.75rem; height: 1.75rem; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; transition: background .14s ease, color .14s ease; }
.opt.selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.opt.selected .key { background: var(--brand); color: #fff; }
/* The answered states keep the same halo shape the selected state used, in the
   status colour — so revealing the answer re-colours a ring that is already
   there instead of introducing a new object. `m-glow-ok` in motion.css swells
   THIS ring rather than declaring its own box-shadow, which is why its
   keyframes repeat these layers: an animation that set `box-shadow` alone would
   drop the hairline and the elevation for the 0.9s it ran, flattening the
   option at the exact moment it is supposed to feel resolved. */
.opt.correct { border-color: var(--ok); background: var(--ok-bg); box-shadow: var(--hairline), 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent), var(--e1); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); box-shadow: var(--hairline), 0 0 0 3px color-mix(in srgb, var(--bad) 16%, transparent), var(--e1); }
.opt.correct .key { background: var(--ok); color: #fff; }
.opt.wrong .key { background: var(--bad); color: #fff; }

.nav-row { display: flex; gap: .6rem; margin-top: 1rem; align-items: center; flex-wrap: wrap; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr)); gap: .4rem; margin-top: 1rem; }
.qgrid button { aspect-ratio: 1; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); font-weight: 600; cursor: pointer; color: var(--muted); transition: transform .1s ease; }
.qgrid button:hover { transform: scale(1.08); }
.qgrid button.answered { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
/* A checked cell reports the OUTCOME. This was `border-color: var(--ok)` for EVERY checked
   cell, right or wrong — the same green the options use for "correct" — so a wrong answer
   showed green in the pager while the card beside it said "Feil". Colour is not the only
   channel, for the same reason as the review grid below: the ✓/✕ sits in the bottom corner,
   opposite the flag dot so the two never collide. */
.qgrid button.checked.ok { border-color: var(--ok); color: var(--ok); }
.qgrid button.checked.bad { border-color: var(--bad); color: var(--bad); }
.qgrid button.checked > i {
  position: absolute; bottom: 0; right: .18rem; font-size: .58rem; font-style: normal;
  font-weight: 800; line-height: 1;
}
/* Mark-for-review: an amber corner dot — "you marked this", readable at a glance over
   45 cells and still visible when answered/checked recolour the cell. Gold-ink, not
   bare --amber, for the same sub-3:1 reason the earned badges use it. Static: this is
   a learning surface, so the mark lights up, it never pulses. */
.qgrid button { position: relative; }
.qgrid button.flagged::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold-ink);
}
.qgrid button.current { outline: 2px solid var(--brand); outline-offset: 1px; }
/* The preview's unserved questions: visibly there, opening the sign-up gate on tap. */
.qgrid button.locked { border-style: dashed; background: transparent; color: var(--muted); box-shadow: none; }

/* review pager on the result screen (drawReview() in main.js) --------------------
   The grid is the exam runner's `.qgrid`, re-coloured: this one reports an outcome
   rather than progress, so it carries ✓/✕ as well as green/red — a 2.2rem cell of
   colour with a numeral in it would make colour the only channel, and the numeral is
   the one thing that cannot change. `.current` keeps the runner's brand outline, which
   reads over either fill. */
.qgrid.rev button { position: relative; }
.qgrid.rev button > i {
  position: absolute; top: 0; right: .18rem; font-size: .58rem; font-style: normal;
  font-weight: 800; line-height: 1;
}
.qgrid.rev button.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.qgrid.rev button.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.revpick .qgrid { margin-top: 0; }
.revnav { justify-content: center; }
.revcount { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; min-width: 8ch; text-align: center; }
.revhint { justify-content: center; }
/* --dur-quick, not the reveal's .65s: this fires on every arrow press. */
.has-motion .revcard { animation: revcard-in .14s var(--ease-out) both; }
@keyframes revcard-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .has-motion .revcard { animation: none; } }

.explain { margin-top: .9rem; padding: .85rem .95rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; }
.explain .src { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
/* "Read the theory" under an explanation — the missed-question half of the
   read↔practice bridge (readUpLink in main.js). Inherits the text colour and takes
   an underline for affordance, same idiom as .linkbtn: --blue only clears the 3:1
   graphics floor, not the 4.5:1 this small text needs. */
.readup {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem;
  font-size: .85rem; font-weight: 600; color: inherit; min-height: 24px;
  text-decoration: underline; text-underline-offset: 2px;
}
.readup:hover { color: var(--brand-on-white); }
.readup svg { width: 1em; height: 1em; flex: none; }
.tag-ok { color: var(--ok); font-weight: 700; }
.tag-bad { color: var(--bad); font-weight: 700; }
.lockednote { display: inline-flex; align-items: center; gap: .35rem; color: var(--ok); font-weight: 650; font-size: .88rem; }
.lockednote svg { width: 1.05em; height: 1.05em; }
.kbdhint { color: var(--muted); font-size: .8rem; margin-top: .8rem; display: flex; gap: .8rem; flex-wrap: wrap; }
kbd { font: inherit; font-size: .75rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--r-xs); padding: .05rem .4rem; }

/* results */
.result-hero { text-align: center; padding: 2rem 1rem; }
.result-hero.pass { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 10%, var(--surface)), var(--surface)); }
.result-hero.fail { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 10%, var(--surface)), var(--surface)); }
.verdict { font-size: 1.9rem; font-weight: 800; margin-top: .8rem; }
.verdict.pass { color: var(--ok); }
.verdict.fail { color: var(--bad); }
/* Next step, on the exam result (nextStepCard() in main.js). Deliberately built from
   the progress dashboard's own parts — `.sw-item`, `.bar` + band fill, `.sw-sub` — so one
   exam's verdict reads in the same language as the lifetime view instead of inventing a
   second vocabulary for "weak". Sits directly under the hero, above the seven-row table
   it summarises. */
.nextstep { display: grid; gap: 1rem; }
.ns-head { display: flex; align-items: flex-start; gap: .7rem; }
.ns-head b { display: block; font-size: 1.05rem; }
.ns-head .sw-sub { margin: .15rem 0 0; }
.ns-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.ns-ic svg { width: 19px; height: 19px; }
/* Status colour, and never only colour: the icon differs too (a tick when passed, a
   target when not) and the heading states the gap in words. */
.ns-ic.pass { background: var(--ok-bg); color: var(--ok); }
.ns-ic.fail { background: var(--bad-bg); color: var(--bad); }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem 1.4rem; }
.ns-lbl { font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.ns-note { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.nextstep .nav-row { margin: 0; }
.resprice { display: grid; gap: .75rem; border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.rp-title { font-size: 1.05rem; }
.rp-lead { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.rp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.rp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .6rem; }
.rp-amt { font-size: 1.7rem; font-weight: 850; letter-spacing: -.01em; }
.rp-dur { color: var(--muted); font-size: .85rem; }
.rp-pp { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ok); }
.rp-pp svg { width: 1.05em; height: 1.05em; flex: none; }
.rp-pp span { color: var(--text); }
.resprice .nav-row { margin: 0; }
/* Phones: the two buttons share one row (owner, 2026-11-20); the primary takes the spare width. */
@media (max-width: 560px) {
  .intro-actions, .resprice .nav-row { flex-wrap: nowrap; gap: .5rem; }
  .intro-actions > .btn, .resprice .nav-row > .btn { min-width: 0; padding-inline: .8rem; font-size: .95rem; white-space: nowrap; justify-content: center; }
  .intro-actions > .btn:not(.primary) { flex: 0 1 auto; }
  .intro-actions > .btn.primary, .resprice .nav-row > .btn { flex: 1 1 auto; }
  .intro-actions > .btn.big { padding-block: .7rem; }
}
.rp-student { font-size: .85rem; font-weight: 650; color: var(--brand); justify-self: start; }

/* a heading that opens a new block further down a view (result: per-topic, review) */
.view-h2 { margin-top: 1.75rem; }
.bar { height: 10px; border-radius: var(--r-xs); background: var(--surface-2); overflow: hidden; margin: .3rem 0; }
.bar > i { display: block; height: 100%; background: var(--brand); transition: width .5s ease; }
/* Tables (2026-09-14 pass). Numerals line up (tabular-nums on the whole table, not just the last
   column), rows get side padding so the hover wash does not butt the text against the card edge,
   and the header carries a firmer rule than the rows beneath it. The hover is data rows only —
   `:not(.thead)` — because a header that lights up promises a sort that does not exist. */
.tbl { width: 100%; border-collapse: collapse; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.tbl td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:last-child { text-align: right; color: var(--muted); }
.tbl tr:not(.thead):hover td { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.tbl tr:not(.thead):hover td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.tbl tr:not(.thead):hover td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* signs */
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.chip { padding: .4rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; font-size: .85rem; color: var(--muted); box-shadow: var(--hairline), var(--e1); transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .06s ease; }
.chip:hover { border-color: var(--muted); color: var(--text); box-shadow: var(--hairline), var(--e2); }
.chip:active { transform: translateY(1px); box-shadow: var(--hairline), var(--e1); }
.chip.active { background-color: var(--grad-solid); background-image: var(--grad-ui); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 12px -3px color-mix(in srgb, var(--brand) 40%, transparent); }
.searchbar { position: relative; margin-bottom: 1rem; }
.searchbar svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--muted); pointer-events: none; }
.searchbar input { width: 100%; font: inherit; padding: .7rem .9rem .7rem 2.4rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.searchbar input:focus { outline: 2px solid var(--brand); border-color: transparent; }
/* #/signs + #/signs/practice: the group dropdown; on #/signs it shares a row with search and drops below on a phone. */
.signs-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.signs-filter .searchbar { flex: 1 1 16rem; margin-bottom: 0; }
.select.signs-cat { flex: 0 1 auto; max-width: 100%; padding: .7rem 2.6rem .7rem .9rem; border-radius: var(--r-md);
  background-position: right .9rem center; background-size: 1rem; }
@media (max-width: 560px) { .signs-filter .signs-cat { flex-basis: 100%; } }
/* #/signs/practice: group, count and the catalogue link in one toolbar. On a phone the group
   dropdown takes its own row (its longest names need ~250px) and count + link share the next. */
.sp-controls .signs-cat { flex: 1 1 auto; min-width: 0; max-width: 26rem; }
.sp-controls .seg-count { flex: none; }
.sp-controls .sp-browse { flex: none; }
@media (max-width: 560px) {
  .sp-controls .signs-cat { flex-basis: 100%; max-width: none; }
  .sp-controls .seg-count { margin-left: 0; }
  .sp-controls .sp-browse { margin-left: auto; padding: .35rem .7rem; font-size: .82rem; }
}
/* 320px floor, the same as the drill's review grid below: a catalogue card carries
   the sign's full meaning, and at a 240px floor three columns squeezed that
   paragraph to ~19 characters a line — a ragged column nobody reads. Two roomier
   columns beat three unreadable ones on a surface whose whole job is explaining
   what a sign means. `flex-start` ties the picture to its name at the top of the
   card instead of floating it against the middle of a six-line paragraph. */
.signgrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.sign { display: flex; gap: .8rem; align-items: flex-start; transition: transform .14s ease, box-shadow .18s ease; }
.sign .signbox { flex: none; }  /* a long meaning must not squash the sign image */
.sign:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sign .name { font-weight: 700; }
.sign .mean { color: var(--muted); font-size: .88rem; }
/* A card that is a link (to the sign's landing page): text colour, no underline, no arrow
   glyph (owner, 2026-09-19) — the hover lift every .card.sign already has is the affordance. */
.sign[href] { color: inherit; text-decoration: none; }
.sign > div { flex: 1; min-width: 0; }

/* signs: catalogue / practice mode switch */
.seg { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.1rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-2); }
/* `background: transparent` is load-bearing, not tidiness. This class is used on both
   an <a> (the signs tabs) and a <button> (the schools list/map switch), and a <button>
   with no background takes the UA's `buttonface` — #efefef. In light that passed by
   luck (--muted on #efefef is ~5.4:1); in dark it painted a light-grey pill inside the
   dark bar and measured 2.22:1. The .active rule below still sets its own surface. */
.seg-btn { background: transparent; padding: .4rem 1rem; border-radius: var(--r-pill); font-size: .88rem; font-weight: 650; color: var(--muted); text-decoration: none; transition: background .16s ease, color .16s ease; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* The signs tabs paint the active surface on a child pill instead, so the view transition can
   move the box without the label (see signTabs in main.js). Scoped with :has() because the
   schools list/map switch reuses .seg-btn with no pill and keeps the rule above. */
.seg-btn { position: relative; isolation: isolate; }
.seg-btn.active:has(.seg-pill) { background: transparent; box-shadow: none; }
.seg-pill { position: absolute; inset: 0; z-index: -1; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); }
.seg-count { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 600; }
.seg-count .select { padding: .3rem 1.6rem .3rem .6rem; font-size: .85rem; background-position: right .5rem center; background-size: .8rem; }

/* signs: the drill card — one big sign, question centred under it */
.signstage { display: grid; place-items: center; padding: .5rem 0 1.1rem; }
.signbox.big .signimg { width: 168px; height: 168px; }
.qtext.center { text-align: center; }
.card.center { text-align: center; }
.card.center .dash-ring { margin-bottom: .6rem; }
/* the drill's "worth another look" list shows exactly what the catalogue shows, so
   it inherits the same 320px floor and top alignment — no override needed */

/* Own chevron on every dropdown: the native arrow hugs the right edge and padding cannot move it.
   Mid grey reads in both themes. */
.select { font: inherit; padding: .5rem 2rem .5rem .7rem; border-radius: var(--r-sm); border: 1px solid var(--border); color: inherit;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / .85rem; }

/* Language switcher: two options, so a segmented toggle rather than a dropdown.
   Height is pinned to the same 2.5rem as `.theme-toggle` beside it, because these two
   controls are what set the sticky bar's height — see the CLS note on `.authnav`. */
.langtoggle {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  height: 2.5rem; padding: 3px; border: 1px solid var(--border);
  border-radius: var(--r-pill); background: var(--surface-2);
}
/* `a` as well as `button`: the app's options swap the SPA's language in place and are
   buttons; the generated landing pages have no SPA to swap, so theirs are links to the
   twin URL (langToggle() in tools/build-seo.mjs). One control, one set of rules — the
   two headers drifted apart the last time that was not true. */
.langtoggle button, .langtoggle a {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 100%; padding: 0 .55rem;
  border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .02em; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.langtoggle button:hover, .langtoggle a:hover { color: var(--text); }
.langtoggle button.is-on, .langtoggle a.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm, 0 1px 2px rgb(16 24 40 / .08)); }
@media (prefers-reduced-motion: reduce) { .langtoggle button, .langtoggle a { transition: none; } }
/* The panel copy is hidden everywhere except phones — see the paired query below.
   Two non-overlapping queries, never a bare `display: none`, for the same reason the
   theme toggle documents: the in-panel rule would out-specify it. */
@media (min-width: 561px) { .langtoggle--mobile { display: none; } }
@media (max-width: 560px) {
  /* Bar drops the switcher; the panel gains it. Five items no longer fit on one bar line
     at this width — leaving it in wrapped the hamburger onto a second row, under the
     logo on the left. */
  .topbar > .langtoggle:not(.langtoggle--mobile) { display: none; }
  .mainnav .langtoggle--mobile {
    /* Sorts after the links and beside the theme row: both are settings, not
       destinations. The theme toggle picks up `order: 4`, so this sits just before it. */
    order: 3;
    display: flex; width: 100%; height: auto; min-height: 44px;
    justify-content: flex-start; gap: .35rem;
    padding: .45rem .8rem; margin-top: .35rem;
    border: none; border-top: 1px solid var(--border);
    border-radius: var(--r-sm); background: transparent;
  }
  .mainnav .langtoggle--mobile button,
  .mainnav .langtoggle--mobile a {
    flex: 1 1 0; min-height: 36px; height: auto; border-radius: var(--r-sm);
    background: var(--surface-2); font-size: .85rem;
  }
  .mainnav .langtoggle--mobile button.is-on,
  .mainnav .langtoggle--mobile a.is-on { background: var(--grad-solid); color: var(--brand-ink); box-shadow: none; }
  /* Nothing to re-hang: the ≤1300px block pushes the group off `.brand`, so the bar
     still reads brand | (language) | account | theme | ☰ whether or not the language
     control is one of the ones that moved into the panel. */
  .langtoggle, .authnav { margin-left: 0; }
}

/* sign images / placeholders */
.signbox { display: inline-grid; place-items: center; }
.signimg { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); }
.sign .signimg { width: 72px; height: 72px; }
.code-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xs); padding: .05rem .35rem; vertical-align: middle; }
.tbl tr.thead td { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--border); padding-top: .25rem; }
label.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }

/* header auth area */
.authnav { display: flex; align-items: center; gap: .6rem; }
.btn.small { padding: .4rem .8rem; font-size: .85rem; border-radius: var(--r-sm); }

/* light/dark toggle — icon swap is pure CSS (attribute selector), so it
   works the instant it's clicked without waiting on app/main.js to load */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill); flex: none;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  cursor: pointer; transition: border-color .16s ease, color .16s ease, transform .06s ease;
}
/* The theme toggle that lives inside the hamburger menu. Hidden on desktop via a
   min-width query on purpose: as a plain `.theme-toggle--mobile { display: none }` it
   sat *later* in the file than the max-width:860px rule that reveals it, and a media
   query carries no extra specificity — so source order won and the dark-mode row never
   appeared in the mobile menu at all. Two non-overlapping queries cannot fight. */
@media (min-width: 1301px) { .theme-toggle--mobile { display: none; } }
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* The paywall's own plan list is gone: every price is now rendered by the one
   .pricing-grid block further down, shared with the landing page. */

/* auth forms (login / signup / account) */
/* The auth/gate routes (login, signup, password reset, the access gate, the exam intro)
   are a single centred card on an otherwise empty page. #view's 56px bottom padding is
   right for a long scrolling route and leaves a conspicuous well under a short card, so
   it is pulled back here to roughly the card's own rhythm.
   The :last-child rule kills the trailing <p>'s .75rem bottom margin, which was stacking
   on the card's 16px padding and made the inside bottom 29px against a 16px top — the
   generalisation of the .ck-main .authalt override further down. */
.authwrap { display: flex; justify-content: center; margin-bottom: -2rem; }
.prac-gate { margin-top: 2.5rem; }
.prac-gate .authwrap { margin-bottom: 0; }
.exam-prodseg { margin-top: .5rem; }
.authcard > :last-child { margin-bottom: 0; }

/* ------------------------------------------------ the login mascot (app/authcar.js)
   A red car with a face on the login card. Owner-requested (2026-08-29) and the one deliberate
   exception to the auth-forms row of the motion table: every expression answers a user action
   (focus/typing/hover, with keyboard parity); the ambient loops are a blink, an idle bob and a
   windshield sheen; reduced motion freezes it into a static friendly car whose expressions still swap. States ride two data attributes
   the JS sets; everything below is transform/opacity only.
   The negative top margin is not spacing, it is compensation: the SVG's viewBox holds 41 of its 150
   units as empty sky above the roof (the car is drawn low so the happy wag and the -2px hop have
   somewhere to go). At width:172px that is ~32px of transparent band, and stacked on .card's 1.35rem
   padding it read as a ~50px hole. Pulling it back up leaves ~23px of real gap. Cropping the viewBox
   instead would be wrong twice: it changes the aspect ratio the result hero sizes against, and
   --ac-px/--ac-py move the pupils in SVG USER UNITS, so the eyes would track further than the face.
   `.rescar .authcar` sets margin:0, so the result hero is unaffected. */
.authcar { width: 172px; margin: -1.9rem auto .3rem; color: var(--text); }
.authcar svg { display: block; width: 100%; height: auto; }
.authcar * { transform-box: fill-box; }
.ac-car { transform-origin: 50% 90%; transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.ac-body { fill: url(#acBody); }
.ac-shade { fill: rgba(30,4,10,.16); }
.ac-crease { stroke: rgba(30,4,10,.14); stroke-width: 2.5; stroke-linecap: round; }
.ac-sheen { fill: rgba(255,255,255,.4); }
.ac-bumper { fill: #a90d26; }
.ac-bumpershine { stroke: rgba(255,255,255,.16); stroke-width: 1.6; stroke-linecap: round; }
.ac-wheel circle { fill: #1c222c; }
.ac-wheel .ac-tyre { fill: url(#acTyre); stroke: #3a4350; stroke-width: 1.2; }
.ac-tread { stroke: #3b4450; stroke-width: 3.2; stroke-dasharray: 1.5 1.6; }
.ac-contact { fill: #0b0e12; opacity: .28; }
.ac-spec-paint { fill: rgba(255,255,255,.2); }
.ac-reflect { stroke: rgba(255,255,255,.14); stroke-width: 1.4; stroke-linecap: round; }
.ac-wiper { stroke: #0e131a; stroke-width: 2.2; stroke-linecap: round; }
.ac-reflector { fill: none; stroke: rgba(201,140,40,.55); stroke-width: .8; }
.ac-wheel .ac-hubring { fill: #39424f; }
.ac-wheel .ac-hub { fill: #9aa4b2; }
.ac-glassframe { fill: #8f0b22; }
.ac-glass { fill: url(#acGlass); }
.ac-streak { fill: rgba(255,255,255,.07); }
.ac-lightring { fill: #d9a13a; }
.ac-light { fill: #ffe9b8; }
.ac-lightin { fill: #ffd166; }
.ac-lightspec { fill: rgba(255,255,255,.85); }
.ac-glow { opacity: 0; transition: opacity .3s ease; }   /* halos: lit while curious, and by the result hero's m-flash (motion.css) */
.ac-mirror { fill: url(#acBody); }
.ac-mirrorarm { stroke: #8f0b22; stroke-width: 3; stroke-linecap: round; }
.ac-rim { stroke: rgba(255,255,255,.3); stroke-width: 2.2; stroke-linecap: round; }
.ac-rimdark { stroke: rgba(30,4,10,.2); stroke-width: 2.6; stroke-linecap: round; }
.ac-sweep { opacity: 0; transform: skewX(-18deg); }
.ac-plate { fill: #f4f5f7; stroke: rgba(30,4,10,.35); stroke-width: .8; }
.ac-platestrip { fill: #1f4fae; }
.ac-platetext { stroke: #232a36; stroke-width: 3.4; stroke-dasharray: 2.4 1.5; }
.ac-sweat { fill: #9ad4ff; stroke: rgba(255,255,255,.8); stroke-width: .8; opacity: 0; transition: opacity .2s ease; }
.ac-spark { fill: #ffc940; opacity: 0; transform-origin: center; }
.ac-beam { opacity: 0; transform-origin: center; pointer-events: none; }
.ac-ray { stroke: #ffd766; stroke-width: 2.4; stroke-linecap: round; }
.ac-sclera { fill: #fff; }
.ac-iris { fill: #33415a; }
.ac-pupil { fill: #171e28; }
.ac-spec { fill: #fff; }
.ac-pupilg { transform: translate(var(--ac-px, 0px), var(--ac-py, 0px)); transition: transform .18s cubic-bezier(.2,.8,.3,1); }
.ac-lid { fill: #232c3a; transform-origin: 50% 0%; transform: scaleY(0); transition: transform .12s ease-out; }
.ac-shut { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; opacity: 0; transition: opacity .12s ease; }
.ac-hapeye { stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: 0; transition: opacity .15s ease; }
.ac-sclera, .ac-pupilg { transition: opacity .12s ease, transform .18s cubic-bezier(.2,.8,.3,1); }
.ac-brow { stroke: rgba(255,255,255,.85); stroke-width: 4; stroke-linecap: round; transition: transform .18s ease; }
.ac-mouth { transition: opacity .15s ease; }
.ac-mouth-idle { stroke: #5d0716; stroke-width: 4.5; stroke-linecap: round; }
.ac-mouth-happy { stroke: #5d0716; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.ac-mouth-shy { fill: #5d0716; opacity: 0; }
.ac-mouth-sad { stroke: #5d0716; stroke-width: 4.5; stroke-linecap: round; opacity: 0; }
.ac-cheek { fill: #ff8fa0; opacity: 0; transition: opacity .2s ease; }

/* curious — email focused: eyes on the field, brows lift, and the head tilts along
   with the caret (--ac-tilt is set by the same look() that moves the pupils) */
.authcar[data-mood="curious"] .ac-car { transform: rotate(var(--ac-tilt, 1.2deg)); }
.authcar[data-mood="curious"] .ac-brow { transform: translateY(-2.5px); }
/* ...and the headlights come up, as if paying attention to what is typed */
.authcar[data-mood="curious"] .ac-glow { opacity: .5; }

/* shy — password focused: eyes shut (classic closed-lid arcs, so the face stays a
   face), head turned away, innocent whistle */
.authcar[data-mood="shy"] .ac-car { transform: rotate(-2.4deg) translateX(-3px); }
.authcar[data-mood="shy"] .ac-sclera,
.authcar[data-mood="shy"] .ac-pupilg { opacity: 0; }
.authcar[data-mood="shy"] .ac-shut { opacity: 1; }
.authcar[data-mood="shy"] .ac-brow-l { transform: translateY(-3px) rotate(-6deg); }
.authcar[data-mood="shy"] .ac-brow-r { transform: translateY(-3px) rotate(6deg); }
.authcar[data-mood="shy"] .ac-mouth-idle { opacity: 0; }
.authcar[data-mood="shy"] .ac-mouth-shy { opacity: 1; }
/* ...unless the password is shown — then the right eye peeks, guiltily downward */
.authcar[data-mood="shy"][data-peek="1"] .ac-eye-r .ac-sclera,
.authcar[data-mood="shy"][data-peek="1"] .ac-eye-r .ac-pupilg { opacity: 1; }
.authcar[data-mood="shy"][data-peek="1"] .ac-eye-r .ac-shut { opacity: 0; }
.authcar[data-mood="shy"][data-peek="1"] .ac-eye-r .ac-pupilg { transform: translate(2.5px, 3.5px); }

/* happy — an action hovered/focused: eyes to arcs, big smile, blush, and one wag
   on arrival (the keyframes end on the lifted resting pose, so the settle is
   seamless; re-entering happy re-runs it, which is the point of a wag) */
.authcar[data-mood="happy"] .ac-car {
  transform: translateY(-2px) scale(1.02);
  animation: ac-wag .5s cubic-bezier(.2,.8,.3,1);
}
.authcar[data-mood="happy"] .ac-sclera,
.authcar[data-mood="happy"] .ac-pupilg { opacity: 0; }
.authcar[data-mood="happy"] .ac-hapeye { opacity: 1; }
.authcar[data-mood="happy"] .ac-mouth-idle { opacity: 0; }
.authcar[data-mood="happy"] .ac-mouth-happy { opacity: 1; }
.authcar[data-mood="happy"] .ac-cheek { opacity: .55; }
.authcar[data-mood="happy"] .ac-spark { animation: ac-spark .75s cubic-bezier(.3,1.5,.5,1) both; }
.authcar[data-mood="happy"] g:nth-last-of-type(2) .ac-spark { animation-delay: .08s; }
.authcar[data-mood="happy"] g:nth-last-of-type(1) .ac-spark { animation-delay: .16s; }
/* ...and flashes its high beams twice — the Norwegian driver's thank-you — on the auth card only
   (the result hero has its own flash, m-flash in motion.css). */
.authcard .authcar[data-mood="happy"] .ac-beam { animation: ac-highbeam .95s ease-out both; }
.authcard .authcar[data-mood="happy"] .ac-lightin { animation: ac-highbeam-bulb .95s ease-out both; }
@keyframes ac-highbeam {
  0% { opacity: 0; transform: scale(.55); }
  12% { opacity: 1; transform: scale(1); }
  30% { opacity: .1; transform: scale(.9); }
  46% { opacity: 1; transform: scale(1.08); }
  78%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ac-highbeam-bulb {
  8%, 26% { fill: #fffbea; }
  42%, 62% { fill: #fffbea; }
}
@keyframes ac-spark {
  0% { opacity: 0; transform: scale(0) rotate(-60deg); }
  40% { opacity: 1; transform: scale(1.15) rotate(0deg); }
  100% { opacity: 0; transform: scale(.8) rotate(20deg); }
}
@keyframes ac-wag {
  0% { transform: translateY(-2px) scale(1.02) rotate(0deg); }
  30% { transform: translateY(-2px) scale(1.02) rotate(-2.6deg); }
  62% { transform: translateY(-2px) scale(1.02) rotate(2deg); }
  100% { transform: translateY(-2px) scale(1.02) rotate(0deg); }
}

/* sad — a failed sign-in (the form's 'authcar-oops' event): the whole car sags,
   worried inner-up brows, downturned mouth, eyes low. ~2.4s, then back to whatever
   is focused. */
.authcar[data-mood="sad"] .ac-car { transform: translateY(2px); }
.authcar[data-mood="sad"] .ac-pupilg { transform: translate(0, 4.5px) scale(.88); }
.authcar[data-mood="sad"] .ac-brow-l { transform: translateY(-1px) rotate(10deg); }
.authcar[data-mood="sad"] .ac-brow-r { transform: translateY(-1px) rotate(-10deg); }
.authcar[data-mood="sad"] .ac-mouth-idle { opacity: 0; }
.authcar[data-mood="sad"] .ac-mouth-sad { opacity: 1; }
.authcar[data-mood="sad"] .ac-sweat { opacity: 1; animation: ac-sweat 2.4s ease-in both; }
@keyframes ac-sweat { from { translate: 0 -3px; } to { translate: 0 5px; } }

/* the blink — idle and curious only (shut eyes and happy arcs don't blink); the
   second beat makes roughly every other blink read as a quick double-blink */
.authcar[data-mood="idle"] .ac-lid, .authcar[data-mood="curious"] .ac-lid { animation: ac-blink 6.2s ease-in-out infinite; }
@keyframes ac-blink {
  0%, 90%, 100% { transform: scaleY(0); }
  91.5%, 92.5% { transform: scaleY(1); }
  94% { transform: scaleY(0); }
  95.5%, 96.5% { transform: scaleY(1); }
}

/* Idle life: the engine ticking over (a 1.2px bob on `translate`, so it composes with the
   moods' own `transform`), the shadow breathing with it, and a sheen across the glass every
   ~7.5s. Idle and curious only — the other moods are reactions and hold still. */
.authcar[data-mood="idle"] .ac-car, .authcar[data-mood="curious"] .ac-car { animation: ac-idle 1.9s ease-in-out infinite; }
.authcar[data-mood="idle"] .ac-shadow, .authcar[data-mood="curious"] .ac-shadow { transform-origin: center; animation: ac-idle-shadow 1.9s ease-in-out infinite; }
.authcar[data-mood="idle"] .ac-sweep, .authcar[data-mood="curious"] .ac-sweep { animation: ac-sweep 7.5s ease-in-out 1.4s infinite; }
@keyframes ac-idle { 50% { translate: 0 -1.2px; } }
@keyframes ac-idle-shadow { 50% { transform: scaleX(.94); opacity: .8; } }
@keyframes ac-sweep {
  0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  3% { opacity: 1; }
  15% { opacity: 1; transform: translateX(150px) skewX(-18deg); }
  17%, 100% { opacity: 0; transform: translateX(150px) skewX(-18deg); }
}
/* On the auth card it drives up into place once — a short rise with an overshoot. */
.authcard .authcar svg { animation: ac-arrive .7s cubic-bezier(.3,1.45,.5,1) both; }
@keyframes ac-arrive { from { opacity: 0; transform: translateY(16px) scale(.86); } }

@media (prefers-reduced-motion: reduce) {
  .authcar * { transition: none !important; animation: none !important; }
  .authcard .authcar svg { animation: none; }
}

/* The mascot parked in the result hero on a pass (renderResult). Smaller than the
   auth card build, and centered; its drive-in and headlight flash live in motion.css. */
.result-hero .rescar { width: 128px; margin: .2rem auto 0; }
.rescar .authcar { width: 100%; margin: 0; }

/* ---------------------------------------------- the traffic-light exam start
   startWithLight() in main.js: the pressed Start button holds its measured box
   (inline width/height) and hosts a small Norwegian signal; JS steps the phase
   classes red → red+amber → green over ~1s and the exam opens on green. */
.tl-btn { gap: .75rem; pointer-events: none; }
/* `.tl-btn .tl`, not `.tl`: `.btn svg { width: 1.15em; height: 1.15em }` above is
   (0,1,1) and beat a bare class, which is what pinned the signal at ~19px — a
   pinhead marooned in a 230px button. Two classes (0,2,0) take it back. */
.tl-btn .tl { height: 2.3rem; width: auto; display: block; flex: none; }
/* Left-aligned in a fixed box so the signal beside it never shifts as the word
   changes (and never as the language does: "Ready …" is wider than "Klar …"). */
.tl-say { min-width: 4.6rem; text-align: left; font-variant-numeric: tabular-nums; }
/* Green means go: the surface itself turns over for the last beat before the deck.
   `color: var(--bg)`, never #fff — --ok inverts role between themes (it is a light
   mint in dark, 1.74:1 under white). Same rule as the Pass Protection panels. */
.tl-btn.is-go {
  background-color: var(--ok); background-image: none; color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(16,24,40,.14),
              0 6px 18px -4px color-mix(in srgb, var(--ok) 46%, transparent);
}
.tl-house { fill: #232a36; stroke: #10151d; stroke-width: 2; }
.tl-lens { fill: #39424f; transition: fill .12s ease, filter .12s ease; }
.tl.p-red .tl-red { fill: #ff4b3e; filter: drop-shadow(0 0 5px rgba(255,75,62,.9)); }
.tl.p-amber .tl-amber { fill: #ffc53d; filter: drop-shadow(0 0 5px rgba(255,197,61,.9)); }
.tl.p-green .tl-red, .tl.p-green .tl-amber { fill: #39424f; filter: none; }
.tl.p-green .tl-green { fill: #35d073; filter: drop-shadow(0 0 6px rgba(53,208,115,.95)); }

/* ------------------------------------------------- the windshield-wiper loader
   wiperLoader() in main.js, inside waitForApp()'s first skeleton card. Fixed
   night-glass darks (not tokens) so it reads in both themes on the skeleton grey;
   the sweep keyframes are motion.css's. */
.wl-host { position: relative; }
.wiperload { position: absolute; inset: 0; display: grid; place-items: center; }
.wiperload svg { width: 148px; height: auto; display: block; }
.wl-glass { fill: #2a3446; }
.wl-cowl { fill: #1d2531; }
.wl-drop { fill: rgba(255,255,255,.4); }
.wl-arm { transform-box: view-box; transform: rotate(24deg); }
.wl-rod { stroke: #9aa4b2; stroke-width: 3; stroke-linecap: round; }
.wl-blade { stroke: #cfd6e0; stroke-width: 5; stroke-linecap: round; }

/* --------------------------------------------------- the result speedometer
   speedo() in main.js — result hero only. The fill arc IS a .ring-fg (same band
   colours, same fillRings() animation); the needle's 1.1s sweep transition is in
   motion.css, this .6s matches .ring-fg's base fallback below it. */
.speedo { display: block; }
.sp-track { stroke: var(--surface-2); }
.sp-red { stroke: var(--bad); opacity: .16; }
.sp-tick { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.sp-mark { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
.sp-needle {
  fill: var(--text); transform-box: view-box; transform-origin: 95px 88px;
  transform: rotate(var(--sp-a, 0deg)); transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.sp-hub { fill: var(--text); }
.sp-hubdot { fill: var(--surface); }
.sp-txt { font-size: 1.3rem; }

/* --------------------------------------------- the broken-down error vignette
   breakdownArt() in ui.js, on every tone:'error' statecard. Static by design. */
.statecard-art { flex: none; width: 6.6rem; }
.statecard-art svg { display: block; width: 100%; height: auto; }
.statecard.is-compact .statecard-art { width: 4.4rem; }
.bd-ground { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.bd-steam { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.bd-body { fill: #d31732; }
.bd-hood { stroke: #b40e28; stroke-width: 4.5; stroke-linecap: round; }
.bd-slot { stroke: rgba(30,4,10,.45); stroke-width: 2.5; stroke-linecap: round; }
.bd-glass { fill: #33405a; }
.bd-eye { fill: #fff; }
.bd-pupil { fill: #171e28; }
.bd-wheel circle { fill: #1c222c; }
.bd-wheel .bd-hub { fill: #9aa4b2; }
.bd-tri { stroke: var(--bad); stroke-width: 3.5; stroke-linejoin: round; }

.authcard { width: 100%; max-width: 430px; }
.authcard.wide { max-width: 640px; }
.authcard.center { text-align: center; }
/* Access gates and payment outcomes. Was a 2.6rem emoji; now a stroke icon in a
   round well, so it answers to the theme and to its own outcome tone instead of
   being a fixed full-colour glyph that renders differently on every platform.
   Tone is never the only signal — the heading beside it states the outcome in
   words, so this reads correctly in greyscale and to a screen reader (the well is
   aria-hidden). */
.gateicon {
  width: 3.4rem; height: 3.4rem; margin: 0 auto .6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
}
.gateicon svg { width: 1.7rem; height: 1.7rem; }
.gateicon.is-ok { background: var(--ok-bg); color: var(--ok); }
.gateicon.is-bad { background: var(--bad-bg); color: var(--bad); }
.gateicon.is-wait { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); color: var(--blue); }
/* Statecard wells use the same stroke language at the smaller card size. */
.statecard-ico svg { width: 1.45rem; height: 1.45rem; color: var(--muted); }
.statecard.is-error .statecard-ico svg { color: var(--bad); }
.statecard.is-info .statecard-ico svg { color: var(--blue); }
.statecard.is-compact .statecard-ico svg { width: 1.05rem; height: 1.05rem; }
.authform { display: grid; gap: .9rem; margin-top: 1rem; }
.authform.grid2 { grid-template-columns: 1fr 1fr; }
/* Section headings inside the signup form (2026-09-14). Eight fields in a flat 2-column grid
   read as a wall; three small labelled groups — about you / address / password — read as three
   short tasks. An <h2>, not a <div>: it is a heading in a form that sits under the card's <h1>. */
.authform .fgroup { grid-column: 1 / -1; margin: .4rem 0 -.3rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.authform .fgroup:first-child { margin-top: 0; }
/* Password strength: four bars + a word. data-level 0-4 lights that many bars, tinted from
   --bad through --amber to --ok. Feedback only — the server's rule is still 8 characters, and
   the meter never blocks a submit. Bars are <i>, so screen readers get only the word
   (aria-live on the wrapper). */
.pwmeter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .3rem; align-items: center; margin-top: .45rem; }
.pwmeter i { height: 4px; border-radius: var(--r-pill); background: var(--border); transition: background var(--dur-base) var(--ease-out); }
.pwmeter b { grid-column: 5; font-size: .74rem; font-weight: 600; color: var(--muted); padding-left: .3rem; white-space: nowrap; }
.pwmeter[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.pwmeter[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.pwmeter[data-level="3"] i:nth-child(-n+3) { background: color-mix(in srgb, var(--ok) 70%, var(--amber)); }
.pwmeter[data-level="4"] i:nth-child(-n+4) { background: var(--ok); }
.pwmeter[data-level="1"] b { color: var(--bad); }
.pwmeter[data-level="4"] b { color: var(--ok); }
.authform.grid2 .span2 { grid-column: 1 / -1; }
.authfield { gap: .25rem; }
/* An input is a RECESSED surface — the one place in the sheet that gets an inset
   shadow rather than the lit top edge. That inversion is the whole cue: a card
   rises out of the page, a field is cut into it, and using the same treatment
   for both is what makes a form read as a stack of grey boxes. */
.input {
  font: inherit; padding: .65rem .75rem; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.06);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
/* The halo is additive to the existing 2px outline, not a replacement: the
   outline is the accessible focus indicator and it keeps its contrast and its
   crispness, while the soft ring gives the field the "it woke up" feel. */
.input:focus {
  outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.05), 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.input.invalid { border-color: var(--bad); background: var(--bad-bg); }

/* ---- the field name, INSIDE the field (2026-09-09) -----------------------------
   Every auth/profile field built by fieldRow()/pwField() in app/main.js. The caption
   rests where the value will be typed — same font, same baseline, so it reads as a
   placeholder — and rises into the box's own top padding once the field is focused or
   holds a value. The padding is asymmetric FOR that caption; it is not decoration.

   Why: a label above the box cost a text row plus its gap (~25px) per field, and
   signup asks for nine. The box itself is the height it always was, so nothing else
   on those screens moved.

   `:has()` rather than a `+` sibling rule, because the caption has to come FIRST inside
   `.ffield` — `.pwtoggle` finds its input with `previousElementSibling` (app/main.js,
   authcar.js), and putting the caption between them broke the eye toggle and the
   mascot's peek. */
.ffield { position: relative; display: block; }
/* The top padding is the caption's room. 1.25rem rather than the 1.05rem this started
   at: the caption is the input's own font scaled down, and at a tighter scale it landed
   at 9.8px — smaller than anything else on the page, including the .78rem error and hint
   lines directly under it. 1.25rem buys enough height for `scale(.82)` (≈11px), which is
   the smallest this text should ever be. */
.ffield .input { padding-top: 1.25rem; padding-bottom: .35rem; }
.flabel {
  position: absolute; left: calc(.75rem + 1px); top: calc(1.25rem + 1px);
  font-size: inherit; font-weight: 600; line-height: 1.55; color: var(--muted);
  /* Clicks fall through to the input, so tapping the caption puts the caret where the
     reader aimed instead of at the start of the value. */
  pointer-events: none;
  max-width: calc(100% - 1.6rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* Transform only — the caption is absolutely positioned, so scaling it costs no
     layout, and animating `top`/`font-size` would. */
  transform-origin: left top;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.pwfield .flabel { max-width: calc(100% - 3.4rem); }  /* clear of the eye toggle */
.ffield:has(.input:focus) .flabel,
.ffield:has(.input:not(:placeholder-shown)) .flabel,
.ffield.pinned .flabel { transform: translateY(-1.17rem) scale(.82); }
.ffield:has(.input:focus) .flabel { color: var(--brand); }
.ffield:has(.input.invalid) .flabel { color: var(--bad); }
/* A reader who asked for less motion gets the same two positions, arrived at instantly —
   the caption's job is to say what the field is, and that must not depend on an
   animation. The global reduced-motion rule collapses durations, but this states it at
   the property so a future edit to that rule cannot resurrect the slide. */
@media (prefers-reduced-motion: reduce) {
  .flabel { transition: none; }
}

/* password field with a show/hide toggle. Same icon-swap trick as .theme-toggle, but
   scoped to the button's own aria-pressed (not <html data-theme>) since each field
   toggles independently. */
.pwfield { position: relative; }
.pwfield .input { padding-right: 2.5rem; }
.pwtoggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; margin: 0; color: var(--muted);
  cursor: pointer; border-radius: 0 var(--r-sm) var(--r-sm) 0;  /* tracks .input */
}
.pwtoggle:hover { color: var(--text); }
.pwtoggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pwtoggle svg { width: 1.15rem; height: 1.15rem; flex: none; }
.pwtoggle .icon-eye-off { display: none; }
.pwtoggle[aria-pressed="true"] .icon-eye { display: none; }
.pwtoggle[aria-pressed="true"] .icon-eye-off { display: block; }
.fielderr { color: var(--bad); font-size: .78rem; font-weight: 600; min-height: 0; }
.fielderr:empty { display: none; }
.hint { color: var(--muted); font-size: .78rem; font-weight: 500; }
.formnote { border-radius: var(--r-sm); padding: .6rem .8rem; font-size: .9rem; font-weight: 600; grid-column: 1 / -1; }
.formnote.err { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad); }
.formnote.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok); }
.formnote[hidden] { display: none; }
.authalt { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
/* 24px tall (WCAG 2.5.8 — was 18px of bare text), and it keeps an underline
   rather than `text-decoration: none`: it sits mid-sentence next to muted body
   copy, so brand colour plus bold was the only thing marking it as a link
   (WCAG 1.4.1). Dialled to 40% ink so it reads as a link without shouting. */
.authalt a {
  color: var(--brand); font-weight: 700;
  display: inline-flex; align-items: center; min-height: 24px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.authalt a:hover, .authalt a:focus-visible { text-decoration-color: currentColor; }

/* "or" divider + Google sign-in button. The button keeps Google's own white/grey
   styling in both themes rather than inheriting ours: their branding guidelines
   require the unaltered mark on a neutral surface, and a recognisable button is also
   what makes it read instantly as "this is the Google one". */
/* The provider buttons (Vipps, Google). A hair of space between them — enough to read as
   two separate choices rather than one control, without opening a gap that competes with
   the margins around the block. `grid` rather than margins so adding a third provider
   needs no new rule. */
.oauthbtns { display: grid; gap: .4rem; }
.oauthsep { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 .8rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.oauthsep::before, .oauthsep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
.btn.google:hover { background: #f7f8f8; border-color: #d2d5d9; }
.btn.google svg { width: 18px; height: 18px; }

/* contact form */
.contactwrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.contact-head { text-align: center; max-width: 56ch; }
.contact-head .lead { margin-top: .4rem; }
.contactcard { width: 100%; max-width: 560px; }
.contactcard.center { text-align: center; }
.contact-note { margin: -0.2rem 0 0.6rem; font-size: .82rem; color: var(--ok); display: flex; gap: .4rem; align-items: center; }
.contact-note::before { content: ""; }
/* The textarea + its word counter share one relative box so the counter sits in
   the bottom-right corner of the field itself, like the references describe. */
.msgwrap { position: relative; display: block; }
.msgwrap .input { resize: vertical; min-height: 7rem; padding-bottom: 1.8rem; }
.wordcount { position: absolute; right: .7rem; bottom: .5rem; font-size: .74rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.wordcount.over { color: var(--bad); }
/* Attachments (optional): a paperclip button, then one row per chosen file. The real
   <input type="file"> is hidden and clicked through the button — its native rendering cannot be
   styled to match the rest of the form.
   The form is a grid, and a grid item's automatic minimum size is min-content — so one long
   unbreakable filename stretched the attachments field to 632px inside a 360px phone, where
   `main.view`'s overflow-x: clip hid the size and the remove button instead of scrolling to them.
   `min-width: 0` lets the track shrink so the ellipsis below can do its job. Applied to every field,
   not just this one: a long prefilled email address is the same trap. */
.authform > * { min-width: 0; }
.filelabel { display: flex; align-items: baseline; gap: .35rem; font-weight: 600; font-size: .88rem; }
.filelabel .optional { font-weight: 500; font-size: .8rem; color: var(--muted); }
.btn.filebtn {
  align-self: flex-start; margin-top: .45rem; gap: .4rem;
  font-size: .88rem; padding: .45rem .8rem;
  border-style: dashed;
}
.btn.filebtn svg { width: 17px; height: 17px; }
.btn.filebtn:hover { border-style: solid; border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.filelist { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.fileitem {
  /* min-width: 0 again, one level down: the row is itself a grid item of .filelist,
     so it gets the same min-content floor its parent just escaped. Without it the
     grid track resolves to ~660px on a 360px screen. */
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  padding: .45rem .5rem .45rem .7rem; font-size: .85rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
}
/* The name is the flexible part and must be the thing that truncates — a long
   filename should never push the size or the remove button out of the row. */
.filename { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filebytes { flex: none; font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.filedrop {
  /* 32px, not the 26px this started at: it is the one control inside a row, it gets
     used on a phone, and 26 sits only just above the 24px minimum. */
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.filedrop svg { width: 15px; height: 15px; }
.filedrop:hover { background: var(--bad-bg); color: var(--bad); }
.filedrop:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
/* A rejected pick leaves the current selection intact, so the error has to point
   at the list rather than replace it. */
.filelist.has-error .fileitem { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
/* Both are <span>s inside the field, so they need to be blocks or the red error
   and the grey hint run together on one line and read as a single sentence. */
.fileitem + .fielderr, .filehint { display: block; }
.filehint { font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: .35rem; }
.field .fielderr:not(:empty) { display: block; margin-top: .35rem; }
/* `hidden` alone loses to `.btn { display: inline-flex }` and `.filelist
   { display: grid }` — the UA rule it relies on is weaker than any author
   declaration — so the picker stayed visible at the cap and the empty list kept
   its grid gap. Restate it where those two rules can be overridden. */
.btn.filebtn[hidden], .filelist[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .filedrop { transition: none; } }

.contact-success .success-icon { display: block; margin: 0 auto .7rem; }
.contact-success .lead { margin: .4rem auto 1.2rem; max-width: 42ch; }
.contact-back { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; padding: .35rem 0; }
.contact-back:hover { color: var(--text); text-decoration: underline; }

/* ------------------------------------- footer pages (about/faq/legal/sitemap) */
/* One prose shell for all five pages (app/legal.js). Measure is capped at ~68ch
   inside a wider card: legal text is read linearly, and a full 920px line is the
   difference between skimmable and skipped. */
.legalwrap { display: flex; flex-direction: column; gap: 1.5rem; }
.legal-head { max-width: 60ch; }
.legal-head .lead { margin-top: .4rem; }
.legal-updated { margin-top: .7rem; font-size: .78rem; color: var(--muted); }
.legalcard { width: 100%; }
.legal-prose { max-width: 72ch; }
.legal-prose h2 {
  font-size: 1.06rem; margin: 1.9rem 0 .55rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.legal-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose p { margin: 0 0 .8rem; line-height: 1.68; }
/* Inline prose links get the WCAG 2.5.8 24px floor through vertical PADDING, not
   `inline-flex` + min-height like the standalone links elsewhere in this file. An
   inline-flex link is an atomic box: it cannot break across lines, so a multi-word
   one ("terms of service", "course page") would jump to a line of its own on a
   narrow phone. Padding on an inline box grows the hit area — which is what 2.5.8
   measures — without touching the line box, so no prose reflows at all. */
.legal-prose p a, .legal-prose li a, .legal-prose dd a { padding-block: 3px; }
/* .legal-fine is 11.2px, so the same 3px lands at 20px. These two fine-print lines
   carry a single-word link each, so inline-flex is safe here — it cannot need to wrap. */
.legal-prose p.legal-fine a, .ck-fine a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 0; }
/* The link ROW (`.legal-links`) is pills, not prose — it sets its own box. */
.legal-prose p.legal-links a { padding-block: 0; }
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84em;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xs);
  padding: .08em .35em;
}
.legal-list { margin: 0 0 .9rem; padding-left: 1.15rem; display: grid; gap: .4rem; }
.legal-list li { line-height: 1.6; }
/* Numbered steps (the Pass Protection claim procedure): the marker carries meaning
   here — step 2 after step 1 — so it is given the brand colour and a little weight
   rather than being left as a grey default bullet's numeric twin. */
.legal-steps li::marker { color: var(--brand); font-weight: 800; }
/* Term/definition rows rather than a table: the privacy page is mostly
   "this field → why we hold it", and a table would scroll sideways on a phone. */
.legal-dl { margin: 0 0 .9rem; display: grid; gap: .8rem; }
.legal-dt {
  padding: .7rem .85rem; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.legal-dt dt { font-weight: 700; font-size: .92rem; margin-bottom: .25rem; }
.legal-dt dd { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.legal-note {
  padding: .75rem .9rem; border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem;
}
/* Fine print: the seller identity at the foot of the terms. No heading over it, 11px
   against 16px body copy, and washed toward the background — it is there to be found by
   someone looking for it, not read by someone who isn't.
   The 90% mix is not a taste call, it is the floor: measured in a real browser, it lands
   at 4.82:1 in light and 5.71:1 in dark, and the next step down (85%) drops light to
   4.34:1, under the 4.5:1 minimum for small text. Fainter than this and the line stops
   being legible, which would mean carrying the cost of publishing the identity without
   the protection of having published it. Re-measure both themes before changing it. */
.legal-fine { color: color-mix(in srgb, var(--muted) 90%, var(--bg)); font-size: .7rem; line-height: 1.5; }
.legal-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0 0 .9rem; }
.legal-link {
  display: inline-block;
  font-weight: 650; font-size: .9rem; color: var(--brand); text-decoration: none;
  padding: .3rem 0; min-height: 32px;
}
.legal-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-empty { text-align: center; padding: 1rem 0 .5rem; }
.legal-empty h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-empty p { max-width: 46ch; margin-inline: auto; color: var(--muted); }
.legal-empty .legal-links { justify-content: center; }

/* FAQ accordion — native <details> so it works with JS off and is find-in-page
   searchable; the chevron, the open transition and the category chrome are what
   we style. Grouped into four categories (app/legal.js), each with an icon tile
   and a count, so the page can be scanned by section instead of read top to
   bottom. */
.faq-groups { display: grid; gap: 1.7rem; }
.faq-group-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
/* Beats .legal-prose h2's divider rules: the icon tile is the separator here, and
   a hairline above it would cut the tile in half. */
.faq-group-head h2 { margin: 0; padding-top: 0; border-top: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.faq-group-txt { min-width: 0; }
.faq-group-txt p { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.faq-ico {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-sm); background: var(--grad-ui); color: var(--brand-ink);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 26%, transparent);
}
.faq-ico svg { width: 20px; height: 20px; }
.faq-count {
  flex: none; margin-left: auto; min-width: 26px; padding: .12rem .45rem; text-align: center;
  font-size: .76rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.faq-list { display: grid; gap: .55rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.faq-item:hover { border-color: color-mix(in srgb, var(--brand) 34%, var(--border)); box-shadow: var(--shadow); }
.faq-item[open] {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; cursor: pointer; font-weight: 650; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-md); }
.faq-q { min-width: 0; line-height: 1.45; }
.faq-item[open] .faq-q { color: var(--brand); }
/* Chevron doubles as the open indicator: a caret that rotates AND a tinted well
   that fills, so the state is not carried by rotation alone. */
.faq-chev {
  flex: none; position: relative; width: 26px; height: 26px; border-radius: 999px;
  background: var(--surface-2); transition: background .18s ease, transform .18s ease;
}
.faq-chev::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .18s ease;
}
.faq-item:hover .faq-chev { background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); }
.faq-item[open] .faq-chev { background: color-mix(in srgb, var(--brand) 14%, var(--surface-2)); }
.faq-item[open] .faq-chev::before { transform: translateY(1px) rotate(-135deg); border-color: var(--brand); }
.faq-body { padding: 0 1rem .95rem; }
.faq-body p { margin: 0 0 .6rem; font-size: .92rem; line-height: 1.65; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }
/* The answer eases in rather than snapping. Animating the BODY, not the
   <details> height: height/content-visibility animation still needs
   interpolate-size or a JS-driven max-height, and a 6px slide reads as the same
   gesture at a fraction of the risk. */
.faq-item[open] .faq-body { animation: faq-open .24s cubic-bezier(.2,.7,.3,1) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* #/faq's own shell (legal.js page()): a sticky menu + search beside the groups, and each
   group one card of hairline-divided rows — 22 separate boxes read as a wall. The
   card rules are scoped to .faqwrap so the landing FAQ (.lp-faq) keeps its own look. */
.faqwrap { gap: 1.2rem; }
.faq-head { max-width: 46rem; }
.faq-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.025em; }
.faq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.2rem; align-items: start; max-width: 1060px; }
.faq-side { position: sticky; top: 5.2rem; display: grid; gap: .9rem; }
.faq-search {
  display: flex; align-items: center; gap: .55rem; padding: 0 .85rem; min-height: 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.faq-search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.faq-search-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .95rem; color: var(--text); padding: .7rem 0; }
.faq-toc { display: grid; gap: .25rem; }
.faq-toc-btn {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .7rem; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--r-md); background: none; cursor: pointer;
  font: inherit; font-size: .93rem; font-weight: 650; color: var(--muted); text-align: left;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.faq-toc-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.faq-toc-btn.is-on { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); color: var(--text); box-shadow: var(--shadow); }
.faq-toc-btn:disabled { opacity: .45; cursor: default; }
.faq-toc-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq-toc-ico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); color: var(--brand);
}
.faq-toc-btn.is-on .faq-toc-ico { background: var(--grad-ui); color: var(--brand-ink); }
.faq-toc-ico svg { width: 17px; height: 17px; }
.faq-toc-h { flex: 1; min-width: 0; }
.faq-toc-btn .faq-count { margin-left: 0; }
.faqwrap .faq-groups { gap: 1.4rem; }
.faqwrap .faq-group {
  scroll-margin-top: 5.6rem; padding: 1.2rem 1.3rem .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.faqwrap .faq-group-head { padding-bottom: .9rem; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.faqwrap .faq-group-head h2 { font-size: 1.15rem; }
.faqwrap .faq-list { gap: 0; }
.faqwrap .faq-item,
.faqwrap .faq-item:hover,
.faqwrap .faq-item[open] { border: 0; border-radius: 0; background: none; box-shadow: none; }
.faqwrap .faq-item + .faq-item { border-top: 1px solid var(--border); }
.faqwrap .faq-item summary { padding: 1rem 0; font-size: 1rem; }
.faqwrap .faq-item summary:hover .faq-q { color: var(--brand); }
.faqwrap .faq-body { padding: 0 2.6rem 1.1rem 0; }
.faqwrap .faq-body p { font-size: .95rem; }
.faq-none { margin: 0; padding: 1.4rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r-lg); }
.faq-group[hidden], .faq-item[hidden], .faq-none[hidden] { display: none; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .faq-side { position: static; }
  /* The menu turns into a swipeable chip row on narrow screens. */
  .faq-toc { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: .1rem 1rem .3rem; }
  .faq-toc::-webkit-scrollbar { display: none; }
  .faq-toc-btn { width: auto; flex: none; white-space: nowrap; border-color: var(--border); background: var(--surface); padding: .45rem .7rem; }
  .faq-toc-ico { width: 24px; height: 24px; }
  .faq-toc-ico svg { width: 15px; height: 15px; }
  .faqwrap .faq-group { padding: 1rem 1rem .3rem; }
  .faqwrap .faq-body { padding-right: 0; }
}

/* Closing panel: the one place on the page that points at a human. */
.faq-help {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: .4rem; padding: 1.15rem 1.2rem; border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 62%),
    var(--surface-2);
}
.faq-help-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; background: var(--surface); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
}
.faq-help-ico svg { width: 21px; height: 21px; }
.faq-help-txt { flex: 1 1 15rem; min-width: 0; }
.faq-help-txt h2 { margin: 0; padding-top: 0; border-top: 0; font-size: 1rem; }
.faq-help-txt p { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.faq-help-cta { flex: none; }
/* Phones: icon beside the text, button on its own row. Not flex-direction: column —
   that turns .faq-help-txt's 15rem flex-basis into 15rem of HEIGHT (the empty block). */
@media (max-width: 520px) {
  .faq-help { align-items: flex-start; gap: .75rem; padding: 1rem; }
  .faq-help-ico { width: 34px; height: 34px; }
  .faq-help-ico svg { width: 18px; height: 18px; }
  .faq-help-txt { flex: 1 1 0; }
  .faq-help-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-chev, .faq-chev::before, .faq-item { transition: none; }
  .faq-item[open] .faq-body { animation: none; }
}

/* Sitemap — the one page that spells out the access model in full. */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2rem; }
.sitemap-group h2 { margin: 0 0 .6rem; padding-top: 0; border-top: 0; font-size: .95rem; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
/* Not a flex row: as a flex item the access pill stretches to the column width
   whenever the label + pill are too wide to sit on one line. Inline flow lets it
   wrap while keeping its intrinsic pill size. */
.sitemap-group li { display: block; }
.sitemap-group a {
  display: inline-block;
  color: var(--text); text-decoration: none; font-size: .9rem; padding: .32rem 0; min-height: 32px;
}
.sitemap-group a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
/* The pill sits on its own line under the link, so every row aligns the same way. */
.sitemap-badge {
  display: block; width: fit-content; white-space: nowrap; margin: -.15rem 0 .3rem;
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .1rem .4rem; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--muted);
}
.sitemap-badge.sm-free, .sitemap-badge.sm-preview { color: var(--ok-ink); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.sitemap-badge.sm-paid, .sitemap-badge.sm-trial { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
/* .sitemap-grid sits inside .legal-prose, whose 72ch measure is meant for prose,
   not for a multi-column link grid — let it use the whole card. */
.legal-prose:has(.sitemap-grid) { max-width: none; }
.sitemap-group .nowrap { white-space: nowrap; }

/* account page */
.accountwrap { display: grid; gap: 1.25rem; }
.accountwrap .card { margin: 0; }
.acct-head h1 { margin-bottom: .2rem; }
.accountwrap h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nav-row.center { justify-content: center; }
.sessions { display: grid; gap: .6rem; margin-bottom: .9rem; }
.sessrow { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.sessrow .badge { color: var(--ok-ink); font-size: .7rem; vertical-align: middle; margin-left: .3rem; }
/* Account page as a settings list (2026-11-01): titles above flat grouped panels, one fold open at a time. */
.acct2 { max-width: 720px; margin-inline: auto; gap: 1.6rem; }
.acct-hero { display: flex; align-items: center; gap: 1rem; padding: .25rem 0 0; }
.acct-avatar { width: 3.5rem; height: 3.5rem; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.45rem; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); }
.acct-hero-txt { min-width: 0; }
.acct-hero-txt h1 { margin: 0; font-size: clamp(1.45rem, 3.2vw, 1.85rem); line-height: 1.15; overflow-wrap: anywhere; }
.acct-hero-txt p { margin: .2rem 0 0; overflow-wrap: anywhere; }
.acct-eyebrow { margin: 0 0 .15rem !important; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.acct-sec { display: grid; gap: .5rem; }
.acct2 h2.acct-h { margin: 0 0 0 .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
/* Flat panel: no shadow, a hairline you barely see — the rows inside carry the structure. */
.acct-group { background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 16px; padding: .3rem 1.1rem; }
.acct-gifts { display: grid; gap: .75rem; padding: .95rem 1.1rem; }
.acct-h-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.acct2 .acct-pass { padding: .75rem 0; }
.acct2 .acct-pass + .acct-pass { border-top: 1px solid var(--border); }
.acct2 .acct-pass-state { font-size: .92rem; }
.acct-row, .acct-fold > summary { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; }
.acct-fold > summary { margin: 0 -.6rem; padding-inline: .6rem; border-radius: 10px; transition: background-color .15s; }
.acct-list > * + * { border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.acct-list > .sessions { border-top: 0; }
.acct-row-ico { width: 2.1rem; height: 2.1rem; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text); }
.acct-row-ico svg { width: 1.05rem; height: 1.05rem; }
.acct-row-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: .1rem; }
.acct-row-txt b { font-size: .95rem; }
.acct-row-txt small { color: var(--muted); font-size: .84rem; }
.acct-fold > summary { cursor: pointer; list-style: none; }
.acct-fold > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .acct-fold > summary:hover { background-color: var(--surface-2); } }
/* A soft fill, not a red ring: clicking a row must not frame it like an error. */
.acct-fold > summary:focus { outline: none; }
/* Chrome counts a mouse click on <summary> as :focus-visible, so no box here — the title underlines instead. */
.acct-fold > summary:focus-visible .acct-row-txt b { text-decoration: underline; text-underline-offset: 3px; }
.acct-row-go { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--brand); }
.acct-row-go svg { width: .9rem; height: .9rem; transition: transform .2s; }
.acct-fold[open] .acct-row-go svg { transform: rotate(90deg); }
.acct-fold-body { padding: .15rem 0 1.1rem 2.95rem; }
.acct-fold-body .authform { gap: .7rem; }
.acct-actions { display: flex; justify-content: flex-start; }
.acct2 .acct-actions .btn, .acct2 .acct-pass .btn { box-shadow: none; font-size: .9rem; padding: .55rem 1.05rem; min-height: 0; }
.acct2 .sessions { margin: -.45rem 0 0; padding: 0 0 .85rem 2.95rem; gap: .35rem; }
.acct2 .sessrow { padding: 0; border: 0; background: none; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; font-size: .86rem; }
#giftlist, #giftlist p { font-size: .9rem; color: var(--muted); margin: 0; }
.acct-note { margin: 0 0 0 .2rem; font-size: .8rem; }
.acct-note a { color: var(--muted); }
.acct-list > .acct-note { margin: 0; padding: .65rem 0 .7rem; }
.acct-danger { padding: 0 .2rem; }
.acct-danger > summary { cursor: pointer; display: inline-block; font-size: .86rem; font-weight: 700; color: var(--bad); }
.acct-danger-body { margin-top: .75rem; padding: 1.1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--border));
  border-radius: 16px; background: var(--surface); }
@media (max-width: 560px) {
  .acct-group { padding: .2rem .9rem; }
  .acct-fold-body, .acct2 .sessions { padding-left: 0; }
  .acct-row-go { font-size: 0; gap: 0; }
  .acct-row-go svg { width: 1.1rem; height: 1.1rem; }
  .acct2 .acct-pass-state { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .acct-row-go svg, .acct-fold > summary { transition: none; } }
/* What deleting the account costs, listed above the confirm field. Body text stays
   on --muted, never --bad: the tone is carried by the card's border and heading, and
   status colour as body copy is the thing docs/frontend.md's state-panel rule bans. */
.danger-list { margin: .1rem 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; }
.danger-list li { margin: .2rem 0; }
.card.danger { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.card.danger h2 { color: var(--bad); }
.btn.danger-btn { background: var(--bad-solid); color: #fff; border-color: transparent; }
.btn.danger-btn:hover { filter: brightness(1.05); }

@media (max-width: 560px) {
  /* `.mainnav { gap: .9rem }` used to live here and was the menu's real spacing:
     it sits later in the file than the <=860px panel rule, both are media queries
     (so equal specificity), and source order won — every row in the hamburger panel
     was pushed 14.4px apart instead of the 5.6px that rule asks for. It dates from
     when .mainnav was still a horizontal wrapping row on phones; as a vertical panel
     it was just dead space. Removed, not overridden. */
  .view { padding: 1.1rem; }
  .authform.grid2 { grid-template-columns: 1fr; }
  .topbar { gap: .6rem 1rem; }
  .dash { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .statgrid { width: 100%; }
}

/* =====================================================================
   LANDING PAGE (signed-out home) — marketing / conversion design
   ===================================================================== */
/* The width used to live here; it is now --page-w for every route (see :root).
   Only the tighter top padding is landing-specific — the hero carries its own. */
body.landing .view { padding-top: .5rem; }
/* minmax(0,1fr), not the implicit `auto` track: an auto track grows to its
   content's max-content width, so one wide child (the sign marquee, whose track
   is `width: max-content`) would stretch every section past the viewport. */
.lp { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 7vw, 5.5rem); }
.lp section { scroll-margin-top: 5rem; }
/* The landing FAQ reuses the #/faq accordion (.faq-item in the legal styles); only
   the width is local — a full-bleed accordion on a marketing page reads as a form. */
.lp-faq .faq-list { max-width: 46rem; margin-inline: auto; }

.lp-faq .nav-row { margin-top: 1.4rem; }

/* Landing-page FAQ. The shape is the one zutobi.com/us uses and it is worth
   naming, because it is the opposite of this sheet's usual instinct: the rows
   are NOT cards. No fill, no border, no radius, no shadow — a bold question, a
   plus, and a hairline between each. Boxing them competes with the four device
   replicas above and makes twelve small frames out of a section whose whole job
   is to be read. The category repeats as a heading beside the list, so the tab
   you are in is still named once you have scrolled past the bar.

   CSS only: the radios are the state, so it works with scripts still loading and
   arrow keys move between tabs for free. The inputs sit loose and the labels in
   `.faq-tabbar` so the bar can carry the underline the active tab sits on; that
   costs the adjacent-sibling selector, hence `:has()`, which also means these
   rules never need to know a section's id prefix. */
.faq-tabs { position: relative; }
.faq-tab-in { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.faq-tabbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .2rem;
  border-bottom: 1px solid var(--border);
}
.faq-tab {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem; margin-bottom: -1px;
  border-bottom: 2px solid transparent; background: none;
  font-size: .98rem; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.faq-tab svg { width: 1.15em; height: 1.15em; flex: none; }
/* Phones: one swipeable row, not four tabs stacked on three wrapped lines. The fade on the
   right edge says there is more to swipe to. */
@media (max-width: 720px) {
  .faq-tabbar {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    overscroll-behavior-x: contain; scroll-padding-inline: 1rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .faq-tabbar::-webkit-scrollbar { display: none; }
  .faq-tab { flex: none; white-space: nowrap; padding: .8rem .9rem; font-size: .93rem; }
  .faq-tab:last-child { margin-right: 2rem; }
}
.faq-tab:hover { color: var(--text); }
.faq-tab-in:focus-visible ~ .faq-tabbar .faq-tab { outline: none; }
.faq-tabs:has(> .faq-tab-in:nth-of-type(1):focus-visible) .faq-tabbar > .faq-tab:nth-child(1),
.faq-tabs:has(> .faq-tab-in:nth-of-type(2):focus-visible) .faq-tabbar > .faq-tab:nth-child(2),
.faq-tabs:has(> .faq-tab-in:nth-of-type(3):focus-visible) .faq-tabbar > .faq-tab:nth-child(3),
.faq-tabs:has(> .faq-tab-in:nth-of-type(4):focus-visible) .faq-tabbar > .faq-tab:nth-child(4) {
  outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-sm);
}
/* The selected tab: brand ink and the rule under it, never colour alone. */
.faq-tabs:has(> .faq-tab-in:nth-of-type(1):checked) .faq-tabbar > .faq-tab:nth-child(1),
.faq-tabs:has(> .faq-tab-in:nth-of-type(2):checked) .faq-tabbar > .faq-tab:nth-child(2),
.faq-tabs:has(> .faq-tab-in:nth-of-type(3):checked) .faq-tabbar > .faq-tab:nth-child(3),
.faq-tabs:has(> .faq-tab-in:nth-of-type(4):checked) .faq-tabbar > .faq-tab:nth-child(4) {
  color: var(--brand-on-white); border-bottom-color: var(--brand);
}
:root[data-theme="dark"] .faq-tabs .faq-tabbar > .faq-tab { color: var(--muted); }
:root[data-theme="dark"] .faq-tabs:has(> .faq-tab-in:nth-of-type(1):checked) .faq-tabbar > .faq-tab:nth-child(1),
:root[data-theme="dark"] .faq-tabs:has(> .faq-tab-in:nth-of-type(2):checked) .faq-tabbar > .faq-tab:nth-child(2),
:root[data-theme="dark"] .faq-tabs:has(> .faq-tab-in:nth-of-type(3):checked) .faq-tabbar > .faq-tab:nth-child(3),
:root[data-theme="dark"] .faq-tabs:has(> .faq-tab-in:nth-of-type(4):checked) .faq-tabbar > .faq-tab:nth-child(4) { color: var(--brand); }

.faq-panel { display: none; }
.faq-tabs:has(> .faq-tab-in:nth-of-type(1):checked) .faq-panel[data-p="0"],
.faq-tabs:has(> .faq-tab-in:nth-of-type(2):checked) .faq-panel[data-p="1"],
.faq-tabs:has(> .faq-tab-in:nth-of-type(3):checked) .faq-panel[data-p="2"],
.faq-tabs:has(> .faq-tab-in:nth-of-type(4):checked) .faq-panel[data-p="3"] { display: grid; }

.lp-faq .faq-panel {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem 3rem; align-items: start;
  max-width: 62rem; margin: 2.6rem auto 0;
}
.faq-panel-h { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 0; }
.lp-faq .faq-panel .faq-list { max-width: none; margin: 0; gap: 0; }

/* The rows. Everything the card treatment gives `.faq-item` elsewhere is undone
   here — including the hover shadow and the open border, which are set on the
   shared rule and would otherwise leak a box back in. */
.lp-faq .faq-panel .faq-item,
.lp-faq .faq-panel .faq-item:hover,
.lp-faq .faq-panel .faq-item[open] {
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: none; box-shadow: none;
}
.lp-faq .faq-panel .faq-item summary { padding: 1.3rem 0; font-size: 1.1rem; font-weight: 700; gap: 1.5rem; }
.lp-faq .faq-panel .faq-item summary:focus-visible { outline-offset: 2px; border-radius: var(--r-sm); }
.lp-faq .faq-panel .faq-body { padding: 0 2.5rem 1.3rem 0; }
.lp-faq .faq-panel .faq-body p { font-size: .95rem; }

/* Chevron becomes a plus that loses its upright on open — the same "state is not
   rotation alone" rule as the caret it replaces, read as + / -. */
.lp-faq .faq-panel .faq-chev,
.lp-faq .faq-panel .faq-item:hover .faq-chev,
.lp-faq .faq-panel .faq-item[open] .faq-chev {
  width: 18px; height: 18px; background: none; border-radius: 0;
}
.lp-faq .faq-panel .faq-chev::before {
  inset: auto 0; top: 50%; margin: 0; width: 100%; height: 2px; border: 0;
  background: var(--muted); border-radius: 1px; transform: translateY(-50%);
}
.lp-faq .faq-panel .faq-chev::after {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--muted); border-radius: 1px; transform: translateX(-50%);
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.lp-faq .faq-panel .faq-item[open] .faq-chev::before { background: var(--brand); }
.lp-faq .faq-panel .faq-item[open] .faq-chev::after { background: var(--brand); transform: translateX(-50%) scaleY(0); }

@media (max-width: 860px) {
  .lp-faq .faq-panel { grid-template-columns: 1fr; gap: .4rem; margin-top: 1.8rem; }
  .faq-panel-h { margin: 0; }
  .faq-tab { padding: .7rem .9rem; font-size: .88rem; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-tab { transition: none; }
  .lp-faq .faq-panel .faq-chev::after { transition: none; }
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: var(--fs-h2); margin: .5rem 0 .5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* hero — UN-BOXED (2026-09-14). It was a card (radius, border, --shadow-lg, a --surface fill)
   holding a second card (the illustration, with its own --shadow-lg), sitting over a third (the
   red stats band): three stacked boxes before the fold, and the owner read it as exactly that.
   The outer frame is gone. The hero sits straight on the page, and its text starts on the same
   rail edge as the brand mark and every section heading (side padding 0 — .view already carries
   the gutter). `overflow` is no longer hidden, because there is nothing left to clip.

   ⚠️ NO BACKGROUND ON THIS ELEMENT, and that is the rule that keeps it un-boxed. Any paint here
   is confined to the element's rectangle, so a glow that is not fully transparent at every edge
   redraws the box as a faint tinted panel — measured 2026-09-14: two "soft" radial glows put
   here brought the rectangle straight back, worst in dark mode, and bisecting the layers over
   CDP proved they were the only cause. (The trap: in `radial-gradient(55% 70% at …)` those
   percentages are RADII, not diameters, so each glow was ~1230×800px and tinted the whole box.)
   The ambient colour comes from `.lp-hero::after` in motion.css — the orbiting glow that used
   to live inside the card and now floats free — and from `.lp-visual::before` behind the art.
   Neither is a background of this element, so neither can draw its edge.

   ⚠️ The boot skeleton in index.html uses this same class and so follows automatically. The
   VERTICAL padding is unchanged on purpose: that is what fixes the heading's y for the CLS
   note above, and it must stay in step with whatever this rule says. */
.lp-hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0; }
/* No pill (owner 2026-10-01): small spaced capitals between two short fading rules. */
.lp-eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.lp-eyebrow::before, .lp-eyebrow::after { content: ""; width: 1.75rem; height: 1.5px; border-radius: 1px; flex: none; }
.lp-eyebrow::before { background: linear-gradient(90deg, transparent, var(--brand)); }
.lp-eyebrow::after { background: linear-gradient(90deg, var(--brand), transparent); }
.lp-title { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1rem; }
.lp-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Clipped gradient text is painted by a `transparent` colour, so a selection highlight
   lands BEHIND nothing and the words vanish while selected.
   ⚠️ This is INSURANCE, not a live fix — say so plainly rather than letting the next
   reader assume it is load-bearing. `body { user-select: none }` turns selection off
   across the app, and the generated pages under web/no|en/ (which do re-enable it, on
   `.seo-main *` in seo.css) carry no `.lp-title .grad` heading today — checked, zero of
   them. So there is currently no surface where this can be seen. It earns its one line
   because the two things that would expose it are both cheap and plausible: relaxing the
   app-wide selection block, or giving a generated page the real hero heading. Costs
   nothing when no selection is active. */
.lp-title .grad::selection { background: var(--brand); color: #fff; -webkit-text-fill-color: #fff; }
.lp-sub { color: var(--muted); font-size: var(--fs-lead); max-width: 48ch; margin-bottom: 1.6rem; }
.lp-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.lp-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.lp-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.lp-trust svg { width: 1.05rem; height: 1.05rem; color: var(--ok); }

/* hero visual: holds the device replicas (app/showcase.js, web/showcase.css).
   The hand-drawn .phone/.pm-* mockup that used to live here was retired on
   2026-08-15 — the showcase frames replaced it, and two hand-drawn handsets in
   two stylesheets sat side by side on the same page. */
.lp-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
/* The glow that replaced the illustration's frame. A plain radial-gradient with a long falloff
   — NO `filter: blur`: a gradient is already soft, and a filtered layer inside the parallaxed
   .lp-visual would be re-composited on every scroll for no gain (see the m-rise filter note in
   docs/frontend.md for the class of trouble filters invite). Brand at the core, blue at the
   rim, so it ties the scene to the page's own two accent hues rather than reading as a shadow. */
.lp-visual::before, .hero-art::before { content: ""; position: absolute; inset: -8% -12%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 52%,
    color-mix(in srgb, var(--brand) 20%, transparent),
    color-mix(in srgb, var(--blue) 12%, transparent) 55%, transparent 80%); }
.lp-visual > *, .hero-art > * { position: relative; z-index: 1; }
/* hero illustration. No drop shadow any more — the glow behind it does that job — and a larger
   radius, so it reads as a rounded object in the scene rather than a framed picture. Grown 460
   -> 500px: the card padding it used to sit inside is gone, so there is room. */
.hero-scene { width: 100%; max-width: 500px; aspect-ratio: 500 / 440; height: auto; border-radius: var(--r-2xl); display: block; }

/* ---- landing hero: the frame wall (app/heroframes.js) --------------------------------
   Nine framed stills from the course and the question bank, scattered like prints dropped
   on a table. It replaced the driven car scene here on 2026-09-22 (the dashboard still runs
   that); `.hero-art .hero-scene` above is what still sizes it there.

   The box is the SAME 500x440 the scene used, so nothing around it moved — and the slots in
   heroframes.js are percentages of it, so the cluster scales with the column rather than
   reflowing. Cards are placed from their CENTRE (`translate: -50% -50%`), which is why a
   tilt cannot push one out of the box: rotation happens about that same centre.

   ⚠️ `translate` and `rotate` are separate properties here, NOT a `transform` shorthand.
   motion.css adds the parallax to the `translate` calc per card (deeper cards move less),
   and a `transform` would have to restate the centring and the tilt to do it. */
.hero-frames { position: relative; width: 100%; max-width: 520px; aspect-ratio: 500 / 440;
  margin-inline: auto;
  /* The mount — white in light mode, a lighter board than the page in dark, so a night
     photograph still reads as a framed print rather than a hole in the background. */
  --hf-mat: #fff; --hf-edge: rgba(16, 24, 40, .06);
  --hf-cast: rgba(16, 24, 40, .28); --hf-cast-near: rgba(16, 24, 40, .14); }
[data-theme="dark"] .hero-frames {
  --hf-mat: #262d38; --hf-edge: rgba(255, 255, 255, .08);
  --hf-cast: rgba(0, 0, 0, .55); --hf-cast-near: rgba(0, 0, 0, .35); }
.hf { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0;
  translate: -50% -50%; rotate: var(--r);
  padding: 4px; background: var(--hf-mat); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--hf-edge), 0 12px 28px -10px var(--hf-cast), 0 3px 8px -3px var(--hf-cast-near); }
/* The image keeps its own 3:2 — the files are already cropped to it, so `cover` here is
   insurance against a future frame of another shape, not a crop anything relies on. */
.hf img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; }
/* A 3D clip frame (app/heroframes.js) plays over its own still, inside the same 4px mount. */
.hf video { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px);
  object-fit: cover; border-radius: 10px; pointer-events: none; }

/* Phones: the cluster is the hero's whole picture, so it keeps its shape rather than
   becoming seven stamps — the column is already full width by 820px, and .lp-visual's
   min-height (280px under 480px) is what the aspect-ratio plays against. */
@media (max-width: 480px) { .hero-frames { max-width: 380px; } }

/* ---- wide screens: the frames come in from BOTH edges instead (owner, 2026-09-22) ------
   The driving-tests.org shape. The hero copy centres, and the cards leave the rail entirely:
   each one is placed from the hero's CENTRE outward — `right: calc(50% + --fx)` on the left
   flank, `left: calc(50% + --fx)` on the right — so the set spreads as the window widens and
   the outermost simply run off the screen. Nothing new clips them: `.view:has(.lp-hero)` is
   already overflow-x: visible (see there) and `html, body { overflow-x: clip }` stops the
   page scrolling sideways at the viewport, which is the edge we want them cut at.

   1180px, not the 820px the rest of the hero uses: below that the copy and the nearest card
   fight for the same pixels, and the cluster is the better answer. So the cluster is not a
   phone fallback — it is what tablets and small laptops get, unchanged.

   ⚠️ `.lp-hero .lp-visual`, not `.lp-visual`: motion.css loads after this file and its
   `.lp-hero > * { position: relative }` would otherwise win the tie and un-absolute the layer. */
@media (min-width: 1180px) {
  .lp-hero, .hero.hero-split { grid-template-columns: 1fr; justify-items: center; text-align: center;
    min-height: 460px; }
  /* 760px keeps ~40px of air between the longest line and the nearest card's inner edge
     (--fx 540 less half of --fw 224 = 428 from centre, against the copy's 380). */
  .lp-hero > div:first-child, .hero.hero-split > div:first-child { max-width: 760px; }
  .lp-hero .lp-sub, .hero.hero-split .lead { margin-inline: auto; }
  .lp-hero .lp-cta, .lp-hero .lp-trust,
  .hero.hero-split .hero-cta, .hero.hero-split .hero-pills { justify-content: center; }
  .lp-hero .lp-visual, .hero.hero-split .hero-art { position: absolute; inset: 0; min-height: 0;
    display: block; pointer-events: none; }
  /* The little radial glow was sized to sit behind a 500px cluster; stretched over the whole
     hero it is just a wash, and `.lp-hero::after` (motion.css) is already the hero's ambience. */
  .lp-hero .lp-visual::before, .hero.hero-split .hero-art::before { display: none; }
  /* static, so the cards' containing block is .lp-visual — i.e. the hero box, which is what
     --fy is a percentage of. */
  .hero-frames { position: static; max-width: none; aspect-ratio: auto; margin: 0; }
  /* Both flanks stay on `left` and keep the shared `translate: -50%` centring — mirroring
     with `right:` would need the X translate flipped too, in this file and again in the
     parallax calc in motion.css. One sign in one place instead. */
  .hf { top: var(--fy); width: var(--fw); rotate: var(--fr); }
  .hf[data-flank="l"] { left: calc(50% - var(--fx)); }
  .hf[data-flank="r"] { left: calc(50% + var(--fx)); }
}

/* ---- hero illustration palette (app/herodrive.js draws it, this colours it) ----
   The scene's geometry is generated in JS and its colour is entirely here, for one reason: dark mode
   turns the drive into a night drive, and none of that can be expressed by regenerating markup — the
   theme toggle flips an attribute on <html> and the SPA does not re-render. So every fill in the SVG
   is a `.hd-*` class over a token, and the whole scene changes with one block.
   Night is not "the day scene, dimmed". The sun becomes a moon and the stars come out; the fields and
   tarmac go dark while the *markings* get brighter, because at night the only thing lighting them is
   the car's own beams; the sign faces and marker posts light up hardest of all, which is what
   retroreflective sheeting does; tree shadows disappear and are replaced by the pool of light the
   headlights throw; and the car's rear lamps stop being daytime amber reflectors and burn red. */
.hero-scene {
  --hd-sky0: #bfe4ff; --hd-sky1: #eaf6ff;
  --hd-orb: #ffcf4d; --hd-orb-glow-o: .22;
  --hd-star-o: 0;
  --hd-cloud: #fff; --hd-cloud-o: .95;
  --hd-far: #8fd08a; --hd-near: #6cbf6a; --hd-verge: #5cae5a;
  --hd-road: #3b4250;
  --hd-edge: #fff; --hd-edge-o: .55;
  --hd-dash: #f4c542; --hd-dash-o: .95;
  --hd-shade-o: .13; --hd-beam-o: 0;
  --hd-bark: #7a5230; --hd-leaf: #5cae5a; --hd-leaf2: #4f9e4e;
  --hd-pole: #98a2b3; --hd-face: #fff; --hd-ring: #d81f3a; --hd-ink: #1a1f28;
  --hd-refl: #fff;
  --hd-paint: #d81f3a; --hd-paint2: #b81830; --hd-glass: #bfe3ff;
  --hd-lamp: #ffd34d; --hd-glow-o: 0;
  --hd-chrome: #9aa0ab; --hd-plate: #fff;
  --hd-tyre: #2a2f38; --hd-tread: #6b7280; --hd-tread-o: .38;
  --hd-shadow: #1a2230; --hd-shadow-o: .18;
  --hd-car1: #2f6fed; --hd-car2: #e8eaee; --hd-car3: #3aa76d;
  --hd-car1d: #2559c4; --hd-car2d: #c3c8d2; --hd-car3d: #2f8b59;
}
[data-theme="dark"] .hero-scene {
  --hd-sky0: #0a1130; --hd-sky1: #1d2c56;
  --hd-orb: #dfe7fb; --hd-orb-glow-o: .12;
  --hd-star-o: .85;
  --hd-cloud: #46578a; --hd-cloud-o: .4;
  --hd-far: #1d3a2c; --hd-near: #163024; --hd-verge: #1a3529;
  --hd-road: #14181f;
  --hd-edge: #fff; --hd-edge-o: .72;
  --hd-dash: #ffd964; --hd-dash-o: 1;
  --hd-shade-o: 0; --hd-beam-o: 1;
  --hd-bark: #2b2a2f; --hd-leaf: #22402f; --hd-leaf2: #1b3527;
  --hd-pole: #5d6675; --hd-face: #f2f5fb; --hd-ring: #e8324c; --hd-ink: #12151b;
  --hd-refl: #eaf2ff;
  --hd-paint: #a8172c; --hd-paint2: #830f20; --hd-glass: #22314c;
  --hd-lamp: #ff3b30; --hd-glow-o: 1;
  --hd-chrome: #59606c; --hd-plate: #cfd6e2;
  --hd-tyre: #14171d; --hd-tread: #3a4049; --hd-tread-o: .55;
  --hd-shadow: #000; --hd-shadow-o: .34;
  --hd-car1: #1c3a70; --hd-car2: #6b7488; --hd-car3: #1f5a3e;
  --hd-car1d: #142c56; --hd-car2d: #525a6b; --hd-car3d: #17452f;
}
.hero-scene .hd-sky0 { stop-color: var(--hd-sky0); }
.hero-scene .hd-sky1 { stop-color: var(--hd-sky1); }
.hero-scene .hd-orb { fill: var(--hd-orb); }
.hero-scene .hd-orb-glow { fill: var(--hd-orb); opacity: var(--hd-orb-glow-o); }
.hero-scene .hd-stars { fill: #fff; opacity: var(--hd-star-o); }
.hero-scene .hd-clouds { fill: var(--hd-cloud); opacity: var(--hd-cloud-o); }
.hero-scene .hd-far { fill: var(--hd-far); }
.hero-scene .hd-near { fill: var(--hd-near); }
.hero-scene .hd-verge { fill: var(--hd-verge); }
.hero-scene .hd-road { fill: var(--hd-road); }
.hero-scene .hd-edge { fill: var(--hd-edge); opacity: var(--hd-edge-o); }
.hero-scene .hd-dash { fill: var(--hd-dash); opacity: var(--hd-dash-o); }
.hero-scene .hd-shade { fill: #0d1420; opacity: var(--hd-shade-o); }
.hero-scene .hd-beam { opacity: var(--hd-beam-o); }
.hero-scene .hd-bark { fill: var(--hd-bark); }
.hero-scene .hd-leaf { fill: var(--hd-leaf); }
.hero-scene .hd-leaf2 { fill: var(--hd-leaf2); }
.hero-scene .hd-pole { fill: var(--hd-pole); }
.hero-scene .hd-plate { fill: var(--hd-face); stroke: var(--hd-ring); }
.hero-scene .hd-ink { fill: var(--hd-ink); }
.hero-scene .hd-inks { fill: none; stroke: var(--hd-ink); }
.hero-scene .hd-refl { fill: var(--hd-refl); }
.hero-scene .hd-paint { fill: var(--hd-paint); }
.hero-scene .hd-paint2 { fill: var(--hd-paint2); }
.hero-scene .hd-glass { fill: var(--hd-glass); }
.hero-scene .hd-lamp { fill: var(--hd-lamp); }
.hero-scene .hd-lampglow, .hero-scene .hd-headglow { opacity: var(--hd-glow-o); }
.hero-scene .hd-head { fill: #fffbe8; }
.hero-scene .hd-chrome { fill: var(--hd-chrome); }
.hero-scene .hd-plateface { fill: var(--hd-plate); }
.hero-scene .hd-tyre { fill: var(--hd-tyre); }
.hero-scene .hd-treadbar { fill: var(--hd-tread); opacity: var(--hd-tread-o); }
/* `--b` is the only value JS writes into this palette: the suspension modulates the
   car's contact shadow, but how dark that shadow is at rest is a theme decision, so
   the two are multiplied rather than letting a `setAttribute('opacity')` win. */
.hero-scene .hd-cshadow { fill: var(--hd-shadow); opacity: calc(var(--hd-shadow-o) * var(--b, 1)); }
.hero-scene .hd-car1 { fill: var(--hd-car1); }
.hero-scene .hd-car2 { fill: var(--hd-car2); }
.hero-scene .hd-car3 { fill: var(--hd-car3); }
/* the oncoming car's roof is its body colour, a shade darker */
.hero-scene .hd-car1.dk { fill: var(--hd-car1d); }
.hero-scene .hd-car2.dk { fill: var(--hd-car2d); }
.hero-scene .hd-car3.dk { fill: var(--hd-car3d); }

/* dashboard two-column hero (signed-in). This block is the only definition of .hero-split/.hero-art —
   there used to be a second, older one up beside .topbar whose `.hero-art svg { width: min(100%,
   360px) }` was quietly deciding the size: inside `place-items: center` the item is sized from its own
   max-content, so a min() holding a percentage is indefinite there and the SVG fell back to a replaced
   element's default 300x150 (ratio-corrected: 300x264). That is why the signed-in illustration
   measured 300px against the landing page's 460 — the 380 cap below had never been the binding
   constraint. Plain `width: 100%` (from .hero-scene) resolves, which is what .lp-visual has used. */
.hero-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: center; }
.hero-split > div:first-child { min-width: 0; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .hero-scene { width: 100%; max-width: 380px; }
@media (max-width: 720px) { .hero-split { grid-template-columns: 1fr; } }
/* Signing in must not shrink the front page. The width was one half of that (see
   --page-w); this is the other: the dashboard hero was a visibly smaller card than
   the .lp-hero it replaces — less padding, a tighter radius and a 380px illustration
   against 460px — so the same screen "lost" ~120px of card the moment you logged in.
   Matched to .lp-hero's figures above.
   Desktop only, deliberately: the phone paddings live in max-width blocks EARLIER in
   this sheet (.hero is 1.35rem/1.1rem under 560px), and an unconditional rule here
   would sit later in the file and silently win on phones. */
@media (min-width: 721px) {
  .hero.hero-split {
    padding: clamp(2rem, 5vw, 4rem) 0;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
  /* .hero-scene was the driven car (app/herodrive.js, archived 2026-09-22); the frame wall
     replaced it and takes the same cap, so signing in still does not shrink the picture. */
  .hero-split .hero-art .hero-frames { max-width: 520px; }
}

/* app preview */
.preview { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.preview-visual { display: grid; place-items: center; }
/* "Et innblikk" (since 2026-10-11): the product film, centred, the copy below it (app/introvideo.js). */
.preview--video { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(1.5rem, 3vw, 2.4rem); }
.preview--video .preview-visual { width: 100%; max-width: 1040px; }
/* Above phones the frame scales with the window (owner 2026-10-11): ~80% of its width, never taller than ~2/3 of
   its height, capped at 1040px. Phones keep the full gutter-to-gutter width. */
@media (min-width: 561px) { .preview--video .preview-visual { max-width: min(1040px, 80vw, 121svh); } }
/* Desktop: capped at 850px (owner 2026-10-12). */
@media (min-width: 1025px) { .preview--video .preview-visual { max-width: min(850px, 72vw, 109svh); } }
.preview--video .preview-copy { max-width: 64rem; }
.preview--video .preview-copy > p { max-width: 46rem; margin-inline: auto; }
.preview--video .preview-copy .lp-guide { margin-inline: auto; }
/* The three feature lines as one centred row (wraps to two at most; owner 2026-10-11). */
.preview--video .preview-copy .feat-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.4rem; }
.preview--video .preview-copy .feat-list li { margin: 0; align-items: center; white-space: nowrap; }
/* Phones: no two items fit side by side, so they flow as one centred sentence with dots (two lines). */
@media (max-width: 560px) {
  .preview--video .preview-copy .feat-list { display: block; text-align: center; font-size: .82rem; line-height: 1.55; letter-spacing: -.005em; }
  .preview--video .preview-copy .feat-list li { display: inline; white-space: normal; font-size: inherit; }
  .preview--video .preview-copy .feat-list .fl-ic { display: none; }
  .preview--video .preview-copy .feat-list li + li::before { content: "·"; margin: 0 .3rem; color: var(--brand); font-weight: 800; }
}
/* Pulled up under the hero (owner 2026-10-11): ~24px instead of the .lp section gap. Phones: see the hero squeeze. */
@media (min-width: 561px) { .lp-hero + .price-lens--peek { margin-top: calc(1.5rem - clamp(3rem, 7vw, 5.5rem)); } }

/* ---- the film's player ---- */
.iv { width: 100%; }
/* `hidden` must win over the display values below (the sound pill, the PiP button, the quality menu). */
.iv [hidden] { display: none !important; }
.iv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate;
  background: #e9ecf3 url("./video/intro-16x9-poster.webp") center / cover no-repeat; outline: none;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .06), 0 40px 80px -36px rgba(16, 24, 40, .45), 0 14px 30px -18px rgba(16, 24, 40, .3); }
.iv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; cursor: pointer; }
.iv-frame:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.iv-frame:fullscreen .iv-video { object-fit: contain; }
.iv-frame:-webkit-full-screen { border-radius: 0; width: 100vw; height: 100vh; background: #000; }
.iv-frame:-webkit-full-screen .iv-video { object-fit: contain; }

.iv-big { position: absolute; left: 50%; top: 50%; z-index: 3; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; translate: -50% -50%;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: var(--brand); box-shadow: 0 18px 40px -12px rgba(200, 16, 46, .65), 0 0 0 8px rgba(255, 255, 255, .28);
  transition: opacity .3s ease, scale .2s ease; }
.iv-big svg { width: 62%; height: 62%; }   /* the glyph itself sits 1.5 units right of its box: optical centring, no margin */
.iv-big:hover { scale: 1.06; }
.iv-big:active { scale: .94; }
.iv-big:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.iv-big-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
.is-playing .iv-big { opacity: 0; pointer-events: none; }
/* autoplay: the button "is pressed" — squash, ripple, fade */
.iv-autopressed .iv-big { animation: iv-press .85s cubic-bezier(.2, .7, .2, 1) both; }
.iv-autopressed .iv-big-ring { animation: iv-ring .85s ease-out both; }
@keyframes iv-press { 0% { scale: 1; opacity: 1; } 16% { scale: .84; opacity: 1; } 38% { scale: 1.08; opacity: 1; } 100% { scale: 1.3; opacity: 0; } }
@keyframes iv-ring { 0%, 14% { scale: 1; opacity: 0; } 22% { opacity: .9; } 100% { scale: 2.1; opacity: 0; } }

.iv-sound { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem .5rem .6rem; border: 0; border-radius: 999px; cursor: pointer; font: 700 .9rem/1 inherit; color: #fff;
  background: rgba(13, 16, 21, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: iv-in .35s ease both; }
.iv-sound svg { width: 20px; height: 20px; }
.iv-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes iv-in { from { opacity: 0; translate: 0 -6px; } }

.iv-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .25rem;
  padding: 2.2rem .7rem .55rem; color: #fff; background: linear-gradient(transparent, rgba(8, 10, 14, .78));
  opacity: 0; translate: 0 6px; transition: opacity .25s ease, translate .25s ease; }
.iv:not(.is-playing) .iv-bar, .iv.show-bar .iv-bar, .iv-frame:focus-within .iv-bar { opacity: 1; translate: 0 0; }
/* before the first play only the big button shows */
.iv:not(.is-started) .iv-frame:not(:focus-within) .iv-bar { opacity: 0; translate: 0 6px; }
.iv-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 40px; height: 40px;
  padding: 0 .35rem; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: 800 .72rem/1 inherit; }
.iv-btn:hover { background: rgba(255, 255, 255, .16); }
.iv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.iv-time { flex: none; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 .35rem; opacity: .92; }
.iv-seek { flex: 1; min-width: 60px; height: 22px; margin: 0 .3rem; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.iv-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) var(--p, 0%), rgba(255, 255, 255, .35) var(--p, 0%)); }
.iv-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.iv-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brand); }
.iv-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.iv-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.iv-seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.iv-vol { position: relative; flex: none; display: flex; }
/* The small vertical volume bar: pops up above the speaker on hover / keyboard focus (pointer devices). */
.iv-volpop { position: absolute; left: 50%; bottom: calc(100% + 4px); translate: -50% 6px; display: grid; place-items: center;
  width: 36px; height: 108px; padding: 12px 0; border-radius: 12px; background: rgba(16, 20, 28, .92);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .18s ease, translate .18s ease; }
.iv-vol:hover .iv-volpop, .iv-vol:focus-within .iv-volpop, .iv-vol.vol-open .iv-volpop { opacity: 1; translate: -50% 0; pointer-events: auto; }
.iv-vol::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }   /* hover bridge */
.no-vol .iv-volpop, .no-vol .iv-vol::before { display: none; }
/* Desktop and tablet only (owner 2026-10-11): phones use the speaker button alone. Touch tablets open it with a tap. */
@media (max-width: 767px) { .iv-volpop, .iv-vol::before { display: none; } }
.iv-volume { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 84px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; }
.iv-volume::-webkit-slider-runnable-track { width: 4px; border-radius: 2px;
  background: linear-gradient(to top, var(--brand) var(--v, 0%), rgba(255, 255, 255, .35) var(--v, 0%)); }
.iv-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-left: -5px; border-radius: 50%; background: #fff; border: 0; }
.iv-volume::-moz-range-track { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.iv-volume::-moz-range-progress { width: 4px; border-radius: 2px; background: var(--brand); }
.iv-volume::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.iv-volume:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.iv-q { position: relative; flex: none; }
.iv-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 7.5rem; padding: .3rem; border-radius: 12px;
  background: rgba(16, 20, 28, .96); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); }
.iv-menu button { display: flex; width: 100%; align-items: center; gap: .5rem; padding: .55rem .7rem; border: 0; border-radius: 8px;
  background: transparent; color: #fff; font: 700 .9rem/1 inherit; cursor: pointer; text-align: left; }
.iv-menu button:hover, .iv-menu button:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.iv-menu button::before { content: ""; width: 1rem; }
.iv-menu button[aria-checked="true"]::before { content: "✓"; color: #ff8a9a; }
@media (max-width: 480px) {
  .iv-frame { border-radius: var(--r-lg); }
  .iv-time { display: none; }
  .iv-bar { padding: 1.6rem .35rem .3rem; gap: 0; }
  .iv-sound { left: 10px; top: 10px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .iv-autopressed .iv-big, .iv-autopressed .iv-big-ring { animation: none; } }
.preview-copy .eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.preview-copy h2 { font-size: var(--fs-h2); margin: .4rem 0 .6rem; }
.preview-copy .price-list { margin: 1rem 0 1.4rem; }
@media (max-width: 720px) { .preview { grid-template-columns: 1fr; } .preview-visual { order: -1; } }

/* Stand-in for a scene whose library has not arrived yet (see upgradeLandingArt in
   app/main.js). Carries the scenes' own 400x180 aspect, so the real drawing replaces
   it without moving anything below. Lives here, not in scenes.css, because that
   stylesheet is loaded *with* the library it is standing in for. */
.sc-skel { aspect-ratio: 400 / 180; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }

/* The strip's grid lives here too (scenes.css only arrives with the drawings). */
.scene-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Illustrated-strip card: the question's own drawing, its stem, and the answer behind a
   toggle — one real question, readable at a glance, rather than a captioned picture. */
.illq { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease; }
.illq:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* margin 0: scenes.css's later .scene rule wins for the drawing, so the skeleton must match it or the card shrinks 8px when the art lands. */
.illq > .scene, .illq > .sc-skel { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.illq > .scene figcaption { display: none; }
.illq > :not(.scene, .sc-skel) { margin-inline: 1.1rem; }
.illq-topic { justify-self: start; align-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: .2rem .55rem; border-radius: 999px; }
.illq-q { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--text); }
.illq-ans { align-self: start; border-top: 1px solid var(--border); padding: .55rem 0 .9rem; }
.illq-ans summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; cursor: pointer;
  list-style: none; font-weight: 700; font-size: .92rem; color: var(--brand); padding: .35rem 0; min-height: 24px; }
.illq-ans summary::-webkit-details-marker { display: none; }
.illq-ans summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
.illq-chev { width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.illq-ans[open] .illq-chev { transform: rotate(-135deg) translateY(-2px); }
.illq-key { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0 .4rem; padding: .55rem .7rem;
  border-radius: var(--r-md); font-weight: 700; font-size: .9rem; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.illq-key svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .15em; }
.illq-why { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .illq-ans[open] > p { animation: illq-in .32s cubic-bezier(.2,.8,.3,1) both; }
  .illq-ans[open] > .illq-why { animation-delay: .06s; }
}
@keyframes illq-in { from { opacity: 0; transform: translateY(-4px); } }

/* features */
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ficon { width: 3.1rem; height: 3.1rem; border-radius: var(--r-md); display: grid; place-items: center; color: #fff;
  background: var(--accent, var(--brand)); margin-bottom: 1rem; }
.feature .ficon svg { width: 1.6rem; height: 1.6rem; }
/* Icon beside the title, copy full-width underneath (2026-09-25, owner): the stacked icon cost
   ~4rem of height per card. The phone block further down re-spans the icon over two rows. */
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; align-items: center; align-content: start; padding: 1.2rem 1.25rem; }
.feature .ficon { width: 2.6rem; height: 2.6rem; margin-bottom: 0; }
.feature .ficon svg { width: 1.35rem; height: 1.35rem; }
.feature h3 { margin: 0; }
.feature p { grid-column: 1 / -1; margin-top: .6rem; }
/* The icon answers the card's lift with a small tilt, so hover reads as the card waking up. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature .ficon { transition: transform .32s cubic-bezier(.34, 1.56, .64, 1); }
  .feature:hover .ficon { transform: rotate(-8deg) scale(1.08); }
}
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---- features section: image accordion (app/features.js) ---- */
.fx { --fx-r: var(--radius); }
.fx .fx-n { font-size: .78rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
/* The number reads as a small pill over the photo — no icons drawn on the images (owner). */
.fx-panel-tab .fx-n { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .4rem; border-radius: 999px;
  background: color-mix(in srgb, #0d1117 45%, transparent); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-panel-in .fx-n { color: rgba(255,255,255,.75); }
.fx img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Photo panels, the active one widens. */
.fx-acc { display: flex; gap: .6rem; height: 26rem; }
.fx-panel { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--fx-r); box-shadow: var(--shadow); transition: flex-grow .55s cubic-bezier(.2, .8, .2, 1); }
.fx-panel.is-active { flex-grow: 5; }
.fx-panel:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.fx-panel img { position: absolute; inset: 0; }
.fx-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,.15), rgba(8,12,18,.8)); }
.fx-panel-tab { position: absolute; z-index: 1; left: 50%; bottom: 1rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .4rem; transition: opacity .25s ease; }
.fx-panel-tab .fx-n { color: #fff; }
.fx-tab-t { display: none; }   /* the collapsed strip's title: phones only, where the strip is wide */
.fx-panel.is-active .fx-panel-tab { opacity: 0; }
.fx-panel-in { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; display: grid; gap: .35rem; color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; min-width: 16rem; }
.fx-panel.is-active .fx-panel-in { opacity: 1; transform: none; transition-delay: .2s; }
.fx-panel-in .fx-t { color: #fff; font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; }
.fx-panel-in .fx-d { color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.45; }
/* Countdown to the next panel, along the open panel's bottom edge — only while it is auto-advancing.
   Restarts each time a panel opens, because the element only gets the animation while .is-active. */
.fx-panel::before { content: ""; position: absolute; z-index: 2; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.fx-acc.is-running .fx-panel.is-active::before { animation: fx-bar var(--fx-ms, 4.5s) linear forwards; }
@keyframes fx-bar { to { width: 100%; } }

@media (max-width: 820px) {
  .fx-acc { flex-direction: column; height: auto; }
  .fx-panel { flex: none; height: 4.2rem; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
  .fx-panel.is-active { height: 17rem; }
  .fx-panel-tab { left: 1rem; bottom: auto; top: 50%; transform: translateY(-50%); grid-auto-flow: column; }
  .fx-panel-in { min-width: 0; }
  .fx-tab-t { display: block; color: #fff; font-weight: 700; font-size: .98rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
  .fx-panel-tab { gap: .7rem; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-panel, .fx-panel-in { transition: none; }
}

/* sign showcase */
/* No box. The two marquee rows are already a bounded shape — they fade out at
   both ends through the mask in motion.css — so the panel around them was a
   second frame drawn around a thing that already had edges. `position: relative`
   stays: motion.css hangs the rows' entrance off `.showcase.in`. */
.showcase { position: relative; }
/* Full-bleed on the landing: the rows run edge to edge of the screen and fade out near it. Where the
   .view still clips at the rail (the signed-in pages) this degrades to the rail width, unchanged. */
#lp-signs .showcase { width: 100vw; margin-inline: calc(50% - 50vw); }
#lp-signs .marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 min(9rem, 14%), #000 calc(100% - min(9rem, 14%)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 min(9rem, 14%), #000 calc(100% - min(9rem, 14%)), transparent); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .7rem; }
.show-sign { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); display: grid; place-items: center; padding: .55rem; box-shadow: var(--shadow); transition: transform .16s ease; }
.show-sign:hover { transform: scale(1.08); }
.show-sign img, .show-sign svg { width: 100%; height: 100%; object-fit: contain; }

/* pricing */
.pricing { position: relative; }

/* The price lens (owner, 2026-10-04; landingHome()): the fjord picture (web/photos/fjord/road.webp) behind the price
   cards and Pass Protection. It opens like a window as it scrolls in and fades out on all four sides. The picture is
   always WHOLE (owner: the signs must stay in frame): a square fitted into the box with container units, its own
   edges faded, and a blurred copy filling the rest. It sits faint (a mist keeps the middle calm for the text); one
   spot is shown in full colour and breathes: the sun in light mode, the Norwegian flag in dark mode. */
@property --lens-r { syntax: "<length>"; inherits: true; initial-value: 160px; }
/* minmax(0,1fr) like .lp itself: an auto track grows to the cards' max-content width and broke the phone layout. */
.price-lens { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 7vw, 5.5rem); }
/* Behind the price cards on wider screens; none at all on phones (owner 2026-10-11: the hero needs no background
   there — the "Et innblikk" film is the picture). Until then a second lens sat behind "a peek inside" on phones. */
.price-lens--peek > .fj-lens { display: none; }
@media (max-width: 760px) { .price-lens > .fj-lens { display: none; } }
.fj-lens {
  --fj-edge-y: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  --fj-edge-x: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: -3.5rem; bottom: -3.5rem; z-index: -1;
  overflow: hidden; pointer-events: none; clip-path: inset(0 0 round 0); container-type: size;
}
/* The four-side fade, on an inner layer so it can measure the box (cq units) and leave the sun unfaded in light mode.
   The sun sits at (96%, 32%) of the square, whose side is --fj-side (see .fj-pic). */
.fj-fade {
  position: absolute; inset: 0;
  --fj-side: max(100cqw, 100cqh);
  --fj-sun: radial-gradient(circle calc(var(--fj-side) * .2) at calc(50% + var(--fj-side) * .46) calc(50% - var(--fj-side) * .18), #000 35%, transparent);
  -webkit-mask-image: var(--fj-sun), var(--fj-edge-y), var(--fj-edge-x); -webkit-mask-composite: source-over, source-in;
          mask-image: var(--fj-sun), var(--fj-edge-y), var(--fj-edge-x); mask-composite: add, intersect;
}
/* Desktop: an opaque page-coloured ground under the picture, so the drifting edge shapes (edge-animation.js canvases,
   z-index 0) pass behind the picture instead of showing through its faint wash (owner). Same fade, so no hard edge. */
@media (min-width: 761px) { .fj-fade { background: var(--bg); } }
:root[data-theme="dark"] .fj-fade {
  -webkit-mask-image: var(--fj-edge-y), var(--fj-edge-x); -webkit-mask-composite: source-in;
          mask-image: var(--fj-edge-y), var(--fj-edge-x); mask-composite: intersect;
}
.fj-lens i { position: absolute; inset: 0; background: url("./photos/fjord/road.webp") center / cover no-repeat; }
.fj-lens .fill { filter: blur(30px) saturate(1.1); opacity: .2; transform: scale(1.12); }
:root[data-theme="dark"] .fj-lens .fill { opacity: .26; }
/* The square picture covers the whole box (owner: full screen); on a wide box only its top and bottom are trimmed,
   so the flag and the signs at the sides stay in. Phones (a tall, narrow box) get it full width instead, or covering
   would leave a sliver of the middle; the blurred copy fills above and below. */
.fj-pic {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(100cqw, 100cqh); aspect-ratio: 1;
  --sx: 96%; --sy: 32%;   /* the spot: the sun */
}
:root[data-theme="dark"] .fj-pic { --sx: 20%; --sy: 29%; }   /* the flag */
@media (max-width: 760px) { .fj-pic { width: 100cqw; } .fj-fade { --fj-side: 100cqw; } }
.fj-lens .wash { opacity: .36; filter: saturate(.85);
  /* Only the faint copy needs edges faded; the spot and the glow are soft circles already (and the sun sits on the edge). */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect; }
:root[data-theme="dark"] .fj-lens .wash { opacity: .44; }
.fj-lens .mist { background: radial-gradient(42% 58% at 50% 50%, color-mix(in srgb, var(--bg) 70%, transparent), transparent 100%); }
.fj-lens .lit { opacity: .95;
  /* The picture ends 4 % right of the sun, so the sharp copy fades out before it does (no cut edge). */
  -webkit-mask-image: radial-gradient(circle var(--lens-r) at var(--sx) var(--sy), #000 25%, transparent 100%),
                      linear-gradient(to right, transparent, #000 6%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(circle var(--lens-r) at var(--sx) var(--sy), #000 25%, transparent 100%),
                      linear-gradient(to right, transparent, #000 6%, #000 90%, transparent);
          mask-composite: intersect; }
/* Light mode: a warm sun glow over the spot. Dark mode: no colour cast, the flag simply comes into focus. */
/* The glow box reaches 30 % past the square on every side, so the light can spill beyond the picture's edge. */
.fj-lens .glow { inset: -30%; background: radial-gradient(circle calc(var(--lens-r) * .9) at calc((30% + var(--sx)) / 1.6) calc((30% + var(--sy)) / 1.6),
  rgba(255, 214, 140, .85), rgba(255, 170, 80, .35) 35%, transparent 70%); mix-blend-mode: screen; }
:root[data-theme="dark"] .fj-lens .glow { display: none; }
.fj-pic { animation: fj-breathe 5.5s ease-in-out infinite alternate; }
@keyframes fj-breathe { from { --lens-r: clamp(110px, 10cqw, 170px); } to { --lens-r: clamp(150px, 15cqw, 250px); } }
@supports (animation-timeline: view()) {
  .fj-lens { animation: fj-lens-open linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
}
@keyframes fj-lens-open { from { clip-path: inset(4% max(1.25rem, calc(50vw - 560px)) round 32px); } to { clip-path: inset(0 0 round 0); } }
@media (prefers-reduced-motion: reduce) { .fj-lens, .fj-pic { animation: none !important; } }
/* The compact table has no heading, so its chooser would sit flush on whatever precedes it. */
.pricing--compact { margin-top: 2.5rem; }
.authcard + .pricing--compact { margin-top: 0; }   /* the gate card brings its own margin */

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; align-items: stretch; max-width: 900px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.3rem 1.2rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Surface (2026-09-25): top-lit rather than flat — a faint fall-off down the card, a bright
   top edge, a contact + ambient shadow pair, and a paper grain at 4% on an isolated layer
   under the content. Static, so it costs one cached data URI and no paint per frame. */
.price-card {
  isolation: isolate;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 97%, var(--text)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -12px rgba(16,24,40,.16);
}
.price-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E"); opacity: .04;
}
:root[data-theme="dark"] .price-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -12px rgba(0,0,0,.6); }
:root[data-theme="dark"] .price-card::before { filter: invert(1); opacity: .05; }
/* The recommended plan gets a soft brand wash from the top, under the flag. */
.price-card.featured {
  background:
    radial-gradient(120% 34% at 50% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 100%),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 97%, var(--text)));
}
/* Price block and feature list read as two parts: a hairline between them, and ticks set in
   small tinted discs instead of bare strokes. */
.price-card .price-list { border-top: 1px dashed color-mix(in srgb, var(--border) 85%, var(--text)); padding-top: .85rem; }
.price-card .price-list svg { width: 1.1rem; height: 1.1rem; padding: .17rem; border-radius: 50%; background: var(--ok-bg); stroke-width: 3; }
.price-card.featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.06), 0 22px 50px color-mix(in srgb, var(--brand) 22%, transparent); }
/* A pill with 10.9px white ink: exactly the case --grad-ui exists for. It measured
   3.41:1 on --grad (2026-08-20) — the worst reading in the app, on the card the whole
   pricing section is built to sell. */
.price-flag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--grad-ui); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .8rem; border-radius: var(--r-pill); white-space: nowrap; }
.price-name { font-weight: 700; color: var(--muted); }
.price-amt { font-size: 2.15rem; font-weight: 800; letter-spacing: -.03em; margin: .25rem 0 0; }
.price-amt small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-list.pad-t { margin-top: 1rem; }
@media (max-width: 560px) { .price-list .intro-more { display: none; } }
.price-note { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.price-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
/* A price card carries eight feature lines and has to sit beside two others in one
   row, so its copy of the list runs tighter than the same list does on a gate screen
   or under the hero: smaller type, less leading, less air between lines and less
   padding around them. Nothing is dropped — the card is ~19% shorter for it. */
.price-card .price-list { gap: .34rem; margin-bottom: 1rem; }
.price-card .price-list li { font-size: .855rem; line-height: 1.32; gap: .45rem; }
.price-card .price-list svg { width: 1rem; height: 1rem; margin-top: .12rem; }
.price-list svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--ok); margin-top: .15rem; }
/* A longer plan's «Alt i 1 uke, og i tillegg:» line: a lead-in, so no tick. */
.price-list .pl-inherit { font-weight: 700; color: var(--text); }
/* Free card: grey ticks, so green reads as "in a paid plan". */
.price-card .price-list.price-list--free svg { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }

/* Feature lists in the marketing sections (showcase.featList): an icon per line, brand-tinted. */
.feat-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .65rem; }
.feat-list li { display: flex; gap: .7rem; align-items: center; font-size: .95rem; }
.fl-ic { flex: none; width: 1.95rem; height: 1.95rem; border-radius: .6rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); }
.fl-ic svg { width: 1.05rem; height: 1.05rem; }
.fl-ic:empty { width: .45rem; height: .45rem; border-radius: 50%; background: color-mix(in srgb, var(--brand) 55%, transparent); margin-inline: .3rem; }
.price-card .btn { margin-top: auto; }

/* Three tiers side by side: free / 1 week / 1 month. Wider than the old two-card
   grid so five to six feature lines per card do not wrap into a wall. */
.pricing-grid { max-width: 1040px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); padding-top: .9rem; }
.price-dur { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.price-amt { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
/* A struck-through "before" price and "−N %" appear ONLY for a `reduction` campaign (plans.json),
   whose førpris really was charged for the 30 days before it (prisopplysningsforskriften § 9a) —
   never as pure styling. Otherwise `.price-camp` is a launch price, which advertises the FUTURE
   price rather than a past one. Amber, not brand-red and not `--ok` green: red is already the featured flag right
   above it, and green is Pass Protection's signal directly below. Amber is unused on this card and
   reads as "clock is running". The tint is a color-mix of --amber so one rule covers light and dark;
   the TEXT stays on --text/--muted, because amber on an amber wash fails contrast at this size. */
.price-camp {
  display: flex; align-items: flex-start; gap: .5rem;
  margin: 0 0 .8rem; padding: .5rem .6rem;
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 38%, transparent);
  border-radius: var(--r-sm);
}
.price-camp-ico { flex: 0 0 auto; color: var(--amber); display: flex; }
.price-camp-ico svg { width: 1rem; height: 1rem; margin-top: .1rem; }
.price-camp-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.price-camp-txt b { font-size: .8rem; font-weight: 800; color: var(--text); letter-spacing: .01em; }
.price-camp-txt span { font-size: .76rem; color: var(--muted); }
/* Reduction campaign: pumpkin orange. --camp is for marks (strike, icon, border), never text. */
:root { --camp: #d9620b; --camp-2: #6d3fc0; }
:root[data-theme="dark"] { --camp: #ff9b45; --camp-2: #a98bff; }
.price-card.is-sale { border-color: color-mix(in srgb, var(--camp) 50%, var(--border)); }
.price-was {
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted);
  text-decoration: line-through 2px var(--camp);
}
.price-camp--sale {
  background: linear-gradient(120deg, color-mix(in srgb, var(--camp) 16%, transparent), color-mix(in srgb, var(--camp-2) 10%, transparent));
  border-color: color-mix(in srgb, var(--camp) 45%, transparent);
}
.price-camp--sale .price-camp-ico { color: var(--camp); }
.price-camp--sale .price-camp-txt b { font-size: .84rem; }
/* Black Month dress (theme "black"): soft charcoal (#2b2b2b) band and bar, white type; the strike and border
   follow --camp, which this theme sets to ink (light) / near-white (dark) so both read. */
.price-card.camp-black { --camp: #2b2b2b; --camp-2: #2b2b2b; }
:root[data-theme="dark"] .price-card.camp-black { --camp: #e9ecf3; --camp-2: #e9ecf3; }
.price-camp--black { background: #2b2b2b; border-color: #2b2b2b; }
.price-camp--black .price-camp-ico, .price-camp--black .price-camp-txt b { color: #fff; }
.price-camp--black .price-camp-txt span { color: rgba(255,255,255,.78); }
:root[data-theme="dark"] .price-camp--black { background: #2b2b2b; border-color: rgba(255,255,255,.22); }
/* Halloween dress: a corner cobweb with a spider that drops in once. Inside the padding box,
   since .featured clips its overflow for the sheen. */
.camp-deco { position: absolute; top: 0; left: 0; pointer-events: none; color: var(--muted); z-index: 0; }
.camp-web { display: block; width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: .8; opacity: .7; border-top-left-radius: var(--r-lg); }
.camp-spider { position: absolute; top: 0; left: 30px; color: var(--text); }
.camp-spider svg { display: block; fill: currentColor; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.camp-spider .camp-thread { stroke-width: .8; opacity: .6; }
.camp-spider circle { stroke: none; }
.has-motion .camp-spider { animation: camp-drop .9s cubic-bezier(.3, 1.4, .5, 1) .4s both; transform-origin: 50% 0; }
.has-motion .price-card:hover .camp-spider svg { animation: camp-bob 1.6s ease-in-out; }
@keyframes camp-drop { from { transform: translateY(-40px); } to { transform: none; } }
@keyframes camp-bob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .camp-spider, .camp-spider svg { animation: none !important; } }
.price-foot { text-align: center; color: var(--muted); font-size: .85rem; margin: 1.2rem 0 0; }
/* 13.6px text sat in a 17px box. inline-flex here rather than padding because the link
   is a single word at the end of the line, so it can never need to wrap. */
.price-foot a { display: inline-flex; align-items: center; min-height: 24px; }
/* Front-page section → its crawlable guide: a quiet text link under the section's button. */
.lp-guide { display: flex; align-items: center; gap: .3rem; width: fit-content; min-height: 24px; margin-top: .9rem; font-size: .92rem; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
.lp-guide svg { width: 1rem; height: 1rem; flex: none; }
.lp-guide-row { display: flex; justify-content: center; margin: .8rem 0 0; }
.lp-guide-row .lp-guide { margin-top: 0; }
/* Pass Protection label — only on a plan whose data/plans.json entry carries the
   flag. A link, not a pill: it is a money-back claim, so the conditions have to be
   one tap away. Green because it is the "you get more than you paid for" signal on
   the card. The state is never colour alone — it says what it is in words. */
.price-pp {
  display: flex; gap: .55rem; align-items: center; text-decoration: none;
  color: var(--ok-ink, var(--ok)); background: var(--ok-bg);
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  border-radius: var(--r-md); padding: .4rem .6rem; margin: 0 0 .8rem;
  min-height: 40px;
}
.price-pp:hover { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.price-pp-ico svg { width: 1.15rem; height: 1.15rem; display: block; }
.price-pp-txt { display: grid; gap: .1rem; text-align: left; line-height: 1.3; }
.price-pp-txt b { font-size: .84rem; font-weight: 800; letter-spacing: .01em; }
.price-pp-txt span { font-size: .78rem; color: var(--muted); }
/* The same claim as a round rubber seal, pressed onto the price block of the plan that carries it
   (priceCard -> ppSeal; the checkout summary keeps `.price-pp`). It takes NO layout space: it sits
   absolutely at the head's right, over the empty side of the price rows, tilted like a hand-stamped
   mark, with the ink multiplied into the card so it reads as printed on it, not placed beside it.
   - Sized against the 270px grid minimum: ~230px of content, "299 kr" at 2.15rem is ~125px wide,
     so a 118px seal hung .55rem into the padding clears it. Re-measure if a price ever gets a
     fourth digit.
   - `.price-card.featured` is `overflow: hidden`, so the seal stays inside the padding box.
   - The whole sentence is the link's aria-label; the arcs are its decoration. Worn specks are an
     in-SVG mask on the rings only, so the arc lettering stays solid ink. */
.price-head { position: relative; }
.price-seal {
  position: absolute; right: -.55rem; bottom: -.8rem; width: 118px; height: 118px; z-index: 1;
  color: var(--ok-ink, var(--ok)); text-decoration: none; border-radius: 50%;
  transform: rotate(-12deg); mix-blend-mode: multiply;
  transition: transform .25s cubic-bezier(.2,1.4,.4,1);
}
:root[data-theme="dark"] .price-seal { mix-blend-mode: normal; }
/* Over the ink-black Black Month band, multiply turns the seal black: print it normally, on top. */
.price-card.camp-black .price-seal { mix-blend-mode: normal; z-index: 2; }
.price-seal:hover { transform: rotate(-6deg) scale(1.05); }
.price-seal:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; }
.price-seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ps-rings { fill: none; stroke: currentColor; }
.ps-outer { stroke-width: 3.2; }
.ps-inner { stroke-width: 1.1; }
.ps-core { stroke-width: 1.1; fill: color-mix(in srgb, currentColor 9%, transparent); }
.ps-stars { fill: currentColor; }
.ps-txt { fill: currentColor; font-size: 9.6px; font-weight: 800; letter-spacing: .9px; }
.ps-shield path:first-child { fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.ps-shield path:last-child { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Pressed onto the card as it arrives: the seal comes down large and spun and lands with a
   little squash. Once per reveal; reduced motion gets the resting seal. */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .price-card.in .price-seal { animation: seal-press .6s cubic-bezier(.2,1.3,.4,1) .55s backwards; }
}
@keyframes seal-press {
  0% { opacity: 0; transform: rotate(-38deg) scale(1.8); }
  55% { opacity: 1; transform: rotate(-10deg) scale(.93); }
  100% { transform: rotate(-12deg) scale(1); }
}
/* The tier you are already on: reads as a state, not as something to click. */
.btn.is-current { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; color: var(--ok-ink, var(--ok)); background: var(--ok-bg); border-color: transparent; cursor: default; box-shadow: none; }
.btn.is-current svg { width: 1.05rem; height: 1.05rem; }
.gate-list { max-width: 30rem; margin-inline: auto; text-align: left; }
/* Sign-in / paywall screens that carry a pricing table below the headline card.
   `minmax(0, 1fr)` is load-bearing, exactly as on `.lp`: an auto-sized grid column is
   max-content, and the sign marquee's track is ~2 900px wide — without this the whole
   column (pricing table included) stretched to that width and the price cards were laid
   out off-screen to the right. */
.paywrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }
.paywrap > .price-lens { gap: clamp(2rem, 5vw, 3.5rem); }   /* the page's own spacing, unchanged by the lens wrapper */
/* The headline card is the only width-capped child (`.authcard.wide`, 640px); the pricing
   table and the upsell sections below it fill the column. A grid item narrower than its
   column sits at the *start* of it, so the card hugged the left edge while its own text
   looked centred — `.authcard.center` centres the text, not the box. `.authwrap` gets
   this for free from `justify-content: center`; a grid has to say it. */
.paywrap > .authcard { margin-inline: auto; }
/* The upsell sections appended to the signed-in dashboard: a rule and a little air
   separate them from the reader's own progress, so the pitch cannot be mistaken for
   part of the dashboard. */
.lp-upsell { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--border); }

/* checkout (#/purchase/<plan>) — its own page, reached from a price card.
   Two columns: the action on the left, what is being bought on the right. On a phone
   the summary is lifted ABOVE the action (`order: -1`) rather than left underneath it:
   a stacked checkout that opens on "choose how to pay" asks for a decision before it
   has said what the decision is about, and the price is the thing they came to check. */
.ckwrap { max-width: 940px; margin: 0 auto; }
.ck-back { display: inline-flex; align-items: center; min-height: 24px; gap: .4rem; color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; }
/* The arrow glyph points right; this is the only place it means "back". */
.ck-back svg { width: 1rem; height: 1rem; transform: rotate(180deg); }
.ck-back:hover { color: var(--text); }
.ck-title { margin: .6rem 0 0; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; }
/* "this extends your pass" — stated on the checkout page before paying, because a
   buyer with a pass already running needs to know the days are added to the end and
   not paid for twice. Informational, so it uses the ok/token pair rather than amber. */
.ck-extend { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1rem;
  padding: .7rem .85rem; border-radius: var(--r-md); font-size: .9rem;
  background: var(--ok-bg); color: var(--ok-ink); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.ck-extend svg { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; }

.ck-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: .9rem 0 1.3rem; }
.ck-steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.ck-steps li.is-now, .ck-steps li.is-done { color: var(--text); }
.ck-step-n { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: var(--r-pill); border: 1px solid var(--border); font-size: .8rem; flex: none; }
.ck-steps li.is-now .ck-step-n { background: var(--grad-ui); border-color: transparent; color: #fff; }   /* 12.8px ink; 3.97:1 on --grad */
/* Tint + dark ink, never #fff on --ok: dark theme's --ok is a light mint (#4ade80),
   so white-on-green inverts into unreadable there. --ok-bg/--ok-ink are the pair that
   is legible in both themes. */
.ck-steps li.is-done .ck-step-n { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.ck-step-n svg { width: .95rem; height: .95rem; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ck-main, .ck-sum { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.4rem 1.3rem; }
.ck-h { margin: 0; font-size: 1.1rem; }
.ck-lead { color: var(--muted); font-size: .92rem; margin: .35rem 0 1.1rem; }
.ck-main .authform { margin-top: 0; }

/* order summary */
.ck-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ck-item-n { font-weight: 700; }
.ck-item-d { color: var(--muted); font-size: .85rem; }
.ck-item-p { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.ck-sum .price-list { margin: 1rem 0; gap: .34rem; }
.ck-sum .price-list li { font-size: .855rem; line-height: 1.32; gap: .45rem; }
.ck-sum .price-list svg { width: 1rem; height: 1rem; margin-top: .12rem; }
.ck-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); font-weight: 700; }
.ck-total strong { font-size: 1.35rem; letter-spacing: -.02em; }
/* Block, not flex: as a flex row the trailing "· <terms link>" became a second flex
   item and was pushed onto its own line, leaving the separator dangling at the end of
   the sentence. The icon is aligned optically instead. */
.ck-fine { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: .85rem 0 0; }
.ck-fine svg { width: .95rem; height: .95rem; vertical-align: -.15em; margin-right: .2rem; }

/* payment methods: a radio group that looks like cards. The input stays in the DOM
   (hidden, not removed) so the group keeps real radio semantics, arrow-key movement
   and focus for free — a div with aria-checked would have to reimplement all three. */
.ck-methods { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.ck-m { position: relative; display: flex; align-items: center; gap: .8rem; padding: .62rem .9rem; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ck-m:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.ck-m input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-m:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.ck-m:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.ck-m-t { display: grid; gap: .22rem; justify-items: start; min-width: 0; }
.ck-m-t small { color: var(--muted); font-size: .82rem; }

/* Brand marks. Each carries the provider's own colour, so these are the one place in
   the stylesheet with hard-coded hex instead of a token — a theme variable would be
   wrong by definition: Vipps orange is Vipps orange in dark mode too. Both are fixed
   dark grounds with light ink, so neither needs a dark-theme override. */
.ck-mark { display: inline-flex; align-items: center; gap: .1rem; height: 1.65rem; padding: 0 .6rem; border-radius: var(--r-sm); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
/* Vipps orange, from their brand guidelines. The mark is the lowercase wordmark. */
.ck-mark.is-vipps { background: #ff5b24; padding: 0 .55rem; }
/* Apple Pay is specified on black or white only; black reads on both our themes. */
.ck-mark.is-apple { background: #000; color: #fff; font-size: .98rem; padding-left: .45rem; }
.ck-mark.is-apple svg { width: 1.05rem; height: 1.05rem; margin-top: -.12em; }
/* Google Pay: white pill with a dark label, which is the pairing Google's brand
   guidelines specify for a light surface, and the four-colour G is legible on it in both
   themes. Fixed #fff/#3c4043 rather than theme tokens on purpose — the mark travels with
   its own colours, exactly like the Vipps orange and the Apple black above. A 1px border
   keeps the white pill from dissolving into a light background. */
.ck-terms { opacity: .8; }
.ck-terms a { text-decoration: underline; }
/* "Glemt passord?" — a quiet, small link in the conventional spot under the password
   field. A <button> rather than an <a> because it opens a dialog instead of navigating:
   an anchor with no href is not keyboard-focusable, and one with href="#" would push a
   junk history entry. .linkbtn strips the button chrome back to link styling. */
.authforgot { margin: -.35rem 0 .1rem; text-align: right; }
.linkbtn {
  background: none; border: 0; padding: 0; min-height: 24px; font: inherit; font-size: .85rem;
  color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.linkbtn:hover { color: var(--brand-on-white); }
.linkbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* The forgot-password dialog. A native <dialog>, so the backdrop, the focus trap, Escape
   and the inert background all come from the platform — this only paints it. */
.pwdlg {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0;
  background: var(--surface); color: var(--text);
  width: min(28rem, calc(100vw - 2rem)); box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.pwdlg::backdrop { background: rgba(12,16,22,.55); }
.pwdlg form { padding: 1.4rem 1.5rem 1.5rem; margin: 0; }
.pwdlg h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.pwdlg .lead { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.pwdlg-row { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.pwdlg-row .btn { flex: 0 0 auto; }
/* The exam preview's sign-up gate (examGate in main.js): two forms in one .pwdlg. */
.examgate { max-height: calc(100dvh - 2rem); overflow-y: auto; }
/* The free sign drill's price popup: wide enough for the three price cards. */
.signpay { width: min(64rem, calc(100vw - 2rem)); }
.signpay .pricing { margin: 1rem 0 0; }
/* The motion layer only reveals inside #view, and wirePricing() re-renders the cards: shown as-is here. */
.has-motion .signpay [data-reveal] { opacity: 1; transform: none; }
.sp-preview-note { margin: .2rem 0 1rem; }
.examgate-body { padding: 1.4rem 1.5rem 1.5rem; }
.pwdlg .examgate-body form { padding: 0; }
.examgate form[hidden] { display: none; }   /* .authform's display would win over [hidden] */
.examgate .authalt { margin-top: .8rem; }
@media (max-width: 420px) {
  /* Stack, and put the primary action first under the thumb. */
  .pwdlg-row { flex-direction: column-reverse; }
  .pwdlg-row .btn { width: 100%; }
}

.ck-mark.is-gpay { background: #fff; color: #3c4043; font-size: .98rem; padding-left: .45rem; box-shadow: inset 0 0 0 1px rgba(60, 64, 67, .24); }
.ck-mark.is-gpay svg { width: 1.05rem; height: 1.05rem; margin-top: -.06em; }
.ck-mark.is-klarna { padding: 0; }
.ck-mark.is-klarna img { display: block; height: 100%; width: auto; }
.ck-mark.is-card { background: var(--surface-2); color: var(--text); gap: .35rem; font-size: .95rem; }
/* Vipps-branded buttons (login, and the pay CTA while Vipps is the chosen method).
   Solid Vipps orange with a white label and white wordmark — the shape of the official
   vipps_continue_*.svg / vipps_pay_*.svg assets, which their brand guidelines require.
   Hard-coded hex for the same reason as the marks above: Vipps orange is Vipps orange in
   dark mode too, so a theme token would be wrong by definition. */
.btn.vippsbtn {
  gap: .45rem; background: #ff5b24; border-color: transparent; color: #fff;
  /* The pay CTA also carries .btn.primary, whose glow is mixed from --brand (red) and
     reads muddy under orange. Same specificity, so this only wins by sitting later in the
     file — and only for what it declares, which is why the shadow is restated here rather
     than left to inherit. `background` (not background-color) is likewise deliberate: the
     shorthand is what clears .btn.primary's red background-image. */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
              0 1px 2px rgba(16,24,40,.14),
              0 6px 18px -4px rgba(255,91,36,.42);
}
.btn.vippsbtn:hover {
  background: #f04d18; filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28),
              0 2px 4px rgba(16,24,40,.16),
              0 10px 26px -6px rgba(255,91,36,.52);
}
/* The official wordmark image. Sized by HEIGHT only — width follows the file's viewBox,
   so the artwork's proportions can never be distorted by a layout change, which is the
   one thing Vipps' guidelines are absolute about. 0.95em tracks the button's own type
   size, and the nudge sits it on the label's baseline rather than its box centre. */
.vipps-wordmark { height: .95em; width: auto; display: block; position: relative; top: .06em; }
/* Inside the method tile the chip sets the orange ground, so the mark just needs size. */
.ck-mark.is-vipps .vipps-wordmark { height: .92em; top: 0; }
.ck-mark.is-card svg { width: 1.15rem; height: 1.15rem; }
.ck-m-tick { margin-left: auto; color: var(--brand); opacity: 0; flex: none; transition: opacity .15s ease; }
.ck-m:has(input:checked) .ck-m-tick { opacity: 1; }
.ck-m-tick svg { width: 1.15rem; height: 1.15rem; }
/* Stripe Elements mount points: Apple Pay's button and the inline card fields.
   `[hidden]` needs saying out loud for all three of these — the attribute's UA rule is
   `display: none`, which LOSES to any class rule that sets display, so `.ck-m` (flex)
   and `.btn` (inline-flex) both stayed visible when hidden was set from script. */
.ck-el { margin: 0 0 1.1rem; }
.ck-el[data-el="apple"] { min-height: 48px; }
.ck-el[hidden], .ck-m[hidden], .ck-main .btn[hidden] { display: none; }
/* A method whose form could not load: still readable, visibly not selectable. */
.ck-m.is-dead { opacity: .55; }
/* Phones: mark and description on one row, so each tile is one line tall. */
@media (max-width: 560px) {
  .ck-methods { gap: .4rem; }
  .ck-m { padding: .45rem .7rem; gap: .6rem; }
  .ck-m-t { grid-auto-flow: column; align-items: center; gap: .6rem; }
  .ck-m-t small { font-size: .78rem; line-height: 1.25; }
}
/* Reserves its line height while empty so a payment error does not shove the button. */
.ck-note { color: var(--bad); font-size: .88rem; min-height: 1.25em; margin: .6rem 0 0; }
.ck-main .authalt { margin: .45rem 0 0; }
/* Under the pay button: the empty error line takes no room, and the fine print sits close. */
.ck-main .ck-note:empty { min-height: 0; margin: 0; }
.ck-main .ck-terms { margin-top: .55rem; }
/* Links inside a sentence are exempt from the 24px target rule, and it doubled the line gap. */
.ck-main .ck-terms a { display: inline; min-height: 0; }

@media (max-width: 860px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr); }
  .ck-sum { order: -1; }
}

/* The motion layer only animates a reveal when it is allowed to (see web/motion.css and
   docs/frontend.md); nothing here depends on it, so a reduced-motion reader gets the
   same page with the transitions above collapsed by the global rule. */

/* Featured card: a slow sheen that crosses the card once on entry, then on hover.
   One pass, not a loop — a price you are reading should not keep shimmering.
   `overflow: hidden` is what keeps the sweep inside the rounded corners, so the
   "most popular" flag moves *inside* the padding box: at the usual `top: -.75rem` it
   sat in the overflow and was cut in half. */
.price-card.featured { overflow: hidden; padding-top: 2.1rem; }
.price-card.featured .price-flag { top: .6rem; }
.price-card.featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--brand) 18%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
}
.has-motion .price-card.featured.in::after { animation: price-sheen 1.1s ease-out .35s 1 both; }
.price-card.featured:hover::after { animation: price-sheen 1.1s ease-out 1 both; }
@keyframes price-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
/* Staggered entrance: --i is the card's index, set inline by priceCard(). */
.has-motion .pricing-grid [data-reveal] { transition-delay: calc(var(--i, 0) * 90ms); }

/* Glass cards on the landing (features + how it works). */
.lp .feature {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
/* The backdrop they frost: two soft colour fields behind each section. */
.lp-glass-bg { position: relative; isolation: isolate; }
.lp-glass-bg::before {
  content: ""; position: absolute; inset: 8% -4% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 55% at 18% 62%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(34% 50% at 82% 38%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
    radial-gradient(26% 40% at 55% 85%, color-mix(in srgb, var(--amber) 12%, transparent), transparent 70%);
  filter: blur(8px);
}
.has-motion .feature-grid [data-reveal] { transition-delay: calc(var(--i, 0) * 55ms); }

/* Course, signs and practice: their boxes are the same 40 % glass (owner, 2026-09-25), over the
   landing's soft fields painted on the box GRIDS themselves (tiled ≤ 36rem, each fading inside its
   tile). Not on the whole .view: on a short page the tiles repeated into the empty space below the
   content as loose blobs; and not a blurred ::before, whose outline showed as a box. `body[data-section]`
   is set by router(). :where() keeps these at the base rules' specificity, so hover, selected and
   `.is-glass` still win. Controls (.btn, .opt, inputs) stay solid; course.css adds its own boxes. */
:where(body[data-section="course"], body[data-section="signs"], body[data-section="practice"]) :is(.course-chapters, .course-lesson-list, .signgrid, .grid.tiles) {
  background:
    radial-gradient(30% 60% at 25% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(28% 55% at 75% 42%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
    radial-gradient(22% 40% at 50% 70%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 70%);
  background-size: 100% min(100%, 36rem); background-repeat: repeat-y;
}
:where(body[data-section="progress"]) .view {
  background:
    radial-gradient(30% 60% at 25% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(28% 55% at 75% 42%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
    radial-gradient(22% 40% at 50% 70%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 70%);
  background-size: 100% min(100%, 36rem); background-repeat: repeat-y;
}
:where(body[data-section="course"], body[data-section="signs"], body[data-section="practice"], body[data-section="progress"]) .card {
  background-color: var(--glass-card); background-image: none;
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}

/* --- phones: feature + step cards go icon-left, text-right ----
   Stacked (icon over heading over copy) each card is ~230px tall, and with the grid already down to
   ONE column that is four to seven full-height cards to scroll past. Turning each into a row puts the
   icon in a gutter beside the text and roughly halves the height, without touching the desktop
   layout. Scoped to 560px: below the width at which `repeat(auto-fit, minmax(250px, 1fr))` can still
   fit two columns (2x250 + gap needs ~550px), so the row layout only ever applies to a card that is
   already full-bleed. */
/* --- phones: squeeze the landing hero block ----
   Eyebrow → title → sub → two CTAs → three trust lines → stats band ran to ~1480px on a 390px screen,
   roughly four swipes before the first section. The type sizes are left alone (the title is the page's
   one piece of display type) — what is cut is whitespace and the wrapping of the three chip rows,
   which were stacking one item per line at desktop gaps. */
@media (max-width: 560px) {
  .lp-hero { padding: 1.3rem 0; gap: 1.1rem; }   /* sides 0: .view has the gutter; the card is gone */
  .lp-eyebrow { font-size: .68rem; letter-spacing: .12em; gap: .5rem; margin-bottom: .7rem; }
  .lp-eyebrow::before, .lp-eyebrow::after { width: 1.1rem; }
  .lp-title { margin-bottom: .5rem; }
  .lp-sub { margin-bottom: 1rem; }
  .lp-cta { gap: .55rem; }
  /* Row gap well under the column gap: these wrap to two or three lines here, and at
     one shared 1.2rem gap the lines drifted apart into a list. */
  .lp-trust { gap: .3rem 1rem; margin-top: .9rem; font-size: .84rem; }
  /* Tighter still (owner 2026-10-11) so the "Et innblikk" film below reaches the first screen: smaller title and
     sub, 46px buttons (over the 44px tap floor), and the section gap under the hero halved. */
  .lp-hero { padding: .7rem 0 .2rem; gap: .6rem; }
  .lp-hero h1 { font-size: clamp(1.6rem, 7.6vw, 1.9rem); line-height: 1.08; letter-spacing: -.02em; }
  .lp-title { margin-bottom: .4rem; }
  .lp-sub { font-size: .94rem; line-height: 1.45; margin-bottom: .8rem; }
  .lp-cta { gap: .45rem; }
  .lp-cta .btn { min-height: 46px; padding-block: .55rem; font-size: .96rem; }
  .lp-trust { margin-top: .65rem; font-size: .8rem; }
  .lp-hero + .price-lens--peek { margin-top: -1.5rem; }
}

@media (max-width: 560px) {
  .feature, .step {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: .1rem .85rem; align-items: start; padding: 1rem 1.05rem;
  }
  /* The icon spans the heading row and the copy row, so it sits against the top of
     the text block rather than floating in the middle of a two-line card. */
  .feature .ficon, .step-num { grid-row: span 2; margin-bottom: 0; align-self: start; }
  .feature .ficon { width: 2.5rem; height: 2.5rem; }
  .feature .ficon svg { width: 1.3rem; height: 1.3rem; }
  .step-num { width: 2rem; height: 2rem; font-size: .9rem; }
  .feature h3, .step h3 { margin: 0 0 .15rem; font-size: 1rem; align-self: center; }
  .feature p, .step p { font-size: .88rem; }
  .feature p, .step p { grid-column: 2; margin-top: 0; }
  /* The heading centres itself against the icon only while the copy is there to
     balance it; a card with no <p> would otherwise sit oddly high. */
  .feature h3:last-child, .step h3:last-child { grid-row: span 2; align-self: center; }
}

/* ---------------------------------------------------------- upsell + locks */
.upsell {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; margin: 1rem 0 1.4rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
}
.upsell-ic { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; color: #fff; background: var(--grad); background-color: var(--brand); }
.upsell-ic svg { width: 1.05rem; height: 1.05rem; }
.upsell-txt { flex: 1 1 16rem; font-size: .92rem; font-weight: 600; }
.upsell-once { font-weight: 500; color: var(--muted); }
/* "Did the practice help?" — offered on the result screen after a pass only, so it is
   asked at the one moment the answer is actually known. Same row shape as .upsell, in
   the OK palette rather than the brand one: this is an invitation, not an upsell, and
   it must not read as another thing to buy. */
.review-ask { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1rem;
  border-left: 3px solid var(--ok); }
.review-ask-ic { display: flex; color: var(--ok-ink); flex: none; }
.review-ask-ic svg { width: 1.35rem; height: 1.35rem; }
.review-ask-txt { display: flex; flex-direction: column; flex: 1 1 12rem; min-width: 0; }   /* 12rem, not 18: at 390px an 18rem basis pushed the icon onto a line of its own */
.review-ask-txt b { font-size: .98rem; }
.review-ask-txt span { color: var(--muted); font-size: .9rem; }
.review-ask .btn { flex: none; }
/* The expandable variant (`has-form`), which submits the review from the result page
   instead of sending the reader to the contact form. The row above becomes the head,
   so the card itself has to stop being a flex row. The plain variant and the
   thank-you state keep the rules above untouched. */
.review-ask.has-form { display: block; }
.review-ask-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
/* Unfolded on a pass, so there is nothing to discover — the toggle survives only as
   the way back to collapsed, which is why it is a quieter control once open. */
.review-ask.has-form.open .review-ask-head .btn { display: none; }
.review-ask-form[hidden] { display: none; }
.review-ask-inner { display: grid; gap: .75rem; margin-top: .95rem; padding-top: .95rem;
  border-top: 1px solid var(--border); }
.review-ask.has-form.open .review-ask-inner { animation: reviewUnfold .28s var(--ease, ease-out) both; }
@keyframes reviewUnfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.stars-field { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stars-lbl { font-size: .92rem; font-weight: 600; }
.stars { display: inline-flex; gap: .1rem; }
/* Grey, but not --border grey: these five are the card's primary control, and at
   #e4e8ef on white they read as a disabled decoration rather than something to tap. */
.star { display: flex; padding: .18rem; border-radius: var(--r-sm, 8px); cursor: pointer;
  color: color-mix(in srgb, var(--muted) 42%, transparent);
  transition: color .14s ease, transform .14s ease, filter .14s ease; }
/* The icon set is stroke-only by default; a rating star reads as a star only when it
   is solid, so fill and stroke are both taken from the same currentColor. */
.star svg { width: 1.85rem; height: 1.85rem; fill: currentColor; stroke: currentColor; }
.star-in:focus-visible + .star { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Grey until picked, amber up to the pick — and at five, the whole row goes to the
   site's own red with a glow behind it, so full marks look like full marks. */
.stars[data-rating="1"] .star:nth-of-type(-n + 1),
.stars[data-rating="2"] .star:nth-of-type(-n + 2),
.stars[data-rating="3"] .star:nth-of-type(-n + 3),
.stars[data-rating="4"] .star:nth-of-type(-n + 4) { color: var(--amber); }
.stars[data-rating="5"] .star { color: var(--brand);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--brand) 55%, transparent)); }
.stars[data-rating="5"] .star { animation: starPop .34s var(--ease, ease-out) both; }
.stars[data-rating="5"] .star:nth-of-type(2) { animation-delay: .04s; }
.stars[data-rating="5"] .star:nth-of-type(3) { animation-delay: .08s; }
.stars[data-rating="5"] .star:nth-of-type(4) { animation-delay: .12s; }
.stars[data-rating="5"] .star:nth-of-type(5) { animation-delay: .16s; }
@keyframes starPop { 0% { transform: none; } 45% { transform: scale(1.22); } 100% { transform: none; } }
/* A 1.85rem star plus .18rem of padding is a ~35px target — under the 44px a thumb
   needs, and this is the one control on the card. Grown on coarse pointers only, so
   the desktop row keeps its tighter spacing. */
@media (pointer: coarse) { .star { padding: .45rem; } }
.review-ask-send { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.review-ask-note { font-size: .88rem; color: var(--muted); }
.review-ask-note.bad { color: var(--bad); }
.review-ask.sent { border-left-color: var(--ok); }
.review-ask.sent .review-ask-ic { color: var(--ok); }
/* Motion here is decoration on a form: the unfold and the five-star pop both go, the
   colour change stays (it is the feedback, not the flourish). */
@media (prefers-reduced-motion: reduce) {
  .review-ask.has-form.open .review-ask-inner,
  .stars[data-rating="5"] .star { animation: none; }
  .star { transition: color .14s ease; }
}
/* The permission line in the contact form. Sits between the category and the message,
   and is only in the DOM's flow when a review is what is being sent. */
.contact-consent { margin: -.3rem 0 .2rem; padding: .7rem .85rem; border-radius: var(--r-md);
  background: var(--ok-bg); color: var(--text); font-size: .88rem; line-height: 1.5; }
.contact-consent[hidden] { display: none; }

/* --- dev · reviews (#/dev/reviews) -------------------------------------------
   Local-only screen with one reader, so it borrows the app's existing card/chip
   vocabulary rather than introducing anything new. */
.devrev-list { display: grid; gap: .8rem; }
.devrev-q { margin: 0 0 .7rem; font-size: 1.02rem; line-height: 1.55; border-left: 3px solid var(--brand);
  padding-left: .8rem; }
.devrev-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .88rem; }
.devrev-meta .spacer { flex: 1 1 auto; }
.devrev-mail { margin-top: .5rem; font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.devrev-how ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.devrev-how p { margin: 0; color: var(--muted); }
.upsell .btn { flex: none; }

/* Locked surfaces. Dimmed and non-interactive-looking, but never blurred content:
   the sign faces and question texts behind the pass are simply not rendered. */
.card.is-locked:not(.tile) { opacity: .72; }
.tile.is-locked > img, .tile.is-locked .tile-body p { opacity: .72; transition: opacity .16s ease; }
.tile.is-locked h3 { color: var(--muted); }
.tile.is-locked:hover > img, .tile.is-locked:hover .tile-body p { opacity: .9; }
.card.is-locked .select:disabled { cursor: not-allowed; }
.seg-lock { display: inline-flex; margin-left: .35rem; color: var(--muted); }
.seg-lock svg { width: .9rem; height: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .price-card.featured::after { display: none; }
  .has-motion .pricing-grid [data-reveal], .has-motion .feature-grid [data-reveal] { transition-delay: 0s; }
}

/* testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.testi .stars { color: #f5b301; letter-spacing: .1em; font-size: .95rem; }
.testi blockquote { margin: .6rem 0 1.1rem; font-size: 1rem; line-height: 1.5; }
.testi .who { display: flex; align-items: center; gap: .6rem; }
/* Dormant (testimonials were removed 2026-08-15) but pre-fixed to --grad-ui: initials
   are ~16px bold, under the decorative ramp's floor, so the section would have shipped
   the same AA failure the moment real quotes replaced the invented ones. */
.testi .avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-ui); }
.testi .who b { display: block; font-size: .9rem; }
.testi .who span { color: var(--muted); font-size: .8rem; }

/* final CTA */
/* --grad-ui: the h2 is large enough for the decorative ramp, but the sub-line under
   it is 16.8px and measured 3.77:1 (2026-08-20). */
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.5rem); background-color: var(--grad-solid); background-image: var(--grad-ui); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% -10%, rgba(255,255,255,.28), transparent 50%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--fs-h1); margin-bottom: .6rem; }
.cta-band p { color: #fff; font-size: 1.05rem; margin-bottom: 1.5rem; }   /* was .92 alpha: strictly less contrast, and no checker models foreground alpha */
.cta-band .btn.primary { background: #fff; color: var(--brand-on-white); border: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Tablets (owner 2026-10-11): a shorter hero so the "Et innblikk" film below gets onto the screen. Stacked
   (portrait) the frame wall shrinks; side by side (landscape) the narrow copy column gets smaller type. */
@media (min-width: 561px) and (max-width: 1179px) {
  .lp-hero { padding-block: 1.25rem .75rem; }
  .lp-hero .lp-sub { margin-bottom: 1.1rem; }
  .lp-hero .lp-trust { margin-top: 1rem; }
}
@media (min-width: 561px) and (max-width: 820px) {
  .lp-hero { gap: .9rem; }
  .lp-hero .hero-frames { max-width: 360px; }
  .lp-hero .lp-visual { min-height: 0; }
}
@media (min-width: 821px) and (max-width: 1179px) {
  .lp-hero .lp-title { font-size: clamp(2.3rem, 4.6vw, 3.1rem); }
  .lp-hero .lp-sub { font-size: 1rem; }
}
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; }
  .lp-hero .lp-cta, .lp-hero .lp-trust { justify-content: center; }
  .lp-sub { margin-inline: auto; }
}
/* 280, not 340: on a 390px screen the hero drive was taking most of the fold on its
   own. It is a generated scene that samples fewer rows under 700px anyway, so it
   loses no detail worth keeping — it just stops pushing the CTAs below the fold. */
@media (max-width: 480px) { .lp-visual { min-height: 280px; } }
/* Phones (owner 2026-10-11): no frame wall in either hero — the "Et innblikk" film right below is the picture.
   main.js heroFrames() also skips the markup there, so no frame is downloaded. */
@media (max-width: 767px) { .lp-hero .lp-visual, .hero.hero-split .hero-art { display: none; } }

/* =====================================================================
   EDGE DECORATION (CSS fallback) — static, irregular scatter of flat-colour sign-like shapes
   (triangle / circle / diamond / octagon, mixed outline & filled, mixed sizes, some bleeding off the
   outer edge) filling the empty margins beside the 1120px content rail, never the content itself. Left and right use two
   different arrangements (not a mirrored copy) so the page doesn't read as symmetric. Faded top and
   bottom so it reads as a quiet border, not wallpaper.
   When JS is available and motion is not reduced, the animated canvas version takes over
   (web/app/edge-animation.js adds .has-edge-anim to <html>, which hides these pseudo-elements).
   ===================================================================== */
body::before, body::after {
    content: "";
    position: fixed; top: 0; bottom: 0; width: max(0px, calc((100vw - 1120px) / 2 - 12px));
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
    pointer-events: none;
    z-index: 0;
  }
  body::before {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='1500' viewBox='0 0 240 1500'%3E%3Ccircle cx='0' cy='80' r='70' fill='%23e08a00' fill-opacity='0.5'/%3E%3Cpolygon points='150,175 205,276.75 95,276.75' fill='none' stroke='%237c5cff' stroke-opacity='0.55' stroke-width='5' stroke-linejoin='round'/%3E%3Ccircle cx='60' cy='340' r='16' fill='%23c8102e' fill-opacity='0.6'/%3E%3Cpolygon points='172,438 214,480 172,522 130,480' fill='none' stroke='%232f6fed' stroke-opacity='0.55' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='88.8,636.1 66.1,658.8 33.9,658.8 11.2,636.1 11.2,603.9 33.9,581.2 66.1,581.2 88.8,603.9' fill='none' stroke='%23c8102e' stroke-opacity='0.5' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='88.8,636.1 66.1,658.8 33.9,658.8 11.2,636.1 11.2,603.9 33.9,581.2 66.1,581.2 88.8,603.9' fill='%23c8102e' fill-opacity='0.08'/%3E%3Cpolygon points='190,708 212,730 190,752 168,730' fill='%231a7f37' fill-opacity='0.5'/%3E%3Ccircle cx='0' cy='860' r='95' fill='none' stroke='%23e08a00' stroke-opacity='0.45' stroke-width='5'/%3E%3Cpolygon points='140,950 170,1005.5 110,1005.5' fill='%232f6fed' fill-opacity='0.4'/%3E%3Ccircle cx='70' cy='1090' r='13' fill='%237c5cff' fill-opacity='0.55'/%3E%3Cpolygon points='65.4,1253 33,1285.4 -13,1285.4 -45.4,1253 -45.4,1207 -13,1174.6 33,1174.6 65.4,1207' fill='%23c8102e' fill-opacity='0.12'/%3E%3Cpolygon points='65.4,1253 33,1285.4 -13,1285.4 -45.4,1253 -45.4,1207 -13,1174.6 33,1174.6 65.4,1207' fill='none' stroke='%23c8102e' stroke-opacity='0.4' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='178,1312 216,1382.3 140,1382.3' fill='none' stroke='%231a7f37' stroke-opacity='0.5' stroke-width='5' stroke-linejoin='round'/%3E%3Ccircle cx='40' cy='1450' r='12' fill='%23e08a00' fill-opacity='0.55'/%3E%3C/svg%3E");
  }
  body::after {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='1500' viewBox='0 0 240 1500'%3E%3Ccircle cx='240' cy='120' r='85' fill='%232f6fed' fill-opacity='0.45'/%3E%3Cpolygon points='70,310 120,217.5 20,217.5' fill='none' stroke='%23c8102e' stroke-opacity='0.55' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='190,350 210,370 190,390 170,370' fill='%23e08a00' fill-opacity='0.55'/%3E%3Cpolygon points='97,515.3 75.3,537 44.7,537 23,515.3 23,484.7 44.7,463 75.3,463 97,484.7' fill='none' stroke='%237c5cff' stroke-opacity='0.5' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='97,515.3 75.3,537 44.7,537 23,515.3 23,484.7 44.7,463 75.3,463 97,484.7' fill='%237c5cff' fill-opacity='0.1'/%3E%3Cpolygon points='240,565 325,722.25 155,722.25' fill='%231a7f37' fill-opacity='0.32'/%3E%3Ccircle cx='110' cy='760' r='13' fill='%232f6fed' fill-opacity='0.55'/%3E%3Cpolygon points='198,832 246,880 198,928 150,880' fill='none' stroke='%23e08a00' stroke-opacity='0.5' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='70.3,998.4 58.4,1010.3 41.6,1010.3 29.7,998.4 29.7,981.6 41.6,969.7 58.4,969.7 70.3,981.6' fill='%23c8102e' fill-opacity='0.4'/%3E%3Ccircle cx='240' cy='1120' r='70' fill='none' stroke='%231a7f37' stroke-opacity='0.45' stroke-width='5'/%3E%3Cpolygon points='150,1214 176,1262.1 124,1262.1' fill='%237c5cff' fill-opacity='0.5'/%3E%3Ccircle cx='190' cy='1350' r='12' fill='%23c8102e' fill-opacity='0.5'/%3E%3Cpolygon points='70,1422 88,1440 70,1458 52,1440' fill='%232f6fed' fill-opacity='0.5'/%3E%3C/svg%3E");
  }
:root[data-theme="dark"] body::before, :root[data-theme="dark"] body::after {
  opacity: .8;
  mix-blend-mode: screen;
}
/* Hide the static pseudo-element decorations once the JS edge animation takes over.
   The fallback (no JS / reduced-motion) keeps the CSS version. */
.has-edge-anim body::before, .has-edge-anim body::after { display: none; }
/* Margins only (same rule as edge-animation.js): no gutter wide enough, no shapes. */
@media (max-width: 1287px) { body::before, body::after { display: none; } }
/* NOT .topbar: it is already above these decorations (position: sticky +
   z-index: 20, declared at its own rule). Listing it here once flattened it to
   z-index: 1 — the same layer as .view, which paints later in the DOM — so the
   account menu (z-index 60 INSIDE the bar's stacking context) rendered behind
   the page content. It also silently overrode sticky with relative. */
.view, .footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ mobile polish */
/* Safe-area insets — on notched/rounded phones (viewport-fit=cover) keep the sticky bar, content and
   footer clear of the notch, home indicator and rounded corners. max() so we never shrink below the
   existing padding on flat screens. Appended last so these win the cascade over the earlier
   responsive paddings.
   The sticky bar is the one thing that does NOT sit on the --page-w rail: it runs edge to edge on
   purpose. Centring its contents on the rail was tried (2026-08-18) and reverted — seven nav links
   plus the auth buttons, the theme toggle and the language select need more than 1160px at desktop
   widths, and squeezing them onto the rail wrapped "Logg inn" onto two lines at 1440. */
.topbar { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
/* Tablets (owner 2026-10-11): no bar, only its controls float — no glass, border or scroll shadow. Phones keep the
   glassy bar (owner, same day). The round buttons keep their own backgrounds; the logo gets a halo for legibility. */
@media (min-width: 768px) and (max-width: 1024px) {
  html .topbar, html body.scrolled .topbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom-color: transparent; box-shadow: none; }
  .topbar .brand img { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--bg) 85%, transparent)) drop-shadow(0 0 2px var(--bg)); }
}
.view {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(3.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
.footinner, .footbar {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.footbar { padding-bottom: max(.55rem, env(safe-area-inset-bottom)); }

/* Touch-only affordances (e.g. the swipe hint) appear on coarse pointers. */
@media (pointer: coarse) {
  .touch-only { display: inline; }
}

/* ============================================================ student discount
   The top bar, the verify panel and the #/student page.
   The bar ships VISIBLE in index.html so it is in the first paint; this rule is what the pre-paint
   inline script there switches on, and it is the only way the bar is hidden without a layout shift. A
   bar added by JS after boot would push the header, the hero and everything below it down — the exact
   4 px-header mistake that cost CLS 0.96 once already (docs/frontend.md). Closing it with the X *is*
   allowed to shift, because a shift within 500 ms of a click is outside the metric. */
:root[data-studbar="off"] .studbar { display: none; }

.studbar {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem max(1rem, env(safe-area-inset-left)) .5rem max(1rem, env(safe-area-inset-right));
  background: var(--grad-ui); color: var(--brand-ink);
  font-size: .88rem; font-weight: 600;
}
.studbar-in {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  flex: 1; min-width: 0; flex-wrap: wrap;
  color: inherit; text-decoration: none;
}
.studbar-tag {
  flex: none; font-weight: 800; font-size: .78rem; letter-spacing: .02em;
  padding: .15rem .45rem; border-radius: var(--r-xs);
  /* Not #fff on the red: the brand gradient is dark enough that a white chip reads as
     a button and gets clicked expecting something separate to happen.
     A DARK scrim, not the white one it was until 2026-09-05, and for the reason the
     .pill/.hero-badge note above this file already records: a translucent white layer
     LIGHTENS its own backdrop, so it makes white ink worse, not better. Measured by
     `ui-audit.mjs a11y` at 1280 on every route: 4.33:1 against a 4.5 floor (the text is
     12.5px, so it gets no large-text relief). The same alpha inverted measures ~6.3:1 at
     the light end of --grad-ui. The chip still reads as a chip, just as a well rather
     than a highlight — which is also the honest depth cue, since it sits ON the bar. */
  background: rgba(0,0,0,.18);
}
.studbar-cta { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.studbar-in:hover .studbar-cta { text-decoration-thickness: 2px; }
.studbar-x {
  flex: none; display: grid; place-items: center;
  /* 40px, not the 24px the glyph needs: this is the one control on the bar someone
     taps deliberately, and a close button too small to hit is worse than no bar. */
  width: 40px; height: 40px; margin: -.5rem -.35rem -.5rem 0;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.studbar-x svg { width: 18px; height: 18px; }
.studbar-x:hover { background: rgba(255,255,255,.15); }
.studbar-x:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: -4px; }
/* Campaign mode: the offer leads, the student discount rides along (.studbar-extra). */
.studbar-was { font-weight: 500; opacity: .85; text-decoration-thickness: 1.5px; }
.studbar-extra { font-weight: 500; opacity: .92; }
/* Campaign tag: plain text on the red bar, no chip (owner) — the 🎃 carries it. */
.studbar--camp .studbar-tag { background: none; padding: 0; font-size: inherit; }
.studbar--black { background: #2b2b2b; color: #fff; }
.studbar--black .studbar-x:focus-visible { outline-color: #fff; }
.studbar-arrow { display: inline-block; margin-left: .3rem; }
/* Campaign bar motion (transform/opacity only, so no layout shift): the −33 % pops in, the strike
   draws across the old price, then a sheen crosses the bar every 6 s — the −33 % pulses and the
   arrow nudges as it passes. Gated on the media query, not .has-motion: the bar paints before the app boots. */
.studbar--camp { position: relative; overflow: hidden; isolation: isolate; }
.studbar--camp > * { position: relative; z-index: 1; }
.studbar--camp .studbar-was { position: relative; text-decoration: none; }
.studbar--camp .studbar-was::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px;
  background: currentColor; transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .studbar--camp::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.42) 50%, transparent);
    transform: translateX(-110%);
    animation: studbar-sheen 6s cubic-bezier(.4, 0, .2, 1) 1.4s infinite;
  }
  .studbar--camp .studbar-tag { display: inline-block; animation: studbar-pop .55s cubic-bezier(.3, 1.6, .5, 1) .2s both, studbar-pulse 6s ease-in-out 1.4s infinite; }
  .studbar--camp .studbar-was::after { animation: studbar-strike .45s cubic-bezier(.6, 0, .3, 1) .75s both; }
  .studbar--camp .studbar-arrow { animation: studbar-nudge 6s ease-in-out 1.4s infinite; }
  .studbar--camp:hover::before, .studbar--camp:hover .studbar-arrow, .studbar--camp:hover .studbar-tag { animation-play-state: paused; }
  .studbar--camp .studbar-in:hover .studbar-arrow { transform: translateX(3px); transition: transform .15s ease; }
}
@keyframes studbar-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes studbar-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes studbar-sheen { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(260%); } }
@keyframes studbar-pulse { 0%, 4%, 16%, 100% { transform: none; } 9% { transform: scale(1.18); } }
@keyframes studbar-nudge { 0%, 14%, 26%, 100% { transform: none; } 18% { transform: translateX(4px); } 22% { transform: translateX(0); } }
@media (max-width: 34rem) {
  .studbar { font-size: .82rem; }
  .studbar-tag, .studbar-extra { display: none; }
  /* Phones: one line, never two (owner 2026-10-11) — squeezed, and the offer text ellipsizes before it wraps. */
  .studbar { gap: .25rem; padding-block: .4rem; padding-inline: max(.6rem, env(safe-area-inset-left)) max(.35rem, env(safe-area-inset-right));
    font-size: .78rem; letter-spacing: -.005em; }
  .studbar-in { flex-wrap: nowrap; gap: .4rem; }
  .studbar-in > [data-studbar="text"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .studbar--camp .studbar-tag { font-size: .74rem; }
  .studbar-x svg { width: 16px; height: 16px; }
}
/* The narrowest phones keep the arrow and drop the words "Se prisene" (the whole bar is the link). */
@media (max-width: 400px) {
  .studbar-cta { font-size: 0; text-decoration: none; }
  .studbar-cta .studbar-arrow { font-size: .9rem; margin-left: 0; }
}

/* The discount stated in words under the price grid, not only on the tag. The tag is a
   62 px graphic and the top bar is dismissible, so without this the offer existed on the
   landing page as five characters of red pill — nothing for a crawler that does not run
   JS to read, and nothing for a reader who closed the bar. */
.price-foot-stud { color: var(--text); font-weight: 600; margin-bottom: .2rem; }
.price-foot-stud a { color: var(--brand); text-underline-offset: 3px; }

/* ---- the swing tag on a price card (studentHang() in main.js) ----
   A little tag on a braided rope, hung from a nail at the top right of every PAID price card, so the
   discount is stated where the price is actually read rather than only on a bar the reader can
   dismiss. Two structural rules, both learned the hard way:
   - It hangs INSIDE the card's padding box. `.price-card.featured` is `overflow: hidden` for its
     sheen, and that is what cut the "most popular" flag in half at `top: -.75rem`.
   - The pendulum and the hover sway are on TWO elements (`-swing` / `-sway`), not one. Both would be
     the `animation` property on the same element, so the hover rule would cancel the entrance one —
     and un-hovering would restart the entrance drop, re-dropping the tag every time the pointer left.
   Nothing loops: the tag drops and settles once when the card enters, and sways again only when the
   reader hovers or tabs to it (the same one-shot bargain as the featured card's sheen). */
.stud-hang {
  position: absolute; top: .3rem; right: .7rem; z-index: 2;
  text-decoration: none; line-height: 1;
}
/* The nail it hangs from — the one part that must not move when the rope swings, so it
   sits outside the animated wrapper. */
.stud-hang-nail {
  position: absolute; top: 0; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: color-mix(in srgb, var(--text) 42%, transparent);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.3);
}
/* Both wrappers pivot at the nail, not at their own centre: a tag swinging about its
   middle reads as a spinning badge, not as something hanging. */
.stud-hang-swing, .stud-hang-sway { display: block; transform-origin: 50% 3px; }
/* Twine: two strands winding around each other (ROPE_SVG in main.js), stroked in
   `currentColor` so one asset reads on --surface in both themes. It was a 3 px
   repeating-linear-gradient "braid" first — at that width the stripes vanished and it
   rendered as a solid grey shaft, i.e. a thumbtack. */
.stud-hang-rope { display: block; margin-top: 3px; color: color-mix(in srgb, var(--text) 44%, transparent); }
.stud-hang-rope svg { display: block; margin: 0 auto; overflow: visible; }
.stud-hang-rope path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.stud-hang-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .3rem .45rem .28rem; border-radius: var(--r-xs); white-space: nowrap;
  /* --grad-ui + --brand-ink, the same pairing as .studbar: the discount reads as one
     thing across the site, and it is the gradient that carries white ink at this size. */
  background: var(--grad-ui); color: var(--brand-ink);
  box-shadow: 0 3px 9px color-mix(in srgb, var(--brand) 30%, transparent);
  /* `rotate`, not `transform`: the wrappers own transform, and these compose instead of
     overwriting each other. A tag hanging dead straight looks printed on. */
  rotate: -2.5deg;
}
/* The grommet the cord is threaded through, straddling the tag's top edge. */
.stud-hang-tag::before {
  content: ""; position: absolute; top: -3px; left: 50%; width: 8px; height: 8px;
  margin-left: -4px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--text) 40%, var(--surface));
  background: var(--surface);
}
.stud-hang-tag b { font-size: .8rem; font-weight: 800; letter-spacing: -.01em; }
.stud-hang-tag small { font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.stud-hang:hover .stud-hang-tag { box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 40%, transparent); }
.stud-hang:focus-visible { outline: none; }
.stud-hang:focus-visible .stud-hang-tag { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Hung, then let go: it arrives a beat after the card lands, overshoots and damps out.
   The easing is sine-in-out, which is what a pendulum actually does — an ease-out would
   make every swing look like the last one. */
.has-motion .price-card.in .stud-hang-swing { animation: stud-hang-drop 1.5s cubic-bezier(.37,0,.63,1) .45s both; }
.has-motion .price-card:hover .stud-hang-sway,
.has-motion .stud-hang:focus-visible .stud-hang-sway { animation: stud-hang-sway 1.25s cubic-bezier(.37,0,.63,1) both; }
@keyframes stud-hang-drop {
  0%   { opacity: 0; transform: translateY(-9px) rotate(-15deg); }
  20%  { opacity: 1; transform: translateY(0) rotate(11deg); }
  44%  { transform: translateY(0) rotate(-6.5deg); }
  64%  { transform: translateY(0) rotate(3.6deg); }
  84%  { transform: translateY(0) rotate(-1.5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes stud-hang-sway {
  0%   { rotate: 0deg; }
  22%  { rotate: 5.5deg; }
  46%  { rotate: -3.6deg; }
  68%  { rotate: 2deg; }
  86%  { rotate: -.9deg; }
  100% { rotate: 0deg; }
}
/* Where linear() exists (`.has-spring`, motion.js publishSprings()) the swing is a solved damped
   pendulum rather than five hand-placed angles: the fall is its own translate, the swing a `rotate`
   on a spring curve, and the hover sway an impulse that ends exactly upright. */
.has-spring .price-card.in .stud-hang-swing {
  animation: stud-hang-fall .3s ease-out .45s both, stud-hang-pend var(--hang-ms) var(--hang-ease) .45s both;
}
.has-spring .price-card:hover .stud-hang-sway,
.has-spring .stud-hang:focus-visible .stud-hang-sway { animation: stud-hang-nudge var(--sway-ms) var(--sway-ease); }
@keyframes stud-hang-fall { from { opacity: 0; translate: 0 -9px; } }
@keyframes stud-hang-pend { from { rotate: -15deg; } to { rotate: 0deg; } }
@keyframes stud-hang-nudge { to { rotate: 5.5deg; } }
/* The static state is the finished one — an upright tag, fully visible — so there is
   nothing to restore here beyond stopping the movement. */
@media (prefers-reduced-motion: reduce) {
  .has-spring .price-card.in .stud-hang-swing,
  .has-spring .price-card:hover .stud-hang-sway,
  .has-spring .stud-hang:focus-visible .stud-hang-sway,
  .has-motion .price-card.in .stud-hang-swing,
  .has-motion .price-card:hover .stud-hang-sway,
  .has-motion .stud-hang:focus-visible .stud-hang-sway { animation: none; }
}
/* Phones: the cards go full width, so the tag can breathe a little further in from the
   corner without crowding the price. */
@media (max-width: 34rem) {
  .stud-hang { right: 1rem; }
}

/* ---- the verify panel (checkout + #/student) ---- */
.stud {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); padding: .85rem 1rem; margin: 1rem 0;
}
.stud.is-ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); background: var(--ok-bg); }
.stud-compact { margin: .75rem 0 .6rem; }

.stud-tick { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.stud-tick input { position: absolute; opacity: 0; width: 0; height: 0; }
.stud-tick-box {
  flex: none; width: 22px; height: 22px; margin-top: .05rem; border-radius: var(--r-xs);
  border: 2px solid var(--muted); background: var(--surface);
  display: grid; place-items: center; color: transparent; transition: .15s;
}
.stud-tick-box svg { width: 14px; height: 14px; stroke-width: 3; }
.stud-tick input:checked + .stud-tick-box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stud-tick input:focus-visible + .stud-tick-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.stud-tick-txt { display: flex; flex-direction: column; gap: .1rem; line-height: 1.35; }
.stud-tick-txt b { font-size: .95rem; }
.stud-tick-txt small { color: var(--muted); font-size: .82rem; font-weight: 600; }

.stud-body { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.stud-form { display: flex; flex-direction: column; gap: .6rem; }
.stud-hint { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.stud-sent { margin: 0; font-size: .85rem; line-height: 1.45; }
.stud-alt { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.stud-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem; letter-spacing: .3em; text-align: center;
}
.stud .fielderr.is-on { display: block; margin-top: .35rem; }

.stud-okrow { display: flex; align-items: flex-start; gap: .65rem; flex-wrap: wrap; }
.stud-okico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; }
.stud-okico svg { width: 16px; height: 16px; stroke-width: 3; }
.stud-okrow > div { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: .12rem; }
.stud-okrow b { color: var(--ok-ink); font-size: .95rem; }
.stud-sub { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.stud-save { flex: none; font-weight: 800; color: var(--ok-ink); align-self: center; }

/* ---- #/student ---- */
.studpage-hero { text-align: center; margin: 0 0 1.5rem; }
.studpage-hero h1 { margin: .4rem 0 .5rem; }
.studpage-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-on-white);
}
.studpage-price { display: flex; align-items: baseline; justify-content: center; gap: .6rem; flex-wrap: wrap; margin: .75rem 0 0; }
.studpage-was { color: var(--muted); text-decoration: line-through; }
.studpage-now { font-size: 1.6rem; font-weight: 800; }
.studpage-steps { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.studpage-steps li { display: flex; gap: .65rem; align-items: flex-start; }
.studpage-step-n {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-size: .82rem; font-weight: 800;
}
.studpage-who { columns: 2 14rem; column-gap: 1.6rem; margin: 0; padding-left: 1.1rem; }
.studpage-who li { break-inside: avoid; margin: 0 0 .3rem; color: var(--muted); font-size: .9rem; }

/* ===================================================== dev business dashboard (#/dev/accounts)
   The operator's only screen, behind DEV_TOOLS + DEV_EMAIL. It is NOT part of the learner
   product, so it is styled entirely out of the existing primitives (.card, .stat, .tbl,
   .bar, .chip-tag) and adds only what a dense operational table genuinely needs. */

/* Six KPIs, not the three .statgrid is built for: these are scanned as a block, and the
   two-row 3x2 shape keeps each number wide enough to stay readable at full precision. */
.dash-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .dash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dash-kpi { grid-template-columns: 1fr; } }
.dash-kpi .stat-num { font-size: 1.35rem; }

.dash-filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; }
.dash-filters .field { flex: 1 1 10rem; min-width: 0; margin: 0; }
/* The sentence restating the active filters spans the whole row under the controls,
   so a screenshot of this dashboard says what it is a picture of. */
.dash-note { flex: 1 0 100%; margin: .2rem 0 0; }
.dash-count { margin: .9rem 0 .4rem; }
.dash-h3 { margin: 0 0 .6rem; font-size: .95rem; }
.dash-key { font-weight: 700; }
/* Three panels that are read ACROSS — channel, plan, ledger — so the column count is
   stated rather than left to .grid's auto-fit, which collapsed the row to a single
   full-width track here and turned three glanceable panels into three screens of scroll. */
.dash-splits { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; align-items: start; }
@media (max-width: 900px) { .dash-splits { grid-template-columns: 1fr; } }

/* Stack order is Stripe on the baseline, Vipps above it, EVERYWHERE on this screen. */
.dash-bar.vipps { fill: var(--brand); }
.dash-bar.stripe { fill: var(--blue); }
.lg-key.dash-vipps { background: var(--brand); }
.lg-key.dash-stripe { background: var(--blue); }
/* The split bars reuse .bar, whose default fill is --brand (Vipps); the second series
   needs the same blue it has in the chart above, not the amber .solid normally means. */
.dash-splits .bar > i.solid { background: var(--blue); }

/* Eight columns of real data do not fold into a phone. Rather than hide columns or
   shrink the type to nothing, the table keeps its width and scrolls inside its own card
   — the one place docs/frontend.md allows a horizontal scroller. */
.dash-tablewrap { overflow-x: auto; }
.dash-tbl { min-width: 780px; margin-top: 0; }
.dash-tbl th {
  text-align: left; padding: .3rem .6rem .5rem 0; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.dash-tbl td { padding: .55rem .6rem .55rem 0; vertical-align: top; white-space: nowrap; }
/* .tbl greys and right-aligns its last column by default, which is right for a two-column
   readout and wrong for an eight-column table where the last column is data like any other. */
.dash-tbl td:last-child { text-align: right; color: var(--text); }
.dash-tbl th.num, .dash-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-tbl .m-sub { color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: .15rem; }
/* The identity column is the one that may wrap: an e-mail address is long, and truncating
   the thing you search the table BY would defeat the search box above it. */
.dash-tbl .dash-who { white-space: normal; min-width: 15rem; }
.dash-tbl .dash-who a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); }
.dash-tbl .dash-who a:hover { text-decoration-color: currentColor; }
.dash-stars { color: var(--amber); letter-spacing: .05em; }
/* Sandbox money, marked on the row. Amber rather than red: a test purchase is not an
   error, it just must never be mistaken for revenue. */
.dash-tbl .chip-tag.warn-chip {
  color: #8a5400; background: color-mix(in srgb, var(--amber) 16%, var(--surface));
}
:root[data-theme="dark"] .dash-tbl .chip-tag.warn-chip { color: var(--amber); }
/* Pager under the roster. Real <button>s, so `:disabled` actually dims the end stops —
   the anchors used for the dev question-browser steps needed a manual opacity fake. */
.dash-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.dash-pager .btn:disabled { opacity: .45; pointer-events: none; }
.dash-pageno { color: var(--muted); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Bars: 2px surface seam between stacked segments comes from the path; hover lifts the column. */
.dash-col .dash-bar { transition: opacity .12s ease; }
.dash-col:hover .dash-bar, .dash-col:focus-within .dash-bar { opacity: .82; }
/* Refetch keeps the frame, dimmed, instead of a flash of "Loading…". */
.dash-wrap { transition: opacity .15s ease; }
.dash-wrap.is-loading { opacity: .55; pointer-events: none; }
.dash-wrap .src, .devnav .src { color: var(--muted); font-size: .82rem; }
.dash-wrap .chip-tag.warn-chip, .devnav .chip-tag.warn-chip {
  color: #8a5400; background: color-mix(in srgb, var(--amber) 16%, var(--surface));
}
:root[data-theme="dark"] .devnav .chip-tag.warn-chip,
:root[data-theme="dark"] .dash-wrap .chip-tag.warn-chip { color: var(--amber); }

/* ---- shared #/dev nav strip: every dev screen, one click apart ---- */
.devnav { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin: 0 0 1.1rem; }
.devnav .seg { margin: 0; flex-wrap: wrap; border-radius: var(--r-md); }
.devnav .seg-btn { border-radius: var(--r-sm); }
.devnav-aside { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dev-tiles { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dev-sec { margin: 1.5rem 0 .7rem; font-size: .76rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; }

/* ---- dev · page views (#/dev/pageviews) ---- */
.pv .view-h2 { display: flex; align-items: baseline; gap: .3rem .6rem; flex-wrap: wrap; }
.pv-sub { color: var(--muted); font-size: .82rem; font-weight: 600; }
.pv-field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); font-weight: 600; flex: 0 1 auto !important; }
.pv-seg { margin: 0; flex-wrap: nowrap; }
.pv-seg .seg-btn { border: 0; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 650; padding: .35rem .8rem; white-space: nowrap; }
@media (max-width: 480px) { .pv-seg .seg-btn { padding: .35rem .55rem; } }
.pv-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--text); padding-bottom: .55rem; }
.pv-chart svg { cursor: crosshair; touch-action: pan-y; }
.pv-chart svg:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-xs); }
.pv-weekend { fill: var(--surface-2); }
.pv-avg { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; opacity: .85; }
.pv-cross { stroke: var(--muted); stroke-width: 1; opacity: 0; pointer-events: none; }
.pv-cross.on { opacity: .6; }
.pv-end, .pv-hot { fill: var(--blue); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.pv-end.partial { fill: var(--surface); stroke: var(--blue); }
.pv-hot { opacity: 0; }
.pv-hot.on { opacity: 1; }
.pv-peaklabel { fill: var(--muted); font-weight: 700; }
.lg-key.line { width: 16px; height: 0; border-top: 2px solid var(--blue); border-radius: 0; }
.lg-key.line.avg { border-top-color: var(--muted); }
.lg-key.band { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.lg-key.hollow { background: var(--surface); border: 2px solid var(--blue); }
.pv-tbl td { vertical-align: middle; }
.pv-tbl .bar { max-width: 260px; height: 6px; margin: .35rem 0 0; }
.pv-tbl .dash-who { min-width: 16rem; }
.pv-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; word-break: break-all; }
.pv-name:hover, .pv-name:focus-visible { text-decoration-color: currentColor; }
.pv-tbl tr.is-sel td { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.pv-spark { display: block; width: 120px; height: 28px; }
.pv-spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pv-tbl .stat-delta { margin: 0; }
/* On a phone keep Page + Views on screen; trend/share/delta are the desktop extras. */
@media (max-width: 560px) {
  .pv-tbl { min-width: 0; }
  .pv-tbl .dash-who { min-width: 0; }
  .pv-tbl tr > :nth-child(2), .pv-tbl tr > :nth-child(4), .pv-tbl tr > :nth-child(5) { display: none; }
}
.pv-splits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pv-splits { grid-template-columns: 1fr; } }
.pv-splits .bar > i.front { background: var(--violet); }
.pv-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; align-items: end; height: 150px; margin-top: .4rem; }
.pv-wk-col { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; min-width: 0; }
.pv-wk-val { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-wk-track { flex: 1; width: 100%; max-width: 24px; display: flex; align-items: flex-end; }
.pv-wk-track i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; }
.pv-wk-col.is-weekend .pv-wk-track i { background: color-mix(in srgb, var(--blue) 45%, var(--surface)); }
.pv-wk-day { font-size: .76rem; font-weight: 600; color: var(--muted); }
.pv-days { margin-top: 1rem; }
.pv-days summary { cursor: pointer; font-weight: 700; }
.pv-days[open] summary { margin-bottom: .5rem; }

/* #/dev/bike — the picture a motorcycle card USED to show, above the one that replaced
   it. Small on purpose: it is the reference for the judgement, not the subject of it. */
.bike-before { margin: 0 0 .5rem; }
.bike-before img { width: 180px; max-width: 45%; border-radius: 6px; display: block; opacity: .85; }
.bike-before .qmeta { display: block; margin-top: .15rem; word-break: break-all; }

/* ---------- Consent banner (consent.js) ----------
   Bottom-anchored card, above the sticky topbar's z-index 20 because it gates a
   third-party script and must not be paintable-over. It is injected only when no
   choice is stored, so it costs nothing after the first answer. */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  max-width: 44rem; margin: 0 auto; padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(.5rem); transition: opacity .2s ease, transform .2s ease;
}
.consent[data-in] { opacity: 1; transform: none; }
.consent-text { flex: 1 1 18rem; margin: 0; font-size: .9rem; color: var(--muted); }
.consent-text a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; opacity: 1; transform: none; }
}
/* Phones: it covered ~19 % of the first screen (2026-11-15 audit); tighter card, smaller text and buttons. */
@media (max-width: 560px) {
  .consent { left: .5rem; right: .5rem; bottom: .5rem; padding: .6rem .75rem; gap: .5rem; }
  .consent-text { flex-basis: 100%; font-size: .8rem; line-height: 1.35; }
  .consent-actions { margin-left: 0; width: 100%; }
  .consent-actions .btn { flex: 1; padding: .4rem .7rem; font-size: .85rem; min-height: 2.25rem; }
}

/* ===================================================== gift cards (#/gift, app/gift.js)
   The card is an OBJECT, and a LIGHT one whatever the theme: it carries the real wordmark,
   whose navy "Mester" would vanish on a dark ground. Bank-card proportions (ISO/IEC 7810
   ID-1, 85.60 × 53.98 mm), a brand stripe, a curve of road with a broken yellow centre line,
   the names and the code. Same markup at three sizes — the designer's live preview, the
   checkout aside, the printable page — so the type scales with the box (`cqi`), not the
   viewport. Colours are fixed hexes on purpose: a physical card does not follow dark mode. */
.gcard-frame { container-type: inline-size; }   /* the size every cqi below reads from */
.gcard {
  /* `clip`, not `hidden`: a scroll container's automatic minimum height is zero, so with
     `hidden` a long greeting plus the two-line fine print was cut off at the bottom edge.
     `clip` still confines the road to the rounded corners and lets the card grow a little
     past its ratio when the content needs it. */
  position: relative; overflow: clip;
  aspect-ratio: 85.6 / 53.98; border-radius: 3.7cqi; color: #1b2340;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 55%, #eef1f7 100%);
  border: 1px solid rgba(27, 35, 64, .1);
  box-shadow: 0 24px 50px -26px rgba(27, 35, 64, .38), inset 0 1px 0 rgba(255, 255, 255, .9);
  display: grid; grid-template-rows: auto 1fr auto; gap: .8cqi;
  /* The text block starts close to the brand stripe (owner call): stripe + a short gap. */
  padding: 3.8cqi 5cqi 3cqi 4.6cqi; font-family: inherit;
}
.gcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1.7cqi; min-width: 4px; background: var(--grad); }
.gcard-road { position: absolute; right: -8%; bottom: -10%; width: 72%; height: auto; pointer-events: none; }
.gcard-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gcard-logo { height: 6cqi; width: auto; display: block; }
.gcard-kind { font-size: 1.8cqi; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #4b5570; border: 1px solid rgba(27, 35, 64, .24); padding: .7cqi 1.9cqi; border-radius: 999px; white-space: nowrap; }
.gcard-mid { position: relative; z-index: 1; display: grid; align-content: center; gap: .4cqi; min-width: 0; }
.gcard-access { font-size: 2cqi; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: #6b7590; }
.gcard-dur { font-size: 7cqi; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: #1b2340; }
.gcard-names { font-size: 2.6cqi; color: #3a4460; margin-top: .3cqi; overflow-wrap: anywhere; }
.gcard-names b { color: #1b2340; font-weight: 700; }
.gcard-dot { color: #9aa2b8; }
.gcard-msg { margin: .6cqi 0 0; font-style: italic; font-size: 2.5cqi; line-height: 1.36; color: #2a3350;
  max-width: 36ch; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The footer row holds only the redeem line, pinned to the bottom-right CORNER (owner call):
   the negative margins pull it past the card's own padding, tighter than the pill above. */
.gcard-bot { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: flex-end; margin: .4cqi -1.6cqi -1cqi 0; }
.gcard-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 3.1cqi; letter-spacing: .09em; font-weight: 700; color: #1b2340;
  background: #fff; border: 1px solid rgba(27, 35, 64, .16); box-shadow: 0 1px 2px rgba(27, 35, 64, .06); padding: 1cqi 1.9cqi; border-radius: 1.8cqi; white-space: nowrap;
  justify-self: start; margin-top: 1cqi; }
.gcard-code.is-pending { color: #8a92a8; letter-spacing: .12em; }
/* The validity under the code, set like the access label above the headline (owner call). */
.gcard-valid { font-size: 2cqi; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: #6b7590; margin-top: 1cqi; }
/* One line whenever it can be: nothing shares this row since the code moved up. */
.gcard-fine { font-size: 1.8cqi; color: #6b7590; text-align: right; line-height: 1.35; margin-left: auto; }

/* the buy page */
.giftwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.gift-hero { text-align: center; max-width: 46rem; margin: 0 auto; }
.gift-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-on-white); }
.gift-hero h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: -.03em; }
.gift-hero .lead { margin: 0 auto; max-width: 40rem; }
.gift-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; padding: 0; margin: 1.2rem 0 0; }
.gift-steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.gift-step-n { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: var(--r-pill); background: var(--grad-ui); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.gift-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.gift-form { margin: 0; }
.gift-h { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin: 0 0 .9rem; }
.gift-form .gift-h + .gift-h, .gift-form .gift-note + .gift-h, .gift-form .gift-fields + .gift-h { margin-top: 1.6rem; }
.gift-h-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); color: var(--brand-on-white); font-size: .82rem; font-weight: 800; flex: none; }
.gift-h--side { margin-bottom: .7rem; }
.gift-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem; }
.gift-plan { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem .6rem; padding: .95rem 1rem;
  border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.gift-plan:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.gift-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.gift-plan:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.gift-plan:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.gift-plan-t { display: grid; }
.gift-plan-dur { font-weight: 800; font-size: 1.05rem; }
.gift-plan-sub { color: var(--muted); font-size: .8rem; }
.gift-plan-p { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.gift-plan .ck-m-tick { position: absolute; top: .5rem; right: .6rem; margin: 0; }
.gift-plan .ck-m-tick svg { width: .95rem; height: .95rem; }
.gift-plan:has(input:checked) .ck-m-tick { opacity: 1; }
.gift-plan-flag { grid-column: 1 / -1; justify-self: start; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-on-white); }
.gift-note { display: flex; gap: .45rem; align-items: flex-start; margin: .8rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.gift-note svg { width: 1rem; height: 1rem; flex: none; margin-top: .12rem; }
.gift-fields { margin-top: 0; }
.gift-msg { resize: vertical; min-height: 5.2rem; line-height: 1.45; }
.ffield:has(.gift-msg:focus) .flabel, .ffield:has(.gift-msg:not(:placeholder-shown)) .flabel { transform: translateY(-1.17rem) scale(.82); }
.ffield .gift-msg { padding-top: 1.25rem; }
.gift-count { display: block; text-align: right; margin-top: .3rem; }
.gift-modes { margin-bottom: 0; }
.gift-mode-t { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.gift-mode-t svg { width: 1.05rem; height: 1.05rem; color: var(--brand-on-white); }
.gift-mail { margin-top: .9rem; padding: .9rem; border-radius: var(--r-md); background: var(--surface-2); }
.gift-mail[hidden] { display: none; }
.gift-when { display: inline-flex; justify-self: start; width: max-content; max-width: 100%; padding: .2rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); }
.gift-seg { position: relative; }
.gift-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.gift-seg span { display: inline-block; padding: .38rem .85rem; border-radius: var(--r-pill); font-size: .86rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.gift-seg:has(input:checked) span { background: var(--grad-ui); color: #fff; }
/* Inset ring: an outset one ran past the track's padding and made the pill look larger. */
.gift-seg:has(input:focus-visible) span { outline: 2px solid var(--brand); outline-offset: -2px; }
.gift-seg:has(input:checked:focus-visible) span { outline-color: #fff; }
.gift-mail .field[hidden] { display: none; }
.gift-side { position: sticky; top: 5.2rem; display: grid; gap: .8rem; }
.gift-side .btn { margin-top: .3rem; }
.gift-side .ck-fine { margin: 0; text-align: center; }
.gift-preview .gcard { box-shadow: 0 34px 60px -28px rgba(27, 35, 64, .45), inset 0 1px 0 rgba(255, 255, 255, .9); }
.gift-hero-redeem { margin: 1rem 0 0; }
.gift-hero-redeem .btn { gap: .5rem; white-space: normal; }
.gift-hero-redeem svg { color: var(--brand-on-white); }
.gift-how ol { margin: 0; }
.gift-faq details { border-top: 1px solid var(--border); padding: .7rem 0; }
.gift-faq details:last-child { border-bottom: 1px solid var(--border); }
.gift-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gift-faq summary::-webkit-details-marker { display: none; }
.gift-faq summary::after { content: "+"; color: var(--muted); font-weight: 700; font-size: 1.15rem; line-height: 1; flex: none; }
.gift-faq details[open] summary::after { content: "–"; }
.gift-faq p { margin: .5rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.gift-redeemlink { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }
.gift-redeemlink a { font-weight: 700; }

/* the checkout in gift mode, and the return page */
.ck-sum--gift .gift-ck-card { margin: .3rem 0 1rem; }
.gift-ck-delivery { display: flex; gap: .5rem; align-items: flex-start; margin: .9rem 0 0; padding: .7rem .85rem; border-radius: var(--r-md); font-size: .88rem; line-height: 1.45; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.gift-ck-delivery svg { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; }
.gift-done { display: grid; gap: 1.2rem; justify-items: center; }
.gift-done-head { max-width: 40rem; }
.gift-done-card { width: min(100%, 34rem); }

/* redeem */
.gift-rd .authform { text-align: left; }
.gift-codein { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
/* The fixed 'VM-' in front of the box: same face and size as the typed code, sitting on
   the input's own text line (the input's top padding is the floating caption's room). */
/* The wrapper is NOT positioned: a positioned wrapper would paint its input over the
   floating caption. The prefix is placed against .ffield instead, which is. */
.gift-codewrap { display: block; }
.gift-codewrap .gift-codein { padding-left: 3.1rem; }
.gift-codein-prefix { position: absolute; left: .8rem; bottom: .42rem; z-index: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; font-weight: 700; font-size: 1.1rem; line-height: 1.4; color: var(--muted); pointer-events: none; }
.gift-rd .authalt { margin-bottom: .6rem; }
.gift-rd .gift-redeemlink, .gift-rdwrap .gift-redeemlink { margin-top: 1rem; }
.gift-rd-aside .gcard { margin-bottom: .8rem; }
.gift-rd-ok .gift-rd-from { margin: .2rem 0 0; font-weight: 700; }
.gift-rd-ok .gift-rd-msg { margin: .3rem auto 0; font-style: italic; color: var(--muted); max-width: 32ch; white-space: pre-line; }

/* the buyer's card page + account list */
.gift-cardpage { display: grid; gap: 1.2rem; justify-items: center; }
.gift-cp-head { text-align: center; }
.gift-cp-head h1 { margin: 0 0 .3rem; }
.gift-cp-card { width: min(100%, 40rem); }
.gift-cp-note { min-height: 1.3em; margin: 0; color: var(--ok-ink); font-weight: 600; font-size: .9rem; }
.gift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.gift-row { position: relative; display: grid; gap: .2rem; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.gift-row-main { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding-right: 6rem; }
.gift-row-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; }
.gift-row-link { position: absolute; top: .8rem; right: .95rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; text-decoration: none; }
.gift-row-link svg { width: .95rem; height: .95rem; }
.price-foot-gift a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.price-foot-gift svg { width: 1rem; height: 1rem; color: var(--brand-on-white); }

@media (max-width: 860px) {
  .gift-grid { grid-template-columns: minmax(0, 1fr); }
  .gift-side { position: static; }
  .gift-row-main { padding-right: 0; }
  .gift-row-link { position: static; justify-self: start; margin-top: .2rem; }
}

/* Printing the card: the page becomes the card and nothing else. Colours are forced
   because a printer's "save ink" default would turn the dark card into a white one with
   invisible white type. */
@media print {
  .topbar, .footer, .gift-cardpage .noprint, .authnav, .mobile-nav, [data-consent], .consent,
  .edge-canvas, .consentbar, dialog { display: none !important; }
  body::before, body::after { display: none !important; }
  body, .view { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .gift-cardpage { display: block; }
  /* Real size: ISO ID-1, the card in a wallet. The hairline is the cutting edge. */
  .gift-cp-card { width: 85.6mm; margin: 15mm auto 0; }
  .gcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; break-inside: avoid; border-color: #b8bfcf; }
}

/* ============================================ dev illustration review (#/dev/illustrations)
   Behind DEV_TOOLS + DEV_EMAIL like the rest of /dev, and styled out of the existing
   primitives. The one thing it genuinely needs is a SIDE-BY-SIDE at equal width: the whole
   screen exists to judge a generated image against the drawing it would replace, and any
   difference in size between the two panes reads as a difference in the artwork. */
.illus-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1rem; }
.illus-cell { display: block; padding: 0; overflow: hidden; text-decoration: none; }
/* Once a candidate exists the cell shows BOTH, because the whole point of the list is
   scanning a batch — a chip saying "candidate" makes you open 31 pages to see 31 frames.
   A cell that has one is given two columns of the grid so neither picture shrinks. */
.illus-cell.has-cand { grid-column: 1 / -1; }
.illus-pair { display: grid; grid-template-columns: 1fr; }
.has-cand .illus-pair { grid-template-columns: 1fr 1fr; gap: 2px; }
@media (max-width: 720px) { .has-cand .illus-pair { grid-template-columns: 1fr; } }
/* The placeholder holds the 20:9 of the viewBox before its SVG is lazily filled in, so the
   grid does not reflow under the reader as thumbnails arrive on scroll. */
.illus-art { aspect-ratio: 20 / 9; background: var(--surface-2); }
.illus-art .scene { margin: 0; }
.illus-art figcaption { display: none; }
.illus-meta { padding: .7rem .9rem; }
.illus-meta h3 { margin: 0 0 .2rem; font-size: .9rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.illus-meta p { margin: 0; color: var(--muted); font-size: .85rem; }

.illus-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; margin: .8rem 0; }
@media (max-width: 760px) { .illus-compare { grid-template-columns: 1fr; } }
.illus-compare figure { margin: 0; }
.illus-compare > figure > figcaption { margin-bottom: .35rem; }
.illus-compare .scene { margin: 0; }
/* Same 20:9 band the scene draws in, so the two panes are the same picture size. A
   candidate of another ratio is letterboxed rather than cropped — a crop would hide
   exactly the edge of frame a wrong-side or stray-sign error hides in. */
.illus-cand, .illus-empty { width: 100%; aspect-ratio: 20 / 9; border-radius: var(--r-md); }
.illus-cand { object-fit: contain; background: var(--surface-2); }
.illus-empty { display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--muted); font-size: .85rem; background: var(--surface-2); border: 1px dashed var(--border); }
.illus-prompt { width: 100%; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; resize: vertical; }
.illus-opts { margin: .4rem 0; padding-left: 1.2rem; font-size: .9rem; }
.illus-key { font-weight: 700; color: var(--ok); }

/* ---- the paid dashboard (dashboardHome, 2026-09-25) ---- */
/* Streak chip beside the welcome chip: amber, the flame's colour; a count, not a verdict. */
.hero-streak { margin-left: .2rem; color: var(--gold-ink); }
.hero-streak::before, .hero-streak::after { content: none; }
/* A paying learner has seen the pitch: on phones the frame wall (a full screen tall) goes, so
   the next step and their progress are on the first screen. Desktop keeps it beside the copy. */
@media (max-width: 720px) { .hero--app .hero-art { display: none; } .hero--app.hero.hero-split { min-height: 0; } }
@media (max-width: 560px) {
  .dash .statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .dash .stat { padding: .6rem .55rem; }
  .dash .stat-num { font-size: 1.2rem; }
}
/* Glass, like the course/signs/practice sections — only these boxes: the dashboard of an account
   without a pass also carries the price cards, which keep their own textured surface. Each
   selector is (0,1,0) and sits after its base rule, so :hover and the bento washes still win. */
:where(body[data-section="dashboard"] .view) > .card, :where(body[data-section="dashboard"]) .area-card {
  background-color: var(--glass-card); background-image: none;
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
:where(body[data-section="dashboard"]) .area-grid {
  background:
    radial-gradient(30% 60% at 25% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(28% 55% at 75% 42%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
    radial-gradient(22% 40% at 50% 70%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 70%);
  background-size: 100% min(100%, 36rem); background-repeat: repeat-y;
}

/* ---- two products: the Bil | Motorsykkel control (only rendered where klasse A is served).
   The .seg pattern from the signs tabs, with an icon and a two-line label per option. */
.prodseg { margin: 0; }
.prodseg .seg-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1.05rem .45rem .8rem; border: 0; cursor: pointer; font: inherit; color: var(--muted); }
.prodseg .seg-btn.active { color: var(--text); }
.prodseg .seg-btn svg { width: 1.35rem; height: 1.35rem; flex: none; }
.prodseg .seg-btn.active svg { color: var(--brand); }
.prodseg .seg-btn > span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.prodseg .seg-btn b { font-size: .92rem; font-weight: 750; }
.prodseg .seg-btn small { font-size: .74rem; font-weight: 600; }
.prodseg-row { display: flex; justify-content: center; margin: 0 0 1.4rem; }
.gift-form .prodseg { margin: .2rem 0 1.4rem; }
@media (max-width: 480px) {
  .prodseg-row .prodseg, .gift-form .prodseg { display: flex; width: 100%; }
  .prodseg .seg-btn { flex: 1; justify-content: center; padding: .45rem .5rem; }
}
/* The product each card / checkout / pass row is for: the same icon + two-line label, flat. */
.price-prod, .ck-prod, .acct-pass-prod { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .5rem; color: var(--text); }
.price-prod svg, .ck-prod svg, .acct-pass-prod svg { width: 1.3rem; height: 1.3rem; color: var(--brand); flex: none; }
.price-prod > span, .ck-prod > span, .acct-pass-prod > span { display: flex; flex-direction: column; line-height: 1.15; }
.price-prod b, .ck-prod b, .acct-pass-prod b { font-size: .95rem; }
.price-prod small, .ck-prod small, .acct-pass-prod small { font-size: .76rem; color: var(--muted); font-weight: 600; }
.ck-prod { margin: .8rem 0 .3rem; padding: .55rem .8rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); width: 100%; }
.ck-prodnote { margin: 0 0 .7rem; font-size: .82rem; color: var(--muted); line-height: 1.4; }
/* The product being bought, on its own line under the title: a brand-tinted chip, not muted
   trailing text, so a buyer cannot miss which licence class the pass is for. */
.ck-title-prod { display: flex; align-items: center; gap: .5rem; width: fit-content; margin-top: .55rem; padding: .35rem .85rem .35rem .65rem;
  border-radius: 999px; font-size: clamp(1rem, 2.6vw, 1.2rem); font-weight: 750; letter-spacing: -.01em;
  color: var(--text); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.ck-title-prod svg { width: 1.3em; height: 1.3em; flex: none; color: var(--brand); }
.ck-prodseg { margin: .8rem 0 .4rem; }
.ck-prodseg .prodseg { display: flex; width: 100%; }
.ck-prodseg .prodseg .seg-btn { flex: 1; justify-content: center; padding: .5rem .5rem; }
.acct-pass { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.acct-pass:first-of-type { border-top: 0; }
.acct-pass-prod { margin: 0; min-width: 12rem; }
.acct-pass-state { margin: 0; flex: 1; min-width: 10rem; }

/* Keyboard focus on the glass cards: their `outline: 1px solid var(--glass-edge)` hairline has the
   same specificity as the global :focus-visible ring and comes later, so it hid the ring. */
:is(.card, .course-ch-card, .course-lesson-link):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* #/practice without boxes (owner 2026-10-01): the free-tier note and the filter row sit on the page,
   and each topic is its logo at 3x (144px) centred above its title and count. */
.prac-page .upsell { background: none; border: 0; border-radius: 0; padding: .2rem 0; }
.prac-page .prac-filter { background: none; border: 0; box-shadow: none; outline: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.prac-page .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1rem; }
.prac-page .tile { flex-direction: column; justify-content: flex-start; text-align: center; gap: .7rem;
  background: none; border: 0; box-shadow: none; outline: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: .4rem .3rem; }
.prac-page .tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--r-lg); }
/* The logo files are ~199x213 with the ring at their edges: kept at their own aspect, so the 50 %
   radius is an ellipse of exactly the ring's shape (a square crop cut its top and bottom), and a
   drop-shadow that follows it instead of a circular box-shadow. */
.prac-page .tile .tile-ico { width: auto; height: 144px; aspect-ratio: auto; object-fit: fill; border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(16, 24, 40, .22)); transition: scale .25s cubic-bezier(.2, .8, .3, 1); }
.prac-page .tile:hover .tile-ico, .prac-page .tile:focus-visible .tile-ico { scale: 1.05; }
.prac-page .tile-body { flex: none; }
@media (max-width: 560px) {
  .prac-page .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prac-page .tile .tile-ico { height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .prac-page .tile .tile-ico { transition: none; } }

/* #/signs, same treatment as #/practice (owner 2026-10-01): no box on the note or the sign cards; each
   sign at 3x (216px) centred on top, code + name + meaning centred below. */
.signs-page .upsell { background: none; border: 0; border-radius: 0; padding: .2rem 0; }
.signs-page .signgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.2rem; }
.signs-page .card.sign { flex-direction: column; align-items: center; text-align: center; gap: .8rem;
  background: none; border: 0; box-shadow: none; outline: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: .4rem .3rem; }
.signs-page .card.sign:hover { transform: none; box-shadow: none; }
.signs-page .sign .signimg { width: 216px; height: 216px; filter: drop-shadow(0 8px 14px rgba(16, 24, 40, .18));
  transition: scale .25s cubic-bezier(.2, .8, .3, 1); }
.signs-page .sign:hover .signimg, .signs-page .sign:focus-visible .signimg { scale: 1.05; }
.signs-page .sign:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--r-lg); }
.signs-page .sign > div { flex: none; width: 100%; }
@media (max-width: 560px) {
  .signs-page .signgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .8rem; }
  .signs-page .sign .signimg { width: 132px; height: 132px; }
}
@media (prefers-reduced-motion: reduce) { .signs-page .sign .signimg { transition: none; } }
/* #/pay: the intro is the page head, not a card (owner 2026-10-01, matching the landing page). */
.paywrap > .card.authcard { background: none; border: 0; outline: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
/* #/gift: "how it works" and the FAQ sit on the page (owner 2026-10-01); the FAQ keeps its hairlines. */
.card.gift-how, .card.gift-faq { background: none; border: 0; outline: 0; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 0; }

/* #/account cookie settings: a small on/off switch (role="switch"). */
.acct-cookies-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-cookies-head { margin-bottom: .5rem; }
.acct-cookies-head h2 { margin: 0; }
.acct-switch { display: inline-flex; flex: none; padding: 4px; margin: -4px; border: 0; background: none; cursor: pointer; }
.acct-switch-track { position: relative; width: 40px; height: 24px; flex: none; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: background .2s; }
.acct-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.acct-switch[aria-checked="true"] .acct-switch-track { background: var(--ok); }
.acct-switch[aria-checked="true"] .acct-switch-track::after { transform: translateX(16px); }
.acct-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .acct-switch-track, .acct-switch-track::after { transition: none; } }

/* ---------- 2026-11-06 mobile/a11y fixes (kept last so they win the cascade) ---------- */
/* iOS zooms the page on focus of any control under 16px; .ffield inputs inherited 13.6px from
   label.field. The floating caption grows with them, and rises at .7 instead of .82 so it lands
   at the same ~11px as before. */
@media (max-width: 560px), (pointer: coarse) {
  .input, .select, textarea, .searchbar input, .schoolhead .searchbar input, .faq-search-in { font-size: 16px; }
  .ffield .flabel { font-size: 16px; }
  .ffield:has(.input:focus) .flabel,
  .ffield:has(.input:not(:placeholder-shown)) .flabel,
  .ffield.pinned .flabel { transform: translateY(-1.17rem) scale(.7); }
}
/* Native scrollbars, <select> popups and date pickers follow the theme. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* The logo's navy "Mester" vanishes on the dark bar: a faint light halo lifts it at every width. */
:root[data-theme="dark"] .topbar .brand img, :root[data-theme="dark"] .footbrand img {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.75)) drop-shadow(0 0 5px rgba(255,255,255,.2));
}
/* --brand-on-white (#c8102e) is 3.2:1 on the dark page; dark's own --brand is 6.3:1. */
:root[data-theme="dark"] .studpage-eyebrow, :root[data-theme="dark"] .gift-eyebrow { color: var(--brand); }
/* The cookie banner (z 80) painted over the open hamburger panel (inside the z 20 topbar). */
body:has(.mainnav.open) .consent { visibility: hidden; }
/* Sign-drill price popup: the only close button was ~1,800px down a 700px box; keep it pinned. */
.signpay .pwdlg-row {
  position: sticky; bottom: 0; z-index: 2;
  margin: 1.1rem -1.5rem -1.5rem; padding: .75rem 1.5rem calc(.75rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
/* Exam-runner chrome under the 44px touch floor (flag 24px tall, segments 35px): an invisible
   hit area grows the target without growing the pill. */
@media (pointer: coarse) {
  .qflag, .seg-btn { position: relative; }
  .qflag::before, .seg-btn::before { content: ""; position: absolute; inset: -10px -4px; }
  .seg-btn::before { inset: -5px 0; }
}

