/* Boostline – minimalistisk och skarp stil.
   Rörelser är korta och distinkta, aldrig suddiga. Scrollstyrda effekter
   (animation-timeline) körs bara i webbläsare som stöder dem, och allt som rör sig
   kräver att besökaren inte har bett om mindre rörelse. Annars visas allt stilla och komplett. */

@property --sec {
  syntax: "<integer>";
  inherits: false;
  initial-value: 55;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --link: #0066cc;
  --dark: #000000;
  --dark-card: #161617;
  --dark-ink: #f5f5f7;
  --dark-muted: #86868b;
  --dark-link: #2997ff;
  --warm: linear-gradient(135deg, #ff9f0a 0%, #ff375f 100%);
  --red: #d70015;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header: 52px;
  /* Brödtext och rubriker får var sin optiska storlek: SF Pro på Mac, Segoe UI Variable på Windows. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI",
    system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--ink);
  color: #fff;
}

.section-dark ::selection {
  background: var(--dark-ink);
  color: #000;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

h1,
h2,
h3,
.statement-text,
.stat-num,
.klok-letter,
.countdown-num,
.calc-value,
.rule-art,
.portrait,
.score-ring .value,
.checklist-count {
  font-family: var(--font-display);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* Jämna radbrytningar: inga ensamma ord på sista raden */
h1,
h2,
h3,
h4,
summary {
  text-wrap: balance;
}

.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-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 980px;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.container-narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--faint);
}

@media (max-width: 520px) {
  .hide-sm {
    display: none;
  }
}

/* ---------- Sidhuvud ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
}

/* Glaseffekten ligger på ett pseudoelement, så att mobilmenyn kan vara position: fixed. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Logon är kurvor (Inter 600 omgjord till SVG), så den ser likadan ut överallt utan att ladda något typsnitt.
   Linjen och ordet följer currentColor, stationen har alltid den varma toningen. */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 20px;
  max-width: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}

.site-nav a:hover {
  color: #000;
  text-decoration: none;
}

/* Bokningsknappen har den varma toningen, som .btn-warm */
.site-nav a.nav-cta {
  margin-left: 10px;
  padding: 6px 15px;
  border-radius: 980px;
  background: var(--warm);
  color: var(--ink);
  font-weight: 600;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-nav a.nav-cta:hover {
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 55, 95, 0.22);
}

.site-nav a.nav-cta:active {
  transform: scale(0.97);
}

/* Aktuell sektion och mörkt sidhuvud över mörka sektioner (main.js sätter klasserna) */
@media (min-width: 834px) {
  .site-nav a.is-current {
    color: #000;
  }

  .site-nav a.is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: currentColor;
  }

  .site-header.is-dark .site-nav a {
    color: rgba(255, 255, 255, 0.7);
  }

  .site-header.is-dark .site-nav a:hover,
  .site-header.is-dark .site-nav a.is-current {
    color: #fff;
  }

  .site-header.is-dark .site-nav a.nav-cta {
    color: var(--ink);
  }

  .site-header.is-dark .site-nav a.nav-cta:hover {
    box-shadow: 0 0 0 3px rgba(255, 55, 95, 0.4);
  }
}

