/* Familjen Grotesk (SIL OFL), lagrad lokalt – inga anrop till Google */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Light (SIL OFL) för rubriker, lagrad lokalt */
@font-face {
  font-family: "Cormorant";
  src: url("fonts/cormorant-light-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --text: #f2f2f2;
  --text-2: #9b9b9b;
  --text-3: #878787;
  --line: #242424;
  --line-2: #3a3a3a;
  --max: 1200px;
  --narrow: 760px;
  --head: 64px;
  --font: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-logo: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--head) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: -.005em;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

/* ---------- Meny ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(11, 11, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head); }
.logo { font-family: var(--font-logo); font-weight: 600; letter-spacing: .32em; font-size: 16px; text-decoration: none; }
.nav { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button { font: inherit; font-family: var(--font-head); font-weight: 300; font-size: 20px; line-height: 1; letter-spacing: 0; color: var(--text-2); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--text); }
.has-drop { position: relative; }
.has-drop button::after { content: " \25BE"; font-family: var(--font); font-size: 10px; vertical-align: 2px; }
.has-drop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.drop { display: none; position: absolute; top: 100%; right: 0; min-width: 200px; list-style: none; margin: 10px 0 0; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); }
.drop a { display: block; padding: 10px 20px; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { display: block; }
.menu-btn { display: none; background: none; border: 0; padding: 6px 0; color: var(--text); font: inherit; font-family: var(--font-head); font-weight: 300; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Typografi ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; margin: 0; }
.display { font-size: clamp(76px, 12vw, 164px); line-height: .9; letter-spacing: -.02em; }
.title { font-size: clamp(48px, 7vw, 94px); line-height: 1; letter-spacing: -.015em; max-width: 15ch; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
h3 { font-size: clamp(28px, 2.7vw, 34px); line-height: 1.12; letter-spacing: -.005em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.label { font-size: 13px; color: var(--text-3); margin: 0 0 16px; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Knappar ---------- */
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; font-size: 15px; text-decoration: none; color: var(--text); border: 1px solid var(--line-2); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { border-color: var(--text); }
.btn-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover { background: transparent; color: var(--text); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.center .btns, .hero .btns { justify-content: center; }
.arrow { text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .15s; }
.arrow::after { content: " \2192"; }
.arrow:hover { border-color: var(--text); }

/* ---------- Sektioner ---------- */
.hero { min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 32px 120px; }
.hero .lead { margin: 28px auto 40px; }
.section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { max-width: 18ch; margin: 0 auto; }
.statement { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 32px; }
.page-head { padding: 120px 0 88px; text-align: center; }
.page-head .lead { margin: 24px auto 0; }
.page-head .btns { justify-content: center; margin-top: 36px; }

/* Lista med tunna linjer */
.list { list-style: none; margin: 0 auto; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.list strong { font-weight: 400; font-size: 22px; letter-spacing: -.015em; white-space: nowrap; }
.list span { color: var(--text-2); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; grid-template-columns: 64px 220px 1fr; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 300; font-size: 24px; color: var(--text-3); font-variant-numeric: lining-nums; }

/* Pelare */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillars.two { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.pillar { border-top: 1px solid var(--line-2); padding-top: 24px; }
.pillar .label { margin-bottom: 12px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--text-2); max-width: 40ch; }
.pillar p.label { color: var(--text-3); }

/* Statistik */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { border-top: 1px solid var(--line-2); padding-top: 24px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 300; font-size: clamp(56px, 7vw, 100px); line-height: 1; letter-spacing: -.01em; margin-bottom: 16px; font-variant-numeric: lining-nums; }
.stat p { margin: 0; color: var(--text-2); max-width: 32ch; }
.bignum { font-family: var(--font-head); font-weight: 300; font-size: clamp(96px, 17vw, 230px); line-height: .9; letter-spacing: -.02em; margin: 0; font-variant-numeric: lining-nums; }
.source { font-size: 13px; color: var(--text-3); margin: 56px auto 0; text-align: center; max-width: 80ch; }
.source a { color: var(--text-2); }

/* Resultat */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.result { border-top: 1px solid var(--line-2); padding-top: 24px; }
.result b { display: flex; align-items: center; gap: 14px; font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; white-space: nowrap; }
.result p { margin: 8px 0 0; color: var(--text-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.g { background: #22a55c; } .dot.y { background: #e6b800; } .dot.r { background: #dc3a33; }

/* Frågor */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 24px 0; }
summary { cursor: pointer; font-size: 20px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--text-2); max-width: 62ch; }

/* Formulär */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
form .full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--text-3); display: grid; gap: 4px; transition: color .15s; }
label:focus-within { color: var(--text-2); }
label em { font-style: normal; color: var(--text-3); }
input, textarea { font: inherit; font-size: 18px; color: var(--text); caret-color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0; transition: border-color .15s; }
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #6e6e6e; }
input:hover, textarea:hover { border-bottom-color: var(--text-3); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--text); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--bg) inset; transition: background-color 9999s; }

