:root {
  --coral: #ff6b57;
  --coral-dark: #e9503f;
  --aubergine: #332b3a;
  --muted: #776b65;
  --line: #eaded5;
  --paper: #fffdf9;
  --ivory: #fff9f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ivory);
  color: var(--aubergine);
  line-height: 1.5;
}

.container {
  width: min(560px, 92vw);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 22px;
  height: 28px;
  object-fit: contain;
}

.page-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(90, 65, 55, .08);
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.plan-pill {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eee9ff;
  color: #5a4cb8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffe6de;
  color: #a33;
  font-size: 14px;
}

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

.field-row label {
  margin-top: 0;
}

.field-row + label,
.field-row ~ label:not([for="terms"]) {
  margin-top: 16px;
}

.page-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: white;
  color: var(--aubergine);
}

.page-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus {
  outline: 2px solid rgba(255, 107, 87, .35);
  outline-offset: 1px;
  border-color: var(--coral);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.field-row > div {
  min-width: 0;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--coral);
}

.checkbox-row label {
  display: block;
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--coral-dark);
}

.text-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.text-link a {
  color: #7762d8;
  font-weight: 600;
}

.note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
