/* Enkel Rapportering – felles stil for alle sider */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --beige: #D9D0C7;
  --beige-light: #E4DED8;
  --beige-pale: #F3F0EC;
  --grey-dark: #2E2E2E;
  --grey: #3A3A3A;
  --grey-muted: #5E5E5E;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--black); }
a:hover { color: var(--grey); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #A8998A;
  outline-offset: 3px;
}

img, video { max-width: 100%; }

.container { max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

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

.site-header { background: var(--white); border-bottom: 1px solid var(--beige-light); }

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--black);
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; display: block; }

.brand span { font-family: var(--serif); font-size: 26px; font-weight: 500; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; font-weight: 500; }

.main-nav a {
  color: var(--grey);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a[aria-current="page"] {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Typografi ---------- */

.kicker { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--grey); }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.5px;
}

.display--xl { font-size: clamp(44px, 5vw, 66px); line-height: 1.0; letter-spacing: -0.6px; }

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1.05;
}

.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--grey-dark); max-width: 460px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 34px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--grey-dark); color: var(--white); }

.btn--outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--beige { background: var(--beige); color: var(--black); }
.btn--beige:hover { background: var(--white); color: var(--black); }

/* ---------- Seksjoner ---------- */

.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }

.bg-beige { background: var(--beige); }
.bg-white { background: var(--white); }
.bg-black { background: var(--black); color: var(--white); }
.bg-dark  { background: var(--grey-dark); color: var(--white); }

.stack { display: flex; flex-direction: column; gap: 18px; }

.center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 340px; min-width: 0; }

/* ---------- Forside ---------- */

.hero { padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); }
.hero .stack { align-items: center; max-width: 760px; margin: 0 auto; }
.hero .lead { max-width: 440px; }

/* Forside med bilde som fader over i beige */
.hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--beige);
}

/* Bildet og fadingen har samme bredde, men aldri mer enn 900px,
   slik at bildet ikke blir for stort på brede skjermer */
.hero__img,
.hero__fade {
  position: absolute;
  top: 0;
  left: 0;
  width: min(62%, 900px);
  height: 100%;
}

.hero__img {
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* Skrå overgang: bildet glir gradvis over i den beige fargen */
.hero__fade {
  background: linear-gradient(104deg,
    rgba(217, 208, 199, 0) 0%,
    rgba(217, 208, 199, 0) 34%,
    rgba(217, 208, 199, 0.55) 54%,
    rgba(217, 208, 199, 0.9) 66%,
    #D9D0C7 76%);
}

.hero__content { position: relative; }

.hero--photo .hero__text {
  margin: 0 0 0 auto;
  max-width: 520px;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 800px) {
  .hero--photo { padding-top: 300px; }
  .hero__img,
  .hero__fade { width: 100%; height: 380px; }
  .hero__img { object-position: center top; }
  .hero__fade {
    background: linear-gradient(180deg,
      rgba(217, 208, 199, 0) 0,
      rgba(217, 208, 199, 0) 170px,
      rgba(217, 208, 199, 0.85) 300px,
      #D9D0C7 380px);
  }
  .hero--photo .hero__text { margin: 0; max-width: none; }
}

.quote-band .frame {
  border-left: 1px solid #5A554F;
  border-right: 1px solid #5A554F;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 6vw, 96px);
  gap: 22px;
}

.quote-band img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; }

.quote-band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  color: var(--beige-pale);
  max-width: 620px;
}

.quote-band .who { display: flex; flex-direction: column; gap: 4px; }
.quote-band .who strong { font-size: 15px; font-weight: 600; }
.quote-band .who span { font-size: 14px; color: var(--beige); }

.quote-band a.more {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: var(--beige);
  text-underline-offset: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Produktet ---------- */

.sheet { margin: 0; background: var(--white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }

.sheet .formula { display: flex; border-bottom: 1px solid var(--beige-light); font-size: 13px; }
.sheet .formula .cell { padding: 11px 12px; border-right: 1px solid var(--beige-light); color: #6B6B6B; font-weight: 600; }
.sheet .formula code { padding: 11px 12px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; white-space: nowrap; }

.sheet .scroll { overflow-x: auto; }

.sheet table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet th { background: var(--beige-pale); font-weight: 600; color: #4A4A4A; text-align: left; padding: 9px 12px; }
.sheet td { border-top: 1px solid #EEEAE5; padding: 9px 12px; }
.sheet .num { text-align: right; }
.sheet td.active { outline: 2px solid var(--black); outline-offset: -2px; }

.sheet figcaption { padding: 10px 12px; font-size: 12px; color: var(--grey-muted); border-top: 1px solid var(--beige-light); }

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--grey-dark);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; border-top: 1px solid var(--beige); padding-top: 24px; }
.steps h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey); max-width: 260px; }

/* ---------- Funksjoner ---------- */

.features { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 56px; }
.features > div { padding: 22px 0; border-top: 1px solid var(--beige); }
.features > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--beige); }
.features dt { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.features dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey); }

/* ---------- Om meg ---------- */

.portrait { display: flex; justify-content: center; }
.portrait img { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; display: block; }

.role { margin: 0; font-size: 15px; font-weight: 600; }

.bio { margin: 0; font-size: 16px; line-height: 1.75; color: var(--grey-dark); max-width: 460px; }

.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--grey); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- Kontakt ---------- */

.contact { max-width: 720px; }
.contact .center { gap: 14px; }
.contact p { margin: 0; font-size: 16px; line-height: 1.7; color: #CFCFCF; max-width: 460px; }

.contact .email {
  color: var(--white);
  font-family: var(--serif);
  font-size: 26px;
  text-decoration-color: var(--beige);
  text-underline-offset: 6px;
  word-break: break-word;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-form { width: 100%; margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--beige); }

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 13px 14px;
  min-height: 48px;
  border: 0;
  background: var(--white);
  color: var(--black);
}

.contact-form textarea { resize: vertical; }

.contact-form .full { grid-column: 1 / -1; }

.contact-form .btn { min-height: 52px; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }

.form-status {
  margin: 4px 0 0;
  padding: 14px 16px;
  background: var(--grey-dark);
  border-left: 3px solid #E07A6B;
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

.form-note { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: #CFCFCF; }
.form-note a { color: var(--white); text-underline-offset: 3px; }

/* Grønn bekreftelse etter innsending */
.form-success {
  margin-top: 36px;
  padding: 44px 28px;
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: dukk-opp 0.4s ease-out;
}

.form-success:focus { outline: none; }

.form-success__icon { display: block; margin-bottom: 4px; }

.form-success h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; }

.form-success p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--grey-dark); }

.form-success__again {
  margin-top: 8px;
  min-height: 44px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

@keyframes dukk-opp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .form-success { animation: none; }
}

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

.site-footer .inner { padding: 48px var(--gutter) 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.site-footer img { width: 56px; height: 56px; display: block; }
.site-footer small { font-size: 13px; color: var(--grey-muted); }
.site-footer small a { color: var(--grey-muted); margin-left: 10px; text-underline-offset: 3px; }
.site-footer small a:hover { color: var(--black); }
.site-footer--line { border-top: 1px solid var(--beige-light); }

/* ---------- Personvern (lengre tekst) ---------- */

.prose { max-width: 680px; }
.prose h2 { margin: 44px 0 12px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--grey-dark); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose a { text-underline-offset: 3px; }
.prose .updated { margin-top: 36px; font-size: 14px; color: var(--grey-muted); }