/* Landing page (/start). Uses tokens.css and the org accent from /brand.css. Calm public-sector
   look: generous whitespace, high contrast, visible focus, one accent colour. */
:root {
  --navy: #0f2a35;
  --navy-2: #163a48;
  --on-navy: #eef5f4;
  --on-navy-2: #b9cdd0;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0b1416;
    --navy-2: #13242a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.landing {
  overflow-x: clip; /* the tab slide must not widen the page */
  margin: 0;
  font: var(--fs-md) / var(--lh) var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: var(--fs-lg); }
p { margin: 0; }
abbr { text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.fineprint { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s5); max-width: 72ch; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 650 var(--fs-md) / 1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.button-lg { min-height: 52px; padding: 12px 24px; font-size: var(--fs-lg); }
.button-sm { min-height: 40px; padding: 8px 16px; }
.button-on-dark { background: var(--on-navy); border-color: var(--on-navy); color: var(--navy); }
.button-outline-dark { background: transparent; border-color: color-mix(in srgb, var(--on-navy) 55%, transparent); color: var(--on-navy); }
@media (hover: hover) {
  .button:hover { border-color: var(--ink-2); }
  .button-primary:hover { background: color-mix(in srgb, var(--brand) 86%, black); border-color: color-mix(in srgb, var(--brand) 86%, black); }
  .button-outline-dark:hover { border-color: var(--on-navy); }
}

/* ---------- utility bar (/om-oss, /kontakt) + masthead ---------- */
.utility { background: var(--navy); color: var(--on-navy-2); font-size: var(--fs-sm); }
.utility-row { display: flex; justify-content: space-between; gap: var(--s4); padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.utility a { color: var(--on-navy); }
@media (max-width: 600px) { .utility-long { display: none; } }
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark, .brand-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: contain; }
.bm-bg { fill: var(--brand); }
.bm-a { fill: #fff; }
.bm-b { fill: color-mix(in srgb, var(--brand) 45%, white); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-tag { font-size: var(--fs-sm); color: var(--muted); }
.masthead-row > .button { margin-left: auto; }
.topnav { display: flex; gap: var(--s5); }
.topnav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
@media (hover: hover) { .topnav a:hover { color: var(--ink); border-bottom-color: var(--brand); } }
@media (max-width: 900px) { .topnav { display: none; } }

/* ---------- tabs: one page per tab (/start/<tab>) ----------
   js/landing-route.js sets html[data-tab] before the first paint; without JavaScript there is no
   data-tab and every tab shows, one after the other. */
html[data-tab] .page { display: none; }
html[data-tab="oversikt"] [data-page="oversikt"],
html[data-tab="sa-funkar-det"] [data-page="sa-funkar-det"],
html[data-tab="nivaer"] [data-page="nivaer"],
html[data-tab="provplatser"] [data-page="provplatser"],
html[data-tab="priser"] [data-page="priser"],
html[data-tab="for-skolor"] [data-page="for-skolor"],
html[data-tab="vanliga-fragor"] [data-page="vanliga-fragor"] { display: flex; }
/* A short tab (Priser, För skolor, Vanliga frågor) still fills the screen: its last section grows
   down to the footer instead of leaving a gap under it. */
body.landing { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.landing > main { flex: 1 0 auto; }
.pages { display: flex; flex-direction: column; }
.page { flex: 1 0 auto; display: flex; flex-direction: column; }
.page > section:last-child { flex: 1 0 auto; }

/* Segment pills on wide screens. */
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; border-radius: var(--r-pill); padding: 8px 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font: 600 var(--fs-sm) / 1.2 var(--font); transition: background 0.2s, box-shadow 0.2s, color 0.15s;
}
.tabs a:focus-visible { outline-offset: -3px; }
@media (hover: hover) { .tabs a:hover { color: var(--ink); } }
html[data-tab="oversikt"] .tabs [data-tab-link="oversikt"],
html[data-tab="sa-funkar-det"] .tabs [data-tab-link="sa-funkar-det"],
html[data-tab="nivaer"] .tabs [data-tab-link="nivaer"],
html[data-tab="provplatser"] .tabs [data-tab-link="provplatser"],
html[data-tab="priser"] .tabs [data-tab-link="priser"],
html[data-tab="for-skolor"] .tabs [data-tab-link="for-skolor"],
html[data-tab="vanliga-fragor"] .tabs [data-tab-link="vanliga-fragor"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
/* Too narrow for brand, pills and button on one row: the pills get a row of their own. */
@media (max-width: 1140px) {
  .masthead-row { flex-wrap: wrap; row-gap: 0; }
  .tabs { order: 3; margin: 0 0 10px; }
}

/* Switching tabs: the old page slides out, the new one in from the side it lies on (--dir). */
.pages { transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pages.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); transition: opacity 0.15s ease, transform 0.15s ease; }
.pages.is-entering { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); transition: none; }
@media (prefers-reduced-motion: reduce) { .pages, .pages.is-leaving { transition: none; } }
h1[tabindex="-1"]:focus { outline: none; }

/* Each tab but Översikt opens with a navy head. */
.tab-head { background: var(--navy); color: var(--on-navy); }
.tab-head .wrap { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
.tab-head .eyebrow { color: var(--on-navy-2); }
.tab-head .eyebrow-dot { background: color-mix(in srgb, var(--brand) 70%, white); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 40%, transparent); }
.tab-head h1 { font-size: clamp(34px, 4.8vw, 54px); max-width: 20ch; text-wrap: balance; }
.tab-head h1 .accent { color: color-mix(in srgb, var(--brand) 45%, white); }
.tab-head .lead { color: var(--on-navy-2); max-width: 60ch; text-wrap: pretty; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: var(--s4); }
.eyebrow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 850; letter-spacing: -0.03em; }
h1 .accent { color: var(--brand); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: var(--s5); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.trust { list-style: none; padding: 0; margin: var(--s6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); font-weight: 600; color: var(--ink-2); font-size: var(--fs-sm); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: var(--ok); flex: none; }

/* The sample question, styled as a tipskupong. */
.coupon {
  margin: 0; background: var(--coupon); border: 1px solid var(--coupon-line); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -24px rgb(15 42 53 / 0.35), var(--shadow-1); padding: var(--s5); position: relative;
  transform: rotate(-1.2deg);
}
@media (prefers-color-scheme: dark) { .coupon { box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6); } }
@media (max-width: 900px) { .coupon { transform: none; } }
.coupon::before {
  content: ""; position: absolute; inset: 10px; border: 1px dashed color-mix(in srgb, var(--coupon-line) 80%, transparent); border-radius: 12px; pointer-events: none;
}
.coupon-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.coupon-label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-xs); color: var(--coupon-ink); }
.coupon-cat { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-pill); padding: 3px 10px; }
.coupon-q { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); }
.coupon-opts { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 10px; }
.coupon-opts button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  min-height: 52px; padding: 8px 12px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface);
  font: 600 var(--fs-md) / 1.35 var(--font); color: var(--ink);
}
@media (hover: hover) { .coupon-opts button:hover:not([disabled]) { border-color: var(--brand); } }
.coupon-opts .sign {
  flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 850; border: 2px solid var(--coupon-line); color: var(--coupon-ink); background: var(--coupon);
}
.coupon-opts button.is-right { border-color: var(--ok); background: var(--ok-soft); }
.coupon-opts button.is-right .sign { background: var(--ok); border-color: var(--ok); color: #fff; }
.coupon-opts button.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.coupon-opts button[disabled] { cursor: default; }
.coupon-why { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-2); }
.coupon-why a { display: inline-block; margin-top: 6px; font-weight: 650; }
.coupon-hint { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- stats ---------- */
.stats { background: var(--navy); color: var(--on-navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); padding-top: var(--s6); padding-bottom: var(--s6); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid color-mix(in srgb, var(--brand) 70%, white); padding-left: var(--s4); }
.stat-n { font-size: clamp(28px, 3.4vw, 40px); font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--on-navy-2); font-size: var(--fs-sm); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-sites { padding-top: clamp(32px, 4vw, 56px); }
.section-faq { padding-top: clamp(40px, 6vw, 80px); }
.section-lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 64ch; }
.kicker { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.step h2, .level h2 { font-size: var(--fs-lg); }

/* Översikt: where to read on. */
.next-cards { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.next-cards a { height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--surface); display: flex; flex-direction: column; gap: var(--s2); color: var(--ink-2); text-decoration: none; transition: border-color 0.15s; }
.next-cards strong { font-size: var(--fs-lg); letter-spacing: -0.015em; color: var(--ink); }
.next-cards .more { color: var(--brand); font-weight: 650; margin-top: auto; padding-top: 4px; }
@media (hover: hover) { .next-cards a:hover { border-color: var(--brand); } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--surface); display: flex; flex-direction: column; gap: var(--s2); }
.step-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s2); }
.step p { color: var(--ink-2); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr; } }
.level { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.level-focus { border-top-color: var(--brand); box-shadow: var(--shadow-2); }
.level-tag { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.level-focus .level-tag { color: var(--brand); }
.level p:not(.level-tag) { color: var(--ink-2); }

/* ---------- test sites ---------- */
.filters { grid-area: filters; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.filters button {
  min-height: 40px; padding: 6px 16px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 650 var(--fs-sm) / 1 var(--font); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
/* Filters over the map, the count and "Visa närmast mig" over the list; the list is as tall as the
   map card and scrolls (height 0 + min-height 100%: the map card alone sets the row's height). */
.sites { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "filters head" "map list"; gap: var(--s4) var(--s5); align-items: center; }
.map-card { grid-area: map; align-self: start; }
.site-list-wrap { grid-area: list; align-self: stretch; height: 0; min-height: 100%; display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .sites { grid-template-columns: 1fr; grid-template-areas: "filters" "map" "head" "list"; }
  .site-list-wrap { height: auto; min-height: 0; }
}
/* isolate: the site card's z-index (above the map's controls) stays inside the card, under the
   sticky masthead and the phone dock. */
.map-card { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--sea); }
.map { height: min(72vh, 680px); min-height: 440px; position: relative; }
@media (max-width: 900px) { .map { height: 62vh; min-height: 360px; } }
.map-loading { padding: var(--s5); color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--brand); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--brand); }
.legend i.c1 { background: var(--amber); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--amber); }
.legend i.cboth { background: conic-gradient(var(--brand) 0 50%, var(--amber) 0); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink-2); }
.legend i.me { background: var(--me); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--me); }
/* The site card sits on the map, never on the legend: that wraps to more rows on narrow screens
   (and once "Du" is in it). landing.mjs's bottomInset keeps the selected marker above the card. */
