:root {
  --ink: #14242b;
  --muted: #5d6b73;
  --teal: #12a99a;
  --teal-deep: #0d8f82;
  --coral: #ff7b8c;
  --coral-deep: #f06276;
  --line: rgba(20, 36, 43, 0.08);
  --bg: #e7f4f2;
  --card: #ffffff;
  --header: 64px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #d7eeeb;
  font-family: var(--sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.shell {
  width: min(440px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: #f3fbfa;
  box-shadow: 0 0 40px rgba(16, 60, 56, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(243, 251, 250, 0.94);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}
.brand strong { display: block; font-size: 16px; line-height: 1.1; }
.brand small { display: block; color: var(--teal); font-size: 11px; }

.menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
}
.menu-btn i {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}
.nav {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(var(--header) - 4px);
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(20, 36, 43, 0.12);
}
.nav.is-open { display: flex; }
.nav a {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.nav a:hover { background: #f3fbfa; }

.land { padding: 8px 18px 28px; scroll-margin-top: calc(var(--header) + 8px); }
.land--health { background: #eef8f6; padding-top: 22px; }
.land--archive { background: #fff; padding-top: 8px; }
.land--system { background: #fff; }

.photo {
  position: relative;
  margin: 8px 0 16px;
}
.photo img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #e7eef0;
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--coral);
  color: #fff;
  border-radius: 16px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.badge--left { right: auto; left: 12px; }
.caption-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: 72%;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(20, 36, 43, 0.08);
}
.caption-card b, .caption-card small { display: block; }
.caption-card b { font-size: 13px; }
.caption-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe8ec;
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
}
.pill--teal { background: #ddf6f2; color: var(--teal-deep); }

h1 {
  font-size: 34px;
  line-height: 1.22;
}
h1 span { color: var(--coral-deep); }
h1 span.teal { color: var(--teal); }
.lead {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 10px;
}
.btn--fill { background: var(--coral); color: #fff; }
.btn--teal { background: var(--teal); }
.btn--line {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #d7e3e6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.stats strong {
  display: block;
  color: var(--coral-deep);
  font-size: 22px;
  line-height: 1.2;
}
.stats--teal strong { color: var(--teal); }
.stats span { color: var(--muted); font-size: 12px; }

.sec { text-align: center; margin: 28px 0 14px; }
.sec h2 { font-size: 26px; line-height: 1.3; }
.sec p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.tint {
  border-radius: 22px;
  padding: 18px 16px 16px;
  margin-top: 12px;
}
.tint--mint { background: #e5f7f4; }
.tint--rose { background: #fff0f2; }
.tint--sand { background: #fff6ea; }
.tint .ico {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}
.tint h3, .feature h3 { font-size: 18px; margin-bottom: 6px; }
.tint p, .feature p { margin: 0; color: var(--muted); font-size: 14px; }

.step {
  background: #fff;
  border-radius: 22px;
  padding: 20px 16px 18px;
  margin-top: 12px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(16, 50, 48, 0.05);
}
.step span {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f7f4;
  color: var(--teal-deep);
  font-weight: 800;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span {
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.note { margin: 16px 0 0; color: #7d5b63; font-size: 12px; }

.watermark {
  margin: 8px 0 -22px;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: rgba(20, 36, 43, 0.07);
}
.panel {
  position: relative;
  background: linear-gradient(180deg, #ff8b9a, #ff7388);
  color: #fff;
  border-radius: 28px;
  padding: 28px 18px 16px;
}
.panel > p { margin: 8px 0 16px; font-size: 16px; line-height: 1.7; }
.store {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 14px;
  background: #fff;
  color: var(--coral-deep);
  text-decoration: none;
  font-weight: 800;
}
.store--line {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.phone {
  margin-top: 16px;
  background: #ffe8dc;
  border-radius: 22px 22px 16px 16px;
  padding: 16px 14px 0;
}
.phone__screen {
  background: #fffaf7;
  border-radius: 18px 18px 0 0;
  padding: 14px 12px 16px;
}
.phone__kicker { margin: 0; color: var(--coral-deep); font-size: 12px; font-weight: 700; }
.pethead { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--coral);
}
.pethead strong { display: block; color: var(--ink); font-size: 18px; }
.pethead em { font-style: normal; color: var(--muted); font-size: 12px; }
.profile { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile div {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}
.profile dt { color: var(--muted); font-size: 12px; }
.profile dd { margin: 2px 0 0; color: var(--ink); font-weight: 800; }

.feature {
  background: #fff;
  border-radius: 22px;
  padding: 18px 16px;
  margin-top: 12px;
  box-shadow: 0 10px 30px rgba(255, 120, 140, 0.08);
}
.land--system .feature { box-shadow: 0 10px 24px rgba(16, 50, 48, 0.05); }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.feature li + li { margin-top: 4px; }

.circles { list-style: none; margin: 0; padding: 8px 8px 0; text-align: center; }
.circles li + li { margin-top: 22px; }
.circles span {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.c1 { background: #ff7b8c; }
.c2 { background: #2ec4b6; }
.c3 { background: #f5b942; }
.circles h3 { font-size: 18px; margin-bottom: 6px; }
.circles p { margin: 0 auto; max-width: 280px; color: var(--muted); font-size: 14px; }

.footer {
  padding: 8px 18px calc(28px + env(safe-area-inset-bottom));
  background: #fff;
  text-align: center;
}
.footer p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.icp { margin-top: 16px; }
.icp a { font-size: 12px; }
.icp a:hover { text-decoration: underline; }

#care-flow, #health-flow, #archive-features, #archive-flow {
  scroll-margin-top: calc(var(--header) + 8px);
}

@media (min-width: 768px) {
  .shell {
    width: 100%;
    background: #f3fbfa;
    box-shadow: none;
  }
  .topbar,
  .land,
  .footer {
    padding-left: max(32px, calc((100% - 1120px) / 2));
    padding-right: max(32px, calc((100% - 1120px) / 2));
  }
  .land { padding-top: 40px; padding-bottom: 64px; }
  .menu-btn { display: none; }
  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .nav a { padding: 8px 14px; }

  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 28px 48px;
    align-items: center;
  }
  .intro--flip .photo { order: 2; }
  .intro .photo { margin: 0; }
  .land--health .photo img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    margin-left: auto;
  }
  h1 { font-size: 46px; }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
  }
  .actions .btn {
    width: auto;
    min-width: 168px;
    margin-top: 0;
    padding: 0 22px;
  }
  .stats { margin-top: 28px; }

  .card-row,
  .step-row,
  .feature-grid,
  .circles {
    display: grid;
    gap: 16px;
    align-items: stretch;
  }
  .card-row,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0 0; }
  .tint,
  .step,
  .feature { margin-top: 0; height: 100%; }
  .circles li + li { margin-top: 0; }
  .chips { justify-content: center; }
  .note { text-align: center; }

  .panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    column-gap: 32px;
    align-items: center;
    padding: 40px 36px 28px;
  }
  .panel > p { margin: 0 0 8px; font-size: 18px; }
  .phone {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    align-self: end;
  }
  .store { max-width: 280px; }
  .watermark { font-size: 64px; margin-bottom: -28px; }

  .footer {
    padding-top: 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .footer__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }
  .footer p { margin: 4px 0 0; }
  .footer nav { margin-top: 0; }
  .icp { margin-top: 18px; text-align: center; }
}

@media (min-width: 1100px) {
  .step-row,
  .feature-grid--system { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
