/* ==========================================================================
   RENTO RENHOLD — designsystem
   Struktur og seksjonsrytme: Fixsova-malen. Farger/fonter: Rentos brand
   (oransje #FF662A, turkis #1FC6C7, navy #1A1E32, Poppins + Covered By
   Your Grace som håndskrift-aksent).
   ========================================================================== */

:root {
  /* Brandfarger (fra Elementor global kit på rentorenhold.no) */
  --navy: #1a1e32;
  --navy-800: #23283f;
  --navy-700: #2c324e;
  --orange: #ff662a;
  --orange-dark: #e8531a;
  --orange-tint: #fff1ea;
  --teal: #1fc6c7;
  --teal-dark: #128f90;
  --teal-tint: #e7f9f9;
  --ink: #1a1e32;
  --text: #4a4f63;
  --text-soft: #91939d;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e6e8ee;
  --star: #f5a623;

  /* Typografi */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Covered By Your Grace', cursive;

  /* Form */
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --r-xl: 24px;
  --shadow-s: 0 1px 2px rgba(26, 30, 50, 0.06);
  --shadow-m: 0 8px 24px rgba(26, 30, 50, 0.08);
  --shadow-l: 0 20px 48px rgba(26, 30, 50, 0.14);
  --container: 1200px;
  --space-section: clamp(64px, 9vw, 112px);
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul {
  padding-left: 1.2em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--navy {
  background: var(--navy);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

.ghl-static-form {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Markert ord i overskrifter (Fixsova-grepet, i brandfarge) */
.mark {
  color: var(--orange);
}

.mark--teal {
  color: var(--teal);
}

.mark--pen {
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--orange);
  font-size: 1.15em;
  line-height: 1;
}

/* Seksjonshode: liten "eyebrow"-pill + H2 + ingress */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin: 0 0 40px;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.section-head .lead {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.cta-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.cta-stack .text-cta {
  font-family: var(--font-head);
  font-weight: 500;
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: #fff;
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--light {
  background: #fff;
  color: var(--navy);
}

.btn--light:hover {
  background: var(--orange-tint);
  color: var(--navy);
}

.btn--sm {
  padding: 12px 20px;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header / navigasjon ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  height: 54px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > li {
  list-style: none;
  position: relative;
}

.nav a.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-m);
}

.nav a.nav__link:hover,
.nav a.nav__link[aria-current='page'] {
  color: var(--orange-dark);
  text-decoration: none;
  background: var(--orange-tint);
}

.nav__caret {
  font-size: 0.6rem;
  transform: translateY(1px);
}

.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: 8px;
  margin: 0;
  display: none;
}

/* Usynlig "bro" som dekker gapet mellom menypunkt og dropdown,
   så hover ikke mistes når musa beveger seg ned til lenkene */
.nav__drop::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav > li:hover > .nav__drop,
.nav > li:focus-within > .nav__drop,
.nav > li.is-open > .nav__drop {
  display: block;
}

.nav__drop li {
  list-style: none;
}

.nav__drop a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-m);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__drop a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--orange-dark);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--orange-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 78%);
  padding: clamp(48px, 7vw, 88px) 0 var(--space-section);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--ink);
  box-shadow: var(--shadow-s);
  margin-bottom: 22px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero p.hero__lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 540px;
  margin: 18px 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 0.88rem;
  color: var(--text);
}

.hero__trust .stars {
  color: var(--star);
  letter-spacing: 2px;
}

.hero__trust span strong {
  color: var(--ink);
}

.hero--campaign .hero__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
}

.hero--campaign h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4vw, 3.25rem);
}

.hero--campaign p.hero__lead,
.hero--campaign .hero__trust {
  max-width: 680px;
}

.campaign-offer-card {
  align-self: center;
}

/* ---------- Trustbar ---------- */

.trustbar {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}

.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.trustbar__item .ic {
  color: var(--teal-dark);
}

/* ---------- Kort ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Gjør HELE kortet klikkbart via overskriftslenken (stretched link),
   slik at også "Les mer →" nederst og bildet fører dit. */
.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Andre lenker/knapper i et kort skal fortsatt være klikkbare oppå overlegget */
.card p a,
.card .btn {
  position: relative;
  z-index: 2;
}

.card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.card--flat:hover {
  box-shadow: var(--shadow-s);
  transform: none;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-m);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--teal-tint);
  margin-bottom: 18px;
}

.card--orange .card__icon {
  background: var(--orange-tint);
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  color: var(--orange-dark);
  text-decoration: none;
}

.card .card__more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--orange-dark);
}

.card .price-anchor {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin: 6px 0 12px;
}

