/* ==========================================================
   Shortpass one-pager. Tokens först, sedan komponenter.
   Radie-regel: knappar = pill, ytor (tiles/kort/cookie) = 24px.
   ========================================================== */

@font-face {
  font-family: "Safiro";
  src: url("../assets/fonts/safiro-medium.woff2") format("woff2"),
       url("../assets/fonts/safiro-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palett 1 (default) */
  --accent: #3BD37A;
  --ink: #2A3247;
  --paper: #F6F7F9;
  --white: #FFFFFF;

  /* Härledda */
  --ink-2: color-mix(in oklab, var(--ink) 88%, black);      /* djupare mörk för fot/skuggor */
  --ink-soft: color-mix(in oklab, var(--ink) 70%, white);   /* brödtext på ljus */
  --line: color-mix(in oklab, var(--ink) 12%, var(--paper));
  --line-dark: color-mix(in oklab, var(--white) 14%, var(--ink));
  --accent-ink: var(--ink);                                  /* text på accent */
  --accent-soft: color-mix(in oklab, var(--accent) 18%, var(--paper));

  --font-display: "Safiro", "Archivo", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 24px;
  --nav-h: 72px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

html[data-palette="2"] {
  --accent: #D7FF3D;
  --ink: #1F2A0E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.measure { max-width: 22ch; }

.h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.02; }
.h2--poster { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem); letter-spacing: -0.03em; }
.h4 { font-size: 1.35rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin-top: 20px; }
.lead--light { color: color-mix(in oklab, var(--white) 78%, var(--ink)); }
.fineprint { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 0.01em; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--paper); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn--outline-light { color: var(--white); border-color: color-mix(in oklab, var(--white) 40%, transparent); }
.btn--outline-light:hover { border-color: var(--white); }
.btn--ghost-dark { color: var(--white); border-color: var(--line-dark); }
.btn--ghost-dark:hover { border-color: var(--white); }

/* ---------- Nav: transparent i toppen, flytande glasbar vid scroll ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: padding .35s var(--ease);
}
.nav__inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
  width: min(100%, var(--container)); margin-inline: auto;
  padding: 0; border-radius: 999px;
  transition: height .35s var(--ease), padding .35s var(--ease), background-color .35s, box-shadow .35s, color .35s;
}
.nav__brand { display: inline-flex; color: currentColor; }
.logo { height: 22px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-inline: auto; font-size: 0.95rem; font-weight: 500; }
.nav__links a {
  position: relative; padding: 6px 0;
  color: color-mix(in oklab, currentColor 78%, transparent); transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: currentColor; }
.nav__links a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav__links a::after { transition: none; } }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav .btn--ghost { color: currentColor; }
.nav .btn--ghost:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.nav .btn--primary { background: var(--white); color: var(--ink); }
.nav .btn--primary:hover { background: color-mix(in oklab, var(--white) 88%, var(--ink)); }
.nav .lang { color: color-mix(in oklab, currentColor 70%, transparent); }
.nav .lang:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.nav .lang [data-lang-opt].is-active { color: currentColor; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 999px; font-size: 1.4rem; align-items: center; justify-content: center; color: currentColor; }

/* Variant b: accentfärgad logga över hero, mörk när baren blir glas */
html[data-variant="b"] .nav:not(.is-scrolled):not(.is-open) .nav__brand { color: var(--accent); }
html[data-variant="b"] .footer .logo { color: var(--accent); }

/* Variant 2b: gul text på mörka knappar */
html[data-palette="2"][data-variant="b"] .btn--primary,
html[data-palette="2"][data-variant="b"] .nav.is-scrolled .btn--primary,
html[data-palette="2"][data-variant="b"] .nav__mobile-cta { color: var(--accent); }
html[data-palette="2"][data-variant="b"] .nav:not(.is-scrolled):not(.is-open) .btn--primary { background: var(--ink); color: var(--accent); }
html[data-palette="2"][data-variant="b"] .mock__btn.is-active { color: var(--accent); }

/* Scrollat läge: "liquid glass"-pill */
.nav.is-scrolled { padding-top: 12px; color: var(--ink); }
.nav.is-scrolled .nav__inner {
  height: 60px; padding: 0 10px 0 22px;
  background: color-mix(in oklab, var(--white) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 12px 40px -12px color-mix(in oklab, var(--ink) 30%, transparent);
}
.nav.is-scrolled .btn--primary { background: var(--ink); color: var(--white); }
.nav.is-scrolled .btn--primary:hover { background: var(--ink-2); }

/* Mobilmeny som glaspanel under baren */
.nav__mobile {
  display: none; flex-direction: column;
  width: min(100%, var(--container)); margin: 8px auto 0; padding: 8px 20px 12px;
  border-radius: 28px; color: var(--ink);
  background: color-mix(in oklab, var(--white) 80%, transparent);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 12px 40px -12px color-mix(in oklab, var(--ink) 35%, transparent);
}
.nav__mobile a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.nav__mobile a:last-of-type:not(.btn) { border-bottom: 0; }
.nav__mobile-cta { margin: 16px 0 6px; border-bottom: 0; background: var(--ink); color: var(--white); height: 48px; }
.nav.is-open { padding-top: 12px; color: var(--ink); }
.nav.is-open .nav__inner { height: 60px; padding: 0 10px 0 22px; background: color-mix(in oklab, var(--white) 80%, transparent); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
.nav.is-open .nav__mobile { display: flex; }

/* Språkväxlare */
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.lang:hover { background: var(--paper); }
.lang [data-lang-opt] { transition: color .2s; }
.lang [data-lang-opt].is-active { color: var(--ink); font-weight: 500; }
.lang__sep { opacity: .4; }
.lang--footer { color: color-mix(in oklab, var(--white) 55%, var(--ink)); padding-inline: 0; margin-top: 20px; }
.lang--footer:hover { background: transparent; }
.lang--footer [data-lang-opt].is-active { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; padding-top: var(--nav-h);
  display: flex; align-items: flex-end;
  background: var(--ink); color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.8);
  mix-blend-mode: luminosity; opacity: .55;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, color-mix(in oklab, var(--ink) 70%, transparent) 45%, transparent 75%),
    linear-gradient(0deg, var(--ink) 0%, transparent 45%);
}
.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; padding: 96px 0 72px; }
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.8rem);
  line-height: 1; letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero__title::first-line { color: var(--accent); }
