:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1b1b1f;
  --muted: #5d5f66;
  --line: #e3e1da;
  --accent: #0e5a56;
  --accent-ink: #ffffff;
  --accent-soft: #e4f0ee;
  --error: #a3302a;
  --ok: #1f6b3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -20px rgba(0, 0, 0, .3);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316;
    --surface: #1b1d21;
    --text: #ecebe7;
    --muted: #a3a5ad;
    --line: #2b2e34;
    --accent: #5fc3b8;
    --accent-ink: #0c1f1d;
    --accent-soft: #17302d;
    --error: #ff8a80;
    --ok: #7fd49a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --bg: #121316;
  --surface: #1b1d21;
  --text: #ecebe7;
  --muted: #a3a5ad;
  --line: #2b2e34;
  --accent: #5fc3b8;
  --accent-ink: #0c1f1d;
  --accent-soft: #17302d;
  --error: #ff8a80;
  --ok: #7fd49a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 72px) 16px 56px;
}

.hero { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: 0 0 12px;
  font-size: clamp(64px, 17vw, 120px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.wordmark .tld { color: var(--accent); }

.hero h1:not(.wordmark) {
  margin: 0 0 12px;
  font-size: clamp(30px, 7vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.lede {
  margin: 0 0 22px;
  max-width: 48ch;
  font-size: 18px;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 28px);
  margin-bottom: 18px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -.01em;
}

.field { margin-bottom: 14px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.opt { font-weight: 400; color: var(--muted); }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}

textarea { resize: vertical; min-height: 80px; }

input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

.amount-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: progress; }

.status { margin: 0; font-size: 14px; color: var(--muted); }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }

.done { padding: 6px 0; }
.done h3 { margin: 0 0 6px; font-size: 18px; }
.done p { margin: 0; color: var(--muted); }

@media (max-width: 420px) {
  .amount-row { grid-template-columns: 6rem 1fr; }
}

/* --- visual blocks --- */
.glow {
  position: fixed;
  inset: -20vh -20vw auto -20vw;
  height: 70vh;
  background: radial-gradient(60% 60% at 30% 30%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tile {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile strong { font-size: 15px; letter-spacing: -.01em; }
.tile span { font-size: 13px; color: var(--muted); }

.ico {
  width: 36px;
  height: 36px;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stepper {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--line);
}

.stepper li { display: grid; gap: 4px; position: relative; }

.stepper .num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--surface);
}

.stepper strong { font-size: 15px; }
.stepper li > span:last-child { font-size: 13px; color: var(--muted); }

.fineprint { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

@media (max-width: 560px) {
  .tiles { gap: 10px; }
  .tile { padding: 14px; }
  .stepper { grid-template-columns: 1fr; gap: 14px; padding-left: 0; }
  .stepper::before { top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; }
  .stepper li { grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; }
  .stepper .num { grid-row: 1 / span 2; margin: 0; }
  .row2 { grid-template-columns: 1fr; }
}

.errors { margin: 0 0 12px; padding-left: 22px; color: var(--error); }