/* Tjenestekort med bilde */
.card--img {
  padding: 0;
  overflow: hidden;
}

.card--img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card--img .card__body {
  padding: 24px 28px 28px;
}

/* ---------- Stat-kort (Fixsova: navy + teal fargekort) ---------- */

.stat-card {
  border-radius: var(--r-l);
  padding: 24px 20px;
  color: #fff;
}

.stat-card .stat__num {
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
}

.stat-card--navy {
  background: var(--navy);
}

.stat-card--teal {
  background: var(--teal);
}

.stat-card--orange {
  background: var(--orange);
}

.stat-card .stat__num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 0;
  font-size: 0.92rem;
}

/* ---------- Sjekkliste ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translateY(3px);
}

.checklist--x li::before {
  content: '–';
  background: var(--bg-soft);
  color: var(--text-soft);
}

/* ---------- Marquee (rullende tjenestebånd) ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.marquee__track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-soft);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Steg (slik fungerer det) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
  background: var(--orange-tint);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */

.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t-card .stars {
  color: var(--star);
  letter-spacing: 3px;
  font-size: 0.95rem;
}

.t-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.t-card figcaption {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.t-card figcaption small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-soft);
}

.t-card--featured {
  background: var(--navy);
  border-color: var(--navy);
}

.t-card--featured blockquote {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.t-card--featured figcaption {
  color: #fff;
}

.t-card--featured figcaption small {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Pristabeller / priskort ---------- */

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.price-card--featured h3,
.price-card--featured .price-card__price {
  color: #fff;
}

.price-card__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
}

.price-card__price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 2px;
}

.price-card__price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}

.price-card .checklist {
  margin: 18px 0 24px;
  flex: 1;
}

.price-card--featured .checklist li::before {
  background: rgba(255, 255, 255, 0.12);
  color: var(--teal);
}

table.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

/* Rund hjørnecellene eksplisitt så header-bakgrunnen følger de avrundede
   hjørnene (pålitelig også når tabellen blir scroll-blokk på mobil) */
table.price-table th:first-child {
  border-top-left-radius: var(--r-l);
}

table.price-table th:last-child {
  border-top-right-radius: var(--r-l);
}

table.price-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--r-l);
}

table.price-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--r-l);
}

table.price-table th,
table.price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

table.price-table th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

table.price-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- FAQ (accordion) ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 0 24px;
  margin-bottom: 12px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  padding: 20px 36px 20px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq details[open] summary::after {
  content: '–';
  background: var(--orange);
  color: #fff;
}

.faq details > div {
  padding: 0 0 22px;
  color: var(--text);
}

/* ---------- CTA-banner (før footer) ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, #163a4d 100%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 198, 199, 0.35), transparent 70%);
}

.cta-banner h2 {
  color: #fff;
  max-width: 620px;
  margin: 0 auto 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-banner .hero__actions {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 32px;
  margin-top: var(--space-section);
  font-size: 0.92rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer__brand img {
  width: 165px;
  margin-bottom: 16px;
}

.footer__badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  margin-top: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.footer__badge:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Kalkulator (lead-magnet, trinnvis) ---------- */

.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-l);
  padding: 28px;
  max-width: 520px;
}

.calc--page {
  max-width: 680px;
  margin: 0 auto;
}

.calc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.calc__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}

