/* Agent 000. Mätt mot mercury.com (mörk helbildsfilm i hero, rubrik vikt 480, pillerknappar radie 32–40px)
   och de godkända Blue Star v6 / Kapningskoll v2 (film i helbild, stor typografi, lite text per yta). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); }
:root {
  --bg: #0b0c0c;
  --surface: #141615;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f2ec;
  --muted: #a4a69f;
  --accent: #cdf25c;
  --accent-ink: #141a02;
  --wrap: 1280px;
  --r: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.6vw, 7.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: rgba(244, 242, 236, 0.82); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.kicker { font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 10px 14px; z-index: 60; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.todo { background: #ffe14a; color: #1a1500; padding: 0 6px; border-radius: 4px; }

/* Knappar */
.btn {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #0b0c0c; text-decoration: none;
  border: 1px solid #fff; padding: 16px 28px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 1.02rem;
  cursor: pointer; transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn.line:hover { background: #fff; color: #0b0c0c; border-color: #fff; }
.btn.sm { padding: 11px 20px; font-size: 0.95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sidhuvud */
.top { position: absolute; inset: 0 0 auto 0; z-index: 30; padding: 26px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; gap: 5px; line-height: 1; }
.logo b { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; gap: 7px; }
.logo b span { font-weight: 300; letter-spacing: 0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.logo small { font-size: 0.74rem; font-weight: 400; letter-spacing: 0.01em; color: rgba(244, 242, 236, 0.78); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.plain { text-decoration: none; font-size: 1rem; opacity: 0.86; transition: opacity 0.3s var(--ease); }
.nav a.plain:hover, .nav a.plain[aria-current] { opacity: 1; }
.nav a.plain[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.burger { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font: inherit; padding: 9px 18px; border-radius: 999px; cursor: pointer; }

/* Film som yta */
.film { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.film > video, .film > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 6, 0.55) 0%, rgba(5, 6, 6, 0.15) 34%, rgba(5, 6, 6, 0.88) 100%); }

/* Hero */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 6, 0.78) 0%, rgba(5, 6, 6, 0.35) 48%, rgba(5, 6, 6, 0) 75%); }
.hero { min-height: 100dvh; display: flex; align-items: flex-end; padding: 150px 0 0; }
.hero .wrap { padding-bottom: 44px; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.hero .lede { margin-bottom: 28px; }
.ticks { list-style: none; margin: 56px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; gap: 12px 44px; flex-wrap: wrap; font-size: 1rem; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { width: 18px; height: 18px; color: var(--accent); }
.sub.hero { min-height: 74dvh; }
.sub.hero h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 15ch; }

/* Sektioner */
.sec { padding: clamp(90px, 12vw, 170px) 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 70px); }
.head h2 { max-width: 14ch; }
.head p { max-width: 38ch; color: var(--muted); font-size: 1.1rem; }

/* Tjänstepaneler: fyra höga filmer, den aktiva breddas */
.panels { display: flex; gap: 10px; height: min(78vh, 720px); }
.panel { position: relative; flex: 1; min-width: 0; border-radius: var(--r); overflow: hidden; background: #000; text-decoration: none; isolation: isolate; transition: flex 0.9s var(--ease); }
.panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 6, 0.2) 30%, rgba(5, 6, 6, 0.92) 100%); }
.panel.on { flex: 2.3; }
.panel.on video { opacity: 1; transform: scale(1.03); }
.panel .in { position: absolute; inset: auto 0 0 0; padding: 26px 24px; }
.panel .n { position: absolute; top: 26px; left: 30px; font-size: 0.95rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
.panel h3 { font-size: clamp(1.05rem, 1.35vw, 1.3rem); letter-spacing: -0.02em; hyphens: auto; overflow-wrap: anywhere; transition: font-size 0.9s var(--ease); }
.panel.on h3 { font-size: clamp(1.5rem, 2.3vw, 2.3rem); letter-spacing: -0.03em; }
.panel .more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.9s var(--ease), opacity 0.6s var(--ease); }
.panel .more > div { overflow: hidden; }
.panel.on .more { grid-template-rows: 1fr; opacity: 1; }
.panel .more p { margin-top: 14px; max-width: 40ch; color: rgba(244, 242, 236, 0.86); }
.panel .go { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.panel .go svg { width: 18px; height: 18px; color: var(--accent); }

/* Helbildsband */
.band { min-height: 92dvh; display: flex; align-items: center; padding: 120px 0; }
.band h2 { font-size: clamp(2.5rem, 6.6vw, 6.4rem); max-width: 13ch; }
.band .lede { margin: 30px 0 34px; }
.band.center { text-align: center; }
.band.center h2, .band.center .lede { margin-inline: auto; }
.band.center .btns { justify-content: center; }
.facts { list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid var(--line); padding-top: 26px; }
.facts b { display: block; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.facts span { color: rgba(244, 242, 236, 0.76); }

/* Så funkar det */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.split .media { position: sticky; top: 30px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.split .media video { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.steps p { color: var(--muted); margin-top: 10px; max-width: 42ch; }

/* Lista med rader (för vem, varför) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 30px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -0.03em; }
.rows span { color: var(--muted); max-width: 44ch; }

/* Tjänstesidans avsnitt */
.svc { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(50px, 7vw, 100px) 0; }
.svc:nth-of-type(even) .media { order: 2; }
.svc .media { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; background: #000; }
.svc .media video { width: 100%; height: 100%; object-fit: cover; }
.svc h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); margin-bottom: 18px; }
.svc ul { list-style: none; padding: 0; margin: 28px 0 32px; }
.svc li { padding: 15px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.svc li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 5px; }
.svc li b { font-weight: 500; display: block; }
.svc li span { color: var(--muted); font-size: 0.98rem; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 18px; max-width: 52ch; }

/* Frågor */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; color: var(--accent); transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 28px; max-width: 60ch; }

/* Formulär */
.formgrid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
form.f { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); }
form.f label { display: grid; gap: 8px; font-size: 0.95rem; color: var(--muted); }
form.f .full { grid-column: 1 / -1; }
form.f input, form.f select, form.f textarea { font: inherit; color: var(--text); background: #0b0c0c; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 14px 16px; width: 100%; transition: border-color 0.3s var(--ease); }
form.f input:focus, form.f select:focus, form.f textarea:focus { outline: none; border-color: var(--accent); }
form.f textarea { min-height: 130px; resize: vertical; }
form.f .ok { flex-direction: row; display: flex; gap: 12px; align-items: flex-start; }
form.f .ok input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
form.f .hp { position: absolute; left: -9999px; }
.status { grid-column: 1 / -1; min-height: 1.5em; }
.status.good { color: var(--accent); }
.status.bad { color: #ff8a6b; }
.info { list-style: none; padding: 0; margin: 34px 0 0; }
.info li { padding: 16px 0; border-top: 1px solid var(--line); }
.info small { display: block; color: var(--muted); font-size: 0.88rem; }

/* Löptext (integritetspolicy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 46px 0 14px; letter-spacing: -0.02em; }
.prose p, .prose li { color: #c9cbc4; margin-bottom: 14px; }

/* Sidfot */
.foot { border-top: 1px solid var(--line); padding: 80px 0 40px; }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h4 { margin: 0 0 16px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; opacity: 0.9; }
.foot a:hover { color: var(--accent); }
.foot .big { font-size: clamp(3.4rem, 15vw, 14rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; margin: 70px 0 30px; white-space: nowrap; }
.foot .big span { color: var(--accent); font-weight: 300; }
.foot .base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

/* Rörelse */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; background: #0b0c0c; flex-direction: column; justify-content: center; gap: 26px; font-size: 1.6rem; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); z-index: -1; }
  .nav a.plain { font-size: 1.7rem; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.on { flex: none; height: 300px; }
  .panel .more { grid-template-rows: 1fr; opacity: 1; }
  .panel video { opacity: 0.85; }
  .panel h3, .panel.on h3 { font-size: 1.6rem; }
  .hero::before { background: rgba(5, 6, 6, 0.35); }
  .split, .svc, .formgrid { grid-template-columns: 1fr; }
  .split .media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .svc:nth-of-type(even) .media { order: 0; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  form.f { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 64px 1fr; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
}
