@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f2eee4;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --ink: #1c1c1a;
  --ink-muted: #4a4945;
  --line: #d9d5cb;
  --line-soft: #e6e3d6;
  --brand: #0f2a26;
  --brand-hover: #1c3f39;
  --on-brand: #ffffff;

  --peach: #efa57a;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --radius-card: 14px;
}

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

/* hidden-attributtet skal alltid skjule, også når en klasse setter display (f.eks. .btn) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.btn--dark { background: var(--brand); color: var(--on-brand); }
.btn--dark:hover:not(:disabled) { background: var(--brand-hover); }
.btn--dark:disabled { opacity: 0.35; cursor: not-allowed; }

.btn--light { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--surface); }

.btn--lg { padding: 0.95rem 1.4rem; font-size: 1rem; }

a.btn { text-decoration: none; }

.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: #ecf1ee; }
.btn--white:focus-visible { outline-color: #fff; }

/* ---------- Toppmeny ---------- */

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem clamp(1rem, 10vw, 9rem);
}
.topbar__actions { display: flex; gap: 0.6rem; }

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem 5rem;
}

.made-for {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.1rem;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.4rem 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-align: left;
}
.pill__icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sizer (usynlig, lengste ord) og skrevet tekst stables oppå hverandre,
   så pillen holder fast bredde mens ordet skrives og slettes. */
.pill__text { display: inline-grid; }
.pill__sizer, .pill__typed { grid-area: 1 / 1; white-space: nowrap; }
.pill__sizer { visibility: hidden; padding-right: 0.5em; }

.pill__caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: caret-blink 1s steps(1) infinite;
}
.pill.is-typing .pill__caret { animation: none; }

@keyframes caret-blink {
  50% { opacity: 0; }
}