.hero__sub { margin-top: 28px; max-width: 48ch; font-size: 1.2rem; color: color-mix(in oklab, var(--white) 80%, var(--ink)); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Textlänk med pil, används för Boka demo i textblocken */
.textlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 500; color: var(--ink); position: relative; padding-bottom: 4px;
}
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.textlink:hover::after { transform: scaleX(1); }
.textlink::before { content: "→"; order: 2; transition: transform .3s var(--ease); }
.textlink:hover::before { transform: translateX(4px); }
.textlink--light { color: var(--white); }
.finance .textlink { margin-top: 24px; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.dots--section { z-index: -1; opacity: .8; }

/* Tiles (fyra delar) */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px;
}
.tile {
  position: relative; border-radius: var(--radius); padding: 36px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  overflow: hidden;
}
.tile p { max-width: 40ch; }
.tile__icon { font-size: 2rem; margin-bottom: auto; }
.tile__title { font-size: 1.9rem; letter-spacing: -0.02em; }
.tile--ink { background: var(--ink); color: var(--white); }
.tile--ink p { color: color-mix(in oklab, var(--white) 78%, var(--ink)); }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--paper { background: var(--paper); }
.tile--tint { background: color-mix(in oklab, var(--accent) 22%, var(--white)); color: var(--ink); }
.tile--tint p { color: var(--ink-soft); }
.tile--paper p { color: var(--ink-soft); }
.tile--photo p { color: color-mix(in oklab, var(--white) 80%, var(--ink)); }
.tile--photo { padding: 0; color: var(--white); background: var(--ink); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1) contrast(1.1); opacity: .55; mix-blend-mode: luminosity; }
.tile--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 32%, color-mix(in oklab, var(--ink) 70%, transparent) 62%, transparent); }
.tile--photo .tile__over { position: relative; padding: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }

