@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --table: #EEF1F4;
  --sheet: #F8F9FB;
  --ink: #18212E;
  --muted: #4E5A6A;
  --line: #CDD4DD;
  --blue: #2747C8;
  --blue-deep: #1B3496;
  --red: #E5484D;
  --green: #2FA36B;
  --sub: #3E63DD;
  --measure: 38rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--table);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Schibsted Grotesk", system-ui, sans-serif;
}

main, footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* hero: the name is the picture */
.hero { padding: clamp(4rem, 14vh, 9rem) 0 4.5rem; }

.mark { position: relative; }

.mark h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.1rem, 13.5vw, 9.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.mark canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.js-anim .mark h1 { color: transparent; }

.lede {
  margin: 2rem 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sub {
  margin: 0.75rem 0 2rem;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.1875rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-deep); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sub);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* content sections sit on a lighter sheet, like prints laid on a light table */
section {
  margin: 0 0 1.5rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 3px;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.625rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.reasons {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.75rem 2.5rem;
}
.reasons div { max-width: var(--measure); }
.reasons dt { font-weight: 700; }
.reasons dd { margin: 0.25rem 0 0; color: var(--muted); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* form */
.offer { max-width: 32rem; }
.row { margin: 0 0 1.1rem; }
label { display: block; margin: 0 0 0.35rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #A9B3C0;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
.money { position: relative; }
.money span {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
}
.money input { padding-left: 1.7rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 1rem 0 0; font-weight: 600; }
.status.ok { color: #1F7A4D; }
.status.err { color: #B4232A; }
.fine { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }

footer { padding-top: 1.5rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.9375rem; }
footer p { margin: 0 0 0.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  main, footer { padding: 0 1rem; }
  section { padding: 2rem 1.1rem; }
  .steps li { padding-left: 2.6rem; }
}
