:root {
  --ink: #171513;
  --marker: #F5D547;
  --marker-light: #FBF0B8;
  --muted: #5E5A52;
  --line: #E0DFDA;
  --field-line: #D6D4CD;
  --grey: #F2F2EF;
  --white: #FFFFFF;
  --footer-muted: #A8A49B;
  --error-bg: #FBE1DB;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Merkepenn-strøket bak «prat», «fast» og «fortsette selv» */
  --highlight: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M6 0H195L199 14L196 30L200 48L196 66L199 82L195 100H5L1 86L5 70L1 52L4 34L0 18Z' fill='%23F5D547'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Merkepenn-utheving */
.hl {
  position: relative;
  display: inline-block;
  padding: 0 0.1em;
  margin: 0 0.02em;
  isolation: isolate;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.04em;
  top: 14%;
  height: 92%;
  background: var(--highlight) 0 0 / 100% 100% no-repeat;
  transform: skewX(-12deg);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo .hl {
  padding: 0 0.115em;
  margin: 0 0 0 0.08em;
}
.logo-footer {
  font-size: 24px;
  color: var(--white);
}
.logo-footer .hl { color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }

@media (max-width: 560px) {
  .nav-link { display: none; }
  .header-row { flex-wrap: nowrap; column-gap: 16px; }
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-sm {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-primary { background: var(--marker); }
.btn-primary:hover { background: #EBC92E; color: var(--ink); }
.btn-outline {
  padding: 0 22px;
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero { padding: 112px 0 96px; }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.lead {
  max-width: 620px;
  font-size: 20px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.note {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .hero { padding: 72px 0 64px; }
}

/* Seksjoner */
.section { padding: 96px 0; }
.section-grey { background: var(--grey); }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.h3-lg { font-size: 26px; }
.muted { color: var(--muted); }

@media (max-width: 560px) {
  .section { padding: 72px 0; }
}

/* Kort */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card p { color: var(--muted); }

/* Steg */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.step-tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  background: var(--marker);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Løfte */
.promise {
  background: var(--ink);
  color: var(--white);
  padding: 120px 0;
}
.promise-title {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}
.promise-title .hl { color: var(--ink); }

@media (max-width: 560px) {
  .promise { padding: 88px 0; }
}

/* Book en prat */
.book {
  background: var(--marker);
  padding: 96px 0;
}
.book-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}
.book-intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-lead { font-size: 19px; }
.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.contact-title { font-weight: 600; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.contact-link:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .book { padding: 72px 0; }
}

/* Skjema */
.form {
  flex: 1.4 1 480px;
  min-width: 0;
  background: var(--white);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}
.field label,
.field-set legend {
  font-size: 15px;
  font-weight: 600;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder { color: #8A867D; }
.form input:hover,
.form textarea:hover { border-color: #B8B5AC; }
.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.form input:focus-visible,
.form textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--marker);
}

.field-set {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field-set legend {
  padding: 0;
  margin-bottom: 8px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: #B8B5AC; }
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--grey);
}
.choice input {
  margin: 0;
  accent-color: var(--ink);
}
.hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.form > .hint { margin-top: 0; }

.btn-submit {
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-submit:hover { background: #34302B; }
.btn-submit:disabled {
  cursor: progress;
  background: #4A463F;
}

.status {
  padding: 14px 16px;
  background: var(--marker-light);
  border-radius: 8px;
  font-weight: 500;
}
.status[hidden] { display: none; }
.status-error { background: var(--error-bg); }

/* Honningkrukke mot spam: usynlig for mennesker */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}
.footer-links a { color: var(--white); }
.footer-links a:hover { color: var(--marker); }
.footer-copy { color: var(--footer-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
