/* ══════════════════════════════════════════════════════════
   Reel Estate · Borettslag — landingsside
   Lys modus. Selvhostet font. Ingen eksterne kall.
   ══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farger */
  --ink: #14211b;
  --forest: #12362a;
  --forest-2: #0b281e;
  --green: #2b6a50;
  --green-600: #20523e;
  --green-tint: #e3ede7;
  --cream: #f7f4ed;
  --sand: #ece7da;
  --paper: #ffffff;
  --clay: #c2673c;
  --clay-600: #a9522c;
  --clay-tint: #f8eae1;
  --muted: #56675e;
  --line: #ded8c9;
  --line-soft: #e9e4d7;

  /* Form */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(18, 54, 42, 0.06);
  --shadow: 0 16px 40px -18px rgba(18, 54, 42, 0.28);
  --shadow-lg: 0 40px 80px -32px rgba(11, 40, 30, 0.45);

  /* Mål */
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;

  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-600); }

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-sm);
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Knapper ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -8px rgba(43, 106, 80, 0.8); }
.btn-primary:hover { background: var(--green-600); color: #fff; }

.btn-accent { background: var(--clay); color: #fff; box-shadow: 0 6px 20px -8px rgba(194, 103, 60, 0.9); }
.btn-accent:hover { background: var(--clay-600); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--green); color: var(--ink); }

.btn-quiet { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.0625rem; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(18, 54, 42, 0.4);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
  margin-right: auto;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 0.5rem; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; color: var(--forest); }
.brand-product {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding-left: 0.5rem;
  border-left: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 0.75rem; border-bottom: 0; color: #fff; }

/* ── Seksjonshoder ───────────────────────────────────── */
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85rem;
}
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 40rem;
}
.section-head-invert .kicker { color: #8fd0b0; }
.section-head-invert h2 { color: #fff; }
.section-head-invert .section-sub { color: rgba(255, 255, 255, 0.72); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ══ HERO ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 88% 18%, rgba(43, 106, 80, 0.13), transparent 62%),
    radial-gradient(70% 60% at 6% 0%, rgba(194, 103, 60, 0.09), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-600);
  background: var(--green-tint);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
}
.hero h1 {
  font-size: clamp(2.125rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em;
  color: var(--forest);
  text-wrap: balance;
}
.lead {
  margin-top: 1.35rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--muted);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-pills li { display: flex; align-items: center; gap: 0.5rem; }
.hero-pills li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

/* ══ ENHETER ════════════════════════════════════════════ */
.pair {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2.5rem)
    clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #1d4d3b 0%, #12362a 45%, #0b281e 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.pair::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 75% 8%, rgba(143, 208, 176, 0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.laptop { position: relative; z-index: 1; width: 82%; margin-left: auto; margin-right: 0; }
.laptop-lid {
  padding: 8px 8px 9px;
  border-radius: 13px 13px 4px 4px;
  background: linear-gradient(155deg, #9aa29e 0%, #4a534e 18%, #2c3531 52%, #202824 78%, #767e7a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 36px -18px rgba(0, 0, 0, 0.7);
}
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  background: #0c100e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop-foot {
  height: 10px;
  width: 112%;
  margin-left: -6%;
  background: linear-gradient(180deg, #b4bcb8 0%, #7e8682 38%, #4d5551 100%);
  clip-path: polygon(0.8% 0, 99.2% 0, 96.5% 100%, 3.5% 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
}
.laptop-foot::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 13%; height: 4px;
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.28);
}

.phone {
  position: relative;
  z-index: 2;
  width: clamp(124px, 13vw, 168px);
  border-radius: 34px;
  padding: 6px;
  background: linear-gradient(150deg, #a9b1ad 0%, #454e49 16%, #262e2a 48%, #1b2320 72%, #8a918d 100%);
  box-shadow: 0 30px 55px -22px rgba(0, 0, 0, 0.85),
    0 0 0 0.5px rgba(255, 255, 255, 0.18) inset;
}
.phone-screen {
  position: relative;
  aspect-ratio: 1200 / 2600;
  border-radius: 28px;
  overflow: hidden;
  background: #0c100e;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.island {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 17px;
  border-radius: 10px;
  background: #0a0d0b;
  z-index: 3;
}

/* Hero-oppstilling: laptop bak, telefon foran venstre */
.pair-hero .phone,
.feature-panel .pair .phone {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
}

/* ══ PROBLEM ════════════════════════════════════════════ */
.problem { background: var(--sand); }
.problem-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.problem-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.problem-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  color: var(--forest);
}
.problem-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }
.problem-note {
  margin-top: 2.25rem;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--forest);
  max-width: 34rem;
}