.site-header.is-dark::before {
  background-color: rgba(22, 22, 23, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header.is-dark .brand {
  color: var(--dark-ink);
}

.site-header.is-dark .nav-toggle span {
  background: var(--dark-ink);
}

/* Bokningsknappen i sidhuvudet på mobilen, där menyknappen annars gömmer den */
.header-cta {
  display: none;
}

@media (max-width: 833px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: auto;
    margin-right: 2px;
    padding: 0 14px;
    border-radius: 980px;
    background: var(--warm);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  .header-cta:hover {
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(255, 55, 95, 0.22);
  }

  .site-header:has(.site-nav.open) .header-cta {
    opacity: 0;
    pointer-events: none;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 833px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    padding: 20px 40px 40px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
  }

  .site-nav a.nav-cta {
    margin: 24px 0 0;
    padding: 12px 24px;
    font-size: 17px;
  }
}

/* Mobilmenyns rader glider in en i taget */
@media (max-width: 833px) and (prefers-reduced-motion: no-preference) {
  .site-nav.open li {
    animation: rise-in 0.6s var(--ease-out) both;
  }

  .site-nav.open li:nth-child(2) { animation-delay: 35ms; }
  .site-nav.open li:nth-child(3) { animation-delay: 70ms; }
  .site-nav.open li:nth-child(4) { animation-delay: 105ms; }
  .site-nav.open li:nth-child(5) { animation-delay: 140ms; }
  .site-nav.open li:nth-child(6) { animation-delay: 175ms; }
  .site-nav.open li:nth-child(7) { animation-delay: 210ms; }
}

/* ---------- Knappar och länkar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-quiet:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.section-alt .btn-quiet:hover {
  background: #e8e8ed;
}

/* Bokningsknapparna har den varma toningen, så att de syns direkt. Texten är mörk:
   vit text klarar bara kontrasten 2:1 mot den gula delen, mörk text klarar 4,8:1 hela vägen. */
.btn-warm,
.btn-warm:hover {
  background: var(--warm);
  color: var(--ink);
}

.btn-warm {
  font-weight: 600;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-warm:hover {
  box-shadow: 0 0 0 4px rgba(255, 55, 95, 0.22);
}

.section-dark .btn-warm:hover,
.result-cta .btn-warm:hover {
  box-shadow: 0 0 0 4px rgba(255, 55, 95, 0.4);
}

.btn-small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.link-more {
  color: var(--link);
  font-size: 17px;
  white-space: nowrap;
}

.link-more::after {
  content: "\00a0›";
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.link-more:hover::after,
a:hover > .link-more::after {
  transform: translateX(3px);
}

.section-dark .link-more,
.tile-dark .link-more {
  color: var(--dark-link);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
}

/* ---------- Sektioner och typografi ---------- */

.section {
  padding: 128px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.section-dark .muted {
  color: #6e6e73;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.title-sm {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
}

.section-dark .lead {
  color: var(--dark-muted);
}

.section-dark .lead strong {
  color: var(--dark-ink);
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.head {
  margin-bottom: 72px;
}

/* Liten text använder den mörkare grå tonen så att den går att läsa (kontrast 5:1). */
.source {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.fine {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

/* ---------- Hero ---------- */

/* Hero: resultatet, knappen och beviset ryms i första skärmen. Foten med caset och
   verktygen ligger i flödet längst ner, så att den aldrig hamnar ovanpå texten. */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  padding: 56px 0 32px;
  text-align: center;
  view-timeline-name: --hero;
}

.hero-inner {
  align-self: center;
}

.hero h1 {
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero .lead {
  max-width: 640px;
  margin: 32px auto 36px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 44px 22px 0;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 16px 6px 6px;
  border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-align: left;
  transition: background 0.25s var(--ease);
}

.proof-chip:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.proof-chip::after {
  content: "›";
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}

.proof-chip:hover::after {
  transform: translateX(3px);
}

.proof-label {
  flex: none;
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-tools {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-tools .hero-in {
  display: inline-block;
}

@media (max-width: 520px) {
  .hero {
    padding-top: 40px;
  }

  .proof-chip {
    font-size: 13px;
  }
}

/* Entrén när sidan laddas: rubrikens rader reser sig ur en skarp kant, en i taget,
   och resten följer efter. Bara tid, inte scroll, och bara utan "minska rörelse". */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line {
    clip-path: inset(-0.25em -0.5em -0.18em -0.5em);
  }

  .hero h1 .line > span {
    animation: line-up 1.2s var(--ease-out) both;
    animation-delay: calc(var(--d) * 110ms + 150ms);
  }

  .hero-in {
    animation: rise-in 1s var(--ease-out) both;
    animation-delay: calc(var(--d) * 110ms + 150ms);
  }
}

@keyframes line-up {
  from {
    transform: translateY(125%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Påståendet som tänds ord för ord ---------- */

.statement {
  padding: 120px 0;
}

.statement-sticky {
  display: grid;
  place-items: center;
}

.statement-text {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-align: center;
}

/* ---------- Siffror ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  text-align: center;
}

.stat-num {
  font-size: clamp(72px, 10vw, 128px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

.stat-num .unit {
  font-size: 0.45em;
  letter-spacing: -0.02em;
  margin-left: 0.04em;
}

/* main.js ger siffran slutvärdets bredd, så att procenttecknet står still medan den räknas upp */
.stat-num .count {
  display: inline-block;
  text-align: right;
}

.stat-warn .stat-num {
  background: var(--warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p {
  max-width: 260px;
  margin: 0 auto 8px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 72px;
  }
}

/* Två insikter som förklarar siffrorna: vad de som lyckas gör, och att kunderna frågar andras AI */
.insights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 104px;
}

.insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px 36px 30px;
  border-radius: 28px;
  background: #fff;
}

.insight-num {
  min-width: 2.1ch;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 76px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.insight h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.insight p {
  margin: 0 0 10px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .insights {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }
}

@media (max-width: 520px) {
  .insight {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 24px 22px;
  }
}

/* Tecken som besökaren känner igen sig i, med vägen vidare till testet */
.symptoms {
  max-width: 760px;
  margin-top: 104px;
}

.symptoms-title {
  margin-bottom: 28px;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.035em;
  text-align: center;
}

.symptoms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.symptoms li {
  border-top: 1px solid var(--line);
}

.symptoms li:last-child {
  border-bottom: 1px solid var(--line);
}

.symptoms label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 19px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.symptoms input {
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--faint);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.symptoms label:hover input {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.symptoms input:checked {
  box-shadow: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.symptoms-verdict {
  min-height: 1.47em;
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

.symptoms-verdict strong {
  color: var(--ink);
  font-weight: 600;
}

.symptoms-more {
  margin: 12px 0 0;
  text-align: center;
}

/* Nästa steg direkt efter demon */
.bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 940px;
  margin: 64px auto 0;
  padding: 30px 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bridge-text {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.bridge-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bridge .actions {
  justify-content: flex-start;
  gap: 14px 26px;
}

@media (max-width: 760px) {
  .bridge {
    padding: 28px 24px;
  }
}

/* ---------- Demon: samma fråga, två kunskapsbaser ----------
   Växeln är två radioknappar, så den fungerar utan JavaScript (via :has).
   main.js delar upp svaren i ord och sätter tiderna för skrivanimationen. */

.demo {
  max-width: 940px;
  margin: 0 auto;
}

.demo-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 470px);
  min-inline-size: 0;
  margin: 0 auto 40px;
  padding: 4px;
  border: 0;
  border-radius: 980px;
  background: var(--bg-alt);
}

.section-alt .demo-switch {
  background: #e8e8ed;
}

.demo-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 980px;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.55s var(--ease-out);
}

.demo-switch:has(input[value="klar"]:checked)::before {
  transform: translateX(100%);
}

.demo-switch label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 980px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.demo-switch label:hover {
  color: var(--ink);
}

.demo-switch label:has(input:checked) {
  color: #fff;
}

.demo-switch label:has(input:focus-visible) {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.demo-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Bara det valda läget syns */
.demo:not(:has(input[value="klar"]:checked)) [data-state="klar"],
.demo:has(input[value="klar"]:checked) [data-state="rorig"] {
  display: none;
}

.demo-window {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.demo-kb {
  padding: 28px;
  border-right: 1px solid var(--hair);
  background: #fbfbfd;
}

.demo-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kb-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.kb-meta {
  grid-column: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
  line-height: 1.4;
}

.kb-flag {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 3px 9px;
  border-radius: 980px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.kb-flag.kb-ok {
  background: var(--ink);
  color: #fff;
}

/* De gamla artiklarna ligger kvar, men arkiverade: en sanning per fråga */
.kb-archived {
  margin-top: 28px;
}

.kb-archived ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-archived li {
  padding-left: 16px;
  color: var(--faint);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.kb-archived s {
  text-decoration-thickness: 1px;
}

.demo-chat {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hair);
}

.chat-head p {
  margin: 0;
  line-height: 1.25;
}

.chat-head strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.chat-head span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
}

.chat-avatar svg {
  width: 28px;
  height: 28px;
}

.chat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.msg {
  max-width: 86%;
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.msg-user {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--ink);
  color: #fff;
}

.msg-ai {
  position: relative;
  align-self: flex-start;
  border-radius: 20px 20px 20px 6px;
  background: var(--bg-alt);
}

.msg-ai p {
  margin: 0;
}

.msg-ai .msg-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
}

.msg-ai[data-state="rorig"] .msg-meta {
  color: var(--red);
}

.msg-ai[data-state="klar"] .msg-meta::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warm);
  vertical-align: 1px;
}

.chat-foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--hair);
}

.chat-human {
  padding: 8px 15px;
  border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.25s var(--ease);
}

.chat-human:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.demo-verdict {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  text-align: center;
}

.demo-verdict strong {
  margin-right: 4px;
  color: var(--ink);
  font-weight: 600;
}

.verdict-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

.demo-verdict[data-state="klar"] .verdict-icon {
  background: var(--warm);
}

/* Skrivanimationen: tre prickar, sedan kommer svaret ord för ord */
.typing {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .demo.is-live .typing {
    position: absolute;
    top: 20px;
    left: 18px;
    display: flex;
    gap: 4px;
    animation: fade-out 0.15s linear both;
    animation-delay: var(--start);
  }

  .typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--faint);
    animation: typing-dot 0.9s ease-in-out infinite;
  }

  .typing i:nth-child(2) {
    animation-delay: 0.15s;
  }

  .typing i:nth-child(3) {
    animation-delay: 0.3s;
  }

  .js .demo.is-live .tw {
    animation: fade-in 0.22s linear both;
    animation-delay: calc(var(--start) + var(--i) * var(--step));
  }

  .js .demo.is-live .msg-meta,
  .js .demo.is-live .demo-verdict {
    animation: rise-in 0.5s var(--ease-out) both;
    animation-delay: var(--done);
  }

  .js .demo.is-live .kb-list li,
  .js .demo.is-live .kb-archived li {
    animation: rise-in 0.55s var(--ease-out) both;
    animation-delay: calc(var(--k) * 90ms + 80ms);
  }

  .js .demo.is-live .kb-archived .demo-label {
    animation: fade-in 0.4s linear both;
    animation-delay: 120ms;
  }

  /* En diskret puls visar vart man ska klicka, tills besökaren har provat */
  .js .demo.is-live:not(.touched) .switch-klar {
    animation: nudge 2.4s var(--ease) infinite;
    animation-delay: calc(var(--done-rorig) + 0.6s);
  }
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes nudge {
  0%,
  55%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 55, 95, 0);
  }
  18% {
    box-shadow: 0 0 0 5px rgba(255, 55, 95, 0.2);
  }
}

@media (max-width: 760px) {
  .demo-window {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .demo-kb {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .demo-chat {
    min-height: 0;
  }

  .chat-head,
  .chat-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chat-body {
    padding: 20px 18px;
  }

  .msg {
    max-width: 92%;
  }
}

/* ---------- Exemplet: ett ärende, steg för steg ----------
   main.js spelar upp exemplet en gång när fönstret syns och stannar på slutet.
   Delar som inte har kommit än är dolda men tar sin plats, så att fönstret aldrig
   ändrar storlek. Utan JavaScript, och med "minska rörelse", visas slutläget. */

.flow-section .bridge {
  background: var(--bg-alt);
  box-shadow: none;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.flow-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-steps button {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.flow-steps button:hover {
  background: rgba(0, 0, 0, 0.03);
}

.flow-step strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.flow-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Steget som visas lyfts fram, och klara steg får en mörk siffra */
.flow-steps .is-current button {
  background: var(--bg-alt);
}

.flow-steps .is-current .flow-num {
  background: var(--warm);
  box-shadow: none;
  color: var(--ink);
  font-weight: 600;
}

.flow-steps .is-done .flow-num {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}

/* Linjen under steget visar hur länge det står kvar medan exemplet spelas upp */
.flow-steps button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: 0 50%;
  visibility: hidden;
}

.flow.is-playing .is-current button::after {
  visibility: visible;
  animation: progress var(--dur, 2s) linear both;
}

.flow-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.flow-play[hidden] {
  display: none;
}

.flow-play:hover {
  text-decoration: underline;
}

.flow-play::before {
  content: "";
  width: 10px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.flow-play[data-mode="pause"]::before {
  width: 9px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  background: none;
  clip-path: none;
}

.flow-play[data-mode="replay"]::before {
  content: "↺";
  width: auto;
  height: auto;
  background: none;
  clip-path: none;
  font-size: 17px;
  line-height: 1;
}

/* Fönstret: ett ärende i ett supportverktyg */
.flow-window {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.22);
}

.fw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--hair);
  background: #fbfbfd;
}

.fw-subject {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
}

.fw-id {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
}

.fw-subject strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

/* Lägen som avlöser varandra ligger i samma ruta, så att ingenting hoppar */
.fw-status,
.fw-ai-state,
.fw-send {
  display: grid;
}

.fw-status > *,
.fw-ai-state > *,
.fw-send > span {
  grid-area: 1 / 1;
}

.fw-status {
  flex: none;
  justify-items: end;
  margin: 0;
}

.fw-pill {
  padding: 4px 11px;
  border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.fw-pill-done {
  background: var(--warm);
  box-shadow: none;
  color: var(--ink);
}

.fw-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}

.fw-msg {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.fw-msg p {
  margin: 0;
}

.fw-msg .fw-from {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.fw-from strong {
  color: var(--ink);
  font-size: 13px;
}

.fw-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.fw-avatar-sm {
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
}

.fw-ai {
  padding: 14px;
  border-radius: 16px;
  background: #fbfbfd;
  box-shadow: 0 0 0 1px var(--hair);
}

.fw-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fw-ai-head .chat-avatar {
  width: 28px;
  height: 28px;
}

.fw-ai-head .chat-avatar svg {
  width: 24px;
  height: 24px;
}

.fw-ai-name {
  margin: 0;
  line-height: 1.25;
}

.fw-ai-name strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.fw-ai-name span {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0;
}

.fw-ai-state {
  justify-items: end;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.fw-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: 2px;
}

.fw-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.fw-sources {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-sources li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.fw-flag {
  flex: none;
  padding: 2px 9px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.fw-reply {
  padding: 14px 16px 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.fw-reply .demo-label {
  margin-bottom: 8px;
}

.fw-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Sara skriver långsammare än AI:n */
.fw-human {
  --step: 75ms;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.fw-human .fw-avatar-sm {
  margin-top: 1px;
}

.fw-meta {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
}

.fw-meta::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warm);
  vertical-align: 1px;
}

.fw-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.fw-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.fw-send {
  position: relative;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Svaret är skickat. Utan JavaScript visas slutläget direkt. */
.flow:not(.is-ready) .fw-send,
.flow[data-at="9"] .fw-send {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.fw-cursor {
  position: absolute;
  left: 58%;
  top: 52%;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Uppspelningen. Utan JavaScript döljs lägen som bara finns under vägen. */
.flow:not(.is-ready) [data-only] {
  display: none;
}

.flow.is-ready [data-in]:not(.is-on),
.flow.is-ready [data-only]:not(.is-on) {
  opacity: 0;
  visibility: hidden;
}

.flow.is-ready [data-in],
.flow.is-ready [data-only] {
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

/* Hopp mellan stegen sker direkt */
.flow.is-instant *,
.flow.is-instant *::after {
  transition: none !important;
  animation: none !important;
}

.flow.is-paused *,
.flow.is-paused *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: no-preference) {
  .flow.is-ready [data-in],
  .flow.is-ready [data-only] {
    transition: opacity 0.35s var(--ease), visibility 0.35s, transform 0.55s var(--ease-out);
  }

  .flow.is-ready .fw-body > :not(.is-on),
  .flow.is-ready .fw-sources > :not(.is-on) {
    transform: translateY(10px);
  }

  .fw-dots i {
    animation: typing-dot 0.9s ease-in-out infinite;
  }

  .fw-dots i:nth-child(2) {
    animation-delay: 0.15s;
  }

  .fw-dots i:nth-child(3) {
    animation-delay: 0.3s;
  }

  /* Texten skrivs fram ord för ord */
  .flow .is-typing .fw-w {
    animation: fade-in 0.2s linear both;
    animation-delay: calc(var(--i) * var(--step, 45ms));
  }

  /* Sara för pekaren till Skicka och trycker */
  .flow[data-at="8"] .fw-cursor {
    animation: fw-cursor 0.75s var(--ease-out) both;
  }

  .flow[data-at="8"] .fw-send {
    animation: fw-press 0.3s var(--ease) 0.75s both;
  }
}

@keyframes fw-cursor {
  from {
    transform: translate(-150px, -64px);
  }
}

@keyframes fw-press {
  50% {
    transform: scale(0.93);
  }
}

@media (max-width: 833px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 560px;
  }

  .flow-window {
    order: -1;
  }

  .flow-steps button {
    gap: 14px;
    padding: 13px 16px;
  }

  .flow-step strong {
    font-size: 17px;
  }

  /* Bara steget som visas har sin förklaring, så att stegen ryms under fönstret */
  .flow.is-ready .flow-steps li:not(.is-current) .flow-step > span {
    display: none;
  }

  .flow-play {
    margin-left: 16px;
  }
}

@media (max-width: 520px) {
  .fw-head {
    padding: 14px 16px;
  }

  .fw-body {
    padding: 16px;
  }

  .fw-ai {
    padding: 12px;
  }

  .fw-reply {
    padding: 12px 14px 14px;
  }
}

/* ---------- KLOK ---------- */

.klok-section {
  padding: 140px 0;
}

.klok-head {
  margin-bottom: 56px;
}

/* Utan rörelse: ett rutnät på dator och en rad att svepa i på mobilen */
.klok-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  list-style: none;
  scrollbar-width: none;
}

.klok-track::-webkit-scrollbar {
  display: none;
}

.klok-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 44px 40px 40px;
  border-radius: 30px;
  background-color: var(--dark-card);
  isolation: isolate;
  scroll-snap-align: center;
}

/* Ljuskägla och kant som följer muspekaren över mörka kort (main.js sätter --mx och --my) */
@media (hover: hover) and (pointer: fine) {
  [data-spotlight]::before,
  [data-spotlight]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }

  [data-spotlight]::before {
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.075), transparent 45%);
  }

  [data-spotlight]::after {
    padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.45), transparent 65%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }

  [data-spotlight]:hover::before,
  [data-spotlight]:hover::after {
    opacity: 1;
  }
}

.klok-letter {
  font-size: clamp(120px, 16vw, 180px);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #48484a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: auto;
  padding-bottom: 40px;
}

.klok-card.is-key .klok-letter {
  background: var(--warm);
  -webkit-background-clip: text;
  background-clip: text;
}

.klok-tag {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--dark-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.klok-card h3 {
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.klok-card p {
  margin: 0;
  color: var(--dark-muted);
}

.klok-measure {
  margin-top: 24px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.klok-measure span {
  display: block;
  color: var(--dark-ink);
  font-weight: 600;
}

.klok-loop {
  justify-content: flex-end;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.klok-loop svg {
  margin-bottom: auto;
}

@media (max-width: 760px) {
  .klok-track {
    display: flex;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .klok-card {
    flex: 0 0 82vw;
  }
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
  margin-top: 80px;
}

.principles h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.principles p {
  margin: 0;
  color: var(--dark-muted);
}

@media (max-width: 760px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Case: nedräkningen ---------- */

.countdown {
  padding: 140px 0 60px;
  text-align: center;
}

.countdown-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-num {
  font-size: clamp(120px, min(40vw, 34vh), 340px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  margin-top: 24px;
}

.countdown-unit {
  color: var(--faint);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.countdown-bar {
  width: min(560px, 80vw);
  height: 6px;
  margin: 40px auto 0;
  border-radius: 6px;
  background: var(--bg-alt);
  overflow: hidden;
}

.countdown-bar span {
  display: block;
  width: 9%;
  height: 100%;
  border-radius: 6px;
  background: var(--ink);
}

.countdown-caption {
  margin: 36px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.countdown-caption strong {
  color: var(--ink);
  font-weight: 600;
}

.story-section {
  padding-top: 60px;
}

.about-lead {
  margin-bottom: 20px;
}

.faq-title {
  margin-bottom: 64px;
}

.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.story h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.story p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .story {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Värdekalkylator ---------- */

.calc {
  max-width: 760px;
  margin: 0 auto;
}

.calc-result {
  text-align: center;
  margin-bottom: 72px;
}

.calc-value {
  font-size: clamp(64px, 11vw, 140px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.calc-result p {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
}

.calc-fields {
  display: grid;
  gap: 40px;
}

.calc label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  font-weight: 600;
}

.calc label output {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc input[type="range"] {
  --p: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p));
}

.calc input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p));
}

.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
}

.calc input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
}

/* Räkneexemplet och delningen: kalkylen ska gå att visa för den som beslutar */
.calc-example {
  max-width: 560px;
  margin: 56px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.calc-example strong {
  color: var(--ink);
  font-weight: 600;
}

.calc-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.calc-status {
  flex-basis: 100%;
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.calc .fine {
  margin-top: 28px;
}

/* ---------- Tjänster ---------- */

/* Tre steg som en tabell med hårfina linjer. Stegets namn står kvar medan man läser erbjudandena. */
.tier {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.tier:last-child {
  border-bottom: 1px solid var(--line);
}

.tier-head {
  position: sticky;
  top: calc(var(--header) + 32px);
  align-self: start;
}

.tier-num {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}

.tier-name {
  margin-bottom: 6px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.tier-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.offer-list li:first-child {
  padding-top: 4px;
  border-top: 0;
}

.offer-list li:last-child {
  padding-bottom: 0;
}

.offer-list h4 {
  margin-bottom: 4px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.offer-list p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.015em;
}

.offer-meta {
  color: var(--faint);
  font-weight: 400;
}

.price {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
}

/* Garantin står vid priset i stället för i det finstilta */
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair);
}

.guarantee-icon {
  flex: none;
  width: 28px;
  height: 28px;
  fill: var(--ink);
}

.guarantee-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guarantee p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.015em;
}

.guarantee strong {
  color: var(--ink);
  font-weight: 600;
}

.pilot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: 100%;
  margin: 64px auto 0;
  padding: 14px 26px;
  border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pilot-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

@media (prefers-reduced-motion: no-preference) {
  .pilot-dot {
    animation: ping 2.4s var(--ease) infinite;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 55, 95, 0.4);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(255, 55, 95, 0);
  }
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.5;
}

@media (max-width: 833px) {
  .tier {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }

  .tier-head {
    position: static;
  }
}

@media (max-width: 760px) {
  .offer-list li {
    grid-template-columns: 1fr;
  }

  .price {
    text-align: left;
  }

  .pilot {
    border-radius: 22px;
    padding: 18px 22px;
  }

  .terms {
    grid-template-columns: 1fr;
  }
}

/* ---------- Regelkoll ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.rule-art {
  margin-bottom: 18px;
  color: var(--line);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.rule h3 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.rule p {
  color: var(--muted);
}

.rule .rule-do {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 760px) {
  .rules {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ---------- Om mig ---------- */

.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: center;
}

.portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #e8e8ed 0%, #c7c7cc 100%);
  color: #fff;
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.06em;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about p {
  color: var(--muted);
}

.facts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.tools-line {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.about-cta {
  margin: 28px 0 0;
}

@media (max-width: 833px) {
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .portrait {
    width: 200px;
    margin: 0 auto;
  }

  .facts {
    text-align: left;
  }
}

/* ---------- Gratis verktyg ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 56px 48px;
  border-radius: 30px;
  background-color: #fff;
  color: var(--ink);
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.tile:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.25);
}

.tile-dark {
  background-color: var(--dark);
  color: var(--dark-ink);
}

.tile-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile-dark .tile-kicker {
  color: var(--dark-muted);
}

.tile h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.tile p {
  color: var(--muted);
  font-size: 19px;
}

.tile-dark p {
  color: var(--dark-muted);
}

.tile .link-more {
  margin-top: auto;
}

@media (max-width: 760px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 360px;
    padding: 44px 30px;
  }
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 0.25s var(--ease);
}

.faq summary:hover {
  color: #000;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Plustecknet ritas med två hårfina streck och vrids till ett kryss */
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--faint), var(--faint)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--faint), var(--faint)) center / 1.5px 100% no-repeat;
  transition: transform 0.45s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq details p {
  margin: 0;
  padding: 0 0 28px;
  max-width: 640px;
  color: var(--muted);
}

/* Svaren fälls ut mjukt i webbläsare som stöder det, annars direkt */
@media (prefers-reduced-motion: no-preference) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Kontakt ---------- */

.contact {
  padding: 168px 0;
  text-align: center;
}

.contact-title {
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 30%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact .lead {
  margin: 32px auto 44px;
}

/* Vad som händer efter bokningen, så att steget känns litet */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 96px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.steps li {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  color: var(--dark-ink);
  font-family: var(--mono);
  font-size: 13px;
}

.steps h3 {
  margin-bottom: 6px;
  color: var(--dark-ink);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.steps p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 15px;
  letter-spacing: -0.015em;
}

@media (max-width: 833px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 72px;
  }
}

.contact-meta {
  margin-top: 72px;
  color: var(--dark-muted);
  font-size: 14px;
}

.contact-meta a {
  color: var(--dark-ink);
}

/* ---------- Sidfot ---------- */

.site-footer {
  padding: 22px 0 30px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner a {
  color: var(--muted);
}

/* ---------- Undersidor ---------- */

.page-hero {
  padding: 120px 0 64px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(44px, 7.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.page-body {
  padding: 0 0 140px;
}

.prose h2 {
  margin: 56px 0 14px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

/* ---------- AI-redo-testet ---------- */

.test-progress {
  position: sticky;
  top: var(--header);
  z-index: 10;
  padding: 16px 0 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.progress-track {
  height: 2px;
  background: var(--line);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.5s var(--ease);
}

.question {
  margin: 0;
  padding: 56px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.question legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 24px;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.question .qnum {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.question .hint {
  clear: both;
  margin: -12px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.question .options {
  clear: both;
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.option:hover {
  box-shadow: inset 0 0 0 1px var(--faint);
}

.option input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease);
}

.option input:checked {
  box-shadow: inset 0 0 0 7px var(--ink);
}

.option:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.question.missing legend {
  color: #d70015;
}

.test-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 56px;
}

.test-submit .note {
  margin: 0;
  color: #d70015;
  font-size: 15px;
}

.result {
  display: none;
}

.result.show {
  display: block;
}

.result:focus {
  outline: none;
}

.result-score {
  padding: 40px 0 72px;
  text-align: center;
}

.score-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 36px;
}

.score-ring svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.score-ring circle {
  transition: stroke-dashoffset 1.2s var(--ease);
}

.score-ring .value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.score-ring .value small {
  color: var(--faint);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.result-score h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.result-score p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 19px;
}

.result-heading {
  margin-bottom: 24px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.areas {
  display: grid;
  gap: 22px;
  margin-bottom: 80px;
}

.area-row {
  display: grid;
  grid-template-columns: 200px 1fr 52px;
  gap: 20px;
  align-items: center;
}

.area-row .bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.area-row .bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
}

.area-row .bar span.low {
  background: #d70015;
}

.area-row .bar span.mid {
  background: #f56300;
}

.area-row .pct {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recs {
  display: grid;
  gap: 0;
  margin: 0 0 80px;
  padding: 0;
  list-style: none;
  counter-reset: rec;
}

.recs li {
  position: relative;
  padding: 28px 0 28px 64px;
  border-top: 1px solid var(--line);
  counter-increment: rec;
}

.recs li::before {
  content: counter(rec);
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--line);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.recs h3 {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.recs p {
  margin: 0;
  color: var(--muted);
}

/* Den som gör testet beslutar sällan ensam: länk, mejl och utskrift för att visa fler */
.result-share {
  margin: 0 0 80px;
}

.result-share p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.result-share .share-status {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.result-cta {
  padding: 64px 48px;
  border-radius: 30px;
  background: var(--dark);
  color: var(--dark-ink);
  text-align: center;
}

.result-cta h3 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.result-cta p {
  max-width: 460px;
  margin: 16px auto 32px;
  color: var(--dark-muted);
}

.result-cta .link-more {
  color: var(--dark-link);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 640px) {
  .area-row {
    grid-template-columns: 1fr 52px;
    gap: 10px 16px;
  }

  .area-row .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .result-cta {
    padding: 48px 24px;
  }
}

/* ---------- Checklistan ---------- */

.checklist-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.checklist-count {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.check-group {
  margin: 64px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-item input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.check-item input:checked {
  box-shadow: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.3s var(--ease);
}

.check-item span span {
  color: var(--muted);
  font-size: 15px;
}

.check-item label:has(input:checked) strong {
  color: var(--faint);
}

.checklist-cta {
  margin-top: 96px;
}

/* ---------- Utskrift ---------- */

@media print {
  .site-header,
  .site-footer,
  .checklist-tools .btn,
  .checklist-cta,
  .no-print {
    display: none !important;
  }

  .page-hero {
    padding: 0 0 16px;
    text-align: left;
  }

  .page-hero h1 {
    font-size: 28pt;
  }

  .page-body {
    padding: 0;
  }

  .check-item label {
    padding: 8px 0;
    break-inside: avoid;
  }

  .check-item input {
    box-shadow: inset 0 0 0 1.5px #999;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* AI-redo-testet: bara resultatet, med staplarna i färg */
  #test-form,
  .result-share,
  .result-cta {
    display: none !important;
  }

  .result-score {
    padding: 8px 0 32px;
  }

  .areas,
  .recs {
    margin-bottom: 32px;
  }

  .area-row,
  .recs li {
    break-inside: avoid;
  }

  .area-row .bar,
  .area-row .bar span,
  .score-ring circle {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .result::after {
    content: "Boostline · AI-redo-testet · Kunskapen först. AI sedan. Människan alltid.";
    display: block;
    padding-top: 16px;
    border-top: 1px solid #ccc;
    color: #6e6e73;
    font-size: 9pt;
  }
}

/* =====================================================================
   Scrollstyrda effekter
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@supports (animation-timeline: view()) {
  /* --- Effekter utan rörelse. De körs alltid, även när besökaren har bett om
     mindre rörelse: färg, genomskinlighet, siffror och sektioner som står still. --- */

  /* Tunn linje i den varma tonen under menyn som visar hur långt man har scrollat */
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--warm);
    transform-origin: 0 50%;
    animation: progress linear both;
    animation-timeline: scroll(root);
  }

  /* Påståendet: sektionen står still och orden tänds ett i taget.
     Sträckorna är korta med flit: scrollkapning tröttar ut besökare som letar efter något (NN/g). */
  .statement {
    height: 170vh;
    padding: 0;
    view-timeline-name: --statement;
  }

  .statement-sticky {
    position: sticky;
    top: 0;
    padding-top: var(--header);
    height: 100vh;
    height: 100svh;
  }

  .statement .w {
    color: #d2d2d7;
    animation: word-on linear both;
    animation-timeline: --statement;
  }

  /* Ordet "kunskapsbas" tänds i den varma tonen */
  .statement .w-accent {
    background: var(--warm);
    -webkit-background-clip: text;
    background-clip: text;
    animation-name: word-on-accent;
  }

  /* Case: sektionen står still medan sekunderna räknas ner från 55 till 5 */
  .count-static {
    display: none;
  }

  .countdown {
    height: 190vh;
    padding: 0;
    view-timeline-name: --countdown;
  }

  .countdown-sticky {
    position: sticky;
    top: 0;
    padding-top: var(--header);
    height: 100vh;
    height: 100svh;
  }

  .countdown-num {
    counter-reset: sec var(--sec);
    animation: count-down linear both;
    animation-timeline: --countdown;
    animation-range: contain 12% contain 72%;
  }

  .countdown-num::before {
    content: counter(sec);
  }

  .countdown-bar span {
    width: 100%;
    animation: shrink linear both;
    animation-timeline: --countdown;
    animation-range: contain 12% contain 72%;
  }

  .countdown-caption {
    animation: fade-in linear both;
    animation-timeline: --countdown;
    animation-range: contain 70% contain 86%;
  }

  /* --- Effekter med rörelse. Bara när besökaren inte har bett om mindre rörelse. --- */
  @media (prefers-reduced-motion: no-preference) {
    /* Hero: rubriken drar sig undan och krymper, utan oskärpa */
    .hero-inner {
      animation: hero-out linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 75%;
    }

    .hero-foot {
      animation: fade-out linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 20%;
    }

    .countdown-caption {
      animation-name: fade-up;
    }

    /* KLOK: sektionen står still och korten glider i sidled */
    .klok-section {
      height: 300vh;
      padding: 0;
      view-timeline-name: --klok;
    }

    .klok-pin {
      position: sticky;
      top: 0;
      padding-top: var(--header);
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100vh;
      height: 100svh;
      overflow: hidden;
    }

    .klok-head {
      margin-bottom: 32px;
    }

    .klok-head .title {
      font-size: clamp(36px, min(6.4vw, 8vh), 80px);
    }

    .klok-card {
      flex: 0 0 min(82vw, 400px);
      min-height: min(520px, 52vh);
    }

    .klok-letter {
      font-size: clamp(88px, 14vh, 180px);
      padding-bottom: 28px;
    }

    .klok-track {
      display: flex;
      width: max-content;
      max-width: none;
      margin: 0;
      padding: 0 max(22px, calc((100vw - 980px) / 2));
      overflow: visible;
      scroll-snap-type: none;
      animation: slide-x linear both;
      animation-timeline: --klok;
      animation-range: contain 4% contain 96%;
    }

    .klok-progress {
      display: block;
    }

    .klok-progress span {
      animation: progress linear both;
      animation-timeline: --klok;
      animation-range: contain 4% contain 96%;
    }

    /* Kontakt: den stora rubriken zoomar in */
    .contact-title {
      animation: zoom-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

.klok-progress {
  display: none;
  width: min(240px, 50vw);
  height: 2px;
  margin: 48px auto 0;
  background: rgba(255, 255, 255, 0.16);
}

.klok-progress span {
  display: block;
  height: 100%;
  background: var(--dark-ink);
  transform-origin: 0 50%;
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-out {
  to {
    opacity: 0;
    transform: translateY(-5vh) scale(0.94);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes word-on {
  to {
    color: var(--ink);
  }
}

@keyframes word-on-accent {
  to {
    color: transparent;
  }
}

@keyframes count-down {
  from {
    --sec: 55;
  }
  to {
    --sec: 5;
  }
}

@keyframes slide-x {
  to {
    transform: translateX(calc(-100% + 100vw));
  }
}

@keyframes shrink {
  to {
    width: 9%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0.15;
    transform: scale(0.84);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Snabb övergång mellan sidorna (webbläsare med stöd för view transitions) */
::view-transition-old(root) {
  animation: 0.22s var(--ease) both vt-out;
}

::view-transition-new(root) {
  animation: 0.45s var(--ease-out) both vt-in;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* =====================================================================
   Intoningar
   main.js lägger till is-in när ett block kommer in i bild. Blocket glider upp
   en kort sträcka med en distinkt kurva, en gång. Utan JavaScript syns allt direkt.
   ===================================================================== */

.js .reveal {
  opacity: 0;
}

.js .reveal.is-in {
  opacity: 1;
  animation: reveal-in 0.9s var(--ease-out) var(--rd, 0ms) backwards;
}

.reveal-2 {
  --rd: 90ms;
}

.reveal-3 {
  --rd: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal.is-in {
    animation-name: fade-in;
    animation-duration: 0.6s;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media print {
  .js .reveal {
    opacity: 1 !important;
    animation: none !important;
  }
}