/* Split med sticky vänsterkolumn (så fungerar det) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
html[data-palette="2"] .step__num { color: var(--ink); }
.step p { color: var(--ink-soft); margin-top: 10px; max-width: 46ch; }

/* Bonus-sektion */
.bonus__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.bonus__copy .lead { max-width: 44ch; }

/* Minikomponent: bonusregel */
.rule {
  background: color-mix(in oklab, var(--white) 6%, var(--ink));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 28px;
  max-width: 460px; justify-self: end; width: 100%;
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--ink-2) 80%, transparent);
  position: relative;
}
.rule__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rule__name { font-family: var(--font-display); font-size: 1.3rem; }
.rule__meta { font-size: 0.9rem; color: color-mix(in oklab, var(--white) 60%, var(--ink)); margin-top: 4px; }
.rule__pos::before { content: "  "; white-space: pre; }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-dark); color: color-mix(in oklab, var(--white) 75%, var(--ink));
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip.is-triggered { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.is-approved { background: var(--white); color: var(--ink); border-color: var(--white); }
.rule__progress { margin-top: 28px; }
.rule__count { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rule__of { font-size: 1.4rem; color: color-mix(in oklab, var(--white) 50%, var(--ink)); margin-left: 4px; }
.rule__bar { height: 4px; border-radius: 999px; background: var(--line-dark); margin-top: 14px; overflow: hidden; }
.rule__bar span { display: block; height: 100%; width: var(--p); background: var(--accent); transition: width .9s var(--ease); }
.rule__label { font-size: 0.9rem; color: color-mix(in oklab, var(--white) 60%, var(--ink)); margin-top: 10px; }
.rule__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.rule__amount { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.rule__actions { display: flex; gap: 8px; }
.rule__example { position: absolute; top: -12px; right: 24px; background: var(--ink); border: 1px solid var(--line-dark); padding: 2px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in oklab, var(--white) 60%, var(--ink)); }

/* Ekonomi */
.finance { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.kpis { display: grid; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.kpi { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kpi dt { color: var(--ink-soft); font-size: 0.95rem; }
.kpi dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance .fineprint { margin-top: 12px; }
.chart { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 28px; }
.chart__legend { display: flex; gap: 20px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.chart__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.chart__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.chart__swatch--bar { background: var(--ink); }
.chart__swatch--line { background: var(--accent); height: 3px; border-radius: 999px; }
html[data-palette="2"] .chart__swatch--line { background: var(--ink); opacity: .5; }
.chart__svg { width: 100%; height: auto; display: block; }
.chart__svg .bar { fill: var(--ink); opacity: .9; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.chart__svg.is-in .bar { transform: scaleY(1); }
.chart__svg .line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.chart__svg.is-in .line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .chart__svg .bar, .chart__svg .line { transition: none; transform: none; stroke-dashoffset: 0; } }
.chart__svg .bar--over { fill: var(--accent); }
html[data-palette="2"] .chart__svg .bar--over { fill: color-mix(in oklab, var(--accent) 70%, var(--ink)); }
.chart__svg .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html[data-palette="2"] .chart__svg .line { stroke: var(--ink); opacity: .55; }
.chart__svg .grid { stroke: var(--line); stroke-width: 1; }
.chart__svg .tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-soft); }
.chart figcaption { margin-top: 12px; }

/* Citat */
.quotes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.quote { margin: 0; padding-top: 28px; border-top: 2px solid var(--ink); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.quote figcaption { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.quote__role { color: var(--ink-soft); }
.quote__club { font-weight: 600; }
@media (max-width: 720px) { .quotes__grid { grid-template-columns: 1fr; gap: 40px; } }

/* Klubbledningen: horisontell scroll-snap */
.roles {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: 16px; margin-top: 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.roles::-webkit-scrollbar { display: none; }
.role { scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 28px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.role p { color: var(--ink-soft); font-size: 0.98rem; }
.trust { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trust i { font-size: 1.4rem; color: var(--ink); flex: none; }

/* Om oss (grundarna) */
.about { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 1.15rem; margin-top: 24px; max-width: 52ch; }
.about__text p + p { margin-top: 16px; }
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; filter: grayscale(1) contrast(1.05); opacity: .75; mix-blend-mode: luminosity; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--ink) 80%, transparent)); }

/* Pris */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.plan--featured { background: var(--ink); color: var(--white); }
.plan__name { font-size: 1.5rem; }
.plan__who { font-size: 0.92rem; color: var(--ink-soft); }
.plan--featured .plan__who { color: color-mix(in oklab, var(--white) 65%, var(--ink)); }
.plan__price { margin-top: 24px; display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--ink-soft); }
.plan--featured .plan__unit { color: color-mix(in oklab, var(--white) 65%, var(--ink)); }
.plan__list { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--ink-soft); }
.plan--featured .plan__list li { color: color-mix(in oklab, var(--white) 82%, var(--ink)); }
.plan__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-top: 9px; }
.plan .btn { align-self: flex-start; }
.plans__note { margin-top: 20px; }
#pris .h2 { max-width: 20ch; }
@media (max-width: 1024px) { .plans { grid-template-columns: 1fr; } }

/* CTA + kontaktformulär */
.cta { position: relative; isolation: isolate; background: var(--paper); }
.cta__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.cta .h2 { max-width: 14ch; }
.cta__mail { display: inline-block; margin-top: 28px; font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cta__mail:hover { color: var(--ink); border-color: var(--ink); }
.form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: 0 30px 60px -40px color-mix(in oklab, var(--ink) 40%, transparent); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid color-mix(in oklab, var(--ink) 22%, var(--white)); border-radius: 14px;
  padding: 12px 14px; height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 45%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--ink) 45%, var(--white)); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C2410C; }
