:root {
  --warm-cream: #faf2e3;
  --card: #fffbed;
  --card-elevated: #fffef6;
  --deep-sage: #385c4f;
  --sage: #87ab8c;
  --text: #262f2b;
  --muted: #627166;
  --border: #c7d1bf;
  --timer: #525c94;
  --feeding: #c77d3d;
  --diaper: #339186;
  --sleep: #3f6da1;
  --growth: #578f57;
  --note: #b38c38;
  --blush: #f2a3ab;
  --shadow: 0 24px 70px rgba(56, 92, 79, 0.18);
  --soft-shadow: 0 14px 36px rgba(56, 92, 79, 0.11);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--warm-cream);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(250, 242, 227, 0.86);
  border-bottom: 1px solid rgba(199, 209, 191, 0.7);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--deep-sage);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

nav a {
  padding: 8px 0;
}

main {
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 66px);
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px) 34px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--deep-sage);
  font-size: clamp(4.2rem, 9vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--deep-sage);
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--deep-sage);
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.14rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  color: #fff;
  background: var(--deep-sage);
}

.button.secondary {
  color: var(--deep-sage);
  background: #e3efdf;
}

.impact-note {
  max-width: 500px;
  padding-left: 16px;
  color: var(--muted);
  border-left: 4px solid var(--sage);
  line-height: 1.5;
  text-wrap: pretty;
}

.device-stage {
  position: relative;
  min-height: 700px;
}

.phone {
  position: absolute;
  overflow: hidden;
  width: min(370px, 72vw);
  border: 10px solid #1f2824;
  border-radius: 48px;
  background: var(--warm-cream);
  box-shadow: var(--shadow);
}

.phone-main {
  right: 8%;
  top: 8px;
  z-index: 2;
  animation: floatMain 8s ease-in-out infinite;
}

.phone-side {
  left: 4%;
  bottom: 18px;
  width: min(300px, 58vw);
  opacity: 0.96;
  transform: rotate(-5deg);
  animation: floatSide 9s ease-in-out infinite;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dots {
  display: inline-flex;
  gap: 4px;
}

.status-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--deep-sage);
}

.app-screen {
  min-height: 630px;
  padding: 8px 16px 20px;
  background: var(--warm-cream);
}

.compact-screen {
  min-height: 520px;
}

.app-nav,
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-nav {
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--deep-sage);
  font-size: 1.08rem;
  font-weight: 800;
}

.app-nav button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--deep-sage);
  background: #e3efdf;
}

.app-card,
.feature-card,
.principle,
.screenshot-card,
.contact-form {
  background: var(--card);
  border: 1px solid rgba(199, 209, 191, 0.72);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.app-card {
  margin-bottom: 14px;
  padding: 16px;
}

.timer-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  color: #fff;
  background: var(--blush);
  border-radius: 12px;
}

.timer-button strong,
.timer-button span:last-child {
  display: block;
}

.timer-button strong {
  font-size: 1.18rem;
}

.timer-button span:last-child {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 850;
}

.timer-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.4rem;
}

.timer-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.timer-controls button,
.family-shot button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--deep-sage);
  background: #f8fbef;
  font-size: 0.8rem;
  font-weight: 750;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border: 1px solid rgba(199, 209, 191, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--card);
  font-weight: 800;
  min-width: 0;
}

.bubble {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.bubble svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble.timer { background: var(--timer); }
.bubble.feeding { background: var(--feeding); }
.bubble.diaper { color: var(--diaper); background: rgba(51, 145, 134, 0.16); }
.bubble.sleep { background: var(--sleep); }
.bubble.growth { background: var(--growth); }
.bubble.development { background: var(--sage); }
.bubble.note { background: var(--note); }
.bubble.family { background: var(--blush); }
.bubble.prep { background: #4d8bb2; }
.bubble.sage { background: var(--deep-sage); }

.card-row small {
  display: block;
  color: var(--sage);
  font-weight: 800;
}

.card-row strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.card-row em {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--deep-sage);
  background: #e3efdf;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.dashboard-widget-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.dashboard-widget-row .bubble {
  width: 38px;
  height: 38px;
}

.dashboard-widget-row strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.dashboard-widget-row span:not(.bubble) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.dashboard-widget-row em {
  color: var(--muted);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.forecast-card p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.mini-chart {
  position: relative;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(56, 92, 79, 0.08);
}

.mini-chart span {
  position: absolute;
  inset: 10px;
  border-bottom: 3px solid var(--deep-sage);
  border-radius: 60% 30% 45% 20%;
  transform: skewY(-8deg);
}

.section,
.story-section,
.contact-section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.strip,
.preview-band {
  background: rgba(255, 251, 237, 0.58);
  border-block: 1px solid rgba(199, 209, 191, 0.52);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.principles,
.feature-grid,
.screen-row {
  display: grid;
  gap: 16px;
}

.principles {
  grid-template-columns: repeat(3, 1fr);
}

.principle,
.feature-card,
.screenshot-card {
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.principle span {
  display: block;
  margin-bottom: 20px;
  color: var(--sage);
  font-weight: 900;
}

.principle p,
.feature-card p,
.screenshot-card p,
.story-copy p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card .bubble {
  margin-bottom: 20px;
}

.feature-card,
.principle,
.screenshot-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.principle:hover,
.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(56, 92, 79, 0.14);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
}

.story-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  background: var(--deep-sage);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-media::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 251, 237, 0.2);
  border-radius: 22px;
}

.story-media img {
  width: min(220px, 46vw);
  border-radius: 48px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.story-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  color: var(--card);
  background: rgba(31, 40, 36, 0.56);
  backdrop-filter: blur(12px);
}

.story-card strong,
.story-card span {
  display: block;
}

.story-card span {
  color: rgba(255, 251, 237, 0.76);
}

.story-copy {
  max-width: 720px;
  text-wrap: pretty;
}

.screen-row {
  grid-template-columns: repeat(3, 1fr);
}

.screen-shot {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--warm-cream);
  border: 8px solid #1f2824;
  box-shadow: 0 16px 36px rgba(31, 40, 36, 0.13);
}

