/* ==========================================================================
   Billignettside.no – stilark
   Struktur: 1 Tokens · 2 Base · 3 Layout · 4 Komponenter · 5 Seksjoner · 6 Utils
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --ink: #2a2118;
  --ink-soft: #5a5044;
  --muted: #857a6c;
  --bg: #f5f0e6;
  --bg-tint: #ebe3d3;
  --surface: #fbf8f2;
  --line: #ddd3c0;
  --primary: #b94b25;
  --primary-hover: #a23f1d;
  --primary-soft: #f3dfd2;
  --accent: #f0c869;
  --accent-hover: #e5b94f;
  --success: #12805c;
  --error: #c62f3d;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(42 33 24 / .06), 0 1px 3px rgb(42 33 24 / .06);
  --shadow: 0 10px 30px -12px rgb(42 33 24 / .18), 0 4px 10px -6px rgb(42 33 24 / .08);
  --shadow-lg: 0 30px 60px -20px rgb(42 33 24 / .30);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 4.2vw + 1rem, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }
.section-dark .section-head p:last-child { color: rgb(255 255 255 / .75); }

.kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px;
  background: var(--primary-soft); color: var(--primary);
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.kicker-light { background: rgb(255 255 255 / .1); color: var(--accent); }

/* 4. KOMPONENTER -------------------------------------------------------- */

/* Knapper */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1rem; font-weight: 650; text-decoration: none; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--primary); box-shadow: 0 8px 20px -8px rgb(185 75 37 / .5); }
.btn-primary:hover { --btn-bg: var(--primary-hover); }
.btn-lime { --btn-bg: var(--accent); --btn-fg: var(--ink); }
.btn-lime:hover { --btn-bg: var(--accent-hover); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(245 240 230 / .85);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(42 33 24 / .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { color: var(--ink); }
.logo-text { font-weight: 500; }
.logo-text strong { font-weight: 800; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-mark { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 550; font-size: .975rem; text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: .95rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 14px 12px; font-size: 1.0625rem; }
  .nav-cta { min-height: 52px; }
}

/* Sjekkliste */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .975rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b94b25' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist-lg li { font-size: 1.0625rem; color: var(--ink); }

/* Kort */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-form { padding: clamp(22px, 3.5vw, 40px); }

/* 5. SEKSJONER ---------------------------------------------------------- */

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgb(185 75 37 / .14), transparent 70%), radial-gradient(closest-side at 30% 70%, rgb(240 200 105 / .45), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: .875rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .18); }
.hero h1 { margin-top: 20px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; background: var(--accent); border-radius: 6px; z-index: -1; transform: rotate(-1.5deg); }
.hero-lead { font-size: clamp(1.125rem, .6vw + 1rem, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.center-actions { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--ink-soft); font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2118' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Hero-illustrasjon (ren CSS) */
.hero-visual { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s var(--ease); }
.hero-visual:hover .mock { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d6cab2; }
.mock-url { margin-left: 12px; padding: 4px 12px; border-radius: 6px; background: var(--surface); font-size: .75rem; color: var(--muted); flex: 1; max-width: 220px; }
.mock-body { padding: 18px 22px 24px; }
.mock-body i { display: block; height: 9px; border-radius: 5px; background: #e6dcc8; }
.mock-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 30px; }
.mock-nav .w20 { width: 20%; height: 12px; background: var(--ink); margin-right: auto; }
.mock-nav .w10 { width: 10%; }
.mock-nav .pill { height: 18px; border-radius: 9px; background: var(--primary); width: 14%; }
.mock-hero { display: grid; gap: 10px; margin-bottom: 26px; }
.mock-hero .h-lg { height: 18px; background: var(--ink); opacity: .9; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock-btns { display: flex; gap: 10px; margin-top: 10px; }
.mock-btns .btn-a { width: 90px; height: 26px; border-radius: 8px; background: var(--primary); }
.mock-btns .btn-b { width: 70px; height: 26px; border-radius: 8px; background: transparent; border: 2px solid #e6dcc8; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { height: 70px; border-radius: 10px; background: var(--bg-tint); border: 1px solid var(--line); }
.mock-cards div:nth-child(2) { background: var(--primary-soft); }

.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-weight: 650; font-size: .925rem; animation: float 6s ease-in-out infinite; }
.float-price { flex-direction: column; align-items: flex-start; gap: 0; left: -28px; bottom: 34px; background: var(--accent); border-color: transparent; }
.float-price span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .75; }
.float-price strong { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.1; }
.float-check { right: -18px; top: 56px; color: var(--ink); animation-delay: -3s; }
.float-check svg { color: var(--success); flex: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .mock { transform: none; }
  .float-price { left: 8px; bottom: -22px; }
  .float-check { right: 8px; top: -18px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .float-check { display: none; }
}

/* Stripe */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 16px; text-align: center; display: grid; gap: 2px; }
.strip-grid > div + div { border-left: 1px solid var(--line); }
.strip-grid strong { font-size: 1.4rem; letter-spacing: -0.02em; }
.strip-grid span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(3) { border-left: 0; }
  .strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Funksjoner */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Pakker */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-bottom: 28px; }
.package { position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; }
.package-popular { border: 2px solid var(--primary); box-shadow: 0 30px 60px -28px rgb(185 75 37 / .45); }
@media (min-width: 901px) { .package-popular { transform: translateY(-12px); } }
.package-badge { position: absolute; top: -14px; left: 28px; padding: 5px 12px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 750; letter-spacing: .02em; }
.package-name { font-size: 1.15rem; margin-bottom: 6px; }
.package-lead { color: var(--muted); font-size: .95rem; min-height: 3em; }
.package-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.package-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.package-currency { font-size: 1.25rem; font-weight: 700; color: var(--ink-soft); }
.package-note { color: var(--muted); font-size: .85rem; margin: 8px 0 22px; }
.package .btn { margin-bottom: 26px; }
@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .package-popular { order: -1; }
}

