/* Home page: matches the "Version 1 home: first families (free)" mockup screen. */
:root {
  --cream: #FBF6EE;
  --peach: #FFF3E6;
  --ink: #3B2A1A;
  --muted: #6B5A4C;
  --line: #E8DCCB;
  --field: #CDBFAE;
  --teal: #1D6B6E;
  --teal-dark: #134B4D;
  --teal-soft: #E3EFEE;
  --deep: #154346;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.5;
}
a { color: var(--teal); }
@media (hover: hover) { a:hover { color: var(--teal-dark); } }
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; background: var(--cream); }
section { padding: 32px 20px; display: flex; flex-direction: column; gap: 14px; }
section p { margin: 0; }
.white { background: #FFFFFF; }
h1 { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.1; }
h2 { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; }
.h2small { font-size: 24px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }

.top { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.brand { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--teal); text-decoration: none; }

/* Hero */
.hero { padding-top: 26px; gap: 16px; }
.hero h1 + .muted, .hero .muted + .muted { margin-top: -6px; }
.beforeafter { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.beforeafter figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.beforeafter figcaption { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.3; }
.photo { width: 112px; flex: 0 0 112px; }
.photo img { width: 112px; height: 146px; object-fit: cover; border-radius: 10px; border: 4px solid #FFFFFF; box-shadow: 0 4px 12px rgba(59, 42, 26, 0.15); transform: rotate(-3deg); }
.arrow { color: var(--teal); flex: 0 0 30px; }
.cover { flex: 1 1 auto; max-width: 196px; }
.cover img { width: 100%; max-width: 196px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: -3px 0 0 #D9C7AE, 0 8px 20px rgba(59, 42, 26, 0.22); }
label { font-weight: 700; font-size: 16px; }
input[type="text"] {
  height: 52px; padding: 0 16px; font-size: 18px; width: 100%;
  border: 1.5px solid var(--field); border-radius: 12px; background: #FFFFFF; font-family: inherit; color: var(--ink);
}
input[type="text"]:focus { outline: 3px solid rgba(29, 107, 110, 0.35); border-color: var(--teal); }
.go {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px;
  background: var(--teal); color: #FFFFFF; text-decoration: none; text-align: center; padding: 0 12px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px;
}
a.go { color: #FFFFFF; }
@media (hover: hover) { a.go:hover { background: var(--teal-dark); color: #FFFFFF; } }
.note { text-align: center; font-size: 15px; color: var(--muted); }

/* Flip-book */
.peek { background: var(--peach); }
.stage { height: 210px; display: flex; align-items: center; justify-content: center; }
.book-cover { width: 196px; height: 196px; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: -4px 0 0 #D9C7AE, 0 10px 22px rgba(59, 42, 26, 0.28); }
.spread { position: relative; display: flex; width: 100%; max-width: 340px; aspect-ratio: 2 / 1; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 22px rgba(59, 42, 26, 0.25); }
.spread .blank { width: 50%; background: #FDFAF4; }
.spread img { width: 50%; height: 100%; object-fit: cover; display: block; }
.spread img.wide { width: 100%; }
.fold { position: absolute; left: calc(50% - 12px); top: 0; width: 24px; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0)); pointer-events: none; }
.caption { text-align: center; font-weight: 700; font-size: 16px; }
.controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round { width: 48px; height: 48px; border-radius: 24px; border: 1.5px solid var(--field); background: #FFFFFF; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dots { display: flex; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dot span { display: block; width: 9px; height: 9px; border-radius: 5px; background: #8C7B68; }
.dot.on span { width: 12px; height: 12px; border-radius: 6px; background: var(--teal); }

/* How it works */
.how { gap: 18px; }
.howstep { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: 0 0 40px; height: 40px; border-radius: 20px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; }

.titlerow { display: flex; gap: 10px; align-items: center; color: var(--teal); }
.titlerow h2 { color: var(--ink); }

/* Photo promise card */
.promisecard { margin: 0 20px; padding: 24px 20px; background: var(--teal-soft); border-radius: 16px; gap: 12px; }

/* FAQ */
.faq { gap: 10px; }
.faq h2 { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq details.last { border-bottom: 0; }
.faq summary { font-weight: 700; padding: 10px 0; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.final { padding: 36px 20px; text-align: center; gap: 12px; }
.ai { gap: 12px; }

.foot { padding: 28px 20px 40px; background: var(--deep); color: #F3EADF; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.footbrand { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; }
.foot a { color: #F3EADF; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.stickybar { position: sticky; bottom: 0; padding: 12px 20px 16px; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(59, 42, 26, 0.08); }
.stickybar .go { min-height: 52px; font-size: 19px; }