.hero__title {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.5vw, 7.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero__line { display: block; }
.hero__line--with-art {
  display: flex;
  align-items: flex-end; /* illustrasjonens bunn (§-merket) følger bunnen av «plan og bygg» */
  justify-content: center;
  gap: 0.12em;
}
/* hero-kart.svg har luft rundt kartet (til dokumentene, huset og §-merket),
   derfor bredere enn selve kartet ser ut */
.hero__art {
  width: 2.1em;
  height: auto;
  /* Negativ toppmarg: dokumentene stikker opp mot «snarveg» på linjen over,
     uten at linjen blir høyere */
  margin: -0.45em 0 -0.04em;
  flex: none;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- Funksjonskort ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2rem 1.6rem 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgb(15 42 38 / 0.10);
}

.feature__art {
  width: auto;
  height: 9rem;
  margin: 0 auto 1.75rem;
}

.feature__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.feature__title {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 14em;
}
.feature__text { margin: 0 0 1.25rem; color: var(--ink-muted); }

.feature__link {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.6em;
  margin-bottom: 2.5rem;
  align-items: center;
  color: var(--brand);
  text-decoration: none;
}
/* Strek under teksten som går litt forbi siste bokstav, ikke under pilen */
.feature__link-text {
  padding: 0 0.2em 0.15em 0;
  border-bottom: 1.5px solid currentColor;
  line-height: 1.3;
}
.feature__link-arrow { display: inline-block; font-size: 0.9em; transition: transform 0.15s; }
/* Strekker lenken over hele kortet, så hele boksen er klikkbar */
.feature__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.feature__link:focus-visible { outline: none; }
.feature:has(.feature__link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.feature:hover .feature__link-arrow { transform: translateX(3px); }

/* Utsnitt av produktet nederst i kortene, klippet av kortets underkant */
.mock {
  margin: auto -0.6rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
.mock--padded { padding: 0.9rem 0.9rem 1.2rem; }

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.mock__row:first-child { border-top: 0; }
.mock__row--top { align-items: flex-start; justify-content: flex-start; }
.mock__row--top .dot { margin-top: 0.45em; }
.mock__grow { flex: 1; }
.mock__muted { color: var(--ink-muted); }
.mock__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }

.mock__question {
  width: fit-content;
  margin: 0 0 0.75rem auto;
  padding: 0.5rem 0.8rem;
  background: #ece6da;
  border-radius: 12px;
}
.mock__answer {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock__answer p { margin: 0.55rem 0 0; }
.mock__answer .mock__source { color: var(--ink-muted); font-size: 0.78rem; }

.tag {
  flex: none;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.tag--ai { border: 0; border-radius: 999px; background: #eadff2; color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: #ece6da;
  font-size: 0.78rem;
  white-space: nowrap;
}
.status--ok { background: #e1ece4; }

.dot {
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}
.dot--warn { background: #c0782e; }
.dot--no { background: #c4462a; }

/* ---------- Håndtegnet preg på strektegninger i HTML-en ---------- */
/* Filteret er definert øverst i index.html. Illustrasjonsfilene i icons/ har sitt eget. */
.try__arrow {
  filter: url(#handdrawn-inline);
}

/* ---------- Seksjonsoverskrifter ---------- */

.section-head {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- Slik virker det ---------- */

.how { padding: 3rem 1rem 6rem; }

/* Kildekartet: ferdige SVG-illustrasjoner (desktop og mobil) med egne animasjoner */
.kildekart {
  display: block;
  max-width: 73.75rem; /* 1180px, illustrasjonens egen bredde */
  margin: 4rem auto 0;
}
.kildekart img {
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .kildekart { max-width: 26rem; margin-top: 2.5rem; }
}

/* ---------- Prøv selv ---------- */

.try {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}
.try__pill {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.1rem 1.1rem 1.1rem 2.2rem;
  /* Hele boksen (inkl. tekst og knapp) står litt på skrå, så innholdet følger formen */
  transform: rotate(-1.4deg);
}
/* Selve formen ligger i et eget lag bak innholdet, så det håndtegnede filteret
   bare påvirker kanten og ikke teksten eller knappen */
.try__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--peach);
  border: 2.5px solid var(--ink);
  border-radius: 60px 52px 64px 48px / 48px 64px 52px 60px;
  box-shadow: 3px 4px 0 var(--ink);
  filter: url(#handdrawn-box);
}
.try__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
}
/* 4.5rem bred SVG → spissen ligger ca. 0.7rem fra venstre og 4.6rem fra toppen.
   Plasseres så spissen havner like til høyre for boksen, midt i høyden. */
.try__arrow {
  position: absolute;
  left: calc(100% + 0.4rem);
  top: calc(50% - 4.6rem);
  width: 4.5rem;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Full kontroll (faner) ---------- */

.control { padding: 3rem 1rem 6rem; }
.control__art {
  width: 10rem;
  height: auto;
  margin: 0 auto 1.5rem;
  animation: drift 1.5s linear infinite;
}

/* Klikker mellom tre punkter: står stille, flytter seg på ~45 ms, står stille.
   Litt opp, så ned mot høyre, så tilbake til start. */
@keyframes drift {
  0%, 30%   { transform: translate(0, 0); }
  33%, 63%  { transform: translate(0, -1px); }
  66%, 96%  { transform: translate(0.5px, 0.5px); }
  100%      { transform: translate(0, 0); }
}

.tabs { max-width: 72rem; margin: 2.5rem auto 0; }

.tabs__list {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.3rem;
  background: #e8e1d3;
  border-radius: var(--radius-pill);
  overflow-x: auto;
}
.tabs__tab {
  flex: none;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(28 28 26 / 0.12);
}
.tabs__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tabs__panel { padding-top: 3rem; }
.tabs__panel:focus-visible { outline: none; }

.panel-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}
.panel-intro__head { display: flex; align-items: center; gap: 1.75rem; }
.panel-intro__icon { width: 5.5rem; height: auto; flex: none; }
.panel-intro__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.panel-intro__text { margin: 0; color: var(--ink-muted); font-size: 1.08rem; line-height: 1.6; }

/* Uskarp ramme rundt skjermbildet. Bildet legges inn med class="shot". */
.shot-frame {
  position: relative;
  overflow: hidden;
  min-height: 26rem;
  padding: 2.5rem 4.5rem 0;
  border-radius: 28px;
  background:
    radial-gradient(40% 50% at 0% 55%, #7d7a72 0%, transparent 100%),
    radial-gradient(40% 50% at 100% 55%, #7d7a72 0%, transparent 100%),
    radial-gradient(30% 40% at 62% 5%, #8a8279 0%, transparent 100%),
    radial-gradient(35% 45% at 92% 0%, #e2bfae 0%, transparent 100%),
    radial-gradient(60% 60% at 50% 100%, #c9c3b8 0%, transparent 100%),
    #d8d2c7;
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 40px rgb(28 28 26 / 0.18);
}
.shot-frame:has(.shot) { min-height: 0; }

/* ---------- Alt du kan gjøre ---------- */

.everything { padding: 3rem 1rem 6rem; }
.section-title--md { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

/* Linjene mellom feltene er bakgrunnen som synes gjennom 1px-mellomrommet */
.grid9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 76rem;
  margin: 2.75rem auto 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.grid9__item {
  padding: 2.25rem 1.75rem 2rem;
  background: var(--bg);
}
.grid9__item img { width: auto; height: 4rem; margin-bottom: 1.4rem; }
.grid9__item h3 { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 500; }
.grid9__item p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Avsluttende CTA ---------- */

.cta { padding: 0 1rem 4rem; }
.cta__box {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.75rem) 1.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 28px;
  text-align: center;
}
.cta__eyebrow { color: #9fc0b5; margin-bottom: 0.9rem; }
.cta__title { color: #fff; }
.cta__text {
  max-width: 31rem;
  margin: 1.4rem auto 1.75rem;
  color: #d5e0db;
  line-height: 1.6;
}

/* ---------- Kontaktside ---------- */

.contact-page {
  background:
    radial-gradient(45% 30% at 85% 0%, #f3d4c4 0%, transparent 100%),
    radial-gradient(40% 25% at 30% 0%, #f1e6df 0%, transparent 100%),
    radial-gradient(35% 30% at 0% 50%, #6f6c66 0%, transparent 100%),
    radial-gradient(35% 30% at 100% 50%, #6f6c66 0%, transparent 100%),
    radial-gradient(60% 25% at 50% 55%, #8d8780 0%, transparent 100%),
    linear-gradient(#efe6df 0%, #b9b3ac 45%, #b4b0aa 100%);
  background-attachment: fixed;
}

.contact-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}
.contact-top { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }

.contact-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(28 28 26 / 0.15);
}
.contact-card__head { padding: 1.75rem 2.5rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.contact-card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact-card__body { padding: 1.9rem 2.5rem 2.25rem; }
.contact-card__heading { margin: 0; font-size: 1.25rem; font-weight: 500; }
.contact-card__intro { margin: 0.5rem 0 1.4rem; color: var(--ink-muted); font-size: 1rem; }
.contact-card__foot {
  display: flex;
  justify-content: flex-end;
  padding: 1.1rem 2.5rem;
  border-top: 1px solid var(--line-soft);
}

/* Honningkrukke: utenfor skjermen, men ikke display:none (noen roboter hopper over slike) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 2.5rem 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fbeae6;
  color: #8f2d17;
  font-size: 0.95rem;
}
.contact-card__heading:focus { outline: none; }

.field + .field { margin-top: 1.2rem; }
.field__label { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }
.field__req { color: #c4462a; }
.field__control { position: relative; }
.field__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}
.field__input {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field__input--icon { padding-left: 3rem; }
.field__textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field__input::placeholder { color: #8a8780; }
.field__input:hover { border-color: #b9b5aa; }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

@media (max-width: 640px) {
  .contact-card__head { padding: 1.75rem 1.25rem 1.25rem; }
  .contact-card__body { padding: 1.75rem 1.25rem 2rem; }
  .contact-card__foot { padding: 1rem 1.25rem; }
  .form-error { margin: 0 1.25rem 1rem; }
}

@media (max-width: 960px) {
  .grid9 { grid-template-columns: repeat(2, 1fr); }
  /* 9 felt i 2 kolonner gir en tom rute til slutt; la siste felt fylle raden */
  .grid9__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid9__item:last-child { grid-column: auto; }
}
@media (max-width: 600px) {
  .grid9 { grid-template-columns: 1fr; }
  .grid9__item { padding: 1.75rem 1.25rem; }
}

@media (max-width: 800px) {
  .panel-intro { grid-template-columns: 1fr; }
  .panel-intro__head { gap: 1.25rem; }
  .panel-intro__icon { width: 4rem; }
  .shot-frame { min-height: 16rem; padding: 1.5rem 1.25rem 0; border-radius: 20px; }
  .tabs__tab { padding: 0.6rem 0.95rem; font-size: 0.9rem; }
}

@media (max-width: 1100px) {
  .try__arrow { display: none; }
}

/* ---------- Kom i gang (stegvis skjema) ---------- */

.onboarding .contact-card__title { margin-bottom: 1.25rem; }
.onboarding .contact-card__body { min-height: 20rem; }

.step-label { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--ink-muted); }

/* Antall streker settes av main.js etter hvor mange steg flyten har */
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.6rem; }

.segmented-field { margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.3rem;
  background: #efece4;
  border-radius: 999px;
}
.segmented__opt { position: relative; cursor: pointer; }
.segmented__opt input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__opt span {
  display: block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  color: var(--ink-muted);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.segmented__opt:hover span { color: var(--ink); }
.segmented__opt input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(28 28 26 / 0.12);
}
.segmented__opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

@media (max-width: 640px) {
  .segmented { border-radius: 18px; }
  .segmented__opt span { padding: 0.5rem 0.85rem; }
}
.progress__bar { height: 3px; border-radius: 2px; background: var(--line-soft); transition: background-color 0.25s; }
.progress__bar.is-done { background: var(--brand); }

.btn--text { padding-left: 0.25rem; padding-right: 0.25rem; background: transparent; color: var(--ink); }
/* Hover: pilen sklir litt mot venstre (ingen understreking, den ble delt i to) */
.btn--text span { display: inline-block; transition: transform 0.15s; }
.btn--text:hover span { transform: translateX(-3px); }
.contact-card__foot { gap: 0.6rem; }
.contact-card__foot [data-back] { margin-right: auto; }

.phone {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.phone:hover { border-color: #b9b5aa; }
.phone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.phone__prefix {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  background: #f3efe6;
  border-right: 1px solid var(--line);
  font-size: 1rem;
}
.phone__flag { width: 1.6rem; height: auto; border-radius: 2px; }
.phone__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.phone__input:focus { outline: none; }
.phone__input::placeholder { color: #8a8780; }

.form-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.form-note svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice__legend { padding: 0; font-size: 1.25rem; font-weight: 500; }
.choice__intro { margin: 0.5rem 0 1.4rem; color: var(--ink-muted); }

.choice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.15rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.card:hover { border-color: var(--ink-muted); }
.card:has(.card__input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: #f3f6f4;
}
.card:has(.card__input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.card__input { position: absolute; opacity: 0; pointer-events: none; }
.card__icon { width: 64px; height: 52px; margin-bottom: 1.1rem; }
.card__title { font-size: 1.15rem; font-weight: 500; }
.card__text { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }

/* ---------- Mobil ---------- */

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; max-width: 32rem; }
}

@media (max-width: 640px) {
  .topbar { padding: 1rem; }
  .btn { font-size: 0.9rem; padding: 0.6rem 1rem; }
  .hero__line--with-art { flex-direction: column-reverse; align-items: center; gap: 0; }
  .hero__art { width: 9rem; margin: 0.5rem 0 0; }

  .onboarding .contact-card__body { min-height: 0; }
  .choice__grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; padding: 1rem; }
  .card__icon { grid-row: span 2; width: 56px; height: 46px; margin: 0; align-self: center; }
  .try__pill { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .pill__caret { display: none; }
  .control__art { animation: none; }
}
