:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5f5f5a;
  --line: #dddbd4;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --error: #b42318;
  --ok: #0f7b4b;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1b1c1e;
    --text: #f1f0ec;
    --muted: #a3a29c;
    --line: #313236;
    --accent: #7aa2ff;
    --accent-ink: #0b0c0e;
    --error: #ff8a80;
    --ok: #5fd49a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) 1rem 2.5rem;
}

.hero { margin-bottom: 2rem; }

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

.domain {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.75rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.pitch {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
}

.price {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 2rem);
}

.card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
}

.field { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
  font-size: .925rem;
}

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

input, textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; min-height: 7rem; }

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

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

.money {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.money span { color: var(--muted); font-weight: 600; }

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

button {
  width: 100%;
  margin-top: .5rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: progress; }

.status {
  margin: 1rem 0 0;
  color: var(--error);
  font-weight: 500;
}

.success h2 { color: var(--ok); }
.success p { margin: 0; color: var(--muted); }

footer {
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 40rem) {
  button { width: auto; padding-inline: 1.75rem; }
}
