:root {
  color-scheme: light;
  --amber: oklch(0.8 0.155 68);
  --amber-deep: oklch(0.7 0.15 62);
  --amber-wash: oklch(0.95 0.045 75);
  --ink: oklch(0.2 0.025 60);
  --ink-soft: oklch(0.38 0.025 60);
  --ink-on-amber: oklch(0.26 0.04 60);
  --white: oklch(0.995 0.001 60);
  --line: oklch(0.88 0.008 60);
  --line-strong: oklch(0.8 0.012 60);
  --paid: oklch(0.45 0.12 150);
  --paid-wash: oklch(0.95 0.04 150);
  --error: oklch(0.47 0.16 28);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--white); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; width: 100%; height: auto; }

h1, h2 {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 18ch; }
h3 { font-size: 1.3125rem; line-height: 1.2; font-weight: 700; text-wrap: balance; }

.frame {
  width: min(100%, 75rem);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 3rem);
}

.section-lede { margin-top: 1rem; max-width: 40rem; font-size: 1.125rem; color: var(--ink-soft); text-wrap: pretty; }

/* Illustration text */
.art-van { font: 800 16px "Schibsted Grotesk", Arial, sans-serif; letter-spacing: 0.03em; fill: var(--ink); }
.art-small { font: 500 19px "Schibsted Grotesk", Arial, sans-serif; fill: var(--ink-soft); }
.art-strong { font-weight: 700; fill: var(--paid); }
.art-big { font: 800 52px "Schibsted Grotesk", Arial, sans-serif; fill: var(--ink); }
.art-mid { font: 800 23px "Schibsted Grotesk", Arial, sans-serif; fill: var(--ink); }
.art-tiny { font: 700 14px "Schibsted Grotesk", Arial, sans-serif; fill: var(--white); }

/* Hero */
.hero { background: var(--amber); padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 1.25rem;
}

.name { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }

.status {
  padding: 0.25rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-copy { display: grid; gap: 1.5rem; min-width: 0; padding-bottom: 0.5rem; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); max-width: 15ch; }
.lede { max-width: 36rem; font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.42; color: var(--ink-on-amber); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

.button {
  display: inline-block;
  padding: 0.9rem 1.35rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 9px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms var(--out);
}
.button:hover { transform: translateY(-2px); }
.text-link { color: var(--ink); font-weight: 650; text-underline-offset: 0.2em; }

/* How */
.how { padding-block: clamp(4rem, 9vw, 7rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  counter-reset: step;
}
.steps li { display: grid; gap: 0.75rem; align-content: start; counter-increment: step; }
.steps h3::before { content: counter(step) ". "; }
.steps p { color: var(--ink-soft); text-wrap: pretty; }

/* Example */
.example-wrap { background: var(--amber); padding-block: clamp(4rem, 9vw, 7rem); }
.example-wrap .section-lede { color: var(--ink-on-amber); }
.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.side { display: grid; align-content: start; gap: 1.25rem; min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); }
.side + .side { border-left: 2px solid var(--ink); background: var(--amber-wash); }
.side-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.side-head span { font-size: 0.875rem; color: var(--ink-soft); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0 0 0.6rem; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.choices button {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms var(--out), color 160ms var(--out);
}
.choices button:hover { background: var(--amber-wash); }
.choices button[aria-pressed="true"] { background: var(--ink); color: var(--white); font-weight: 600; }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--ink);
  font-variant-numeric: tabular-nums;
}
.total strong { font-weight: 800; font-size: 2.25rem; line-height: 1; }

.act {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms var(--out), background-color 160ms var(--out);
}
.act:hover { background: var(--ink-soft); }
.act:active { transform: translateY(1px); }
.act:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 2px; }

.confirmed { display: grid; gap: 0.5rem; padding: 1rem; background: var(--paid-wash); border-radius: 9px; }
.confirmed strong { font-size: 1.125rem; }

.visits { display: grid; }
.visit {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding-block: 0.8rem;
  border-bottom: 1px solid oklch(0.2 0.025 60 / 0.22);
}
.visit time { font-weight: 650; }
.visit small { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.visit-amount { text-align: right; font-weight: 650; }
.tag { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.tag.paid { color: var(--paid); }
.visit.new { animation: arrive 620ms var(--out); }
.waiting { padding: 0.9rem 1rem; border: 1.5px dashed var(--ink-soft); border-radius: 9px; color: var(--ink-soft); }

@keyframes arrive {
  from { background: var(--amber); }
  to { background: transparent; }
}

.takings {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}
.takings strong { font-weight: 800; font-size: 1.75rem; line-height: 1; }

.example-note { padding-top: 0.9rem; }
.linklike { padding: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* Payment methods */
.pays {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.pays h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
.pays-copy { display: grid; gap: 1.5rem; align-content: start; font-size: 1.1875rem; text-wrap: pretty; }
.methods { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.methods li {
  padding: 0.4rem 0.9rem;
  background: var(--amber-wash);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
}

/* Deal */
.deal { background: var(--ink); color: var(--white); padding-block: clamp(4rem, 9vw, 7rem); }
.deal-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 6rem); }
.deal h2 { color: var(--amber); }
.deal-intro { margin-top: 1.5rem; max-width: 34rem; font-size: 1.1875rem; line-height: 1.6; text-wrap: pretty; }
.terms { display: grid; gap: 1.1rem; align-content: start; }
.terms li { padding-top: 1.1rem; border-top: 1px solid oklch(0.995 0.001 60 / 0.3); }
.terms strong { display: block; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.25rem; }
.terms span { color: oklch(0.86 0.008 60); }

/* Form */
.ask {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4rem, 9vw, 7rem);
  scroll-margin-top: 1rem;
}
.ask-head { align-self: start; position: sticky; top: 2rem; }
form { display: grid; gap: 1.75rem; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms var(--out);
}
.check:hover, .check:has(input:checked) { background: var(--amber-wash); }
.check:has(input:checked) { font-weight: 600; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: var(--ink); }

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem 1rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; }
.field label { font-weight: 600; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
textarea { resize: vertical; line-height: 1.45; }
::placeholder { color: var(--ink-soft); opacity: 1; }
.hint { font-size: 0.9375rem; color: var(--ink-soft); }
.first-five { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.first-five input { margin-top: 0.25rem; }
.trap { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status[data-kind="error"] { color: var(--error); }
.form-status[data-kind="ok"] { color: var(--paid); }

footer { padding-block: 1.75rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-width: 58rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 34rem; }
  .example-grid { grid-template-columns: minmax(0, 1fr); }
  .side + .side { border-left: 0; border-top: 2px solid var(--ink); }
  .pays, .deal-grid, .ask { grid-template-columns: minmax(0, 1fr); }
  .ask-head { position: static; }
}

@media (max-width: 26rem) {
  .visit { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
