@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paletten er hentet fra illustrasjonene */
  --bg: #fdfcff;
  --bg-tint: #f1eeff;
  --ink: #1f1b3a;
  --ink-soft: #4d4a66;
  --line: #e4e0f5;
  --red: #f0484f;
  --red-dark: #d9363d;
  --indigo: #4b3be3;
  --lilac: #7a6bff;
  --blue: #2589ff;
  --yellow: #f8d21f;
  --peach: #fdc47d;

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 12vw, 10rem);

  /* Håndtegnet rød strek, brukt under overskrifter og navn */
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 16 2, 30 11, 44 6 S 68 3, 77 7' fill='none' stroke='%23f0484f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 4.75rem); }

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 3rem;
}

h2::after, .quote figcaption::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.7rem;
  margin-top: 0.75rem;
  background: var(--scribble) no-repeat center / 100% 100%;
}

h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1.25rem; max-width: 36em; }

a { color: var(--indigo); text-underline-offset: 0.2em; }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 50rem; }

.lead {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.5rem;
}
.skip:focus { left: 0.5rem; color: #fff; }

/* Knapp */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 1.125rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.35rem 0 var(--red-dark);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.button:hover {
  color: #fff;
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 0.5rem 0 var(--red-dark);
}
.button:active { transform: translateY(0.2rem); box-shadow: 0 0.15rem 0 var(--red-dark); }

.button-small { padding: 0.8rem 1.5rem; font-size: 1rem; }

/* Rolig tekstlenke til kontakt, for dem som er overbevist underveis */
.link-cta {
  display: inline-block;
  padding-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: var(--scribble) no-repeat left bottom / 100% 0.45rem;
}
.link-cta span { display: inline-block; transition: transform 0.2s; }
.link-cta:hover { color: var(--red-dark); }
.link-cta:hover span { transform: translateX(0.3rem); }
.more { margin: 1.5rem 0 0; padding-left: 4.5rem; }
.pricing-cta { margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(253 252 255 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.wordmark {
  font: 700 1.6rem/1 var(--font-head);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark::after { content: "."; color: var(--red); }
.wordmark:hover { color: var(--ink); }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:not(.nav-cta) {
  padding-bottom: 0.35rem;
  background: var(--scribble) no-repeat left bottom / 0 0.4rem;
  transition: background-size 0.25s;
}
.nav a:not(.nav-cta):hover { background-size: 100% 0.4rem; }
.nav .nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.nav .nav-cta:hover { background: var(--red-dark); }

/* Felles lilla felt med store hjørner, brukt øverst og nederst */
.panel {
  width: calc(100% - 2 * clamp(0.5rem, 2vw, 2.5rem));
  max-width: 84rem;
  margin-inline: auto;
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-tint);
}

/* Hero */
.hero { padding-bottom: var(--section); }
.hero .panel { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.hero h1 { margin-bottom: 2rem; }
.hero .lead { margin-bottom: 2.5rem; max-width: 24em; }
/* Illustrasjonene har mye luft rundt seg i selve fila, derav de negative margene */
.hero-art { width: 116%; max-width: 116%; margin: -8% -10% -6% -6%; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.hero-cta p { margin: 0; max-width: 15em; font-size: 1rem; line-height: 1.4; color: var(--ink-soft); }

/* Håndtegnet strek under «forstår» */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--red);
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Seksjoner */
.section { padding-block: 0 var(--section); }

/* Slik jobber vi */
.work {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.work-art {
  position: sticky;
  top: 6rem;
  margin: -4% -8% 0 -4%;
  max-width: 112%;
  width: 112%;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 3rem 4.5rem;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.35rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  font: 600 1.6rem/1 var(--font-head);
  color: var(--ink);
  background: var(--c, var(--bg-tint));
  transition: transform 0.3s;
}
/* Én form per steg: sirkel, bue, firkant, kvartsirkel */
.steps > li:nth-child(1)::before { --c: #ffe27a; border-radius: 50%; }
.steps > li:nth-child(2)::before { --c: #bfe0ff; border-radius: 999px 999px 0.5rem 0.5rem; }
.steps > li:nth-child(3)::before { --c: #ffc2c5; border-radius: 0.9rem; transform: rotate(-6deg); }
.steps > li:nth-child(4)::before { --c: #d6d0ff; border-radius: 100% 0.5rem 0.5rem 0.5rem; }
.steps > li:hover::before { transform: rotate(8deg) scale(1.06); }
.steps h3 { margin-bottom: 0.6rem; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }

.no-magic {
  margin: 3rem 0 0;
  padding-left: 4.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 30em;
}

/* Sitater: tekst og navn, luft rundt */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote blockquote p::before { content: "«"; }
.quote blockquote p::after { content: "»"; }
.quote figcaption {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.quote figcaption::after { width: 2.5rem; height: 0.5rem; margin-top: 0.4rem; }
.quote-inline {
  margin-top: 1.75rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--yellow);
}
.quote-inline blockquote p { font-size: 1.125rem; }
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 6rem);
}
.quotes .quote { position: relative; padding-left: 4.5rem; }
.quotes .quote::before {
  content: "”";
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  padding-top: 0.9rem;
  font: 700 2.4rem/1 var(--font-head);
  background: var(--c);
  transition: transform 0.3s;
}
.quotes .quote:nth-child(1)::before { --c: #d6d0ff; border-radius: 100% 0.5rem 0.5rem 0.5rem; }
.quotes .quote:nth-child(2)::before { --c: #ffe27a; border-radius: 50%; }
.quotes .quote:hover::before { transform: rotate(8deg) scale(1.06); }
.quotes .quote:nth-child(2) { margin-top: 4rem; }

/* Pris */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: start;
}
.pricing .price { margin: 0; }
.price .per { font-size: 0.42em; letter-spacing: -0.01em; white-space: nowrap; }
.pricing p:last-child { margin-bottom: 0; }
.price {
  max-width: none;
  font: 700 clamp(2.75rem, 6.5vw, 5rem)/1.1 var(--font-head);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
/* Gul tusjstrek bak prisen */
.marker {
  padding: 0 0.12em;
  margin: 0 -0.12em;
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%);
  border-radius: 0.1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Hvem vi er */
.team-lead { max-width: 32em; margin-bottom: 3.5rem; }
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person h3 { font-size: 1.3rem; margin: 1.25rem 0 0.15rem; }
.person .person-subjects { margin-bottom: 0.5rem; font-weight: 600; color: var(--ink); }
.person p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
/* Bildene får de samme formene som stegene: sirkel, bue, firkant, kvartsirkel */
.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--c);
  transition: transform 0.3s;
}
.person:nth-child(4n + 1) .person-photo { --c: #ffe27a; border-radius: 50%; }
.person:nth-child(4n + 2) .person-photo { --c: #bfe0ff; border-radius: 999px 999px 1.25rem 1.25rem; }
.person:nth-child(4n + 3) .person-photo { --c: #ffc2c5; border-radius: 22%; transform: rotate(-3deg); }
.person:nth-child(4n + 4) .person-photo { --c: #d6d0ff; border-radius: 100% 1.25rem 1.25rem 1.25rem; }
@media (hover: hover) {
  .person:hover .person-photo { transform: rotate(3deg) scale(1.03); }
}

/* Ta kontakt */
#kontakt, #bestill { padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.section .panel { padding-block: clamp(3rem, 7vw, 6rem); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}
.callback { margin-top: 2rem; max-width: 32rem; }
.callback label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.callback-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.callback input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.callback input:focus-visible { outline-offset: 0; border-radius: 999px; }
.callback .button { white-space: nowrap; }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0.75rem 0 0; min-height: 1.5em; font-size: 1rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-done { margin: 0; font: 700 1.5rem/1.3 var(--font-head); letter-spacing: -0.01em; }
.callback button:disabled { opacity: 0.6; cursor: progress; }
.contact-alt { margin: 1.75rem 0 0; font-size: 1rem; color: var(--ink-soft); }
.contact-art { margin: -8% -6%; max-width: 112%; width: 112%; }

/* Footer */
.site-footer {
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; max-width: none; }
.site-footer a { color: inherit; }

/* Kampanjesider */
/* Kampanjetopp: som forsiden, med et lite regnestykke til høyre */
.eyebrow { margin: 0 0 1rem; font-weight: 600; color: var(--ink-soft); }
.offer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); }
.offer h1 .marker { white-space: nowrap; }
.receipt {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  background: #fff;
  transform: rotate(1.5deg);
}
.receipt > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
}
.receipt dt { color: var(--ink-soft); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.receipt s { font-weight: 400; color: var(--ink-soft); text-decoration: line-through 0.1em var(--red); }
.receipt small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.receipt .receipt-sum {
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  border-top: 2px dashed var(--line);
}
.receipt .receipt-sum dt { color: var(--ink); font-weight: 600; }
.receipt .receipt-sum dd { font: 700 1.6rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.smallprint { margin: 1.5rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }

/* Undersider (personvern) */
.page { padding-block: clamp(2rem, 6vw, 4rem) var(--section); }
.page h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 2.5rem; }
.page h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.page h2::after { display: none; }

/* Rolig bevegelse. Klassen .js settes bare når nettleseren støtter det og brukeren ikke har bedt om mindre bevegelse. */
.js [data-reveal], .js .steps > li {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .is-visible { opacity: 1 !important; transform: none !important; }
.js .scribble path { animation: draw 0.7s 0.6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Én kolonne */
@media (max-width: 56rem) {
  .hero-inner, .offer, .work, .contact, .quotes, .pricing { grid-template-columns: minmax(0, 1fr); }
  .receipt { transform: none; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 100%; max-width: 100%; margin: -4% 0 -6%; }
  .contact-art { margin: -4% 0 -8%; width: 100%; max-width: 100%; }
  .work { row-gap: 1.5rem; }
  .work-art { position: static; order: -1; margin: -6% 0 -4%; width: 100%; max-width: 100%; }
  .work-text { display: contents; }
  .work h2 { order: -2; margin-bottom: 0; }
  .quotes .quote:nth-child(2) { margin-top: 0; }
}

@media (max-width: 36rem) {
  body { font-size: 1.0625rem; }
  .nav li:not(:last-child) { display: none; }
  .steps > li, .quotes .quote { padding-left: 4rem; }
  .no-magic { padding-left: 0; margin-top: 1rem; }
  .more { padding-left: 0; margin-top: 0; }
  /* Lærerne under hverandre, med bildet til venstre slik som formene i steglisten */
  .team { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .person {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .person-photo { grid-row: 1 / span 3; }
  .person h3 { margin-top: 0.25rem; }
  .callback-row { flex-direction: column; align-items: stretch; }
  .callback .button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .steps > li::before, .quotes .quote::before, .person-photo, .nav a { transition: none; }
}