.map-frame { position: relative; }
.map-detail {
  position: absolute; left: 12px; right: 12px; bottom: 12px; max-height: calc(100% - 24px); overflow: auto; z-index: 1000; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: 6px;
}
.map-detail h3 { padding-right: 32px; }
.map-detail .close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.site-meta { color: var(--ink-2); font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); }
.chip.c1 { background: var(--amber-soft); color: var(--amber); }
.chip.plain { background: var(--surface-2); color: var(--ink-2); }
.chip.digital { background: var(--info-soft); color: var(--info); }
.site-meta .chip { vertical-align: 1px; margin-right: 4px; }
.site-list-head { grid-area: head; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.site-count { font-weight: 700; margin: 0; }
.near-button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 600 var(--fs-xs) / 1 var(--font); cursor: pointer;
}
/* Small to look at, still a full-size target for a finger. */
@media (pointer: coarse) { .near-button::before { content: ""; position: absolute; inset: -7px -2px; } }
.near-button svg { width: 14px; height: 14px; fill: var(--brand); flex: none; }
.near-button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.near-button:disabled { opacity: 0.7; cursor: progress; }
@media (hover: hover) { .near-button:not(:disabled):hover { border-color: var(--brand); color: var(--brand); } }
.near-status { margin: 0 0 var(--s3); padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); }
.link-button { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.site-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.km { flex: none; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.km.nearest { color: var(--brand); }
.site-list { flex: 1 1 0; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: var(--s2); overflow: auto; }
@media (max-width: 900px) { .site-list { flex: none; overflow: visible; } }
.site-list button {
  width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: var(--s3) var(--s4); font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px;
}
.site-list button[aria-current="true"] { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
@media (hover: hover) { .site-list button:hover { border-color: var(--line-strong); } }
.site-list strong { font-size: var(--fs-md); }
.empty-sites { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: var(--s5); color: var(--ink-2); }

/* ---------- prices: people without a school (filled by js/pricing.mjs) ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.price-points { flex-direction: column; align-items: flex-start; margin-top: 0; }
.price-card h2 { font-size: var(--fs-lg); }
.price-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--r-md); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.price-hint { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.price-amount { font-size: clamp(34px, 4vw, 46px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-note { font-size: var(--fs-sm); color: var(--muted); }
/* One column on phones: the prices come before the points and the buttons. */
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; gap: 0; }
  .price-grid > div { display: contents; }
  .price-cards { order: 1; margin-bottom: var(--s6); }
  .price-points { order: 2; }
  .price-grid .hero-actions { order: 3; }
}
.seat-prices { margin-top: var(--s4); color: var(--on-navy); font-weight: 600; max-width: 56ch; }

/* ---------- for organisations ---------- */
.section-dark { background: var(--navy); color: var(--on-navy); border-top: 1px solid color-mix(in srgb, var(--on-navy) 12%, transparent); }
.section-dark .section-lead { color: var(--on-navy-2); }
.section-dark a:not(.button) { color: var(--on-navy); }
.org-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s6); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.features li { border-top: 2px solid color-mix(in srgb, var(--on-navy) 22%, transparent); padding-top: var(--s4); }
.features h2 { font-size: var(--fs-md); margin-bottom: 6px; }
.features p { color: var(--on-navy-2); font-size: var(--fs-sm); }

