/* triquest.ai — the public site (docs/SITE.md). One stylesheet, no framework, system fonts. */

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 1; /* the finished picture unless /assets/main.8e7f3db427ee.js takes over (no JS, reduced motion) */
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0b0f16;
  --surface: #11161f;
  --surface-2: #161c27;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --text: #f3f5f8;
  --muted: #a6afbd;
  --faint: #8a94a3;
  /* The TriQuest mark's colours (app/icon.svg, 0.9.1): the brand accent is its coral red, the gradient its three bars. */
  --brand: #ff5a4a;
  --brand-strong: #e8202f;
  --mark-green: #22e06b;
  --mark-yellow: #ffd93a;
  --mark-orange: #ff8a1a;
  --mark-red: #ff2d3b;
  --brand-gradient: linear-gradient(100deg, var(--mark-green) 0%, var(--mark-yellow) 34%, var(--mark-orange) 64%, var(--mark-red) 100%);
  --route: #2f7cf6;
  /* The sport colours (the app's dark-mode sport tokens): swim, bike and run where a sport is meant. */
  --swim: #3fb3df;
  --bike: #f2a548;
  --run: #56bd78;
  --strength: #b38af0;
  --xc-ski: oklch(0.72 0.14 268);
  --hyrox: oklch(0.84 0.16 95);
  --cycle: #f2559a;
  --radius: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
s { text-decoration-thickness: 1.5px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--header-h); }

/* ─── Type ─────────────────────────────────────────────────────────────────── */

