:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --muted: #555;
  --accent: #c8531c;
  --accent-dark: #a44115;
  --rule: #e6e3dc;
  --card: #ffffff;
  --hero-bg: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Legal-page wrap (privacy/terms keep using this) ───────────────── */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header h1 a {
  color: var(--ink);
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 1rem;
}

article h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article p, article ul {
  margin-bottom: 1rem;
}

article ul {
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

section p {
  font-size: 1.0625rem;
  margin-top: 1rem;
  color: var(--ink);
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

footer .fine {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Lander layout ─────────────────────────────────────────────────── */

.lander { width: 100%; }

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */

.hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 5rem 0 4.5rem;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero .lede {
  font-size: 1.1875rem;
  color: #d0d0d0;
  max-width: 36rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.hero-fine {
  font-size: 0.9rem;
  color: #888;
  margin-top: 1rem;
}

/* How it works */

.how {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.how h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.how-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.how-steps > li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.how-steps .num {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.how-steps h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.how-steps strong {
  color: var(--ink);
  font-weight: 700;
}

/* CTA / form section */

.cta {
  padding: 4.5rem 0 5rem;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cta-lede {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

/* Progress bar */

.progress {
  height: 6px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

/* Form steps */

.step {
  border: 0;
  padding: 0;
  display: none;
}

.step.active {
  display: block;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step label {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step .field-hint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.step input:not([type="checkbox"]):not([type="radio"]),
.step select,
.step textarea {
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  width: 100%;
  margin-bottom: 0;
}

.step input:not([type="checkbox"]):not([type="radio"]):focus,
.step select:focus,
.step textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.step label.checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  margin: 0.2rem 0 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.step label.checkbox {
  cursor: pointer;
  line-height: 1.45;
}

.step label.checkbox span {
  flex: 1 1 auto;
}

.step-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.step-actions .btn-primary { flex: 1; }
.step-actions .btn-ghost { flex: 0 0 auto; }

/* Buttons */

.btn-primary {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1rem 1.75rem;
  background: var(--accent);
}

.btn-lg:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn-ghost {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--ink);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}
.form-status.err { color: #b91c1c; }
.form-status.ok  { color: #15803d; }

/* Lander footer (full-width band, shorter) */

.lander > footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  margin-top: 0;
  padding: 2rem 0 2.5rem;
}

.lander > footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lander > footer .fine {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Mobile */

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .lede { font-size: 1.05rem; }

  .how { padding: 3rem 0; }
  .how h2 { font-size: 1.625rem; }
  .how-steps > li { gap: 1rem; }
  .how-steps .num { width: 2.125rem; height: 2.125rem; font-size: 1rem; }
  .how-steps h3 { font-size: 1.0625rem; }

  .cta { padding: 3rem 0 4rem; }
  .cta h2 { font-size: 1.625rem; }

  .form-card { padding: 1.5rem 1.25rem; }
  .step label { font-size: 1.1875rem; }
  .step input:not([type="checkbox"]):not([type="radio"]), .step select, .step textarea { font-size: 1.0625rem; }

  .step-actions { flex-direction: row-reverse; }
  .step-actions .btn-primary { flex: 1; }
}

@media (max-width: 480px) {
  .wrap { padding: 1.5rem 1rem 3rem; }
  article h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
}
