:root {
  color-scheme: light;
  --ink: #202322;
  --muted: #676c69;
  --line: #dce0dd;
  --paper: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; border-radius: 0; }
body { margin: 0; }
.page { width: min(100%, 808px); margin: 0 auto; padding: 64px 24px; }
main { border: 1px solid var(--line); }
.intro { padding: 40px; border-bottom: 1px solid var(--line); }
h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.headline { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-heading { padding: 30px 40px 0; }
h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px 40px 32px; }
.field { min-width: 0; }
.field:has(#amount), .field:has(#message), button, .status, .terms { grid-column: 1 / -1; }
label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
label span { color: var(--muted); font-size: 11px; font-weight: 400; }
label[for="amount"] span { font-family: ui-monospace, monospace; letter-spacing: .06em; }
input, textarea, button { font: inherit; border-radius: 0; appearance: none; }
input, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd1cd;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s;
}
input:hover, textarea:hover, .amount:hover { border-color: #929c95; }
textarea { resize: vertical; min-height: 104px; }
.amount { display: flex; align-items: center; border: 1px solid #cbd1cd; transition: border-color .15s; }
.amount > span { display: grid; place-items: center; align-self: stretch; width: 49px; flex: 0 0 49px; border-right: 1px solid var(--line); font-size: 17px; color: var(--muted); }
.amount input { border: 0; min-width: 0; font-variant-numeric: tabular-nums; }
button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: #38413b; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #336347; outline-offset: 3px; }
.terms { margin: -8px 0 0; max-width: 530px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.status { margin: -8px 0 0; font-size: 13px; line-height: 1.6; }
.status:empty { display: none; }
.status[data-state="error"] { color: #a02020; }
.status[data-state="success"] { color: #22613c; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 600px) {
  .page { padding: 24px 16px; }
  .intro { padding: 28px 24px; }
  h1 { font-size: clamp(27px, 7.6vw, 42px); margin-bottom: 14px; }
  .form-heading { padding: 26px 24px 0; }
  form { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .headline { font-size: 13px; }
  .terms { margin-top: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  input, textarea, .amount, button { transition: none; }
}
