@font-face {
  font-family: "Bumpy Sans";
  src: url("/bumpyapp/assets/Inter_18pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bumpy Sans";
  src: url("/bumpyapp/assets/Inter_18pt-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Bumpy Display";
  src: url("/bumpyapp/assets/PlayfairDisplay-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Colors and bundled typography follow the app's existing design system.
   Design variance 7 / motion intensity 4 / visual density 3.
   Page panels use 24px corners, app icons 12px, and controls pill corners. */
:root {
  color-scheme: light dark;
  --background: #fcf9f6;
  --foreground: #333333;
  --muted: #675d54;
  --accent: #56615c;
  --on-accent: #fcf9f6;
  --surface: #f3f1ec;
  --sage-surface: #e8f3ed;
  --control-surface: #fcf9f6;
  --line: rgb(86 97 92 / 18%);
  --shadow: rgb(86 97 92 / 14%);
  --radius-panel: 24px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Bumpy Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, input, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: "Bumpy Display", Georgia, serif; font-weight: 500; letter-spacing: -0.045em; }
.page-shell { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem;
  left: var(--gutter);
  z-index: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { border-radius: 12px; }
.brand span { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.06em; }
.site-header nav { display: flex; align-items: center; gap: 2rem; color: var(--muted); font-size: 0.8rem; }
.site-header nav a { padding-block: 0.65rem; }
.site-header nav a:hover { color: var(--foreground); }
.back-link span { margin-left: 0.25rem; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 4rem) 3rem; }
.hero-copy { padding-block: 1.5rem; }
.eyebrow { margin-bottom: 1.7rem; color: var(--accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 5.55vw, 5rem); line-height: 1.12; }
h1 em { display: block; padding-bottom: 0.12em; font-weight: inherit; }
.hero-intro { max-width: 28rem; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 50px; margin-top: 2rem; padding: 0.8rem 1.4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.button:hover { opacity: 0.9; }
.intro-art { position: relative; aspect-ratio: 1; width: 100%; }
.intro-hand { width: 100%; height: 100%; }
/* Matches the onboarding's shared 1254px canvas and original baby positioning. */
.intro-baby { position: absolute; top: 9.9681%; left: 17.9426%; width: 60%; height: auto; transform-origin: 56% 60%; }

h2 { font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.16; }
.section-intro { max-width: 34rem; margin-top: 1.3rem; color: var(--muted); font-size: 1rem; }
.growth-section { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--line); }
.journey-details { display: grid; gap: 1.8rem; margin: 2.5rem 0 0; }
dt { font-size: 0.95rem; font-weight: 600; }
dd { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.growth-preview { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-panel); background: var(--surface); }
.preview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.preview-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.04em; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.segmented-control { display: flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; }
.segmented-control label, .week-options label { position: relative; cursor: pointer; }
.segmented-control input, .week-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented-control span { display: block; min-width: 58px; padding: 0.35rem 0.7rem; border-radius: 999px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.segmented-control input:checked + span { background: var(--accent); color: var(--on-accent); }
.segmented-control input:focus-visible + span, .week-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.growth-orb { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 1.25rem auto 0; }
.orb-background { width: 100%; height: 100%; }
.growth-subject { position: absolute; left: 50%; top: 50%; width: 76.5%; max-width: none; height: auto; transform: translate(-50%, -50%) rotate(-6deg); }
.preview-caption { margin-top: 0.9rem; color: var(--foreground); font-size: 0.82rem; text-align: center; }
.week-picker { margin-top: 1.1rem; text-align: center; }
.week-picker legend { float: left; width: 100%; margin-bottom: 0.6rem; color: var(--muted); font-size: 0.72rem; }
.week-options { display: inline-flex; align-items: center; gap: 0.5rem; }
.week-picker .week-options { clear: both; }
.week-options span { display: grid; min-width: 44px; min-height: 44px; padding: 0.5rem; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--control-surface); color: var(--muted); font-size: 0.8rem; }
.week-options input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.preview-note { margin-top: 1rem; color: var(--muted); font-size: 0.68rem; text-align: center; }

.widgets-section { background: var(--sage-surface); }
.section-heading { max-width: 41rem; margin-inline: auto; text-align: center; }
.section-heading .section-intro { margin-inline: auto; }
.widget-week-picker { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.widget-week-picker legend { float: left; padding-top: 0.7rem; color: var(--muted); font-size: 0.8rem; }
.widget-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 2rem; max-width: 62rem; margin: 3.75rem auto 0; }
.widget-figure { min-width: 0; text-align: center; }
.golden-figure { width: 87%; justify-self: end; }
.balloon-figure { width: 100%; }
.garden-figure { width: 80%; justify-self: start; }
.widget-preview { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; container-type: inline-size; border-radius: var(--radius-panel); box-shadow: 0 20px 45px var(--shadow); }
.widget-preview img { width: 100%; height: 100%; object-fit: cover; }
.widget-content { position: absolute; display: flex; flex-direction: column; font-family: "Bumpy Display", Georgia, serif; line-height: 1.05; }
.widget-week-label { font-size: 7.3cqw; letter-spacing: 0.1em; }
.widget-week-number { font-size: 35.4cqw; letter-spacing: -0.045em; }
.golden-widget .widget-content { top: 8%; left: 0; width: 100%; align-items: center; gap: 1%; color: #f7e3b8; }
.golden-widget .widget-week-number { margin-top: -4.8cqw; font-size: 26.2cqw; }
.balloon-widget .widget-content { left: 13%; bottom: 11%; color: #262957; }
.balloon-widget .widget-week-number { margin-top: -2.4cqw; }
.garden-widget .widget-content { left: 50%; top: 54%; width: 55%; align-items: center; transform: translate(-50%, -50%); color: #144229; }
.widget-progress { margin-top: 0.35rem; font-size: 8.5cqw; }
.widget-figure figcaption { margin-top: 1.25rem; color: var(--foreground); font-size: 0.85rem; font-weight: 600; }
.gallery-note { max-width: 34rem; margin: 2.2rem auto 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.customization-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; max-width: 52rem; margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }

.faq-section { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 4rem; }
.faq-list { min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.35rem; font-size: 0.9rem; font-weight: 600; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.disclosure-mark { flex-shrink: 0; color: var(--muted); font-size: 1.4rem; font-weight: 400; }
details[open] .disclosure-mark { transform: rotate(45deg); }
details > p { padding: 0 1.5rem 1.35rem 0; color: var(--muted); font-size: 0.88rem; }
.launch-section { padding: 1rem 0 var(--section-space); text-align: center; }
.launch-section > img { margin: 0 auto 1.5rem; border-radius: 16px; }
.launch-section > h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.launch-section > p { max-width: 32rem; margin: 1.2rem auto 0; color: var(--muted); font-size: 0.95rem; }
.launch-status { display: inline-block; margin-top: 1.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 0.75rem; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.footer-brand { color: var(--foreground); }
.page-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191d1b;
    --foreground: #f1efea;
    --muted: #b9c0b8;
    --accent: #becfc3;
    --on-accent: #1c2720;
    --surface: #242b26;
    --sage-surface: #202b24;
    --control-surface: #303a33;
    --line: rgb(190 207 195 / 20%);
    --shadow: rgb(14 20 16 / 28%);
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .hero { gap: 0; }
  h1 { font-size: 3.05rem; }
  .hero-intro { font-size: 0.95rem; }
  .growth-section { gap: 2rem; }
  .faq-section { gap: 2rem; }
}

@media (max-width: 767px) {
  .site-header { min-height: 72px; }
  .site-header nav { gap: 0; font-size: 0.7rem; }
  .site-header nav a:first-child { display: none; }
  .brand { gap: 0.6rem; }
  .brand span { font-size: 1.2rem; }
  .brand img { width: 34px; height: 34px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.25rem 3rem; }
  .hero-copy { padding-block: 0; }
  .eyebrow { margin-bottom: 1.3rem; font-size: 0.65rem; }
  h1 { font-size: clamp(2.7rem, 8.6vw, 4rem); }
  .hero-intro { max-width: 28rem; margin-top: 1.1rem; }
  .button { margin-top: 1.5rem; }
  .intro-art { width: min(100%, 440px); margin-inline: auto; }
  .growth-section, .faq-section { grid-template-columns: 1fr; gap: 2.5rem; }
  h2 { font-size: clamp(2.3rem, 7vw, 3.3rem); }
  .growth-preview { padding: 1.25rem; }
  .journey-details { margin-top: 2rem; }
  .widget-gallery { grid-template-columns: 1fr; gap: 2.75rem; margin-top: 2.5rem; }
  .golden-figure, .balloon-figure, .garden-figure { width: min(100%, 270px); justify-self: center; }
  .customization-details { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
  .page-footer { justify-content: center; text-align: center; }
  .page-footer > span { width: 100%; order: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy, .intro-art { animation: enter 850ms var(--ease) both; }
  .intro-art { animation-delay: 100ms; }
  .intro-baby { animation: baby-breathe 7s ease-in-out 1s 2; }
  .button, .disclosure-mark { transition: transform 300ms var(--ease); }
  .button:hover { transform: translateY(-2px); }
  @media (hover: hover) and (pointer: fine) {
    .widget-preview { transition: transform 550ms var(--ease); }
    .widget-figure:hover .widget-preview { transform: translateY(-5px); }
  }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes baby-breathe {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-1.5%) rotate(1deg); }
}