/* Val av typ av plats */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { font-size: 13px; color: var(--text-3); padding: 0; margin-bottom: 14px; }
.choices .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-block; gap: 0; cursor: pointer; position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choices span { display: inline-block; padding: 11px 18px; font-size: 15px; color: var(--text-2); border: 1px solid var(--line-2); transition: background .15s, color .15s, border-color .15s; }
.choices label:hover span { border-color: var(--text-2); color: var(--text); }
.choices input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.choices input:focus-visible + span { outline: 1px solid var(--text); outline-offset: 3px; }

.form-end { margin-top: 8px; }
button[type="submit"] { height: 50px; padding: 0 34px; font: inherit; font-size: 15px; cursor: pointer; background: var(--text); color: var(--bg); border: 1px solid var(--text); transition: background .15s, color .15s; }
button[type="submit"]::after { content: " \2192"; }
button[type="submit"]:hover { background: transparent; color: var(--text); }

/* Nästa-länk */
.next { border-top: 1px solid var(--line); padding: 64px 0 120px; text-align: center; }
.next a { font-family: var(--font-head); font-weight: 300; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.01em; text-decoration: none; }
.next a::after { content: " \2192"; }
.next a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* Sidfot */
.site-footer { border-top: 1px solid var(--line); padding: 88px 0 36px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px 40px; }
.footer-brand .logo { font-size: 22px; }
.footer-brand p { margin: 18px 0 0; color: var(--text-3); font-size: 14px; max-width: 26ch; }
.footer-col .label { margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; transition: color .15s; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 88px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* Mjuk inglidning när man skrollar (bara när JS fungerar, se tidigt.js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tangentbord: tydlig markering och hopplänk */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 15px; }
.skip:focus { left: 16px; }

/* Mobil */
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: var(--head); left: 0; right: 0; height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); overflow-y: auto; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 24px 22px 40px; }
  .nav.open { display: flex; }
  .nav > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav > li.has-drop { border-bottom: 0; }
  .nav a, .nav button { font-family: var(--font-head); font-weight: 300; font-size: 26px; line-height: 1.1; letter-spacing: 0; padding: 14px 0; display: block; color: var(--text); }
  .drop { display: block; position: static; border: 0; background: none; margin: 0; padding: 0; }
  .drop li { border-bottom: 1px solid var(--line); }
  .drop a { padding: 14px 0; }
  .has-drop button { display: none; }
  .pillars, .pillars.two, .stats, .results, form { grid-template-columns: 1fr; }
  .list li { grid-template-columns: 1fr; gap: 4px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 4px 0; }
  .steps li span { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; margin-top: 56px; }
  .section { padding: 96px 0; }
  .page-head { padding: 88px 0 56px; }
  .statement { min-height: 0; padding: 120px 22px; }
}