.shot-title {
  color: var(--deep-sage);
  font-weight: 900;
}

.shot-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--blush);
}

.shot-timer strong {
  display: block;
  font-variant-numeric: tabular-nums;
}

.shot-timer small {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
}

.shot-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.shot-actions button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--deep-sage);
  background: #f8fbef;
  font-size: 0.72rem;
  font-weight: 800;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.shot-grid i,
.member-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 12px;
  padding: 10px 9px;
  background: var(--card);
  border: 1px solid rgba(199, 209, 191, 0.72);
  font-style: normal;
}

.shot-grid strong,
.member-line strong {
  color: var(--deep-sage);
  font-size: 0.78rem;
  line-height: 1.1;
}

.shot-grid span,
.member-line span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.mini-bubble {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-bubble.timer { background: var(--timer); }
.mini-bubble.feeding { background: var(--feeding); }
.mini-bubble.sleep { background: var(--sleep); }
.mini-bubble.diaper {
  color: var(--diaper);
  background: rgba(51, 145, 134, 0.16);
}

.mini-bubble svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sleep-shot p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.forecast-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.forecast-header small {
  display: block;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 900;
}

.forecast-header strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.16;
}

.forecast-header em {
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--deep-sage);
  background: #e3efdf;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.forecast-window {
  color: var(--deep-sage);
  font-size: 0.82rem;
  font-weight: 800;
}

.forecast-curve {
  position: relative;
  height: 42px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(56, 92, 79, 0.08);
}

.forecast-curve::after {
  content: "";
  position: absolute;
  inset: 8px 12px;
  border-bottom: 3px solid var(--deep-sage);
  border-radius: 50% 30% 45% 20%;
  transform: skewY(-8deg);
}

.forecast-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.forecast-actions button {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--deep-sage);
  background: #f8fbef;
  font-size: 0.72rem;
  font-weight: 800;
}

.forecast-actions button:last-child {
  color: #fff;
  background: var(--deep-sage);
  border-color: var(--deep-sage);
}

.family-shot {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
}

.member-line strong,
.member-line span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--deep-sage);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text);
  background: #fffef6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(135, 171, 140, 0.28);
  border-color: var(--sage);
}

.contact-form textarea {
  resize: vertical;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(199, 209, 191, 0.72);
}

footer span:first-child {
  color: var(--deep-sage);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(135, 171, 140, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes floatSide {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(12px) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .hero-section,
  .story-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .device-stage {
    min-height: 660px;
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .phone-main {
    right: 3%;
  }

  .principles,
  .feature-grid,
  .screen-row {
    grid-template-columns: 1fr 1fr;
  }

  .story-media {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .device-stage {
    min-height: 610px;
  }

  .phone {
    width: min(330px, 92vw);
    border-radius: 38px;
    border-width: 8px;
  }

  .phone-main {
    right: 0;
  }

  .phone-side {
    left: -44px;
    bottom: 8px;
    width: min(245px, 68vw);
  }

  .app-screen {
    min-height: 580px;
  }

  .compact-screen {
    min-height: 460px;
  }

  .principles,
  .feature-grid,
  .screen-row {
    grid-template-columns: 1fr;
  }

  .story-media {
    min-height: 260px;
  }

  .story-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

@media (max-width: 390px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .timer-controls {
    flex-direction: column;
  }
}