.field__help { font-size: 0.82rem; color: var(--ink-soft); }
.field__error { font-size: 0.82rem; color: #C2410C; display: none; }
.field.is-invalid .field__error { display: block; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form__consent { font-size: 0.82rem; color: var(--ink-soft); max-width: 40ch; }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__success { display: none; text-align: left; padding: 8px 0; }
.form__success i { font-size: 2.4rem; color: var(--ink); }
.form__success h3 { margin-top: 12px; font-size: 1.6rem; }
.form__success p { color: var(--ink-soft); margin-top: 8px; }
.form.is-sent form { display: none; }
.form.is-sent .form__success { display: block; }


/* ---------- Sidfot ---------- */
.footer { background: var(--ink); color: color-mix(in oklab, var(--white) 70%, var(--ink)); padding: 72px 0 32px; }
.footer .logo { color: var(--white); height: 20px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 48px; }
.footer__brand p { margin-top: 20px; max-width: 34ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer__col h3 { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--white); margin-bottom: 6px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__addr { line-height: 1.6; margin-top: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  width: min(440px, calc(100% - 40px));
  background: #1B1B1B; color: #F2F2F2;
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  animation: cookie-in .5s var(--ease) both;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie__title { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; letter-spacing: 0; }
.cookie__text { margin-top: 14px; font-size: 0.98rem; line-height: 1.5; color: #D0D0D0; }
.cookie__text a, .cookie__settings { color: #D0D0D0; text-decoration: underline; text-underline-offset: 3px; }
.cookie__settings { display: inline-block; margin-top: 16px; font-size: 0.98rem; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.btn--cookie-outline { height: 52px; border-radius: 14px; border-color: #5A5A5A; color: #F2F2F2; font-weight: 600; }
.btn--cookie-outline:hover { border-color: #F2F2F2; }
.btn--cookie-solid { height: 52px; border-radius: 14px; background: #FFFFFF; color: #111111; font-weight: 600; }
.btn--cookie-solid:hover { background: #E8E8E8; }

.cookie__text--small { font-size: 0.88rem; margin-top: 18px; }

/* Cookie-inställningar (dialog) */
.modal { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--ink) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__card {
  position: relative; width: min(520px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  background: #1B1B1B; color: #F2F2F2; border-radius: var(--radius); padding: 28px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
  animation: cookie-in .35s var(--ease) both;
}
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal__close { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #D0D0D0; }
.modal__close:hover { background: #2A2A2A; color: #FFFFFF; }
.prefs { margin-top: 20px; border-top: 1px solid #333; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #333; cursor: pointer; }
.pref__name { display: block; font-weight: 600; }
.pref__desc { display: block; font-size: 0.88rem; color: #A9A9A9; margin-top: 2px; }
.pref input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #444; position: relative; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; transition: transform .2s var(--ease); }
.pref input:checked + .switch { background: var(--accent); }
.pref input:checked + .switch::after { transform: translateX(18px); }
.pref input:disabled + .switch { opacity: .55; }
.pref input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Juridiska sidor */
.nav--solid { color: var(--ink); }
.page { padding: 140px 0 96px; }
.page__inner { max-width: 72ch; }
.page h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.02; }
.page__meta { margin-top: 20px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 16px; flex-wrap: wrap; }
.page__draft { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 0.82rem; color: var(--ink); }
.page__toc { margin: 40px 0 0; padding: 24px 28px; background: var(--paper); border-radius: 20px; list-style: none; columns: 2; column-gap: 32px; font-size: 0.95rem; }
.page__toc li { break-inside: avoid; padding: 4px 0; }
.page__toc a { color: var(--ink-soft); }
.page__toc a:hover { color: var(--ink); }
.page article { display: none; }
.page article.is-active { display: block; }
.page h2 { font-size: 1.6rem; margin-top: 56px; scroll-margin-top: 110px; }
.page h3 { font-size: 1.15rem; margin-top: 28px; }
.page p, .page li { color: var(--ink-soft); margin-top: 14px; max-width: 68ch; }
.page ul { padding-left: 22px; }
.page li { margin-top: 8px; }
.page table { border-collapse: collapse; width: 100%; margin-top: 16px; font-size: 0.92rem; }
.page th, .page td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.page th { color: var(--ink); font-weight: 600; }
.page__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 56px; color: var(--ink); font-weight: 500; }
.page__back:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .page { padding-top: 110px; } .page__toc { columns: 1; } }

/* ---------- Mockup-kontroller ---------- */
.mock {
  position: fixed; z-index: 70; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.25);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.mock__btn { min-width: 30px; padding: 0 8px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); }
.mock__btn:hover { background: var(--paper); }
.mock__btn.is-active { background: var(--ink); color: var(--white); }
.mock__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.mock__label { margin-right: 6px; }

/* ---------- Scroll-reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions .btn--ghost { display: none; }
  .nav { padding: 0 12px; }
  .nav.is-scrolled, .nav.is-open { padding-top: 8px; }
  .bonus__inner, .finance, .split, .about, .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .split__aside { position: static; }
  .rule { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__actions .btn--primary { display: none; }
  .hero__inner { padding: 96px 0 56px; }
  .hero__title { max-width: 12ch; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 280px; padding: 28px; }
  .tile--photo .tile__over { padding: 28px; }
  .step { grid-template-columns: 64px 1fr; gap: 12px; padding: 28px 0; }
  .step__num { font-size: 2.6rem; }
  .trust { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 24px; }
  .mock { left: 12px; bottom: 12px; }
}

/* Mobil: prickarna får inte konkurrera med texten */
@media (max-width: 720px) {
  .hero .dots { opacity: .45; }
}

/* Rullista: egen chevron i linje med fältets innermarginal */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256' fill='none' stroke='%232A3247' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'><polyline points='208 96 128 176 48 96'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
