@import "tokens/fonts.css";
@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/shape.css";
@import "tokens/spacing.css";

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  overflow-x: hidden;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

p, h1, h2, h3 { text-wrap: pretty; }

.kicker {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--terracotta);
}

/* ---------- Confetti dots ---------- */
.dots {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.dots--sm { gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dots--sm .dot { width: 7px; height: 7px; }
.dot--blue { background: var(--confetti-blue); }
.dot--gold { background: var(--confetti-gold); }
.dot--sage { background: var(--confetti-sage); }
.dot--rose { background: var(--confetti-rose); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 26px var(--page-pad);
  max-width: var(--page-max);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo { width: 40px; height: 40px; }
.nav__wordmark {
  font-family: var(--font-script);
  font-size: 27px;
  font-weight: 600;
  color: var(--terracotta);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--text-secondary); font-size: 16px; }
.nav__link:hover { color: var(--text-primary); }

.btn-pill {
  display: inline-block;
  background: var(--sage);
  color: var(--text-on-sage) !important;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}
.btn-pill:hover { background: var(--sage-hover); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px var(--page-pad) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.hero__kicker { font-size: 26px; }
.hero__title { font-size: var(--text-h1); line-height: var(--leading-heading); font-weight: 500; margin: 0; }
.hero__lead { margin: 0; color: var(--text-secondary); max-width: 480px; }

.hero__art { position: relative; min-width: 0; }
.hero__photo {
  width: 100%;
  height: clamp(360px, 55vw, 480px);
  border-radius: var(--radius-arch);
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__pram {
  position: absolute;
  left: -96px;
  bottom: -18px;
  width: 190px;
  pointer-events: none;
}

.hero__dots { padding: 28px 0 8px; }

/* ---------- Email capture ---------- */
.email-form {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid #D5CDBB;
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 22px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}
.email-form--footer { max-width: 400px; margin-top: 0; }
.email-form__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-primary);
}
.email-form__submit {
  background: var(--sage);
  color: var(--text-on-sage);
  font-size: 17px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.email-form__submit:hover { background: var(--sage-hover); }

.email-confirm {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-sage-section);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  max-width: 480px;
}
.email-confirm--footer { margin-top: 0; max-width: none; }
.email-confirm__text { color: var(--text-primary); font-size: 16px; font-style: italic; }
.email-confirm svg { flex-shrink: 0; }

.email-form__error {
  margin-top: 8px;
  font-size: 15px;
  font-style: italic;
  color: var(--terracotta-link);
}

[hidden] { display: none !important; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section-y) var(--page-pad); box-sizing: border-box; }
.section--sage { background: var(--bg-sage-section); }
.section__inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; align-items: center; }
.section__title { font-size: var(--text-h2); font-weight: 500; margin: 0; text-align: center; }

/* ---------- Rhythm cards ---------- */
.rhythm { padding-top: 72px; padding-bottom: 80px; }
.rhythm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; width: 100%; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 30px 34px;
}
.rhythm-card { display: flex; flex-direction: column; gap: 10px; }
.rhythm-card__head { display: flex; align-items: center; gap: 12px; }
.rhythm-card__head .dot { width: 9px; height: 9px; }
.rhythm-card__title { font-size: 25px; font-weight: 500; }
.rhythm-card__body { color: var(--text-secondary); font-size: var(--text-body); }
.rhythm__note { text-align: center; max-width: 600px; display: flex; flex-direction: column; gap: 12px; }
.rhythm__note p { margin: 0; }
.rhythm__note .lead { color: var(--text-secondary); font-size: var(--text-body); }
.rhythm__note .closer { font-style: italic; color: var(--terracotta-link); font-size: 18px; }

/* ---------- Two minutes ---------- */
.two-minutes { padding: 48px var(--page-pad) var(--section-y); text-align: center; }
.two-minutes .section__inner { max-width: 620px; gap: 16px; }
.two-minutes p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.two-minutes .emphasis { color: var(--text-primary); }

/* ---------- Film ---------- */
.film { }
.film__grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.film__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.film__copy h2 { font-size: var(--text-h2); font-weight: 500; margin: 0; }
.film__copy p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.film__copy .closer { font-style: italic; color: var(--sage-deep); font-size: 18px; }
.film__media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film__still { width: 100%; height: 340px; border-radius: var(--radius-photo); overflow: hidden; position: relative; }
.film__still img { width: 100%; height: 100%; object-fit: cover; }
.film__scrim { position: absolute; inset: 0; background: var(--scrim-photo); }
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(251,250,244,0.35);
  border: 1.5px solid rgba(251,250,244,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.play-button__triangle {
  width: 0; height: 0;
  border-left: 22px solid var(--text-on-sage);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.film__caption { display: flex; align-items: center; gap: 10px; justify-content: center; }
.film__caption span { color: var(--text-secondary); font-size: 15px; }

/* ---------- Firsts ---------- */
.firsts .section__inner p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); max-width: 560px; }
.firsts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; width: 100%; }
.firsts-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-photo);
  padding: 26px 20px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.firsts-card__label { font-style: italic; font-size: var(--text-body); color: var(--text-primary); text-align: center; }

