/* DrawdownDefend landing page — mobile-first, no framework. */

:root {
  --slate: #0f172a;
  --green: #127a51;
  --green-accent: #1e9e6a;
  --green-light: #bff0d9;
  --bg: #f8fafc;
  --white: #ffffff;
  --muted: #475569;
  --radius: 12px;
}

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

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.75rem; margin-bottom: 1.5rem; text-align: center; }
section { padding: 56px 0; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}
.logo { display: block; height: 36px; width: auto; }

/* Hero */
.hero {
  background: var(--slate);
  color: var(--bg);
  text-align: center;
  padding: 72px 0;
  border-bottom: 4px solid var(--green-light);
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto 1rem;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: #cbd5e1;
}
.hero-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary {
  background: var(--green-accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--green); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 0.5rem; color: var(--green); }
.card p { color: var(--muted); }

/* How it works */
.how { background: var(--white); }
.steps {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { color: var(--muted); }

/* Pricing */
.price-card { text-align: center; position: relative; }
.price-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--slate);
}
.price-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.price-card .accounts {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.price-card ul {
  list-style: none;
  color: var(--muted);
  text-align: center;
}
.price-card ul li { padding: 4px 0; }
.price-card.featured { border: 2px solid var(--green-accent); }
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reserve form */
.reserve { background: var(--white); border-top: 4px solid var(--green-light); }
#reserve-form, .success {
  max-width: 520px;
  margin: 0 auto;
}
.field { margin-bottom: 1.25rem; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
fieldset.field { border: 0; }
.choice {
  display: block;
  font-weight: 400;
  padding: 6px 0;
  cursor: pointer;
}
.choice input { margin-right: 8px; accent-color: var(--green); }
input[type="email"], select, textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
input[type="email"]:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green-accent);
  border-color: var(--green-accent);
}
#reserve-form .btn { width: 100%; }
.form-error { color: #b91c1c; margin-top: 0.75rem; text-align: center; }
.success {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  font-weight: 600;
  color: var(--green);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Larger screens */
@media (min-width: 720px) {
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.75rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

html { scroll-behavior: smooth; }
