/* ============================================================
   Caring Mother | Baby Tracker — site styles
   Palette mirrors the app: cream, peach, warm orange, soft teal
   ============================================================ */

:root {
  --cream: #FFF7EF;
  --cream-deep: #FDF1E4;
  --peach: #FFE9D6;
  --peach-deep: #FFDDBE;
  --card: #FFFDFA;
  --orange: #E8820C;
  --orange-dark: #C96E05;
  --orange-soft: #FBEDDC;
  --teal: #33708A;
  --teal-dark: #285A70;
  --ink: #3E2F23;
  --ink-soft: #5B4636;
  --ink-mute: #8A715C;
  --line: #F0DFCC;
  --shadow: 0 10px 30px rgba(122, 79, 34, 0.10);
  --shadow-sm: 0 4px 14px rgba(122, 79, 34, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--peach { background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 18%, var(--peach) 82%, var(--cream) 100%); }

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--peach-deep);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-lead { max-width: 640px; font-size: 18px; color: var(--ink-mute); }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
}
.nav-links a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--play {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 130, 12, 0.35);
}
.btn--play:hover { background: var(--orange-dark); color: #fff; }
.btn--play svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--ghost:hover { background: rgba(51, 112, 138, 0.08); color: var(--teal-dark); }

.btn--small { padding: 10px 20px; font-size: 15px; }

.btn-note { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; }

/* Google Play badge — official artwork only (do not recreate or restyle).
   Asset: images/google-play-badge.png from play.google.com/intl/en_us/badges/
   The PNG includes Google's required clear space; keep img uncropped. */
.gp-badge-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}
.gp-badge-link:hover { transform: translateY(-2px); }
.gp-badge-link:active { transform: scale(0.98); }
.gp-badge-link img { height: 80px; width: auto; display: block; }
.side-card .gp-badge-link img { height: 64px; margin: 0 auto; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 64px 0 80px; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: var(--peach-deep); top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: #FDE4EF; bottom: -140px; left: -120px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.01em;
  margin: 16px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--orange); }

.hero-sub { font-size: 19px; max-width: 540px; margin-bottom: 28px; }

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img {
  width: min(360px, 82vw);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(122, 79, 34, 0.22);
}

/* ---------- Trust strip ---------- */

.trust { border-block: 1px solid var(--line); background: var(--cream-deep); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0;
  text-align: center;
}
.trust-grid strong { display: block; font-size: 22px; color: var(--ink); }
.trust-grid span { font-size: 14.5px; color: var(--ink-mute); font-weight: 700; }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--orange-soft);
  border: 1px solid var(--peach-deep);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 15.5px; color: var(--ink-mute); }

/* ---------- Screenshots carousel ---------- */

.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 40px 6px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--peach-deep) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--peach-deep); border-radius: 99px; }

.shot {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
}
.shot--wide { width: 420px; }

.shot img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.shot figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(232, 130, 12, 0.35);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-mute); }

/* ---------- Guides ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--peach-deep); color: inherit; }

.guide-card .tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(51, 112, 138, 0.10);
  padding: 3px 10px;
  border-radius: 999px;
}
.guide-card h3 { font-size: 18.5px; }
.guide-card p { font-size: 15px; color: var(--ink-mute); flex-grow: 1; }
.guide-card .more { font-weight: 800; font-size: 15px; color: var(--orange); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 40px auto 0; }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; font-size: 16px; }
.faq .answer a { font-weight: 800; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, #F8A14C 0%, var(--orange) 55%, #D46A00 100%);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(212, 106, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  top: -140px;
  right: -80px;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 18px; color: rgba(255, 255, 255, 0.92); }
.cta-band .btn--play { background: #fff; color: var(--orange-dark); box-shadow: 0 10px 26px rgba(90, 40, 0, 0.30); }
.cta-band .btn--play:hover { background: var(--cream); color: var(--orange-dark); }
.cta-band .btn-note { color: rgba(255, 255, 255, 0.85); }

/* ---------- Footer ---------- */

.site-footer {
  background: #43301F;
  color: #E9D9C8;
  padding: 56px 0 32px;
  margin-top: 88px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #E9D9C8; text-decoration: none; }
.site-footer a:hover { color: #FFB866; }
.footer-about { max-width: 300px; color: #C9B49E; }
.footer-bottom {
  border-top: 1px solid rgba(233, 217, 200, 0.18);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #C9B49E;
  font-size: 13.5px;
}

/* ---------- Guide article pages ---------- */

.crumbs { font-size: 14px; color: var(--ink-mute); margin: 28px 0 10px; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--orange); }

.article-head { padding-bottom: 8px; }
.article-head h1 { font-size: clamp(30px, 4.2vw, 44px); margin: 6px 0 16px; max-width: 820px; }
.article-head .meta { font-size: 14.5px; color: var(--ink-mute); font-weight: 700; }

.article {
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  gap: 48px;
  align-items: start;
  padding: 34px 0 20px;
}

.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose figure { margin: 28px 0; }
.prose figure img {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(340px, 100%);
  margin: 0 auto;
}
.prose figcaption { text-align: center; font-size: 14px; color: var(--ink-mute); margin-top: 10px; }

.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--orange-soft); color: var(--ink); }
.prose tr:nth-child(even) td { background: var(--cream-deep); }

.keyfacts {
  background: var(--orange-soft);
  border: 1px solid var(--peach-deep);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.keyfacts h2, .keyfacts h3 { margin-top: 0 !important; font-size: 18px; }
.keyfacts ul { margin-top: 12px; }

.applight {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.applight h3 { margin-top: 0 !important; }

.disclaimer {
  font-size: 13.5px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px !important;
}

/* Sidebar */

.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.side-card img.appicon { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 12px; }
.side-card h3 { font-size: 18px; margin-bottom: 6px; }
.side-card p { font-size: 14.5px; color: var(--ink-mute); margin-bottom: 16px; }

.side-links { text-align: left; }
.side-links h3 { font-size: 16px; margin-bottom: 12px; }
.side-links ul { list-style: none; }
.side-links li { margin-bottom: 10px; font-size: 15px; font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub, .section-lead { margin-inline: auto; }
  .hero-badges, .hero-chips { justify-content: center; }
  .feature-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 10px; width: 100%; }
  .nav-toggle { display: block; }
  .feature-grid, .guide-grid, .steps { grid-template-columns: 1fr; }
  .shot { width: 220px; }
  .shot--wide { width: 340px; }
  .cta-band { padding: 44px 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