/* ---------- Baby wall ---------- */
.babywall__grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.collage-item { height: 210px; overflow: hidden; min-width: 0; border-radius: var(--radius-photo); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item--down { margin-top: 36px; }
.collage-item--arch-top { border-radius: 120px 120px 14px 14px; }
.collage-item--arch-bottom { border-radius: 14px 14px 120px 120px; }
.collage-item--up { margin-top: -36px; }
.babywall__copy { display: flex; flex-direction: column; gap: 18px; }
.babywall__copy h2 { font-size: var(--text-h2); font-weight: 500; margin: 0; }
.babywall__copy p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.babywall__copy .emphasis { color: var(--text-primary); font-size: 18px; font-weight: 500; }
.babywall__copy .closer { font-style: italic; color: var(--sage-deep); font-size: 18px; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: 100%; }
.price-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.price-card--premium { border-color: var(--border-coupon); }
.price-card__head { display: flex; flex-direction: column; gap: 2px; }
.price-card__head-row { display: flex; align-items: baseline; gap: 12px; }
.price-card__name { font-size: 28px; font-weight: 500; }
.price-card__price { font-size: 20px; font-style: italic; color: var(--terracotta-link); }
.price-card__tagline { font-size: 16px; font-style: italic; }
.price-card--free .price-card__tagline { color: var(--sage); }
.price-card--premium .price-card__tagline { color: var(--terracotta-link); }
.price-card__features { display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); font-size: var(--text-body); }
.price-card__feature { display: flex; gap: 12px; align-items: baseline; }
.price-card__feature .bullet { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; position: relative; top: -3px; }
.price-card--free .bullet { background: var(--sage-soft); }
.price-card--premium .bullet { background: #DBAA82; }

.btn-outline {
  margin-top: auto;
  text-align: center;
  border: 1px solid var(--sage);
  color: var(--sage-deep);
  background: transparent;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn-outline:hover { background: var(--sage); color: var(--text-on-sage) !important; }
.btn-fill {
  margin-top: auto;
  text-align: center;
  background: var(--sage);
  color: var(--text-on-sage) !important;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}
.btn-fill:hover { background: var(--sage-hover); }


/* ---------- Books ---------- */
.books .section__inner { max-width: 980px; gap: 26px; text-align: center; }
.books .section__inner > p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); max-width: 560px; }
.book-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 26px;
  width: 100%;
  padding: 16px 0 8px;
}
.book { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow-book);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute; right: 4px; top: 8px; bottom: 8px; width: 5px;
  background: repeating-linear-gradient(0deg, #FFFFFF 0px, #FFFFFF 2px, #E2DECB 2px, #E2DECB 3px);
  border-radius: 2px;
}
.book-cover::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background: linear-gradient(90deg, rgba(62,58,51,0.16), rgba(62,58,51,0));
}
.book-cover--spring { background: #EFF3E4; }
.book-cover--summer { background: #FBF2DA; }
.book-cover--autumn { background: #F5E9D9; }
.book-cover--winter { background: #E8EEF4; }
.book-cover__label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; }
.book-cover--spring .book-cover__label { color: var(--sage-deep); }
.book-cover--summer .book-cover__label { color: #B08A3E; }
.book-cover--autumn .book-cover__label { color: var(--terracotta-link); }
.book-cover--winter .book-cover__label { color: #7B93A8; }
.book-cover img { object-fit: contain; }
.book-cover__motif--leaves { height: 32%; }
.book-cover__motif--mobile { height: 32%; }
.book-cover__motif--wheat { height: 42%; transform: rotate(24deg); margin: -8px 0; }
.book-cover__motif--pacifier { height: 32%; }
.book-cover__title { font-family: var(--font-script); font-size: 34px; font-weight: 600; }
.book-cover--spring .book-cover__title { color: #5F6B47; }
.book-cover--summer .book-cover__title { color: #B08A3E; }
.book-cover--autumn .book-cover__title { color: var(--terracotta-link); }
.book-cover--winter .book-cover__title { color: #7B93A8; }
.book-cover__weeks { font-size: 13px; font-style: italic; color: var(--text-secondary); }
.book__price { font-size: 15px; color: var(--text-secondary); }

.price-list {
  width: 100%;
  max-width: 720px;
  background: var(--surface-card);
  border: 1px solid #E2DECB;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  text-align: left;
}
.price-list__row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid #ECE8D8;
}
.price-list__row:last-child { border-bottom: none; }
.price-list__title { font-size: 19px; font-weight: 500; color: var(--text-primary); }
.price-list__desc { color: var(--text-secondary); font-size: 16px; }
.price-list__price { font-size: 24px; font-style: italic; color: var(--terracotta-link); white-space: nowrap; }
.books__note { margin: 0; color: var(--text-secondary); font-size: 16px; max-width: 560px; }

/* ---------- Gift + privacy ---------- */
.gift-privacy {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.gift-privacy .card { padding: 34px 36px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-card-lg); }
.gift-privacy h3 { font-size: 25px; font-weight: 500; margin: 0; }
.gift-privacy p { margin: 0; color: var(--text-secondary); font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #E7E1D2; padding: 64px var(--page-pad) 72px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__logo { width: 56px; height: 56px; }
.footer__wordmark { font-family: var(--font-script); font-size: 34px; font-weight: 600; color: var(--terracotta); }
.footer__tagline { color: var(--text-secondary); font-style: italic; font-size: var(--text-body); }
.footer__dots { padding: 14px 0; }
.footer__links { display: flex; gap: 24px; justify-content: center; padding-top: 18px; font-size: 15px; }
.footer__links a { font-style: italic; }

/* ---------- Legal pages ---------- */
.legal-page { min-height: 100vh; }
.legal-page__inner { max-width: 760px; margin: 0 auto; padding: 56px var(--page-pad) 88px; }
.legal-back { font-style: italic; font-size: 16px; text-decoration: none; }
.legal-head { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
.legal-head__kicker { font-family: var(--font-script); font-size: 26px; font-weight: 500; color: var(--terracotta); }
.legal-head h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 500; margin: 0; line-height: 1.15; }
.legal-head__date { color: var(--text-muted); font-style: italic; font-size: 15px; }
.legal-intro { margin: 28px 0 0; color: var(--text-secondary); font-style: italic; }
.legal-page h2 { font-size: 26px; font-weight: 500; margin: 44px 0 10px; }
.legal-page p { margin: 0; color: var(--text-secondary); }
.legal-page .sub { margin: 0 0 4px; color: var(--text-primary); font-style: italic; }
.legal-page .sub ~ p { margin-top: 0; }
.legal-page ul { margin: 0; padding-left: 24px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.legal-contact {
  margin-top: 56px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-lg);
  padding: 28px 32px;
  color: var(--text-secondary);
}
.legal-contact__label { font-style: italic; color: var(--text-primary); margin-bottom: 6px; }

/* ---------- Hero (phone demo variant) ---------- */
.hero--demo { padding: 40px var(--page-pad) 32px; gap: clamp(28px, 4vw, 64px); }
.hero--demo .hero__copy { gap: 20px; }
.hero__title--demo { font-size: clamp(38px, 7vw, 52px); }

.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; width: 100%; }
.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.feature-row.is-active { opacity: 1; }
.feature-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D8D1C0;
  margin-top: 9px;
  flex-shrink: 0;
  transition: background 0.5s ease;
}
.feature-row.is-active .feature-row__dot { background: var(--sage); }
.feature-row__text { display: flex; flex-direction: column; gap: 1px; }
.feature-row__title { font-size: 20px; font-weight: 500; }
.feature-row__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.45; max-width: 420px; }

@media (max-width: 899px) {
  .feature-list { display: none; }
}

/* ---------- Phone mockup ---------- */
.hero__phone { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.phone-wrap { width: 100%; max-width: 380px; margin: 0 auto; }
.phone-box { position: relative; }
.phone {
  width: 440px;
  height: 900px;
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: top left;
}
.phone__frame {
  width: 440px;
  height: 900px;
  background: var(--bg-dark);
  border-radius: 64px;
  padding: 12px;
  box-shadow: var(--shadow-float);
  box-sizing: border-box;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-radius: 52px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.phone__statusbar {
  position: absolute;
  top: 18px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.phone__clock { font-size: 17px; font-weight: 600; }
.phone__island { width: 96px; height: 28px; background: var(--bg-dark); border-radius: 999px; }
.phone__page {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 64px 28px 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  transition: opacity 0.7s ease;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.phone__page.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.phone__page p, .phone__page div { text-wrap: pretty; }

/* ---------- Mobile caption + dots (shown <900px only) ---------- */
.mobile-caption { display: none; }
@media (max-width: 899px) {
  .mobile-caption {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }
}
.mobile-dots { display: flex; gap: 8px; justify-content: center; }
.mobile-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #D5CDBB;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
/* Expands the tappable area to ~44px without affecting visual size */
.mobile-dot::before { content: ""; position: absolute; inset: -18px; }
.mobile-dot.is-active { width: 22px; background: var(--sage); }
.mobile-caption__title { font-size: 20px; font-weight: 500; }
.mobile-caption__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.5; max-width: 340px; }

/* ---------- Family photo (moved below hero) ---------- */
.family-photo { max-width: 880px; margin: 0 auto; padding: 40px var(--page-pad) 8px; box-sizing: border-box; }
.family-photo__frame { position: relative; }
.family-photo__image {
  width: 100%;
  height: clamp(320px, 45vw, 440px);
  border-radius: var(--radius-arch);
  overflow: hidden;
}
.family-photo__image img { width: 100%; height: 100%; object-fit: cover; }
.family-photo__pram { position: absolute; left: -96px; bottom: -18px; width: 190px; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero__pram, .family-photo__pram { display: none; }
}
