/**
 * BassinetBridge — Design System
 * Spacing scale, typography, and component styles
 */

/* ─── Spacing Scale ─────────────────────────────────── */
:root {
  --s1:  4px;
  --s2:  8px;
  --s3:  16px;
  --s4:  24px;
  --s5:  32px;
  --s6:  48px;
  --s7:  64px;
  --s8:  96px;

  /* Typography */
  --font-body: 'Nunito', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Design tokens */
  --bg:          #F8F4EE;
  --bg-warm:     #F2EDE5;
  --bg-alt:      #EDE7DD;
  --fg:          #1C2B24;
  --fg-muted:    #5A6B60;
  --accent:      #C89B6E;
  --accent-deep: #A67A4A;
  --green:       #2A4A3E;
  --green-light: #3D5E4E;
  --cream:       #FDFAF5;
  --border:      rgba(42,74,62,0.12);
  --shadow-sm:   0 1px 3px rgba(28,43,36,0.07), 0 1px 2px rgba(28,43,36,0.04);
  --shadow-md:   0 4px 12px rgba(28,43,36,0.09), 0 2px 4px rgba(28,43,36,0.05);
  --shadow-lg:   0 12px 32px rgba(28,43,36,0.12), 0 4px 8px rgba(28,43,36,0.06);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─── Layout ────────────────────────────────────────── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* ─── Typography ────────────────────────────────────── */
.t-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.t-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.t-label-dark {
  color: rgba(255,255,255,0.45);
}
.t-label-dark::before { background: rgba(200,155,110,0.6); }

/* ─── HERO ─────────────────────────────────────────── */
.section-hero {
  padding: var(--s8) 0 var(--s7);
  background: var(--bg);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(200,155,110,0.12);
  border: 1px solid rgba(200,155,110,0.3);
  border-radius: 100px;
  padding: var(--s1) var(--s4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s5);
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--s4);
  line-height: 1.15;
  text-align: center;
}

.hero-h1 em { font-style: italic; color: var(--fg); }

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: var(--s6);
  line-height: 1.7;
  max-width: 560px;
  text-align: center;
}

/* ─── EMAIL FORM ────────────────────────────────────── */
.email-form-wrap { max-width: 500px; margin-bottom: var(--s4); }

.email-form {
  display: flex;
  gap: var(--s3);
  align-items: stretch;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.email-form input[type="email"]:focus { border-color: var(--accent); }
.email-form input[type="email"]::placeholder { color: var(--fg-muted); opacity: 0.6; }

.email-form button {
  padding: 15px var(--s5);
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
  /* Full-width on mobile via media query */
}

.email-form button:hover { background: var(--green-light); }
.email-form button:active { transform: scale(0.98); }

.form-error {
  background: rgba(200,60,60,0.09);
  border: 1px solid rgba(200,60,60,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #c03030;
  margin-bottom: var(--s3);
  display: none;
}
.form-error.show { display: block; }

.trust-line {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.8;
}
.trust-line strong { color: var(--fg); font-weight: 600; }

/* ─── PAIN / PROBLEM SECTION ────────────────────────── */
.section-pain {
  padding: var(--s8) 0;
  background: var(--cream);
  text-align: center;
}

.pain-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--green);
  margin-bottom: var(--s6);
  text-align: center;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s6);
  list-style: none;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 17px;
  color: var(--fg);
  line-height: 1.6;
}

.pain-icon {
  width: 26px;
  height: 26px;
  background: rgba(200,60,60,0.1);
  border: 1.5px solid rgba(200,60,60,0.25);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pain-icon svg { width: 13px; height: 13px; }

/* ─── WHAT WE FIX ───────────────────────────────────── */
.section-fix {
  padding: var(--s8) 0;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.fix-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #fff;
  margin-bottom: var(--s3);
  line-height: 1.3;
}

.fix-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── BENEFITS SECTION ─────────────────────────────── */
.section-benefits {
  padding: var(--s8) 0;
  background: var(--bg);
  text-align: center;
}

.benefits-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--green);
  margin-bottom: var(--s6);
  text-align: center;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: rgba(42,74,62,0.08);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg { width: 20px; height: 20px; }

.benefit-item h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--green);
  margin-bottom: var(--s1);
}

.benefit-item p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── WHAT'S INSIDE ────────────────────────────────── */
.section-inside {
  padding: var(--s8) 0;
  background: var(--bg-warm);
  text-align: center;
}

.inside-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--green);
  margin-bottom: var(--s6);
  text-align: center;
}

.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.inside-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
}

.inside-card .check {
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.inside-card .check svg { width: 12px; height: 12px; }

/* ─── SOCIAL PROOF (testimonial cards) ─────────────── */
.section-social {
  padding: var(--s8) 0;
  background: var(--cream);
}

.social-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--green);
  margin-bottom: var(--s6);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s3);
}

.testimonial-stars svg { width: 16px; height: 16px; fill: var(--accent); }

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--s4);
}

.testimonial-meta {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 600;
}

/* ─── TRUST SIGNALS ────────────────────────────────── */
.section-trust {
  padding: var(--s7) 0;
  background: var(--bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.trust-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s5);
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg { width: 22px; height: 22px; }

.trust-card h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--green);
  margin-bottom: var(--s1);
}

.trust-card p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── SECOND CTA ───────────────────────────────────── */
.section-cta {
  padding: var(--s8) 0;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.cta-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: var(--s3);
}

.cta-p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--s6);
  line-height: 1.6;
}

.section-cta .email-form-wrap { margin: 0 auto; }

.section-cta .email-form input[type="email"] {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.section-cta .email-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.section-cta .email-form input[type="email"]:focus { border-color: var(--accent); }
.section-cta .trust-line { color: rgba(255,255,255,0.5); }
.section-cta .trust-line strong { color: #fff; }

/* ─── FOOTER ───────────────────────────────────────── */
footer {
  background: #1a3a2e;
  color: rgba(255,255,255,0.3);
  padding: var(--s4) 0;
  text-align: center;
  font-size: 12px;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 var(--s4); }

  .section-hero { padding: var(--s7) 0 var(--s6); }
  .section-pain  { padding: var(--s7) 0; }
  .section-fix   { padding: var(--s7) 0; }
  .section-benefits { padding: var(--s7) 0; }
  .section-inside    { padding: var(--s7) 0; }
  .section-social    { padding: var(--s7) 0; }
  .section-trust     { padding: var(--s6) 0; }
  .section-cta       { padding: var(--s7) 0; }

  .email-form { flex-direction: column; }
  .email-form button { width: 100%; padding: 16px; font-size: 17px; }

  .inside-grid { grid-template-columns: 1fr; }
  .trust-grid  { grid-template-columns: 1fr; }

  .testimonial-card { padding: var(--s4); }
}