/* Self-hosted (SIL Open Font License) so visitors make no third-party font requests. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --paper: #e6ebef;      /* cool security-paper grey */
  --ink: #15233a;        /* navy ink for text */
  --ink-soft: #4a5a70;
  --pen: #1d4fb3;        /* fountain-pen blue */
  --cheque: #f4f6f0;     /* cheque stock */
  --guilloche: rgba(29, 79, 179, 0.07);
  --stamp: #c0392b;
  --rule: #b9c3cf;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--pen); }

:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: 76rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}

.lang button {
  font: 600 0.8125rem/1 var(--sans);
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */

main { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3rem, 8vw, 6rem); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.status::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: #2e9d5b;
  box-shadow: 0 0 0 4px rgba(46, 157, 91, 0.18);
}

.domain {
  font-size: clamp(4.25rem, 16vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 0.12em 0 0.1em -0.04em;
}

.domain .tld { font-weight: 400; color: var(--ink-soft); }

.lede {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(0, 48rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 34ch;
}

.facts li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.facts strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Cheque ---------- */

.cheque-wrap { position: relative; }

.cheque {
  position: relative;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 0 100%, transparent 0 9px, var(--guilloche) 9px 10px),
    repeating-radial-gradient(circle at 100% 0, transparent 0 9px, var(--guilloche) 9px 10px),
    var(--cheque);
  border: 1px solid #c9d1c4;
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -28px rgba(21, 35, 58, 0.45);
  transform: rotate(-0.6deg);
}

.cheque-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.bank strong { display: block; font-size: 1.05rem; }
.bank span { color: var(--ink-soft); font-size: 0.875rem; }

.cheque-meta {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.row { display: grid; gap: 1.25rem; }

.payee {
  grid-template-columns: 1fr auto;
  grid-template-areas: "label label" "payee amount";
  align-items: end;
  column-gap: 1.5rem;
  row-gap: 0;
}
.payee .label { grid-area: label; }
.payee .static { grid-area: payee; }
.payee .amount { grid-area: amount; }

.line.static {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--ink);
}

.amount {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  padding: 0.3rem 0.75rem;
  min-width: 12rem;
}

.amount .currency { font-size: 1.5rem; font-weight: 600; }

.amount input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  font: 600 1.6rem/1.2 var(--sans);
  color: var(--pen);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.amount input:focus { outline: none; }
.amount:focus-within { outline: 2px solid var(--pen); outline-offset: 3px; }

.two {
  grid-template-columns: 1fr 1fr;
  margin-top: 1.25rem;
}

.field { display: block; }
.memo-row {
  grid-template-columns: minmax(10rem, 1fr) 2.5fr;
  margin-top: 1.25rem;
}

.field select {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315233a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.15rem center;
  padding: 0.35rem 1.5rem 0.35rem 0;
  font: 500 1.125rem/1.4 var(--sans);
  color: var(--pen);
  cursor: pointer;
}
.field select:focus { outline: none; border-bottom: 2px solid var(--pen); margin-bottom: -1px; }

.field input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0;
  font: 500 1.125rem/1.4 var(--sans);
  color: var(--pen);
}
.field input::placeholder { color: #8d99a8; font-weight: 400; }
.field input:focus { outline: none; border-bottom: 2px solid var(--pen); margin-bottom: -1px; }

[aria-invalid="true"] { border-color: var(--stamp) !important; }

.error {
  display: block;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-top: 0.3rem;
}
p.error { text-align: right; }

.hp { position: absolute; left: -9999px; }

.captcha { margin-top: 1.5rem; min-height: 78px; }
.cheque.is-received .captcha { visibility: hidden; }

.cheque-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.micr {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.send {
  font: 600 1.0625rem/1 var(--sans);
  color: #fff;
  background: var(--pen);
  border: 0;
  border-radius: 4px;
  padding: 1rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.send:hover { background: #163f90; }
.send[disabled] { opacity: 0.7; cursor: progress; }

.form-status { font-size: 0.875rem; margin-top: 0.75rem; text-align: right; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--stamp); }

/* The one orchestrated moment: the stamp lands when an offer is received. */
.stamp {
  position: absolute;
  top: 42%;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.2);
}

.stamp span {
  display: block;
  padding: 0.35rem 1.4rem;
  border: 5px double var(--stamp);
  border-radius: 8px;
  color: var(--stamp);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}

.cheque.is-received .stamp {
  animation: stamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
}

.cheque.is-received input,
.cheque.is-received .send { pointer-events: none; }
.cheque.is-received .send { visibility: hidden; }

@keyframes stamp {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); }
  70%  { opacity: 0.92; transform: translate(-50%, -50%) rotate(-14deg) scale(0.96); }
  100% { opacity: 0.88; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}

.thanks {
  margin-top: 1.75rem;
  max-width: 40rem;
}
.thanks h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.thanks:focus { outline: none; }

/* ---------- Content sections ---------- */

.steps, .why, .faq {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.4fr;
  gap: 2rem clamp(2rem, 5vw, 4rem);
}

.steps h2, .why h2, .faq h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.steps p, .why p, .faq p { color: var(--ink-soft); }

.why-body { display: grid; gap: 1rem; max-width: var(--measure); }
.why-body p:first-child { color: var(--ink); font-size: 1.25rem; line-height: 1.5; }

.faq { align-items: start; }
.faq h2 { grid-row: span 4; }
.faq details { border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.25rem; }

.footer {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .facts { display: none; }
}

@media (max-width: 800px) {
  .steps, .why, .faq { grid-template-columns: 1fr; }
  .faq h2 { grid-row: auto; }
  .steps ol { grid-template-columns: 1fr; gap: 1.75rem; }
  .cheque { transform: none; }
}

@media (max-width: 560px) {
  .cheque-head { flex-direction: column; }
  .cheque-meta { justify-items: start; }
  .payee {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "payee" "amount";
    row-gap: 1rem;
  }
  .amount { min-width: 0; }
  .two { grid-template-columns: 1fr; gap: 0.5rem; }
  .memo-row { grid-template-columns: 1fr; }
  .cheque-foot { flex-direction: column-reverse; align-items: stretch; }
  .send { width: 100%; }
  .micr { text-align: center; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cheque.is-received .stamp {
    animation: none;
    opacity: 0.88;
    transform: translate(-50%, -50%) rotate(-14deg);
  }
}