h1, .h-xxl, .h-xl {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.h-xxl { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.h-xl { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-brand { color: var(--brand); }
.eyebrow-bike { color: var(--bike); }
.eyebrow-run { color: var(--run); }
.eyebrow-cycle { color: var(--cycle); }

.lead {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.narrow { max-width: 44rem; }
.fine { font-size: 0.9375rem; color: var(--faint); }
/* A race guide's countdown (docs/SITE.md §guides): the plan's phases in words; /assets/main.8e7f3db427ee.js writes the weeks left. */
.countdown {
  margin-top: 8px; padding: 16px 20px; border-left: 3px solid var(--mark-orange); border-radius: 0 14px 14px 0;
  background: var(--surface); color: var(--muted); font-size: 1.0625rem; line-height: 1.5;
}
.guide .wrap > .countdown.live { color: var(--text); }
.countdown strong { color: var(--text); font-weight: 650; }
.guide .wrap > h3 { margin-top: clamp(32px, 4vw, 44px); font-size: 1.3rem; letter-spacing: -0.015em; }
.guide .wrap > p.narrow { margin-top: 14px; color: var(--muted); line-height: 1.6; }
.guide .wrap > .feature-list.narrow { margin-top: 18px; }
.guide .wrap > .sports + p.narrow, .guide .wrap > .feature-list + p.narrow { margin-top: 28px; }
.guide a:not(.btn) { color: var(--text); text-decoration-color: var(--mark-orange); text-underline-offset: 3px; }

.accent-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-primary { background: linear-gradient(120deg, var(--mark-orange), var(--mark-red)); color: #0b0d12; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgb(255 255 255 / 0.04); }
.btn-ghost:hover { border-color: rgb(255 255 255 / 0.32); background: rgb(255 255 255 / 0.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-center { justify-content: center; }

/* ─── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgb(7 9 13 / 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 100%; }

.logo { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo-img { height: 36px; width: auto; flex: none; }

.primary-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap;
  border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.primary-nav ul a:hover { color: var(--text); }

/* Grouped items (Funktioner, Sporter): a <details> per group, so it opens without JS too; /assets/main.8e7f3db427ee.js closes the others. */
.nav-group summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; white-space: nowrap;
  border-radius: 999px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; cursor: pointer; list-style: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s;
}
.nav-group details[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.nav-group summary:hover, .nav-group details[open] > summary { color: var(--text); }
.nav-group details { position: relative; }
.primary-nav .nav-sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  flex-direction: column; gap: 0; min-width: 220px; padding: 6px;
  background: rgb(12 14 19 / 0.98); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}
.primary-nav .nav-sub a { width: 100%; border-radius: 10px; color: var(--text); }
.primary-nav .nav-sub a:hover { background: rgb(255 255 255 / 0.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }

/* The menu collapses before its links would wrap (the English labels are the longer ones, docs/SITE.md §language). */
@media (max-width: 1260px) {
  .menu-button {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: transparent; color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

  /* Without JS the actions stay in the header; with JS they move into the menu panel. */
  .primary-nav { gap: 8px; }
  .js .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: rgb(7 9 13 / 0.97); border-bottom: 1px solid var(--line);
  }
  .js .menu-open .primary-nav { display: flex; }
  .js .primary-nav ul { display: flex; flex-direction: column; gap: 0; }
  .js .primary-nav ul a { width: 100%; min-height: 52px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .js .nav-group summary { display: flex; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .js .primary-nav .nav-sub { position: static; min-width: 0; padding: 0 0 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .js .primary-nav .nav-sub a { border-radius: 0; color: var(--muted); }
  .js .nav-actions { flex-direction: column; align-items: stretch; }
  .js .nav-actions .lang-toggle { align-self: flex-start; }
  .js .nav-actions .btn { width: 100%; min-height: 50px; }
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .primary-nav ul { display: none; }
  html:not(.js) .nav-actions .btn-ghost { display: none; }
}

/* ─── Devices (CSS frames around real screenshots) ─────────────────────────── */

.phone {
  position: relative;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2b2f37, #121418 60%, #23262d);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 40px 80px -30px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(0 0 0 / 0.6);
}
/* The bezel is the image's margin: a percentage of the frame's own width, wherever the frame is placed. */
.phone img { width: 93.2%; margin: 3.4%; border-radius: 12% / 5.6%; background: #000; }

.watch {
  position: relative;
  border-radius: 30%;
  background: linear-gradient(150deg, #34373e, #111317 55%, #2a2d33);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 30px 60px -24px rgb(0 0 0 / 0.9);
}
.watch img { width: 86%; margin: 7%; border-radius: 24%; background: #000; }
/* A Garmin is a drawing of the whole watch (img/garmin-*.svg: case, bezel and strap), so it needs no frame. */
.garmin img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgb(0 0 0 / 0.65)); }

.laptop { position: relative; }
.laptop-screen {
  padding: 1.6% 1.6% 2%;
  border-radius: 18px 18px 4px 4px;
  background: #15181e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 50px 90px -40px rgb(0 0 0 / 0.95);
}
.laptop-screen img { width: 100%; border-radius: 6px; }
.laptop-base {
  height: 14px; width: 112%; margin-left: -6%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#3a3e46, #1b1e24 70%);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.9);
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */

.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* 1 · Hero */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 110px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg, .final-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(7 9 13 / 0.92) 0%, rgb(7 9 13 / 0.7) 40%, rgb(7 9 13 / 0.25) 75%),
    linear-gradient(180deg, rgb(7 9 13 / 0.55) 0%, rgb(7 9 13 / 0) 30%, rgb(7 9 13 / 0) 60%, var(--bg) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-copy .lead { max-width: 36rem; color: #c3cad5; }
.platform-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.platform-line span {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgb(7 9 13 / 0.4); color: var(--muted); font-size: 0.875rem; font-weight: 500;
}
.hero-devices { position: relative; justify-self: center; width: min(100%, 340px); }
.hero-phone { width: 82%; margin-left: auto; }
.hero-watch { position: absolute; left: -6%; bottom: 8%; width: 46%; }
.garmin.hero-watch { left: -20%; bottom: 0; width: 64%; }

/* 2 · How */
.how { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.loop {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  margin-top: clamp(48px, 7vw, 88px);
  counter-reset: step;
}
.loop::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px;
  background: var(--brand-gradient);
  transform-origin: left; transform: scaleX(var(--p));
  opacity: 0.6;
}
.loop-step { position: relative; padding-top: 40px; counter-increment: step; }
.loop-step h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.loop-step h3::before { content: "0" counter(step); display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--faint); letter-spacing: 0.08em; }
.loop-step p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.loop-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--brand)); box-shadow: 0 0 0 5px var(--bg-2), 0 0 24px var(--c, var(--brand)); }
/* The five steps along the mark's colours, green to red, as the line under them. */
.loop-step:nth-child(1) { --c: var(--mark-green); }
.loop-step:nth-child(2) { --c: var(--mark-yellow); }
.loop-step:nth-child(3) { --c: var(--mark-orange); }
.loop-step:nth-child(4) { --c: var(--brand); }
.loop-step:nth-child(5) { --c: var(--mark-red); }
.loop-coach h3 { color: #ffb3a8; }

/* 3 · Coach */
.coach { background: var(--bg-2); overflow: hidden; isolation: isolate; }
.coach-glow {
  position: absolute; z-index: -1; inset: -10% -20% auto; height: 80%;
  background: radial-gradient(50% 50% at 50% 40%, rgb(255 90 74 / 0.22), transparent 70%);
  pointer-events: none;
}
.coach-head { text-align: center; }
.coach-head .lead { margin-inline: auto; }
.coach-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(32px, 6vw, 96px);
  align-items: center; max-width: 1000px; margin: clamp(48px, 7vw, 96px) auto 0;
}
.chat {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgb(22 28 39 / 0.9), rgb(13 17 24 / 0.9));
  box-shadow: 0 40px 100px -50px rgb(255 90 74 / 0.4);
}
.chat-caption { margin-bottom: 18px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.chat-list { position: relative; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 1rem; line-height: 1.45; }
.msg-athlete { align-self: flex-end; background: var(--brand-strong); color: #fff; border-bottom-right-radius: 6px; }
.msg-coach { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-typing { display: none; position: absolute; left: 0; align-self: flex-start; gap: 5px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat.typing .msg-typing { display: inline-flex; }
.msg-done { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 0.9375rem; color: var(--run); background: rgb(86 189 120 / 0.1); border: 1px solid rgb(86 189 120 / 0.3); }
.check { width: 16px; height: 16px; border-radius: 50%; background: var(--run); position: relative; flex: none; }
.check::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.proposal {
  align-self: flex-start; width: min(100%, 26rem);
  padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid rgb(255 90 74 / 0.4);
}
.proposal-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 650; color: #ffb3a8; }
.spark { width: 12px; height: 12px; background: var(--brand); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.proposal-change { margin-top: 10px; font-size: 1rem; }
.proposal-change s { color: var(--faint); }
.proposal-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 12px; }
.proposal-bars i { display: block; border-radius: 2px; }
.b-easy { height: 40%; background: #3aa6a0; }
.b-hard { height: 100%; background: var(--run); }
.w1 { flex: 1; } .w2 { flex: 2; } .w3 { flex: 3; }
.proposal-why { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.proposal-actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn { padding: 7px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.fake-primary { background: #e5533d; border-color: #e5533d; color: #fff; }

.coach-phone { text-align: center; }
.coach-phone .phone { width: min(100%, 300px); margin-inline: auto; }
.coach-phone figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--faint); }

.coach-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(64px, 8vw, 112px); }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card-quiet { background: transparent; }
.card h3 { margin-bottom: 16px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border: solid var(--brand); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks-quiet li::before { width: 12px; height: 2px; top: 0.75em; border: 0; background: var(--faint); transform: none; }
.coach-trust { max-width: 760px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.coach-trust h3 { margin: 8px 0 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.coach-trust p:not(.eyebrow) { color: var(--muted); }

/* 4 · Plan */
.split { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-list { display: grid; gap: 14px; margin-top: 32px; }
.feature-list li { padding-left: 18px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.feature-list strong { color: var(--text); font-weight: 600; }
.plan-visual { position: relative; padding-bottom: 8%; }
.plan-visual .laptop { width: 92%; }
.builder-visual { max-width: 960px; margin: clamp(40px, 6vw, 72px) auto 0; }
.plan-phone { position: absolute; right: 0; bottom: 0; width: 28%; }

/* 5 · Ride */
.ride { background: linear-gradient(180deg, var(--bg) 0%, #0d0b08 50%, var(--bg) 100%); }
.ride-rail { position: relative; }
.rail-list {
  display: flex; gap: clamp(16px, 2.5vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
}
.rail-list::-webkit-scrollbar { display: none; }
.rail-item { flex: none; width: clamp(200px, 22vw, 260px); scroll-snap-align: start; }
.rail-cap { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.rail-cap strong { display: block; color: var(--text); font-weight: 600; }
.rail-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rail-buttons button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.05); color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.rail-buttons button:hover:not(:disabled) { background: rgb(255 255 255 / 0.1); }
.rail-buttons button:disabled { opacity: 0.35; cursor: default; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.spec-grid li { padding: 28px; background: var(--bg); }
.spec-grid h3 { color: var(--text); }
.spec-grid p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.spec-grid li:nth-child(1) h3::before, .spec-grid li:nth-child(2) h3::before { background: var(--bike); }
.spec-grid h3::before { content: ""; display: block; width: 24px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--line-strong); }

/* 6 · Routes (scroll-driven on large screens: /assets/main.8e7f3db427ee.js sets --p and data-step) */
.routes { background: var(--bg-2); padding-bottom: clamp(64px, 8vw, 120px); }
.routes-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.route-steps { display: grid; gap: 22px; margin-top: 36px; }
.route-steps li { padding-left: 20px; border-left: 2px solid var(--line-strong); transition: border-color 0.4s, opacity 0.4s; }
.route-steps p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }
.route-stage { position: relative; }
.route-map {
  position: relative; width: min(100%, 520px); margin-inline: auto;
  border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 20%, #142034 0%, #0b111b 60%);
  border: 1px solid var(--line);
}
.route-svg { display: block; width: 100%; height: auto; aspect-ratio: 600 / 800; }
.grid-line { stroke: rgb(255 255 255 / 0.045); stroke-width: 1; }
.route-casing, .route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.route-casing { stroke: #0b2a5c; stroke-width: 14; opacity: 0.7; }
.route-line { stroke: var(--route); stroke-width: 6; filter: drop-shadow(0 0 10px rgb(47 124 246 / 0.6)); }
.route-casing, .route-line { stroke-dashoffset: calc(1 - clamp(0, (var(--p) - 0.08) * 2.6, 1)); }
.wp circle { fill: var(--route); stroke: #fff; stroke-width: 3; }
.wp text { fill: #fff; font: 700 15px var(--font); text-anchor: middle; }
.wp-0 { opacity: clamp(0, (var(--p) - 0.01) * 20, 1); }
.wp-1 { opacity: clamp(0, (var(--p) - 0.12) * 20, 1); }
.wp-2 { opacity: clamp(0, (var(--p) - 0.22) * 20, 1); }
.wp-3 { opacity: clamp(0, (var(--p) - 0.34) * 20, 1); }
.route-stats {
  position: absolute; left: 20px; right: 20px; top: 18px; display: flex; gap: 10px;
  opacity: clamp(0, (var(--p) - 0.45) * 8, 1);
}
.route-stats span { padding: 6px 12px; border-radius: 999px; background: rgb(7 9 13 / 0.75); border: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.route-stats b { color: var(--text); font-size: 1rem; }
.profile-svg {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 18%;
  clip-path: inset(0 calc((1 - clamp(0, (var(--p) - 0.45) * 3.2, 1)) * 100%) 0 0);
}
.profile-area { fill: rgb(47 124 246 / 0.28); }
.profile-line { fill: none; stroke: var(--route); stroke-width: 2; vector-effect: non-scaling-stroke; }
.route-phone {
  position: absolute; right: max(-2%, calc(50% - 360px)); bottom: -6%; width: 40%;
  opacity: clamp(0, (var(--p) - 0.74) * 6, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.74) * 4, 1)) * 60px));
}
.routes-foot { margin-top: clamp(56px, 7vw, 96px); }
.routes-foot .fine { max-width: 44rem; }
.route-web { margin-top: 32px; }
.route-web img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgb(0 0 0 / 0.95); }
.route-web figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--faint); }

/* 7 · Watch */
.cycle { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.garmin-section { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.garmin-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 900px; margin-inline: auto; }
.garmin-row li { text-align: center; }
.garmin-row p { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.garmin-ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; max-width: 900px; margin: clamp(28px, 4vw, 44px) auto 0; }
.watch-section { background: var(--bg); }
.watch-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.watch-row li { text-align: center; }
.watch-row p { margin-top: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }

/* 8 · Analysis and recovery */
.analysis { background: linear-gradient(180deg, var(--bg) 0%, #08100c 100%); }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.analysis-card {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.analysis-card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.recovery {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center;
  margin-top: 20px; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgb(86 189 120 / 0.1), rgb(63 179 223 / 0.06)); border: 1px solid var(--line);
}
.recovery p { margin-top: 10px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgb(7 9 13 / 0.6); border: 1px solid var(--line-strong); font-size: 0.9375rem; }

/* 9 · Platforms (scroll-driven on large screens) */
.eco { background: var(--bg-2); overflow: clip; }
.eco-sticky .section-head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.eco-stage { position: relative; width: min(100%, 860px); margin-inline: auto; padding-bottom: 6%; }
.eco-laptop { width: 88%; margin-inline: auto; transform: translateY(calc((1 - clamp(0, var(--p) * 4, 1)) * 30px)); opacity: clamp(0.25, var(--p) * 4, 1); }
.eco-phone {
  position: absolute; right: 2%; bottom: 0; width: 22%;
  opacity: clamp(0, (var(--p) - 0.25) * 6, 1);
  transform: translateX(calc((1 - clamp(0, (var(--p) - 0.25) * 4, 1)) * 80px));
}
.eco-watch {
  position: absolute; left: 1%; bottom: 0; width: 18%;
  opacity: clamp(0, (var(--p) - 0.5) * 6, 1);
  transform: translateX(calc((1 - clamp(0, (var(--p) - 0.5) * 4, 1)) * -80px));
}
.eco-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
.eco-steps li { padding-top: 14px; border-top: 2px solid var(--line-strong); transition: border-color 0.4s, opacity 0.4s; }
.eco-steps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.eco-foot { margin-top: clamp(56px, 7vw, 96px); }
.eco-extras { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
.mini { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mini p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.mini-social { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 24px; align-items: center; }
.availability { margin-top: 28px; }

/* Works with: the partners' own marks (Strava's "Compatible with" lockup, ROUVY, Garmin) and the store badges, shown as
   their owners give them (never dimmed or recoloured; docs/SITE.md §apps). "Kommer snart" says what isn't there yet. */
.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; color: var(--faint); font-size: 0.8125rem; }
.works-with img { height: 15px; width: auto; }
.works-with img[src*="logo-strava"] { height: 13px; }
.connect { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 20px; }
.connect a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.store-badge { display: grid; justify-items: center; gap: 8px; }
.store-badge img { height: 48px; width: auto; }
.soon {
  display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.partner-list { display: grid; gap: 18px; margin-top: 20px; }
.partner-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 4px 20px; }
.partner-list img { height: 20px; width: auto; max-width: 100%; }
.partner-list img[src*="logo-strava"] { height: 16px; }
.partner-list p { margin-top: 0; }
.connect-partners .fine { margin-top: 18px; }

/* Step highlighting while scroll-driven */
.motion [data-scrub].scrubbing .route-steps h3,
.motion [data-scrub].scrubbing .eco-steps h3 { color: var(--muted); transition: color 0.4s; }
.motion [data-scrub].scrubbing .route-steps p,
.motion [data-scrub].scrubbing .eco-steps p { color: var(--faint); }
.motion [data-scrub].scrubbing .route-steps li.active,
.motion [data-scrub].scrubbing .eco-steps li.active { border-color: var(--route); }
.motion [data-scrub].scrubbing .route-steps li.active h3,
.motion [data-scrub].scrubbing .eco-steps li.active h3 { color: var(--text); }
.motion [data-scrub].scrubbing .route-steps li.active p,
.motion [data-scrub].scrubbing .eco-steps li.active p { color: var(--muted); }

/* 10 · Who */
/* Plans and pricing (§pricing): the tiers in the mark's colours — START green, PRO orange, ELITE red, as in the app. */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tier { padding: 26px 24px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.tier-start { --c: var(--mark-green); }
.tier-pro { --c: var(--mark-orange); }
.tier-elite { --c: var(--mark-red); }
.tier h3 { color: var(--c); letter-spacing: 0.04em; }
.tier-tagline { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.tier-price { margin-top: 18px; color: var(--muted); }
.tier-price strong { color: var(--text); font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.tier-price span { display: block; margin-top: 2px; font-size: 0.95rem; }
.tier-includes { margin-top: 18px; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.tier-list { margin-top: 12px; display: grid; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.tier-list li { position: relative; padding-left: 22px; }
.tier-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.tier-list li:nth-child(-n + 2) { color: var(--text); }
.tier-coming { margin-top: 16px; color: var(--faint); font-size: 0.9rem; }
.tier-note { margin-top: 24px; color: var(--faint); font-size: 0.9rem; max-width: 72ch; }
.tier-note a { color: var(--muted); text-decoration: underline; }

.sports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sport { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.sport img { width: 100%; aspect-ratio: 555 / 215; object-fit: cover; }
.sport h3, .sport p { padding-inline: 20px; }
.sport h3 { margin-top: 18px; color: var(--c); }
.sport p { margin: 8px 0 22px; color: var(--muted); font-size: 0.95rem; }
.sport-tri { --c: var(--brand); }
.sport-bike { --c: var(--bike); }
.sport-run { --c: var(--run); }
.sport-swim { --c: var(--swim); }
.sport-xc-ski { --c: var(--xc-ski); }
.sport-hyrox { --c: var(--hyrox); }
.sport-strength { --c: var(--strength); }

/* 11 · Final */
.final { text-align: center; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 16vw, 220px); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(7 9 13 / 0.55) 45%, rgb(7 9 13 / 0.85) 100%); }
.final-inner .lead { margin-inline: auto; max-width: 34rem; color: #c3cad5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--text); }
.copyright { margin-left: auto; color: var(--faint); font-size: 0.875rem; }

/* ─── Motion (only when /assets/main.8e7f3db427ee.js runs and the visitor allows motion) ────────── */

.motion [data-reveal].pending { opacity: 0; transform: translateY(28px); }
.motion [data-reveal] { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .loop.pending { --p: 0; }
.motion .loop { transition: --p 1.6s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s, opacity 0.9s, transform 0.9s; }
.motion .chat [data-chat-step] { transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.motion .chat [data-chat-step].hidden { opacity: 0; transform: translateY(12px); visibility: hidden; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.motion .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.motion .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.motion .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.motion .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.motion .hero-phone { animation: rise-far 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.motion .hero-watch { animation: rise-far 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
@keyframes rise-far { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

/* Large screens: the routes and platforms stages are pinned while scrolling drives --p. */
@media (min-width: 901px) and (min-height: 640px) {
  .motion .routes[data-scrub] { padding-top: 0; }
  .motion .routes[data-scrub] .routes-sticky,
  .motion .eco[data-scrub] .eco-sticky {
    position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center;
    padding-block: calc(var(--header-h) + 24px) 32px;
  }
  .motion [data-scrub] [data-track] { height: 260vh; }
  .motion .eco[data-scrub] { padding-top: 0; }
  .motion .route-map { width: min(100%, 440px, calc((100vh - var(--header-h) - 80px) * 0.75)); }
  .motion .eco-stage { width: min(100%, 860px, calc((100vh - var(--header-h) - 320px) * 1.55)); }
}

/* Small screens and no scroll-driving: the stages play once when they come into view. */
.motion [data-scrub].play { transition: --p 2.6s cubic-bezier(0.3, 0.6, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .loop::before { display: none; }
  .sports { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .analysis-card { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-devices { width: min(78%, 300px); margin-top: 8px; }
  .coach-stage { grid-template-columns: minmax(0, 1fr); }
  .coach-phone .phone { width: min(70%, 260px); }
  .coach-cards { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .routes-grid { grid-template-columns: minmax(0, 1fr); }
  .route-map { width: min(100%, 440px); }
  .route-phone { right: 0; width: 36%; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .garmin-ticks { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .eco-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-extras { grid-template-columns: minmax(0, 1fr); }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .partner-list li { grid-template-columns: minmax(0, 1fr); }
  .recovery { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding-block: 72px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-bg::after {
    background: linear-gradient(180deg, rgb(7 9 13 / 0.75) 0%, rgb(7 9 13 / 0.55) 35%, rgb(7 9 13 / 0.85) 70%, var(--bg) 100%);
  }
  .cta-row .btn { flex: 1 1 auto; }
  .loop { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .loop-step { padding: 0 0 0 36px; }
  .loop-dot { top: 4px; }
  .chat { padding: 18px; border-radius: 22px; }
  .msg { max-width: 94%; }
  .card, .mini, .analysis-card, .recovery { padding: 22px; }
  .analysis-card { grid-template-columns: minmax(0, 1fr); }
  .analysis-card .phone { width: min(52%, 210px); margin-inline: auto; }
  .plan-phone { width: 32%; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-grid li { padding: 22px; }
  .watch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-row li:last-child { grid-column: 1 / -1; width: 50%; margin-inline: auto; }
  .garmin-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garmin-row li:first-child { grid-column: 1 / -1; width: 60%; margin-inline: auto; }
  .eco-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mini-social { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 18px; }
  .sports { grid-template-columns: minmax(0, 1fr); }
  .sport { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sport img { grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; }
  .sport h3 { margin-top: 14px; padding-inline: 16px; }
  .sport p { margin: 6px 0 14px; padding-inline: 16px; }
  .copyright { margin-left: 0; width: 100%; }
}

/* 404 */
.notfound { display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 100vh; padding-block: 64px; }
.notfound .logo { margin-bottom: 48px; }

/* Integritet and Support (docs/SITE.md §pages): readable long-form text on the site's own background. */
.page { max-width: 46rem; padding-block: 48px 96px; }
.page .logo { display: inline-block; margin-bottom: 40px; }
.page h1 { margin-bottom: 16px; }
.page h2 { margin-top: 48px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; }
.page h3 { margin-top: 28px; font-size: 1.125rem; }
.page p, .page li { color: #c3cad5; line-height: 1.65; }
.page p { margin-top: 12px; }
.page ul { margin-top: 12px; padding-left: 1.25rem; list-style: disc; }
.page ol { margin-top: 12px; padding-left: 1.25rem; list-style: decimal; }
.page .fingerprint { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }
.page li + li { margin-top: 6px; }
.page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page .meta { color: var(--muted); font-size: 0.9375rem; }
.page .lang-switch { margin-top: 20px; }

/* Historien bakom TriQuest / Our story: the founder's text as a readable article between the hero and the call to action. */
.story { padding-block: 24px 80px; }
.story .story-tagline { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); }
.story p { font-size: 1.0625rem; }
.story strong { color: var(--text); }
.story .story-sign { margin-top: 32px; font-size: 1.125rem; }
.page hr { margin-top: 64px; border: 0; border-top: 1px solid var(--line); }

/* The language switch (docs/SITE.md §language): SV / EN, the current one marked. */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.lang-toggle a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 30px; padding: 0 8px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / 0.1); }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.page-top .logo { margin-bottom: 0; }

/* Vanliga frågor (§faq): native disclosure, no script; the summary's heading keeps the outline. */
.faq-list { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 48px); max-width: 52rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { font-size: 1.0625rem; }
/* On a topic page too (§topics): the question sits in its summary, not 28 px below a long-form heading's margin. */
.page .faq-item summary h3 { margin-top: 0; }
.faq-item p { padding: 0 24px 22px; color: var(--muted); line-height: 1.6; }
.sport h3 a, .lead a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.sport h3 a:hover, .lead a:hover { text-decoration-color: currentColor; }
.availability a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Topic pages (§topics): the long-form page with a screenshot, a call to action and links to the other topics. */
.page .page-shot { margin-top: 28px; }
.page .page-shot img { width: min(300px, 70vw); height: auto; border-radius: 32px; border: 1px solid var(--line); }
/* A web screen, the page's full width (it can be wider than the text on large screens), with its caption under it. */
.page .web-shot { margin: 28px 0 0; }
.page .web-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.page .web-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
@media (min-width: 1100px) { .page .web-shot { margin-inline: -7rem; } .page .web-shot figcaption { margin-inline: 7rem; } }
.page .phone-pair { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.page .photo-hero { margin: 28px 0 0; }
.page .photo-hero img, .photo-pair img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.photo-pair figure { margin: 0; }
.photo-pair figcaption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: minmax(0, 1fr); } }
.page .phone-pair img { width: min(240px, 42vw); height: auto; border-radius: 28px; border: 1px solid var(--line); }
.page .page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page .page-cta a { text-decoration: none; }
.page .topic-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding-left: 0; }
.page .topic-links li + li { margin-top: 0; }
.page .breadcrumb { color: var(--muted); font-size: 0.9375rem; margin-bottom: 12px; }
.page .breadcrumb a { color: var(--muted); }

/* Topic pages in the start page's language (§topics, 2026-10-19): its header, hero, step row, sections beside screens,
   cards, questions and closing call; only what the start page doesn't already have is here. */
.topic-hero .breadcrumb { color: var(--muted); font-size: 0.9375rem; margin-bottom: 18px; }
.topic-hero .breadcrumb a { color: var(--muted); }
.hero-photo { justify-self: center; width: min(100%, 560px); }
.hero-photo img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.section.tint { background: var(--bg-2); }
.split.flip > .split-copy { order: 2; }
.split-visual { justify-self: center; width: 100%; }
.topic-phone { width: min(300px, 70vw); margin-inline: auto; }
.topic-photo img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); }
.split-copy .copy { margin-top: 16px; color: #c3cad5; line-height: 1.65; }
.split-copy .photo-pair, .section-head + .photo-pair { margin-top: 32px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; max-width: 64rem; }
.loop-after { margin-top: clamp(40px, 5vw, 64px); }
.loop-step:nth-child(6) { --c: var(--mark-red); }
.loop-step:nth-child(5) { --c: var(--brand); }
@media (min-width: 1081px) { .loop-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 900px) {
  .split.flip > .split-copy { order: 0; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
.sports-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .sports-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sports-4 { grid-template-columns: minmax(0, 1fr); } }
/* The ski pages' hero (§topics): no full-bleed picture (the ski photos are small), a cold glow behind the photo. */
.hero-snow { background: radial-gradient(ellipse 60% 70% at 75% 40%, rgba(96, 165, 250, 0.16), transparent 70%), radial-gradient(ellipse 50% 60% at 20% 80%, rgba(56, 189, 248, 0.08), transparent 70%), var(--bg); }
/* The feature pages' showcases and phones (§topics): a web screen large on the laptop, two phones side by side. */
.showcase figcaption { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.feature-grid + .showcase { margin-top: clamp(40px, 6vw, 72px); }
.phone-duo { display: flex; align-items: flex-start; justify-content: center; gap: clamp(16px, 3vw, 32px); }
.phone-duo .phone { width: min(240px, 42vw); }
.phone-duo .phone:nth-child(2) { margin-top: 48px; }
.hero-shot { justify-self: center; width: min(100%, 620px); }

/* ─── En Svensk Klassiker (§topics, docs/SVENSK_KLASSIKER.md) ──────────────────
   The hero: four slanted photo panels (ski, bike, swim, run) behind the copy, an example of Klassikerresan's card and
   the four races on a line in the sport colours. The icons are the app's sport icons (Lucide's and the app's skier) as
   an inline <symbol> sprite. On phones the panels are a 2 × 2 grid above the copy and the card comes below it. */
.kl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kl-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kl-ski { --c: var(--xc-ski); }
.kl-bike { --c: var(--bike); }
.kl-swim { --c: var(--swim); }
.kl-run { --c: var(--run); }
.kl-bike-text { color: var(--bike); }
.kl-swim-text { color: var(--swim); }
.kl-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(36px, 4vw, 56px);
  background: var(--bg);
}
.kl-panels { position: absolute; inset: 0 -8%; z-index: -2; display: flex; gap: 6px; }
.kl-panel { position: relative; flex: 1 1 0; overflow: hidden; transform: skewX(-9deg); background: var(--surface); }
.kl-panel img {
  position: absolute; top: 0; left: -20%; width: 140%; max-width: none; height: 100%;
  object-fit: cover; transform: skewX(9deg); filter: saturate(1.05);
}
.kl-panel-ski img { object-position: 46% 40%; }
.kl-panel-bike img { object-position: 62% 50%; }
.kl-panel-swim img { object-position: 52% 50%; }
.kl-panel-run img { object-position: 54% 40%; }
/* The shade over the panels: dark behind the copy, the photos clear toward the card, the bottom into the page. */
.kl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 9 13 / 0.9) 0%, rgb(7 9 13 / 0.66) 36%, rgb(7 9 13 / 0.18) 64%, rgb(7 9 13 / 0.4) 100%),
    linear-gradient(180deg, rgb(7 9 13 / 0.6) 0%, rgb(7 9 13 / 0) 20%, rgb(7 9 13 / 0) 58%, var(--bg) 100%);
}
.kl-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 380px);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  min-height: min(68svh, 640px);
}
.kl-copy .lead { max-width: 34rem; color: #d3d9e2; }
.kl-title {
  font-size: clamp(3rem, 8.4vw, 7.4rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.025em;
  text-transform: uppercase; text-shadow: 0 4px 40px rgb(0 0 0 / 0.5);
}
.kl-title-pre { display: block; margin-bottom: 0.12em; font-size: 0.32em; letter-spacing: 0.14em; color: var(--muted); }
.kl-sub { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.kl-sub span { color: var(--mark-green); }
.btn-klassiker {
  gap: 10px; background: var(--mark-green); color: #04140a;
  font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 14px 40px -14px rgb(34 224 107 / 0.7);
}
.btn-klassiker:hover { filter: brightness(1.08); }
.kl-card {
  padding: 22px 22px 18px; border-radius: 22px;
  background: rgb(17 22 31 / 0.84); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -36px rgb(0 0 0 / 0.95);
}
.kl-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kl-card-title { font-weight: 700; font-size: 1.125rem; }
.kl-card-count { color: var(--mark-green); font-weight: 650; font-size: 0.9375rem; white-space: nowrap; }
.kl-progress { height: 8px; margin: 14px 0 6px; border-radius: 999px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.kl-progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16b957, var(--mark-green)); }
.kl-legs { display: grid; }
.kl-legs li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kl-legs li:last-child { border-bottom: 0; }
.kl-legs .kl-icon {
  box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border-radius: 50%;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}
.kl-leg-name { flex: 1; font-weight: 600; }
.kl-leg-name small { margin-left: 6px; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.kl-legs .check { width: 20px; height: 20px; background: var(--mark-green); }
.kl-legs .check::after { left: 7px; top: 4px; }
.kl-open { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); }
.kl-card-note { margin-top: 8px; color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.kl-timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.kl-timeline::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--xc-ski), var(--bike) 36%, var(--swim) 66%, var(--run));
}
.kl-timeline li {
  position: relative; display: flex; align-items: center; gap: 8px; padding-top: 32px;
  color: var(--text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kl-timeline .kl-icon { color: var(--c); }
.kl-dot { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--bg), 0 0 22px var(--c); }
@media (min-width: 1081px) { .loop-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kl-switch {
  width: min(100%, 26rem); margin-inline: auto; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid rgb(34 224 107 / 0.4);
  box-shadow: 0 40px 100px -50px rgb(34 224 107 / 0.45);
}
.kl-switch-label { color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.kl-switch-title { margin-top: 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.kl-switch-next { margin-top: 8px; color: #c3cad5; }
.kl-switch-time { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.kl-fake-primary { background: var(--mark-green); border-color: var(--mark-green); color: #04140a; }
.kl-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kl-variants .card h3 { margin-bottom: 8px; }
.kl-note { margin-top: 24px; }
@media (max-width: 900px) {
  .kl-hero { padding-top: var(--header-h); }
  .kl-panels {
    position: relative; inset: auto; z-index: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    margin-bottom: -56px;
  }
  .kl-panel { transform: none; aspect-ratio: 4 / 3; }
  .kl-panel img { left: 0; width: 100%; transform: none; }
  .kl-hero::before { display: none; }
  .kl-panels::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 9 13 / 0.55) 0%, rgb(7 9 13 / 0.1) 30%, rgb(7 9 13 / 0.2) 60%, var(--bg) 100%); }
  .kl-hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .kl-card { width: min(100%, 440px); }
  .kl-timeline { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kl-timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; background: linear-gradient(180deg, var(--xc-ski), var(--bike) 36%, var(--swim) 66%, var(--run)); }
  .kl-timeline li { padding: 0 0 0 34px; min-height: 20px; }
  .kl-variants { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 640px) {
  .kl-panel { aspect-ratio: 1 / 1; }
}
/* The start page's card for it, under "För vem": the hero's four panels in a strip beside the copy. */
.kl-teaser {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 16px;
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.kl-teaser::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 3px; background: linear-gradient(90deg, var(--xc-ski), var(--bike) 36%, var(--swim) 66%, var(--run)); }
.kl-teaser-panels { display: flex; min-height: 220px; margin-left: -24px; }
/* Slanted edges by clipping (the photos themselves stay straight): each overlaps the next by 20 px of its 24 px slant. */
.kl-teaser-panels img {
  flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; margin-right: -20px;
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}
.kl-teaser-panels img:last-child { margin-right: 0; clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%); }
.kl-teaser-panels img:first-child { object-position: 46% 50%; }
.kl-teaser-panels img:nth-child(2) { object-position: 62% 50%; }
.kl-teaser-copy { align-self: center; padding: 28px clamp(20px, 3vw, 40px); }
.kl-teaser-copy .eyebrow { margin-bottom: 8px; color: var(--mark-green); }
.kl-teaser-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.kl-teaser-copy h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.kl-teaser-copy h3 a:hover { text-decoration-color: currentColor; }
.kl-teaser-copy p:last-child { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 640px) {
  .kl-teaser { grid-template-columns: minmax(0, 1fr); }
  .kl-teaser-panels { min-height: 140px; margin-left: 0; }
  .kl-teaser-panels img:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%); }
}

/* 1b · Offer: the campaign banner under the hero */
.offer { padding-block: clamp(40px, 6vw, 72px) 0; }
.offer .wrap { display: grid; gap: clamp(20px, 3vw, 32px); }
.offer-banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.offer-banner:hover { border-color: var(--line-strong); }
.offer-banner img { display: block; width: 100%; height: auto; }
.offer-copy { display: grid; gap: 14px; justify-items: start; max-width: 72ch; }
.offer-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.offer-copy p { color: var(--muted); }
.offer-copy p a { color: var(--text); text-decoration: underline; }

/* 3a · När det går fel: the four steps beside three phones (Dagsform, Kroppen, an injury followed) */
.care-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.care-copy .lead { margin-top: 16px; }
.care-steps { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 44px); counter-reset: care; }
.care-steps li { position: relative; padding-left: 52px; }
.care-steps li::before { counter-increment: care; content: counter(care); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: 0.95rem; }
.care-steps p { margin-top: 6px; color: var(--muted); }
.care-note { margin-top: 28px; color: var(--faint); font-size: 0.9rem; max-width: 60ch; }
.care-phones { display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 1.6vw, 18px); }
.care-phones .phone { width: min(200px, 30vw); }
.care-phones .phone:nth-child(2) { margin-top: 56px; }
.care-phones .phone:nth-child(3) { margin-top: 112px; }
@media (max-width: 900px) {
  .care-grid { grid-template-columns: 1fr; }
  .care-phones .phone { width: min(180px, 30vw); }
  .care-phones .phone:nth-child(2) { margin-top: 28px; }
  .care-phones .phone:nth-child(3) { margin-top: 56px; }
}
.card-more { margin-top: 18px; font-size: 0.95rem; }
.card-more a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* The calculators (docs/SITE.md §tools): a card with the form, the result under it. Fields work without the script's
   help (labels, inputmode); the script only computes. */
.tool { max-width: 44rem; margin-inline: auto; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.tool fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.tool legend, .tool .tool-label { display: block; margin-bottom: 8px; font-weight: 650; color: var(--text); }
.tool-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-choices label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; color: var(--muted); }
.tool-choices input { accent-color: var(--brand); margin: 0; }
.tool-choices label:has(input:checked) { border-color: var(--brand); color: var(--text); background: rgb(255 90 74 / 0.1); }
.tool-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.tool input[type="text"], .tool select {
  width: 6.5rem; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 1rem;
}
.tool select { width: auto; min-width: 12rem; }
.tool input.wide { width: 10rem; }
.tool input:focus-visible, .tool select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tool input[aria-invalid="true"], .tool select[aria-invalid="true"] { border-color: var(--mark-red); }
.tool-error { margin: -8px 0 16px; color: #ff8a80; font-size: 0.875rem; }
.tool-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.tool-quick button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.tool-quick button:hover { color: var(--text); border-color: var(--line-strong); }
.tool .btn { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.tool-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.tool-result div { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tool-result dt { color: var(--muted); font-size: 0.8125rem; }
.tool-result dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool-table caption { text-align: left; margin-bottom: 8px; font-weight: 650; }
.tool-table th, .tool-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tool-table thead th { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.tool-table tr.is-input { color: var(--brand); }
.tool-splits { max-height: 22rem; overflow-y: auto; margin-top: 24px; }
.tool-splits .tool-table { margin-top: 0; }
.tool-note { margin-top: 18px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.tool [hidden] { display: none !important; }
@media (max-width: 560px) { .tool-result { grid-template-columns: minmax(0, 1fr); } }
/* A calculator page: a short hero, so the calculator is in view at once. */
.hero.tool-hero { min-height: 0; padding-bottom: clamp(16px, 3vw, 32px); }
.section.tool-section { padding-top: clamp(8px, 2vw, 24px); }
