/* Layout contract: the public homepage owns its hero and section rhythm.
   Required QA: qa:landing; website sweep at phone, tablet and desktop in both themes.
   Existing app, calendar and display layouts are independent of this stylesheet. */
body.home-page { background: var(--cream); }
.home-page .section-shell { width: min(1180px, calc(100% - 48px)) !important; padding: 72px 0; }
.home-page h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.045em; }
.home-page p { text-wrap: pretty; }
.home-page .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 64px;
  padding-top: 46px;
  padding-bottom: 54px;
}
.home-page .home-eyebrow { margin: 0 0 20px; color: var(--sage-dark); font-size: .8rem; font-weight: 750; }
.home-page .home-hero h1 { max-width: 650px; font-size: clamp(2.6rem, 4.8vw, 4.1rem); line-height: 1.04; letter-spacing: -.055em; }
.home-page .home-hero .hero-lede { max-width: 530px; font-size: 1.06rem; line-height: 1.65; }
.home-page .home-hero .hero-actions { margin-top: 26px; }
.home-page .home-hero .hero-product { width: 100%; max-width: 336px; margin: 0 auto; }
.home-page .home-hero .hero-display-frame { border-radius: 18px; transform: none; box-shadow: 0 18px 48px rgba(39,32,23,.12); }
.home-page .home-hero .hero-display-frame::after { display: none; }
.home-page .home-hero .hero-display-frame img { aspect-ratio: 800 / 1285; height: auto; object-fit: contain; }
.home-page .family-voices { padding: 32px 0 44px; border-bottom: 1px solid var(--line); }
.home-page .family-voices-intro { margin-bottom: 24px; }
.home-page .family-voices-intro h2 { font-size: .75rem; letter-spacing: .12em; }
.home-page .family-voices-grid { grid-template-columns: 1fr 2fr; gap: 40px; }
.home-page .family-voices-supporting { grid-template-columns: 1fr 1fr; gap: 40px; align-content: start; }
.home-page .family-voices-supporting .family-voice { padding: 0; border: 0; }
.home-page .family-voice p { font-family: var(--font-sans); font-size: 1.04rem; font-weight: 600; line-height: 1.55; letter-spacing: -.015em; }
.home-page .family-voice cite { margin-top: 12px; font-size: .74rem; }
.home-page .smart-setup-section { display: block; }
.home-page .smart-setup-section > div:first-child { max-width: 680px; }
.home-page .setup-step-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.home-page .setup-step-card { display: block; padding: 22px 0 0; border: 0; border-top: 2px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.home-page .setup-step-card > span { position: static; display: block; margin-bottom: 14px; color: var(--sage-dark); font-size: .82rem; font-weight: 750; background: none; }
.home-page .setup-step-card h3 { font-size: 1rem; line-height: 1.45; }
.home-page .setup-step-card p { margin: 8px 0 0; font-size: .94rem; line-height: 1.6; }
.home-page .home-contexts { border-top: 1px solid var(--line); }
.home-page .home-context-grid article { border-radius: 18px; box-shadow: none; }
.home-page .photo-import-proof-list li { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.home-page .privacy-grid article, .home-page .widget-grid article { box-shadow: none; border-radius: 16px; }
.home-page .privacy-section { border-top: 1px solid var(--line); }
.home-page .privacy-grid a { text-decoration: underline; text-underline-offset: 3px; }
.home-page .pricing { border-top: 1px solid var(--line); }
.home-page .price-card { border-radius: 22px; box-shadow: 0 16px 40px rgba(39,32,23,.07); }
.home-page .site-footer small { color: var(--ink-soft) !important; }
body.home-page[data-theme='midnight-forest'] { background: #171c18; }
body.home-page[data-theme='midnight-forest'] .home-eyebrow,
body.home-page[data-theme='midnight-forest'] .setup-step-card > span { color: #b0c9bb; }
body.home-page[data-theme='midnight-forest'] .setup-step-card,
body.home-page[data-theme='midnight-forest'] .photo-import-proof-list li { background: none; box-shadow: none; border-color: rgba(244,241,233,.16); }
@media (max-width: 980px) {
  .home-page .home-hero { gap: 32px; }
  .home-page .home-hero h1 { font-size: 2.9rem; }
  .home-page .setup-step-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .family-voices-grid, .home-page .family-voices-supporting { gap: 24px; }
}
@media (max-width: 680px) {
  .home-page .section-shell { width: calc(100% - 40px) !important; padding: 48px 0; }
  .home-page .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 26px; padding-bottom: 36px; }
  .home-page .home-eyebrow { margin-bottom: 14px; }
  .home-page .home-hero h1 { font-size: clamp(2.35rem, 10vw, 2.9rem) !important; margin-bottom: 18px; }
  .home-page .home-hero .hero-lede { font-size: 1rem; line-height: 1.55; }
  .home-page .home-hero .hero-actions { margin-top: 20px; }
  .home-page .home-hero .primary-btn { width: 100%; }
  .home-page .home-hero .hero-product { max-width: 336px; }
  .home-page .family-voices { padding: 28px 0; }
  .home-page .family-voices-grid, .home-page .family-voices-supporting { grid-template-columns: 1fr; gap: 22px; }
  .home-page .setup-step-stack { grid-template-columns: 1fr; gap: 18px; }
  .home-page .setup-step-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding-top: 18px; }
  .home-page .setup-step-card > span { grid-row: 1 / 3; margin: 0; }
  .home-page .setup-step-card h3, .home-page .setup-step-card p { grid-column: 2; }
}
