:root {
  --ink: #142137;
  --muted: #607087;
  --paper: #ffffff;
  --mist: #eef7f3;
  --mint: #3cc99a;
  --mint-dark: #08785d;
  --coral: #ff786b;
  --yellow: #f3c84b;
  --line: #d7e1e4;
  --shadow: 0 24px 64px rgba(20, 33, 55, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-family: "Newsreader", serif;
}

.header-cta {
  min-height: 40px;
  padding: 0 17px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 90px;
  color: #fff;
  background: url("assets/baby-sleeping.jpg") center 43% / cover no-repeat;
  overflow: hidden;
}

.hero-overlay,
.final-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 38, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(670px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-section .eyebrow { color: #90f0ce; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, .book-page h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #0d2a22; background: var(--mint); }
.button-primary:hover { background: #62ddb5; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(0,0,0,.12); }
.button-light { color: var(--ink); background: #fff; }
.button-wide { width: 100%; }

.hero-note {
  margin: 15px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .84rem;
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  gap: 12px;
  color: #fff;
  font-size: .8rem;
  text-decoration: none;
  text-transform: uppercase;
}

.preview-section,
.process-section,
.pricing-section {
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
}

.preview-section { background: var(--mist); }

.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.compact { margin-bottom: 34px; }

.section-heading h2,
.pricing-copy h2,
.final-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: .98;
}

.section-heading > p:last-child,
.pricing-copy > p:last-child {
  max-width: 630px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.book-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.book-card { min-width: 0; }

.book-page {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid rgba(20, 33, 55, .1);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cover-page img,
.story-photo img,
.photo-grid img,
.final-section > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-page img { position: absolute; inset: 0; }
.cover-wash { position: absolute; inset: 0; background: rgba(13, 31, 47, .28); }

.cover-copy {
  position: absolute;
  inset: auto 32px 38px;
  z-index: 1;
  color: #fff;
}

.cover-copy p { margin-bottom: 8px; font-size: .78rem; text-transform: uppercase; }
.cover-copy h3 { margin-bottom: 7px; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: .9; }
.cover-copy span { color: rgba(255,255,255,.78); font-size: .85rem; }

.page-number {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(20,33,55,.38);
  font-size: .68rem;
}

.cover-page .page-number { color: rgba(255,255,255,.58); }

.timeline-page { padding: 25px; }
.timeline-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.timeline-heading span { color: var(--coral); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.timeline-heading h3 { max-width: 170px; margin: 0; font-size: 1.6rem; line-height: .98; text-align: right; }

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 8px;
  height: calc(100% - 75px);
}

.photo-grid figure { position: relative; margin: 0; overflow: hidden; }
.photo-grid .photo-large { grid-row: 1 / 3; }
.photo-grid .photo-wide { grid-column: 1 / 3; }
.photo-grid figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 6px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  border-radius: 3px;
  font-size: .58rem;
  font-weight: 700;
}

.story-page { display: grid; grid-template-rows: 45% 55%; }
.story-photo { overflow: hidden; }
.story-copy { padding: 23px 27px; }
.story-date { margin-bottom: 8px; color: var(--coral); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.story-copy h3 { margin-bottom: 11px; font-size: 1.9rem; line-height: .98; }
.story-copy > p:not(.story-date) { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.milestones span { color: var(--muted); font-size: .55rem; }
.milestones b { display: block; color: var(--ink); font-size: .78rem; }

.card-caption { display: grid; gap: 5px; padding: 19px 2px 0; }
.card-caption span { color: var(--coral); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.card-caption strong { font-size: .94rem; }

.process-section { background: #fff; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; min-height: 150px; padding: 27px 24px 20px 0; border-bottom: 1px solid var(--line); }
.process-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process-list > li > span { color: var(--mint-dark); font-size: .74rem; font-weight: 700; }
.process-list strong { display: block; margin-bottom: 10px; }
.process-list p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.pricing-section {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 80px;
  background: #f7cfc9;
}

.price-panel {
  padding: 34px;
  background: #fff;
  border: 1px solid rgba(20,33,55,.12);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(57, 35, 38, .12);
}

.price-panel > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.price-label { font-weight: 700; }
.price { grid-row: 1 / 3; grid-column: 2; font-family: "Newsreader", serif; font-size: 4.3rem; }
.price-detail { color: var(--muted); font-size: .8rem; }
.price-panel ul { margin: 28px 0; padding: 20px 0 20px 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-panel li { padding: 5px 0; color: var(--muted); font-size: .9rem; }

.final-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64vh;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
}

.final-section > img { position: absolute; inset: 0; object-position: center 52%; }
.final-overlay { background: rgba(10, 27, 43, .61); }
.final-copy { position: relative; z-index: 1; max-width: 720px; color: #fff; }
.final-copy h2 { margin-bottom: 28px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #fff;
}

footer span { font-weight: 700; }
footer p { margin: 0; color: rgba(255,255,255,.58); font-size: .76rem; text-align: right; }

.interest-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 38px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(13,31,47,.28);
}

.interest-dialog::backdrop { background: rgba(13, 31, 47, .7); }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 36px; height: 36px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: 1.7rem; cursor: pointer; }
.dialog-copy h2 { margin-bottom: 10px; font-size: 2.3rem; }
.dialog-copy > p:last-child { color: var(--muted); line-height: 1.55; }
.interest-dialog label:not(.consent-row) { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 700; }
.email-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.email-row input { min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid #b7c4cc; border-radius: 6px; outline: none; }
.email-row input:focus { border-color: var(--mint-dark); box-shadow: 0 0 0 3px rgba(60,201,154,.2); }
.consent-row { display: flex; align-items: start; gap: 9px; margin-top: 14px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.consent-row input { margin-top: 3px; accent-color: var(--mint-dark); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 13px 0 0; color: #a12c25; font-size: .8rem; }
.success-state { padding: 18px 0 4px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; color: #fff; background: var(--mint-dark); border-radius: 50%; font-size: 1.3rem; }
.success-state h3 { margin-bottom: 7px; }
.success-state p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .book-gallery { grid-template-columns: 1fr; gap: 44px; }
  .book-card { width: min(520px, 100%); margin: 0 auto; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li + li { padding-left: 0; border-left: 0; }
  .pricing-section { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 32px); height: 64px; }
  .header-cta { display: none; }
  .hero { min-height: 82vh; padding: 104px 20px 72px; background-position: 58% 45%; }
  .hero-overlay { background: rgba(11,24,38,.66); }
  h1 { font-size: 4.15rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-scroll { right: 20px; }
  .preview-section, .process-section, .pricing-section { padding: 68px 20px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .pricing-copy h2, .final-copy h2 { font-size: 2.65rem; }
  .timeline-page { padding: 20px; }
  .story-copy { padding: 18px 20px; }
  .story-copy h3 { font-size: 1.55rem; }
  .milestones { margin-top: 8px; padding-top: 8px; }
  .price-panel { padding: 25px; }
  .final-section { min-height: 56vh; padding: 70px 20px; }
  footer { display: grid; }
  footer p { text-align: left; }
  .interest-dialog { padding: 31px 20px 24px; }
  .email-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
