/* Austre – stil
   Farger hentet fra logoen: fersken-tekst på mørk bakgrunn, oransje–gul gradient. */

:root {
  --ink: #15171d;
  --ink-2: #1d2027;
  --peach: #ffe1c6;
  --peach-dim: rgba(255, 225, 198, 0.74);
  --orange: #f87537;
  --amber: #fba81f;
  --paper: #fbf7f2;
  --graphite: #2b2e36;
  --slate: #5b606a;
  --mist: #e8e0d6;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Typografi */
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose p + p, .prose p + ul { margin-top: 1.1em; }
.prose { max-width: 62ch; }
.muted { color: var(--slate); max-width: 46ch; }
.dark .muted { color: var(--peach-dim); }

/* Topp */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand img { width: 118px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.nav a {
  color: var(--peach);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
}
.nav a:hover, .nav a:focus-visible { opacity: 1; }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid rgba(255, 225, 198, 0.35);
  border-radius: 999px;
  opacity: 1 !important;
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 30px -12px rgba(248, 117, 55, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  color: var(--peach);
  border: 1px solid rgba(255, 225, 198, 0.35);
}
.btn-lg { padding: 18px 30px; font-size: 1.15rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 10vh, 140px) 0 48px;
  background: var(--ink);
  color: var(--peach);
}
.hero-blob {
  position: absolute;
  right: -12vw;
  top: -8vh;
  width: clamp(420px, 60vw, 900px);
  aspect-ratio: 68 / 59;
  background: url("blob.svg") no-repeat center / contain;
  opacity: 0.9;
  filter: blur(2px);
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-blob::after {
  /* myk glød bak formen */
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(251, 168, 31, 0.22), transparent 70%);
  z-index: -1;
}
.hero-blob--small {
  width: clamp(260px, 32vw, 460px);
  right: 30vw;
  top: auto;
  bottom: -10vh;
  opacity: 0.7;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-2deg); }
  to   { transform: translate3d(-3vw, 3vh, 0) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}
@media (max-width: 640px) {
  .hero-blob { opacity: 0.45; right: -30vw; top: -4vh; width: 110vw; }
}

.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 17ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) 120ms forwards;
}
.hero-lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--peach-dim);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) 260ms forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  opacity: 0;
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) 400ms forwards;
}
.hero-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 64px;
  font-size: 0.95rem;
  color: var(--peach-dim);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-lede, .hero-actions { animation: none; opacity: 1; transform: none; }
}

/* Seksjoner */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.light { background: var(--paper); color: var(--graphite); }
.dark { background: var(--ink); color: var(--peach); }
.dark h2, .dark h3 { color: var(--peach); }
.dark .prose { color: var(--peach-dim); }
.light + .light { padding-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (max-width: 820px) {
  .grid-2, .section-head { grid-template-columns: 1fr; }
}

.facts {
  list-style: none;
  padding: 0;
  margin-top: 2.2em;
  border-top: 1px solid var(--mist);
}
.facts li {
  padding: 18px 0;
  border-bottom: 1px solid var(--mist);
}
.facts strong { font-weight: 600; color: var(--ink); }

/* Prosess: festet tekst til venstre, steg som ruller til høyre */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.process-sticky {
  position: sticky;
  top: 120px;
}
.process-sticky .muted { margin-top: 20px; }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}
.step {
  position: relative;
  padding: 36px 36px 36px 92px;
  border: 1px solid rgba(255, 225, 198, 0.14);
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--peach-dim);
}
.step h3 { color: var(--peach); }
.step-sub { margin: 4px 0 18px; font-size: 0.95rem; color: var(--amber); }
.step p + p { margin-top: 1em; }
.step-num {
  position: absolute;
  left: 32px;
  top: 34px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--orange), var(--amber));
}
@media (max-width: 820px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .step { padding: 28px 24px 28px 76px; }
  .step-num { left: 22px; top: 26px; width: 34px; height: 34px; }
}

/* Pris */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.price {
  padding: 32px 28px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: #fff;
}
.price-main {
  background: var(--ink);
  color: var(--peach-dim);
  border-color: var(--ink);
}
.price-main h3, .price-main .price-amount { color: var(--peach); }
.price-amount {
  margin-top: 22px;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.price-unit {
  margin: 8px 0 20px;
  font-size: 0.95rem;
  color: var(--slate);
}
.price-main .price-unit { color: var(--amber); }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* Hvem */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--mist);
  padding-top: 40px;
}
.who h3 { color: var(--ink); }
.who p { margin-top: 12px; }
@media (max-width: 820px) {
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Kontakt */
.contact { position: relative; overflow: hidden; }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.contact-title {
  max-width: 16ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
}
.contact-lede {
  margin-top: 22px;
  max-width: 48ch;
  font-size: 1.15rem;
  color: var(--peach-dim);
}
.contact-card {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 225, 198, 0.18);
}
.contact-name { font-size: 1.25rem; font-weight: 600; color: var(--peach); }
.contact-role { color: var(--peach-dim); }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact-links a { color: var(--amber); text-decoration: none; }
.contact-links a:hover, .contact-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.contact-photo {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-2);
}
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { justify-self: start; width: min(100%, 300px); order: -1; }
}

/* Bunn */
.foot {
  background: var(--ink);
  color: var(--peach-dim);
  border-top: 1px solid rgba(255, 225, 198, 0.12);
  padding: 32px 0 40px;
  font-size: 0.9rem;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot img { width: 96px; }

/* Fokus */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Tilstander satt av script.js */
.step.is-active { border-color: rgba(251, 168, 31, 0.55); }
.nav a.is-current { opacity: 1; }

.section-head .muted { padding-top: 0.55em; }

/* Tilgjengelighet */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }
.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;
}
/* Mørk skjerm bak hero-teksten så kontrasten holder uansett hvor dråpen ligger */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, rgba(21,23,29,0.85) 55%, rgba(21,23,29,0) 75%);
  z-index: 0;
  pointer-events: none;
}
.hero-blob { z-index: -1; }
.hero { isolation: isolate; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, rgba(21,23,29,0) 70%);
  pointer-events: none;
}
.contact { isolation: isolate; }
.contact .hero-blob { z-index: -1; }
.foot a { color: var(--peach); }
.nav a.is-current { text-decoration: underline; text-underline-offset: 6px; }
