:root {
  color-scheme: light;
  --ink: #18332b;
  --muted: #587067;
  --brand: #2e7d5b;
  --brand-dark: #1f6044;
  --surface: #fffdf7;
  --surface-soft: #f2f6ef;
  --line: #d7e2da;
  --danger: #b3261e;
  --shadow: 0 18px 48px rgba(24, 51, 43, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--surface-soft); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(46, 125, 91, 0.10), transparent 32rem),
    var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(46, 125, 91, 0.34);
  outline-offset: 3px;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.card {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.16; text-wrap: balance; }
h1 { margin: 0 0 16px; font-size: clamp(2rem, 7vw, 3.35rem); letter-spacing: -0.04em; }
h2 { margin: 36px 0 10px; font-size: 1.28rem; letter-spacing: -0.015em; }
p, li { color: var(--muted); }
ul { padding-left: 22px; }

.lead { font-size: 1.08rem; }

.status {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.status strong { color: var(--ink); }
.status.invalid { border-color: rgba(179, 38, 30, 0.28); }
.status.invalid strong { color: var(--danger); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: white;
  background: var(--brand);
  font-weight: 760;
  text-decoration: none;
}

.button:hover { background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); background: transparent; }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button:disabled { opacity: 0.64; cursor: wait; }

.stack { display: grid; gap: 10px; margin: 20px 0; }
.stack label { color: var(--ink); font-weight: 760; }
.stack input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}
.stack input:focus-visible { outline: 3px solid rgba(46, 125, 91, 0.34); outline-offset: 2px; }

.fineprint { margin-top: 32px; font-size: 0.88rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 540px) {
  .shell { width: min(100% - 20px, 760px); margin-top: 18px; }
  .card { border-radius: 22px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: enter 360ms ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } }
}