/* ---------- FAQ + footer ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 40px var(--s4) 0; font-weight: 700; font-size: var(--fs-lg); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s5); color: var(--ink-2); max-width: 68ch; }
.footer { border-top: 1px solid var(--line); background: var(--bg); padding: var(--s6) 0 calc(var(--s6) + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; font-size: var(--fs-lg); }
.footer .fineprint { margin-top: var(--s2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }

/* ---------- subpages (/om-oss, /kontakt) ---------- */
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.footer-links a[aria-current="page"] { font-weight: 700; }
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 48px); }
.prose { max-width: 68ch; padding-bottom: clamp(48px, 7vw, 96px); }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: var(--s6) 0 var(--s3); }
.prose p, .prose ul { margin: 0 0 var(--s4); color: var(--ink-2); font-size: var(--fs-lg); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s3); }
.prose strong { color: var(--ink); }
.page-head .fineprint { margin-top: var(--s3); }
/* /villkor, /integritet: numbered sections, a table of contents, one table */
.legal h2 { scroll-margin-top: var(--s5); }
.legal .toc { margin: 0 0 var(--s6); padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.legal .toc ol { margin: 0; padding-left: 1.4em; columns: 2 240px; column-gap: var(--s6); font-size: var(--fs-md); }
.legal .toc li { margin-bottom: var(--s2); break-inside: avoid; }
.legal .toc a { color: var(--ink-2); }
.legal ul ul { margin: var(--s3) 0 0; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 var(--s4); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); color: var(--ink-2); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s3); border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); }
.contact-card {
  border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r-lg);
  background: var(--surface); padding: var(--s5) var(--s6); max-width: 640px; box-shadow: var(--shadow-2);
}
.contact-label { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-phone { display: inline-block; font-size: 20px; font-weight: 700; margin: var(--s1) 0 var(--s2); }
.contact-email { display: inline-block; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; margin: var(--s2) 0; overflow-wrap: anywhere; }
.contact-card .fineprint { margin-top: var(--s3); }
.topics-title { margin-top: clamp(40px, 6vw, 64px); }
.topics { list-style: none; padding: 0; margin: var(--s5) 0 clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
.topic { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--surface); display: flex; flex-direction: column; gap: var(--s2); }
.topic p { color: var(--ink-2); }
main > .wrap > .hero-actions { margin: 0 0 clamp(48px, 7vw, 96px); }

/* ---------- phones: compact masthead, tabs docked at the bottom, "Mer" as a sheet ---------- */
.dock, .sheet { display: none; }
@media (max-width: 760px) {
  .masthead-row { min-height: 56px; gap: var(--s3); }
  .brand { gap: 10px; }
  .brand-mark, .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
  .brand-tag { display: none; }
  .masthead-row > .button { min-height: 44px; }
  html[data-tab] .tabs { display: none; }
  html[data-tab] body.landing { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html[data-tab] .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--surface); border-top: 1px solid var(--line); padding: 0 4px calc(10px + env(safe-area-inset-bottom));
  }
  .sheet[open] { display: block; }
}
.dock a, .dock button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; padding: 8px 2px 4px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 650 var(--fs-xs) / 1.15 var(--font); color: var(--ink-2); -webkit-tap-highlight-color: transparent;
}
.dock a::before, .dock button::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: transparent; }
.dock-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 850 13px / 1 var(--font); background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.dock .is-current { color: var(--brand); }
.dock .is-current::before { background: var(--brand); }
.dock .is-current .dock-mark { background: var(--brand-soft); color: var(--brand); }

.sheet {
  position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; margin: 0; overflow: auto;
  border: 0; border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink);
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px rgb(0 0 0 / 0.15);
}
.sheet::backdrop { background: rgb(15 42 53 / 0.45); }
.sheet[open] { animation: sheet-up 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet .kicker { margin-bottom: var(--s2); }
.sheet-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sheet-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; padding: 10px 14px;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); color: var(--brand); font-weight: 700; text-decoration: none;
}
.sheet-links a > span:first-child { display: flex; flex-direction: column; line-height: 1.3; }
.sheet-links strong { font-size: var(--fs-md); color: var(--ink); }
.sheet-links strong + span { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.sheet-links a.is-current { border-color: var(--brand); background: var(--brand-soft); }
.sheet-links a.is-current strong { color: var(--brand); }