/* ══ SLIK STARTER DERE ══════════════════════════════════ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--forest); }
.step p { font-size: 0.9375rem; color: var(--muted); }

.how-note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  background: var(--clay-tint);
  border: 1px solid #eddac9;
  border-radius: var(--r);
  color: var(--ink);
}
.how-note svg { flex: none; color: var(--clay-600); margin-top: 2px; }
.how-note p { font-size: 0.9375rem; line-height: 1.55; }
.how-note strong { color: var(--clay-600); }

/* ══ FUNKSJONER ═════════════════════════════════════════ */
.features { background: var(--paper); }
.feature-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.feature-tab {
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2.5px solid var(--line-soft);
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.feature-tab:hover { background: var(--cream); }
.feature-tab.is-active { background: var(--green-tint); border-left-color: var(--green); }
.feature-tab-title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.feature-tab.is-active .feature-tab-title { color: var(--forest); }
.feature-tab-sub { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 1px; }

.feature-panel[hidden] { display: none; }
.feature-panel { animation: fade 0.35s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.feature-copy {
  margin-top: 1.75rem;
  max-width: 38rem;
}
.feature-copy h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  color: var(--forest);
  margin-bottom: 0.65rem;
}
.feature-copy p { color: var(--muted); }

/* ══ MODULER ════════════════════════════════════════════ */
.modules { background: var(--sand); }
.module-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.preset {
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.preset:hover { border-color: var(--green); }
.preset.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.module-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}
.module-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.module-group legend {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  margin-bottom: 0.65rem;
}
.module {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.module:hover { background: rgba(255, 255, 255, 0.6); }
.module input {
  appearance: none;
  -webkit-appearance: none;
  width: 19px; height: 19px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.module input:checked { background: var(--green); border-color: var(--green); }
.module input:checked::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.module.locked { cursor: default; color: var(--muted); }
.module.locked:hover { background: transparent; }
.module.locked input { background: var(--green); border-color: var(--green); opacity: 0.5; cursor: default; }

.module-price-note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border-left: 3px solid var(--clay);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.module-price-note strong { color: var(--forest); }

.module-preview { text-align: center; }
.module-preview-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.phone-menu { width: 100%; max-width: 260px; margin-inline: auto; }
.phone-menu .phone-screen { background: #f7f4ed; }
.menu-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: 46px 14px 16px;
  text-align: left;
}
.menu-mock-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.menu-mock-logo {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--green);
  flex: none;
}
.menu-mock-title { font-weight: 800; font-size: 0.9375rem; color: var(--forest); letter-spacing: -0.02em; }
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.menu-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--paper);
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(18, 54, 42, 0.05);
  animation: pop 0.25s ease both;
}
.menu-list li .dot {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--green-tint);
  flex: none;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.module-count { margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); font-weight: 600; }

/* ══ PRIS ═══════════════════════════════════════════════ */
.pricing {
  background: linear-gradient(170deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #fff;
}
.price-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.calc {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.calc-label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem; }
.calc-input-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 200px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--clay);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--clay);
  cursor: grab;
}

