:root {
  --page: #f7f0e8;
  --card: #fffcf8;
  --ink: #5c4437;
  --muted: #8c7466;
  --accent: #d88a69;
  --accent-deep: #b66a4e;
  --peach: #f3d8cb;
  --rose: #f7e7df;
  --leaf: #dce8d8;
  --sun: #f6e8c7;
  --line: #e7d5c7;
  --danger: #b74242;
  --shadow: 0 24px 70px rgba(92, 68, 55, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(243, 216, 203, 0.9), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(220, 232, 216, 0.9), transparent 30rem),
    linear-gradient(180deg, #fbf4ed 0%, var(--page) 38%, #fff8f1 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(92, 68, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 68, 55, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(231, 213, 199, 0.8);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(92, 68, 55, 0.08);
}

.site-header.compact {
  margin-top: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(92, 68, 55, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--rose);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 64px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Songti SC", "Source Han Serif SC", Georgia, serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
}

h3 {
  font-size: 24px;
  line-height: 1.1;
}

.hero-lead,
.section-heading p,
.split-panel p,
.privacy-band p,
.download-section p,
.support-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
}

.primary-action {
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 14px 26px rgba(182, 106, 78, 0.28);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.74);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-note span,
.privacy-grid span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 248, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.phone-stage {
  position: relative;
  min-height: 620px;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
}

.orbit-one {
  inset: 8% 2% auto auto;
  width: 250px;
  height: 250px;
  background: rgba(220, 232, 216, 0.72);
}

.orbit-two {
  inset: auto auto 8% 0;
  width: 190px;
  height: 190px;
  background: rgba(246, 232, 199, 0.86);
}

.phone-card {
  position: relative;
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 20px;
  border: 10px solid #5c4437;
  border-radius: 46px;
  background: linear-gradient(180deg, #fffdf9, #f8eee5);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-card::after {
  position: absolute;
  right: -34px;
  bottom: 72px;
  width: 90px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 26px;
  content: "";
  background: rgba(255, 252, 248, 0.64);
  box-shadow: 0 20px 38px rgba(92, 68, 55, 0.12);
}

.phone-top,
.baby-card,
.soft-alert {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-top {
  justify-content: space-between;
  margin-bottom: 20px;
}

.phone-top span {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.phone-top small {
  color: var(--muted);
}

.baby-card,
.metric-grid > div,
.soft-alert {
  border: 1px solid var(--line);
  background: var(--card);
}

.baby-card {
  padding: 16px;
  border-radius: 24px;
}

.baby-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  color: var(--accent-deep);
  background: var(--sun);
  font-weight: 900;
}

.baby-card p,
.soft-alert p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.metric-grid > div {
  padding: 15px;
  border-radius: 20px;
}

.metric-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-grid strong {
  font-size: 21px;
}

.soft-alert {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: var(--rose);
}

.soft-alert span {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 92px;
}

.stats-strip div,
.feature-card,
.split-panel,
.timeline-panel,
.privacy-band,
.download-section,
.faq-list details,
.legal-card,
.support-hero,
.support-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.78);
  box-shadow: 0 20px 58px rgba(92, 68, 55, 0.08);
}

.stats-strip div {
  padding: 24px;
}

.stats-strip strong {
  display: block;
  font-family: "Iowan Old Style", "Songti SC", Georgia, serif;
  font-size: 38px;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.feature-section,
.split-section,
.privacy-band,
.download-section,
.faq-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 270px;
  padding: 24px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.icon-pill {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: var(--peach);
  color: var(--accent-deep);
  font-weight: 900;
}

.icon-pill.leaf {
  background: var(--leaf);
}

.icon-pill.sun {
  background: var(--sun);
}

.icon-pill.rose {
  background: var(--rose);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
}

.split-panel,
.timeline-panel {
  padding: 30px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 750;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "✓";
  color: var(--accent-deep);
}

.timeline-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(145deg, rgba(247, 231, 223, 0.9), rgba(246, 232, 199, 0.76));
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(231, 213, 199, 0.9);
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.72);
}

.timeline-item span {
  color: var(--accent-deep);
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-band,
.download-section {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
}

.privacy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-button {
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}

.store-button small {
  color: var(--muted);
}

.store-button.disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.78);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a,
.legal-footer a {
  color: var(--accent-deep);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
}

.legal-layout,
.support-layout {
  width: min(980px, calc(100% - 32px));
  margin: 64px auto;
}

.legal-card,
.support-hero {
  padding: clamp(24px, 5vw, 56px);
}

.legal-card h1,
.support-hero h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.legal-card h2 {
  margin-top: 42px;
  font-size: 30px;
}

.legal-card p,
.legal-card li,
.legal-card dd,
.support-grid p {
  color: var(--muted);
  line-height: 1.82;
}

.legal-meta {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--rose);
}

.legal-definition {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--rose);
}

.legal-definition dt {
  color: var(--ink);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

th,
td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--sun);
}

td {
  color: var(--muted);
  background: rgba(255, 252, 248, 0.7);
}

.legal-footer {
  grid-template-columns: repeat(3, auto);
  justify-content: center;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.support-grid article {
  padding: 24px;
}

.support-grid h2 {
  font-size: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 252, 248, 0.96);
  }

  .site-nav.visible,
  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-header.compact .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hero,
  .split-section,
  .privacy-band,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
  }

  .phone-stage {
    min-height: 520px;
  }

  .feature-grid,
  .stats-strip,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    padding-top: 42px;
  }

  .phone-card {
    border-width: 8px;
    border-radius: 38px;
    transform: none;
  }

  .phone-card::after {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .privacy-band,
  .download-section,
  .split-panel,
  .timeline-panel,
  .legal-card,
  .support-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .legal-definition {
    grid-template-columns: 1fr;
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }
}
