:root {
  --paper: #F4F6F8;
  --sheet: #FFFFFF;
  --ink: #16213E;
  --ink-soft: #4E5873;
  --pen: #D7263D;
  --pen-ink: #B81D32;
  --marker: #FFE45C;
  --pencil: #9CC9E8;
  --pencil-deep: #5E9CC7;
  --line: #D9DEE6;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --side: max(var(--gutter), (100% - 1200px) / 2);
  --measure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-stretch: 85%; letter-spacing: -0.012em; }
h3 { font-size: 1.375rem; font-stretch: 92%; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--pencil-deep); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pen); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 2px; }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--side);
}
.mark {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  font-stretch: 85%; text-decoration: none;
}
.mark span { color: var(--pen); }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 0.95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.nav-cta { border: 2px solid var(--ink); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none !important; }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; font: 600 1.05rem/1 var(--body); text-decoration: none;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  padding: 16px 26px; border-radius: 999px;
}
.btn:hover { background: var(--pen-ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: the headline is the form */
.hero { padding: clamp(32px, 7vw, 96px) var(--side) clamp(48px, 8vw, 110px); }
.check { position: relative; }
.ask {
  font-size: clamp(3rem, 8.6vw, 7.6rem); font-weight: 700; line-height: 0.98;
  font-stretch: 85%; letter-spacing: -0.015em;
}
.ask-line { display: block; }
.blank { display: block; position: relative; margin: 0.06em 0 0.1em; max-width: 16ch; }
.blank input {
  font: inherit; letter-spacing: inherit; color: var(--ink);
  width: 100%; padding: 0 0 0.04em; margin: 0;
  background: transparent; border: 0; border-bottom: 0.06em solid var(--pencil); border-radius: 0;
  caret-color: var(--pen);
}
.blank input::placeholder { color: var(--pencil-deep); opacity: 0.55; }
.blank input:focus { outline: none; border-bottom-color: var(--pen); }
.blank input:focus-visible { outline: none; }
@media (max-width: 640px) { .blank { max-width: none; } .blank input { font-size: 0.8em; } }

.note { font-family: var(--hand); color: var(--pen); font-size: 1.35rem; line-height: 1.15; }
.note-hero {
  display: block; position: absolute; left: calc(100% + 0.5rem); bottom: 55%;
  transform: rotate(-4deg); width: 15ch; font-size: 1.35rem; font-weight: 400; letter-spacing: 0; line-height: 1.15; font-stretch: normal;
}
.note-arrow { display: block; width: 120px; height: 70px; margin: 6px 0 0 -64px; }
.note-arrow path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.note-hero { transition: opacity 0.2s; }
.check:has(input:not(:placeholder-shown)) .note-hero { opacity: 0; }
@media (max-width: 1180px) { .note-hero { display: none; } }

.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(28px, 4vw, 44px); }
.lede { max-width: 46ch; color: var(--ink-soft); }
.form-msg { margin-top: 14px; color: var(--pen-ink); font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: var(--ink); }

/* Report: a marked-up sheet */
.report { padding: 0 var(--side) clamp(56px, 8vw, 100px); }
.report > * { max-width: 980px; }
.report-head { display: grid; gap: 10px; margin-bottom: 28px; }
.report-head h2 { word-break: break-word; }
#report-summary { font-size: 1.2rem; max-width: var(--measure); }
.findings {
  list-style: none; margin: 0; padding: clamp(20px, 4vw, 40px);
  background: var(--sheet); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
}
.finding { display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; padding: 18px 0; }
.finding + .finding { border-top: 1px dashed var(--line); }
.finding h3 { font-size: 1.2rem; align-self: center; }
.finding p { grid-column: 2; color: var(--ink-soft); max-width: var(--measure); }
.finding .fix { grid-column: 2; font-family: var(--hand); color: var(--pen); font-size: 1.2rem; line-height: 1.25; }
.finding svg { grid-row: span 2; width: 46px; height: 46px; }
.finding svg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.finding.pass svg path { stroke: var(--pencil-deep); }
.finding.warn svg path, .finding.fail svg path { stroke: var(--pen); }
.finding.fail h3 span { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.draw path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 0.5s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw path { animation: none; stroke-dashoffset: 0; } }
.report-next { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 28px; }
.report-next p { max-width: 56ch; color: var(--ink-soft); }

/* Services */
.services, .how, .contact { padding: clamp(56px, 8vw, 110px) var(--side); }
.services { background: var(--sheet); }
.offers { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; }
.offers li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 48px; align-items: baseline;
  padding: 28px 0; border-top: 2px solid var(--ink);
}
.offers li:last-child { border-bottom: 2px solid var(--ink); }
.offers h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.offers li p:not(.price) { max-width: var(--measure); color: var(--ink-soft); }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); font-stretch: 85%; white-space: nowrap; }
.price span { font-family: var(--hand); font-weight: 400; color: var(--pen); font-size: 0.5em; margin-right: 6px; }
.price small { font-family: var(--body); font-weight: 400; font-size: 0.4em; color: var(--ink-soft); margin-left: 2px; }
@media (max-width: 640px) { .offers li { grid-template-columns: 1fr; } .price { order: -1; } }

/* How it works */
.steps {
  list-style: none; counter-reset: step; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px;
}
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: 1.6rem; line-height: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid var(--pen); border-radius: 52% 46% 55% 44% / 48% 55% 45% 52%;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); max-width: 40ch; }
.preview { margin: 18px 0 0; }
.bar {
  display: flex; align-items: center; gap: 10px; background: var(--sheet);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 0.92rem; max-width: 300px;
}
.dots { width: 34px; height: 8px; flex: none; background: radial-gradient(circle, var(--line) 3.5px, transparent 4px) 0 50% / 12px 8px repeat-x; }
.addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-preview { margin: 8px 0 0 30px; transform: rotate(-2deg); font-size: 1.2rem; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); }
.contact-intro p { margin-top: 16px; max-width: 42ch; color: #C9D0DE; }
.contact a { text-decoration-color: var(--pencil); }
.direct a { color: var(--paper); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: #AEB7C9; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); background: var(--paper); width: 100%;
  border: 2px solid transparent; border-radius: 6px; padding: 12px 14px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--pencil); }
.contact .btn { background: var(--paper); color: var(--ink); }
.contact .btn:hover { background: var(--marker); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact .form-msg { margin: 0; color: var(--marker); }
.contact .form-msg.ok { color: var(--paper); }
.contact :focus-visible { outline-color: var(--marker); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 28px var(--side) 36px; font-size: 0.92rem; color: var(--ink-soft);
}
.mark-small { font-size: 1.05rem; color: var(--ink); margin-right: 8px; }
