:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #262626;
  --border: #3a3a3a;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --accent: #ffdf22;
  --accent-ink: #1e1e1e;
  --danger: #ff6b6b;
  --success: #4cd38a;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-weight: 700; letter-spacing: 0.02em; }

.layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 880px) {
  .layout { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; }
h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.25; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
}
.price strong { font-size: 40px; color: var(--accent); }

.benefits { list-style: none; padding: 0; margin: 0 0 8px; }
.benefits li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-top: 1px solid var(--border);
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }

.error { min-height: 0; color: var(--danger); font-size: 13px; }
.error:empty { display: none; }

.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } }

fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
}
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: progress; }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
}
#resume { margin-bottom: 16px; }
.notice.error-box { border-color: var(--danger); color: #ffd6d6; }
.notice.success-box { border-color: var(--success); }

.legal { font-size: 13px; color: var(--muted); text-align: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); }
.trust span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }

.state { display: grid; gap: 16px; }
.eyebrow.section { margin: 8px 0 -4px; }
.state[hidden] { display: none; }

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.stores { display: grid; gap: 10px; }
@media (min-width: 560px) { .stores { grid-template-columns: 1fr 1fr; } }
.stores.spaced { margin-top: 10px; }

.narrow { max-width: 640px; margin: 0 auto; }
footer { margin-top: 32px; text-align: center; font-size: 12px; color: var(--muted); }

.field[hidden] { display: none; }