.calc-number {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}
.calc-number input {
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  width: 4.5rem;
  padding: 0.4rem 0.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  text-align: center;
  -moz-appearance: textfield;
}
.calc-number input::-webkit-outer-spin-button,
.calc-number input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.calc-figure {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.calc-unit { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.68); margin-top: 0.5rem; }
.calc-split-figure {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f0a878;
}
.calc-split-unit { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.4rem; }
.calc-free {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #8fd0b0;
}

.fact-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.7rem; }
.fact-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.fact-list li span { color: #8fd0b0; font-weight: 800; flex: none; }

.price-table-wrap summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-table-wrap summary::-webkit-details-marker { display: none; }
.price-table-wrap summary::before {
  content: "＋";
  font-weight: 700;
  color: #8fd0b0;
}
.price-table-wrap[open] summary::before { content: "－"; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.9375rem; }
.price-table caption {
  text-align: left;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 0.65rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.price-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.price-table tbody th { font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.price-table td { font-weight: 700; color: #fff; }

/* ══ FAQ ════════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 0.75rem 1.5rem;
  align-content: start;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 0.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--forest);
  padding: 1rem 1.75rem 1rem 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-bottom: 1.1rem;
  max-width: 34rem;
}

/* ══ CTA ════════════════════════════════════════════════ */
.cta { background: var(--sand); }
.cta-inner {
  background: linear-gradient(150deg, #1d4d3b 0%, var(--forest) 40%, var(--forest-2) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 85% 0%, rgba(194, 103, 60, 0.28), transparent 60%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; }
.cta-lead {
  margin: 1.1rem auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.cta-note { margin-top: 1.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }

/* ══ FOOTER ═════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand-block .brand-mark { color: #8fd0b0; margin-bottom: 0.85rem; }
.footer-name { font-weight: 800; font-size: 1.125rem; color: #fff; letter-spacing: -0.03em; }
.footer-sub { font-size: 0.875rem; margin-top: 0.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer-links a { color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: #8fd0b0; }
.footer-note {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 40rem;
}

/* ══ RESPONSIV ══════════════════════════════════════════ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 38rem; }
  .hero-devices { margin-top: 1rem; }
  .price-shell { grid-template-columns: 1fr; }
  .module-shell { grid-template-columns: 1fr; }
  .module-preview { display: none; }
}

@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-nav[hidden] { display: none; }

  .feature-shell { grid-template-columns: 1fr; }
  .feature-tabs {
    position: static;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .feature-tab {
    border-left: 0;
    border-bottom: 2.5px solid var(--line-soft);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    white-space: nowrap;
    flex: none;
    padding: 0.55rem 0.85rem;
  }
  .feature-tab.is-active { border-bottom-color: var(--green); }
  .feature-tab-sub { display: none; }
}

@media (max-width: 640px) {
  .pair { padding: 1.25rem 1rem 1.25rem; }
  .pair-hero .phone,
  .feature-panel .pair .phone {
    position: relative;
    left: auto; bottom: auto;
    width: 140px;
    margin: -2.5rem auto 0;
  }
  .laptop { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; text-align: left; }
  .calc-result { gap: 1.25rem; }
}

/* ── Egne bookingkategorier ─────────────────────────── */
.module-group legend .legend-note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--clay-600);
}
.module-group legend .legend-note::before { content: "— "; }

.add-category {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-600);
  background: transparent;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.7rem;
  margin-top: 0.35rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.add-category:hover { border-color: var(--green); background: rgba(255, 255, 255, 0.6); }
.add-category span { font-weight: 800; margin-right: 0.15rem; }

.add-category-form { display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.add-category-form[hidden] { display: none; }
.add-category-form input {
  font: inherit;
  font-size: 0.875rem;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--green);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
}
.add-category-form button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  flex: none;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
.add-category-form button:hover { background: var(--green-600); }

.module-custom span { font-style: italic; }

.module-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.module-note strong { color: var(--forest); }
.module-price-note { margin-top: 0.75rem; }

/* ── Enheter per bookingkategori ────────────────────── */
.module-group-booking .module { padding-right: 0.4rem; }
.module .units {
  margin-left: auto;
  padding-left: 0.5rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.75;
}
.module input:checked ~ .units { color: var(--green-600); opacity: 1; }

.add-category-form { flex-direction: column; gap: 0.45rem; }
.add-row { display: flex; align-items: center; gap: 0.4rem; }
.add-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.add-row input[type="number"] {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  width: 3.1rem;
  flex: none;
  text-align: center;
  padding: 0.45rem 0.3rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  -moz-appearance: textfield;
}
.add-row input[type="number"]::-webkit-outer-spin-button,
.add-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-unit { font-size: 0.8125rem; font-weight: 600; color: var(--muted); flex: none; }
.add-actions { display: flex; gap: 0.4rem; }
.add-cancel {
  background: transparent !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
}
.add-cancel:hover { color: var(--ink) !important; }

/* Ekte skjermbilder har sin egen Dynamic Island — ikke tegn en ekstra */
.phone-screen img ~ .island,
.phone-screen .island { display: none; }
.phone-menu .island { display: block; }

/* ── Mer realistiske enheter ─────────────────────────── */
/* Sideknapper: én gradient-stripe gir lydløsbryter + volum opp/ned */
.phone::before {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 16%;
  width: 2.5px;
  height: 30%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(
    to bottom,
    #59615c 0 13%, transparent 13% 25%,
    #59615c 25% 57%, transparent 57% 69%,
    #59615c 69% 100%
  );
}
/* Av/på-knappen på høyre side */
.phone::after {
  content: "";
  position: absolute;
  right: -2.5px;
  top: 27%;
  width: 2.5px;
  height: 15%;
  border-radius: 0 2px 2px 0;
  background: #59615c;
}

/* Kamera over skjermen på laptopen */
.laptop-lid { position: relative; }
.laptop-lid::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #111614;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Telefonen i modulvelgeren står litt på skrå */
.module-preview .phone {
  transform: perspective(900px) rotateY(-13deg) rotateX(2deg) rotate(1.5deg);
  transform-origin: center;
  box-shadow: 22px 34px 60px -28px rgba(11, 40, 30, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.18) inset;
}
.module-disclaimer {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ── Juridiske sider ─────────────────────────────────── */
.legal { background: var(--paper); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.legal-wrap { max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9375rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }
.legal h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); color: var(--forest); }
.legal-meta { margin-top: 0.85rem; font-size: 0.9375rem; color: var(--muted); }
.legal h2 { font-size: clamp(1.125rem, 2.2vw, 1.375rem); color: var(--forest); margin-top: 2.5rem; }
.legal h3 { font-size: 1rem; color: var(--forest); margin-top: 1.5rem; }
.legal p, .legal li { color: var(--ink); font-size: 1rem; line-height: 1.65; }
.legal p { margin-top: 0.9rem; }
.legal ul, .legal ol { margin: 0.9rem 0 0; padding-left: 1.25rem; }
.legal li { margin-top: 0.45rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.5rem 0.6rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal thead th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.legal-note { margin-top: 2rem; padding: 1.1rem 1.35rem; background: var(--cream); border-left: 3px solid var(--green); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.9375rem; color: var(--muted); }
.legal-draft { margin-top: 1.5rem; padding: 1rem 1.35rem; background: var(--clay-tint); border: 1px solid #eddac9; border-radius: var(--r-sm); font-size: 0.9375rem; }
.legal-draft strong { color: var(--clay-600); }
.todo { background: #fdf3d8; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.footer-links a.footer-legal { font-weight: 500; }

/* ── Referansestripe ─────────────────────────────────── */
.proof-strip {
  background: var(--forest);
  padding-block: 1rem;
}
.proof-strip p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  text-align: center;
}
.proof-strip strong { color: #fff; font-weight: 700; }
.proof-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
