@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3f2ec;
  --paper-2: #ebe9e0;
  --card: #fbfaf6;
  --ink: #131815;
  --ink-2: #48524c;
  --ink-3: #78827c;
  --line: #dcdace;
  --pine: #1d6a4a;
  --pine-deep: #0f4530;
  --mint: #62e3a4;
  --amber: #f4b550;
  --amber-ink: #99610f;
  --stage: #0c1310;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1180px;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ── Sidhuvud ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 242, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand svg { color: var(--pine); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .top-link { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color 0.15s; }
.nav a:hover, .top-link:hover { color: var(--ink); }
.top-cta { display: flex; align-items: center; gap: 18px; margin-left: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 550; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--ink);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-3); color: var(--ink); }
.btn-light { background: #fff; color: var(--pine-deep); border-color: #fff; font-family: var(--mono); font-size: 15.5px; overflow-wrap: anywhere; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--stage); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(19, 24, 21, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 24, 21, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 78% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); flex: none; }
h1 {
  font-size: clamp(2.45rem, 6.3vw, 4.9rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 620;
  max-width: 15.5ch; text-wrap: balance;
}
.lead { margin-top: 28px; max-width: 58ch; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── Den rörliga bilden ───────────────────────────────────────────────────── */
.stage-sec { padding: 0 0 28px; }
.stage {
  position: relative;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(46, 143, 99, 0.34), transparent 62%),
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--stage);
  color: #e8efea;
  border-radius: 28px;
  padding: 22px 24px 20px;
  box-shadow: 0 30px 70px -40px rgba(12, 19, 16, 0.6);
  overflow: hidden;
}
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip-live, .stage-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 13px;
  color: #c3cfc8; background: rgba(255, 255, 255, 0.03); white-space: nowrap;
}
.chip-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(98, 227, 164, 0.16); }
.stage-btn { cursor: pointer; font: inherit; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.15s, color 0.15s; }
.stage-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.stage-btn[hidden] { display: none; }

