/* ============================================================
   Bloom: Your Baby's Story — design system
   Warm ivory canvas · terracotta accent · muted sage · charcoal ink
   ============================================================ */

:root {
  --ivory: #FAF6F0;
  --ivory-deep: #F4EDE2;
  --cream: #FFFDF8;
  --terra: #C4603C;
  --terra-deep: #A34D2F;
  --sage: #8FA08A;
  --sage-deep: #64755F;
  --charcoal: #3A2E28;
  --muted: #6E6055;
  --hairline: #E6DBC9;
  --shadow-soft: 0 22px 50px -20px rgba(58, 46, 40, 0.20);
  --shadow-card: 0 10px 30px -14px rgba(58, 46, 40, 0.16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }

a { color: var(--terra-deep); text-decoration-color: rgba(163, 77, 47, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--terra); }

:focus-visible {
  outline: 3px solid rgba(196, 96, 60, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(196, 96, 60, 0.22); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

h1.display { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 0 0 0.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--terra);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 38em;
  margin: 1.25rem 0 0;
}

.accent { color: var(--terra-deep); font-style: italic; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--charcoal);
}
.brand svg { width: 30px; height: 30px; }
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--terra-deep); }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  background: var(--terra-deep);
  color: var(--cream);
  box-shadow: 0 14px 30px -12px rgba(163, 77, 47, 0.55);
}
.btn-primary:hover {
  background: var(--terra);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(163, 77, 47, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--charcoal); transform: translateY(-2px); }

.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */

.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero-mark { width: 52px; height: 52px; margin-bottom: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2.2rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note svg { width: 15px; height: 15px; flex: none; }

.tagline {
  font-size: 0.95rem;
  color: var(--sage-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Keepsake card visual (pure CSS, no imagery) */
.keepsake { position: relative; margin: 0; min-height: 360px; }

.keepsake-card {
  position: absolute;
  inset: auto;
  width: min(320px, 82%);
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1.6rem 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.keepsake-card .kc-week {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--terra-deep);
}

.keepsake-card .kc-rule {
  height: 1px;
  background: var(--hairline);
  margin: 0.9rem 0 1.1rem;
}

.keepsake-card .kc-line {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  margin: 0;
}

.keepsake-card .kc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.keepsake-card .kc-meta svg { width: 14px; height: 14px; }

.keepsake-card.kc-front { top: 4%; left: 12%; transform: rotate(-2.5deg); z-index: 2; }
.keepsake-card.kc-back  { top: 56%; left: 28%; transform: rotate(2deg); background: var(--ivory-deep); z-index: 1; }
.keepsake-card.kc-back .kc-line { font-size: 1.1rem; color: var(--muted); }

@media (max-width: 880px) {
  .keepsake { min-height: 400px; margin-top: 1rem; }
  .keepsake-card.kc-front { left: 2%; }
  .keepsake-card.kc-back { left: 14%; }
}

/* ---------- Trust bar ---------- */

.trustbar {
  border-block: 1px solid var(--hairline);
  padding: 1.35rem 0;
}

.trustbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2.4rem;
}

.trustbar li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.trustbar li svg { width: 17px; height: 17px; color: var(--sage-deep); flex: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-card);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  background: rgba(143, 160, 138, 0.16);
  color: var(--sage-deep);
}
.card:nth-child(2) .icon { background: rgba(196, 96, 60, 0.12); color: var(--terra-deep); }
.card .icon svg { width: 24px; height: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.check-list li strong { color: var(--charcoal); font-weight: 600; }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 0.15rem; color: var(--terra-deep); }

/* Timeline visual */
.timeline {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 2rem 2rem 1.4rem;
}
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .t-week {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terra-deep);
  font-size: 0.95rem;
}
.timeline .t-text { margin: 0; font-size: 0.98rem; color: var(--muted); }
.timeline .t-text strong { color: var(--charcoal); font-weight: 600; }

/* ---------- Waitlist ---------- */

.waitlist {
  background: var(--ivory-deep);
  border-block: 1px solid var(--hairline);
  text-align: center;
}
.waitlist .display { max-width: 16em; margin-inline: auto; }
.waitlist .lede { margin-inline: auto; }
.waitlist .hero-actions { justify-content: center; }
.waitlist .sprout-center { width: 44px; height: 44px; margin: 0 auto 1.4rem; }

/* ---------- Footer ---------- */

.site-footer { padding: 3rem 0 3.5rem; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}

.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer .brand .wordmark { font-size: 1.2rem; }

.footer-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--terra-deep); }

.footer-legal {
  width: 100%;
  margin: 1rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Sub pages (privacy / support) ---------- */

.page-main { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }

.prose { max-width: 44rem; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 2.8rem 0 0.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 2rem; }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--muted); }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--charcoal); }
.prose .effective { font-size: 0.9rem; color: var(--sage-deep); font-weight: 500; }

.never-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.never-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.never-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; color: var(--terra-deep); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.3rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--terra-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.9rem 0 0; color: var(--muted); }

.contact-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  margin: 2.5rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}
.contact-card p { margin: 0; color: var(--muted); flex: 1 1 20rem; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}

/* ---------- 404 ---------- */

.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.center-page .display { margin-top: 1.2rem; }
.center-page p { color: var(--muted); margin: 1rem 0 2rem; }
