*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --secondary: #f1f5f9;
  --primary: #16a34a;
  --primary-fg: #ffffff;
  --primary-10: rgba(22, 163, 74, 0.10);
  --primary-20: rgba(22, 163, 74, 0.20);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 1024px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.header-tag { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .header-tag { display: none; } }

main { max-width: 720px; margin: 0 auto; padding: 40px 20px 20px; }

.hero-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--secondary); color: var(--fg);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(28px, 5vw, 44px); line-height: 1.15; font-weight: 700;
  margin: 0 0 20px;
}
.subhead {
  color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto;
}
.text-center { text-align: center; }
.mb-10 { margin-bottom: 40px; }

.hero-image {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--secondary);
  margin-bottom: 40px;
}
.hero-image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.lead { font-size: 18px; color: var(--fg); }

.habits { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.habit {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.habit .num {
  font-size: 44px; font-weight: 700; color: var(--primary-20); display: block; margin-bottom: 12px;
}
.habit h2 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.habit p { color: var(--muted); margin: 0; }

.callout {
  margin-top: 48px; border: 1px solid var(--border); background: rgba(241, 245, 249, 0.6);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.callout h2 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.callout p { color: var(--muted); margin: 0; }

.form-section {
  margin-top: 64px; border: 1px solid var(--border); background: var(--card);
  border-radius: 28px; padding: 32px 24px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form-section { padding: 44px 40px; } }

.form-heading { text-align: center; margin-bottom: 32px; }
.form-heading .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-10); color: var(--primary);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.form-heading h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin: 0 0 12px; }
.form-heading p { color: var(--muted); font-size: 14px; max-width: 460px; margin: 0 auto; }

form.lead-form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--fg); }
.field label .hint { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  font-size: 15px; color: var(--fg); outline: none; transition: border-color 0.15s;
}
.field input:focus { border-color: var(--primary); }
.field .input-wrap { position: relative; }
.field .input-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.error { color: #dc2626; font-size: 13px; margin-top: 4px; display: none; }

button.submit {
  width: 100%; height: 48px; border: 0; border-radius: 10px;
  background: var(--primary); color: var(--primary-fg);
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s;
}
button.submit:hover { opacity: 0.9; }
button.submit:disabled { opacity: 0.7; cursor: wait; }

.consent { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }

footer {
  margin-top: 80px; border-top: 1px solid var(--border); background: rgba(241, 245, 249, 0.4);
}
footer .inner { max-width: 1024px; margin: 0 auto; padding: 32px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* Thank you page */
.thank-you-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 48px 20px; background: var(--bg);
}
.thank-you-inner { max-width: 460px; text-align: center; }
.thank-you-icon {
  display: inline-flex; width: 80px; height: 80px; border-radius: 999px;
  background: var(--primary-10); color: var(--primary);
  align-items: center; justify-content: center; margin-bottom: 24px;
}
.thank-you-inner h1 { font-size: 32px; margin: 0 0 16px; }
.thank-you-inner p { color: var(--muted); margin: 0 0 32px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--fg); text-decoration: none;
  font-weight: 500; transition: background 0.15s;
}
.btn-outline:hover { background: var(--secondary); }