.talk { margin: 22px 4px 6px; display: grid; gap: 8px; max-width: 760px; }
.talk-row { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: baseline; }
.talk-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a9a92; white-space: nowrap; }
.talk-q { font-size: clamp(1.05rem, 1.9vw, 1.42rem); letter-spacing: -0.015em; font-weight: 520; color: #fff; min-height: 1.5em; }
.talk-a { font-size: 15.5px; color: var(--mint); min-height: 1.6em; transition: color 0.2s; }
.talk-a[data-state="work"] { color: #8a9a92; }
.talk-a[data-state="wait"] { color: var(--amber); }
.talk-a[data-state="work"]::before, .talk-a[data-state="wait"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 1px; border-radius: 50%;
  background: currentColor; animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.flow-box { margin-top: 4px; }
.flow { width: 100%; height: auto; overflow: visible; }
.flow text { font-family: var(--sans); }
.flow .t-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; fill: #8a9a92; }
.flow-move { will-change: transform; }
.flow-m { display: none; max-width: 520px; margin: 0 auto; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 4px 0; font-size: 13.5px; color: #a9b7b0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lg-q { background: #fff; }
.lg-a { background: var(--mint); }
.lg-w { background: var(--amber); }
.stage-note { margin: 12px 6px 0; font-size: 13px; color: var(--ink-3); }

/* ── Löpande exempelfrågor ────────────────────────────────────────────────── */
.ticker { overflow: hidden; padding: 30px 0 10px; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 12px; padding-right: 12px; }
.ticker li { white-space: nowrap; font-size: 15px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.ticker li::before { content: "»"; color: var(--pine); margin-right: 2px; }
.ticker li::after { content: "«"; color: var(--pine); margin-left: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Avsnitt ──────────────────────────────────────────────────────────────── */
.sec { padding: 104px 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.kicker { margin-bottom: 16px; color: var(--pine); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.038em; font-weight: 620; text-wrap: balance; }
.sec-head p:not(.kicker) { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; font-weight: 620; line-height: 1.25; }

/* Verktygslistan */
.tools { display: grid; gap: 14px; }
.tool {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 36px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tool:hover { border-color: #c6c3b3; box-shadow: 0 22px 50px -36px rgba(19, 24, 21, 0.45); }
.tool h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; margin: 14px 0 12px; }
.tool-text { color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.status-live { color: var(--pine); }
.status-live i { border: 0; background: var(--pine); box-shadow: 0 0 0 4px rgba(29, 106, 74, 0.15); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 106, 74, 0.35); } 100% { box-shadow: 0 0 0 9px rgba(29, 106, 74, 0); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { font-size: 14px; font-weight: 520; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 13px; }
.tool-side { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; border-left: 1px solid var(--line); padding-left: 36px; }
.facts { display: grid; gap: 14px; }
.facts li { display: grid; gap: 1px; }
.facts b { font-weight: 620; font-size: 15.5px; }
.facts span { font-size: 14.5px; color: var(--ink-2); }
.tool-link { font-weight: 560; font-size: 15.5px; text-decoration: none; color: var(--pine); align-self: flex-start; border-bottom: 1px solid rgba(29, 106, 74, 0.3); padding-bottom: 2px; transition: border-color 0.15s; }
.tool-link:hover { border-bottom-color: var(--pine); }
.tool-next { background: transparent; border-style: dashed; }
.tool-next:hover { box-shadow: none; }
.tool-next h3 { color: var(--ink-2); }
.tool-next .tool-side { justify-content: flex-end; }

/* Nivåerna */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.level { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; border-top: 4px solid var(--c); }
.level-1 { --c: #2f9a6b; }
.level-2 { --c: #4f86c9; padding-top: 44px; }
.level-3 { --c: #d1912a; padding-top: 62px; }
.level-n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.level h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 8px 0 10px; }
.level p { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.levels-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; margin-top: 72px; }
.feature { border-top: 1px solid #cfccbd; padding-top: 20px; }
.feature-n { font-family: var(--mono); font-size: 12px; color: var(--pine); }
.feature h3 { margin: 10px 0 8px; }
.feature p { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }

/* Stegen */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 14px; }
.steps h3 { margin: 18px 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.steps p { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.addr { display: block; margin-top: 14px; font-family: var(--mono); font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; color: var(--pine-deep); }
.steps-note { margin-top: 26px; color: var(--ink-2); max-width: 70ch; }
.steps-note a { color: var(--pine); font-weight: 560; }

/* Kontakt */
.contact { padding: 0 0 96px; }
.contact-box {
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(98, 227, 164, 0.2), transparent 65%),
    var(--pine-deep);
  color: #fff; border-radius: 28px; padding: 64px 56px;
}
.contact-box .kicker { color: var(--mint); }
.contact-box h2 { max-width: 18ch; }
.contact-box p:not(.kicker) { margin: 18px 0 30px; color: #cfe3d8; font-size: 1.12rem; max-width: 46ch; }

/* Sidfot */
.foot { border-top: 1px solid var(--line); padding: 44px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-small { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 44ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.foot-nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { margin-top: 32px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 86ch; }

/* ── Mjuk inträdesrörelse (bara när skriptet har startat) ─────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Mindre skärmar ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .tool { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .tool-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .flow-d { display: none; }
  .flow-m { display: block; }
  .talk { margin: 22px auto 14px; max-width: 520px; }
  .legend { max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 12px; }
  .top-link { display: none; }
  .hero { padding: 52px 0 40px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 34px; }
  .stage { border-radius: 22px; padding: 16px 14px 16px; }
  .talk-row { grid-template-columns: 1fr; gap: 2px; }
  .talk-q { min-height: 3em; }
  .talk-a { min-height: 3.2em; }
  .hide-s { display: none; }
  .levels { grid-template-columns: 1fr; }
  .level-2, .level-3 { padding-top: 26px; }
  .features { grid-template-columns: 1fr; gap: 30px; margin-top: 52px; }
  .contact { padding-bottom: 64px; }
  .contact-box { padding: 40px 24px; border-radius: 22px; }
  .legend { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .status-live i, .talk-a::before { animation: none !important; }
  .ticker { overflow-x: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