.calc__sub {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.calc__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.calc__progress i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.calc__progress i.is-done {
  background: var(--orange);
}

.calc__step-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.calc fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.calc legend {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 12px;
  padding: 0;
}

/* Valgkort (store, tommelvennlige) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.choice-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: var(--r-l);
  padding: 16px 10px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 86px;
  justify-content: center;
}

.choice label .em {
  font-size: 1.5rem;
}

.choice label small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.choice input:checked + label {
  border-color: var(--orange);
  background: var(--orange-tint);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Chips (frekvens) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}

.chip label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip label small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--teal-dark);
}

.chip input:checked + label {
  border-color: var(--orange);
  background: var(--orange-tint);
}

.discount-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}

.discount-toggle input {
  width: auto;
  accent-color: var(--orange);
}

.discount-toggle strong {
  color: var(--ink);
}

/* Hover-affordance på valgkort og chips (kun når de ikke er valgt) */
.choice label,
.chip label {
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover input:not(:checked) + label {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 102, 42, 0.14);
}

.chip:hover input:not(:checked) + label {
  border-color: var(--orange);
  background: var(--orange-tint);
}

@media (prefers-reduced-motion: reduce) {
  .choice:hover input:not(:checked) + label {
    transform: none;
  }
}

/* Kvm-slider med stepper */
.kvm-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kvm-row input[type='range'] {
  flex: 1;
  accent-color: var(--orange);
  height: 6px;
}

.kvm-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.kvm-stepper button {
  width: 42px;
  height: 46px;
  border: 0;
  background: var(--bg-soft);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.kvm-stepper button:hover {
  background: var(--orange-tint);
}

.kvm-stepper output {
  min-width: 86px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

/* Prispanel */
.calc__price {
  background: var(--teal-tint);
  border-radius: var(--r-l);
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 18px;
}

.calc__price .lbl {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.calc__price .val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
  white-space: nowrap;
}

.calc__price .val small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.calc__price-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: -10px 0 18px;
}

.calc__price .save {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.calc__price .price-was {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: line-through;
}

/* Skjemafelter */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* Telefon med landskode-velger */
.tel-input {
  display: flex;
  gap: 8px;
}
.tel-input select.tel-cc {
  width: auto;
  flex: 0 0 auto;
  cursor: pointer;
  padding-left: 10px;
  padding-right: 8px;
}
.tel-input input[type='tel'] {
  flex: 1 1 auto;
  min-width: 0;
}

.field .error-msg {
  display: none;
  color: #c62828;
  font-size: 0.8rem;
  margin-top: 5px;
}

.field.has-error input {
  border-color: #c62828;
}

.field.has-error .error-msg {
  display: block;
}

.calc__nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.calc__nav .btn--back {
  background: none;
  border: 0;
  color: var(--text-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 12px 10px;
}

.calc__nav .btn--back:hover {
  color: var(--ink);
}

.calc__fineprint {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 12px;
}

.calc__success {
  text-align: center;
  padding: 26px 6px;
}

.calc__success .em {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 10px;
}

.calc [hidden] {
  display: none !important;
}

/* ---------- Diverse ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-m);
  width: 100%;
  object-fit: cover;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.pill-list li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-head);
  color: var(--ink);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 30px 0 16px;
}

.breadcrumb a {
  color: var(--text-soft);
}

/* Sticky mobil-CTA (ring + pris) */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

/* Cookie-banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-head);
}

.cookie-banner p {
  margin: 0;
  max-width: 620px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.footer__link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track {
    animation: none;
  }
}

/* ---------- Responsivt ---------- */

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero--campaign .hero__grid {
    grid-template-columns: 1fr;
  }

  .calc {
    max-width: 640px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav,
  .header__cta .btn,
  .header__phone {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow-m);
    max-height: calc(100vh - 76px);
    overflow: auto;
  }

  .header.nav-open .nav__drop {
    display: none;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
    min-width: 0;
  }

  .header.nav-open .nav > li.is-open > .nav__drop {
    display: block;
  }

  .header.nav-open .nav__drop::before {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: 18px;
  }

  .card,
  .price-card,
  .t-card,
  .stat-card {
    padding: 22px;
  }

  .price-card__tag {
    position: static;
    align-self: flex-start;
    margin-bottom: 14px;
  }

  .testimonials-carousel {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 14px;
    margin-inline: -24px;
  }

  .testimonials-carousel::-webkit-scrollbar {
    display: none;
  }

  .testimonials-carousel .t-card {
    flex: 0 0 min(78vw, 360px);
    scroll-snap-align: center;
  }

  .cta-stack {
    flex-direction: column;
    gap: 12px;
  }

  .cta-stack .btn {
    width: 100%;
    max-width: 360px;
  }

  .cta-stack .text-cta {
    display: block;
  }

  .card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__grid > *,
  .split > *,
  .grid > *,
  .container > * {
    min-width: 0;
  }

  table.price-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.price-table th,
  table.price-table td {
    min-width: 136px;
    padding: 12px 14px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 74px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice label {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    min-height: 0;
    padding: 14px 16px;
  }

  .discount-toggle {
    display: flex;
    border-radius: var(--r-m);
    align-items: flex-start;
  }

  .kvm-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .kvm-row input[type='range'] {
    width: 100%;
  }

  .kvm-stepper {
    width: 100%;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
  }

  .kvm-stepper button {
    width: 100%;
    height: 52px;
  }

  .kvm-stepper output {
    display: grid;
    place-items: center;
    min-width: 0;
    font-size: 1.05rem;
  }

  .calc__price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px;
  }

  .calc__price .lbl br {
    display: none;
  }

  .calc__price .val {
    font-size: clamp(2rem, 11vw, 3rem);
    white-space: normal;
    line-height: 1;
  }

  .calc__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calc__nav [data-next] {
    order: 1;
  }

  .calc__nav .btn--back {
    order: 2;
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