/* Tillegg */
.addons { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.addons li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; }
.addons li + li { border-top: 1px solid var(--line); }
.addon-name { font-weight: 600; }
.addon-price { font-weight: 750; white-space: nowrap; text-align: right; }
.addon-price small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Steg */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-tint); }
.step-no { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (min-width: 901px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -20px; width: 20px; height: 2px; background: var(--line); }
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Sammenligning */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgb(255 255 255 / .12); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid rgb(255 255 255 / .1); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: .9rem; color: rgb(255 255 255 / .7); font-weight: 650; }
.compare tbody th { font-weight: 600; color: rgb(245 240 230 / .85); }
.compare td { color: rgb(255 255 255 / .75); }
.compare .us { background: rgb(240 200 105 / .10); color: #fff; font-weight: 700; }
.compare thead .us { color: var(--accent); font-size: 1rem; }
.compare .yes::before, .compare .no::before { display: inline-block; width: 1.2em; font-weight: 800; }
.compare .yes::before { content: "✓"; color: var(--accent); }
.compare .no::before { content: "✕"; color: #ff8a95; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq-item summary { position: relative; padding: 22px 64px 22px 24px; font-weight: 650; font-size: 1.075rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2118' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq-answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* CTA / skjema */
.cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cta-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.cta-copy .checklist { margin: 24px 0 28px; }
.contact h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.25rem); }
@media (max-width: 940px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-copy { position: static; }
}

.request-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.label { font-weight: 650; font-size: .95rem; padding: 0; margin-bottom: 2px; }
.req { color: var(--primary); }
.optional { color: var(--muted); font-weight: 500; font-size: .875rem; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink); /* 16px hindrer zoom på iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a89d8a; }
.input:hover { border-color: #c9bca3; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(185 75 37 / .18); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.has-error .input { border-color: var(--error); }
.has-error .input:focus { box-shadow: 0 0 0 4px rgb(198 47 61 / .15); }
.field-error { margin: 0; color: var(--error); font-size: .875rem; font-weight: 550; }
.field-error:empty { display: none; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .chips { grid-template-columns: repeat(2, 1fr); } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 650; font-size: .95rem; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.chip small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.chip:hover span { border-color: #c9bca3; }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.chip input:checked + span small { color: var(--primary); }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.form-alert { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; background: #e8f7f0; color: var(--success); }
.form-alert-error { background: #fdecee; color: var(--error); }
.form-assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; margin: 0; padding: 0; color: var(--ink-soft); font-size: .875rem; font-weight: 550; }
.form-assurance li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.form-privacy { margin: 0; text-align: center; color: var(--muted); font-size: .8125rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 24px 8px; }
.success-icon { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent); color: var(--ink); }

.mini-steps { margin: 28px 0; padding: 0; list-style: none; counter-reset: ms; display: grid; gap: 14px; }
.mini-steps li { counter-increment: ms; display: flex; gap: 14px; align-items: baseline; color: var(--ink-soft); }
.mini-steps li::before { content: counter(ms); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .9rem; transform: translateY(-2px); }
.mini-steps strong { color: var(--ink); }
.contact-direct { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-tint); }
.contact-direct a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }

/* Undersider */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(16px, 3vw, 32px); background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.page-hero .hero-lead { margin-inline: auto; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); }
.prose h2:first-child, .prose h1 + p + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.audience-card p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .audience { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .72); padding-top: 72px; font-size: .975rem; }
.section-dark + .site-footer { border-top: 1px solid rgb(255 255 255 / .08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 34em; margin-top: 16px; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgb(255 255 255 / .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Sticky mobil-CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .35s var(--ease);
    padding-bottom: calc(10px + env(safe-area-inset-bottom) * .5);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta > div { display: grid; line-height: 1.2; }
  .mobile-cta-small { font-size: .75rem; color: rgb(255 255 255 / .65); }
  .mobile-cta strong { font-size: 1.15rem; }
  .mobile-cta .btn { min-height: 46px; }
  .site-footer { padding-bottom: 88px; }
}

/* 6. UTILS ------------------------------------------------------------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: rgb(255 255 255 / .7); font-size: 1.125rem; margin-bottom: 28px; }
.small { font-size: .925rem; }

/* Animasjon ved scroll (aktiveres av JS – innhold vises alltid uten JS) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .package-popular[data-reveal].is-in { transform: none; }
@media (min-width: 901px) { .js .package-popular[data-reveal].is-in { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-cta, .request-form, .site-footer { display: none; }
}
