:root {
  color-scheme: light;
  --ink: #16221b;
  --muted: #667266;
  --soft: #f6f5ef;
  --paper: #fffdf7;
  --line: rgba(30, 54, 38, 0.12);
  --green: #1f5a38;
  --green-2: #dfece0;
  --blue: #176bff;
  --clay: #8b4a35;
  --shadow: 0 30px 80px rgba(29, 43, 35, 0.12);
  --radius: 28px;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 236, 224, 0.92), transparent 28rem),
    linear-gradient(180deg, #fbfaf4 0%, #f3f2eb 48%, #fbfaf5 100%);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 34px rgba(22, 34, 27, 0.08);
}

.brand,
.site-nav,
.hero-actions,
.metric-strip,
.trust-grid,
.pricing-grid {
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(31, 90, 56, 0.16);
}

.site-nav {
  gap: 24px;
  color: rgba(22, 34, 27, 0.72);
  font-size: 14px;
}

.site-nav a {
  transition: color 180ms ease;
}

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

.nav-cta {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

.section.compact {
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 92px;
  min-height: calc(100svh - 98px);
  align-items: center;
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.feature-card p,
.workflow-copy p,
.trust-grid p,
.site-footer {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-action {
  background: var(--green);
  color: white;
  box-shadow: 0 18px 38px rgba(31, 90, 56, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: min(620px, calc(100svh - 160px));
  overflow: visible;
}

.health-book {
  position: relative;
  overflow: hidden;
  min-height: min(570px, calc(100svh - 180px));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 48px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.72), rgba(223, 236, 224, 0.86) 58%, rgba(255, 255, 255, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
  padding: 42px;
}

.health-book::before {
  position: absolute;
  inset: 42px 42px 42px auto;
  width: 42%;
  border-left: 1px solid rgba(31, 90, 56, 0.14);
  background: linear-gradient(90deg, rgba(31, 90, 56, 0.06), transparent);
  content: "";
}

.health-book::after {
  position: absolute;
  right: 11%;
  bottom: 18%;
  width: 34%;
  height: 34%;
  border: 1px solid rgba(31, 90, 56, 0.16);
  border-radius: 999px 999px 999px 24px;
  transform: rotate(-14deg);
  content: "";
}

.book-cover,
.book-pages,
.book-note {
  position: relative;
}

.book-cover {
  display: grid;
  width: min(330px, 58%);
  min-height: 420px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 36%),
    #16221b;
  color: #fff;
  padding: 30px;
  box-shadow: 0 34px 72px rgba(22, 34, 27, 0.26);
}

.book-cover img {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.book-cover span {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.book-cover strong {
  max-width: 6em;
  font-size: 46px;
  line-height: 0.96;
}

.book-pages {
  position: absolute;
  right: 42px;
  top: 92px;
  display: grid;
  width: 44%;
  gap: 16px;
}

.page-row {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(31, 90, 56, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: 0 18px 38px rgba(29, 43, 35, 0.07);
}

.page-row span,
.page-row i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 90, 56, 0.22);
}

.page-row i {
  background: rgba(196, 86, 61, 0.28);
}

.page-row.short {
  transform: translateX(28px);
}

.book-note {
  position: absolute;
  right: 42px;
  bottom: 42px;
  display: flex;
  gap: 8px;
  width: 44%;
  border: 1px solid rgba(31, 90, 56, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.7);
  padding: 12px;
  backdrop-filter: blur(18px);
}

.book-note span {
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 12px;
  text-align: center;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.metric-strip {
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(29, 43, 35, 0.08);
}

.metric-strip div {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.metric-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.metric-strip span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

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

.feature-card {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.76);
  padding: 28px;
  box-shadow: 0 18px 48px rgba(29, 43, 35, 0.08);
}

.feature-card.large {
  grid-column: span 2;
  background: #16221b;
  color: white;
}

.feature-card.large p,
.feature-card.large .feature-index {
  color: rgba(255, 255, 255, 0.72);
}

.feature-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 800;
}

.screenshots {
  width: min(1260px, calc(100% - 32px));
}

.screenshot-stage {
  position: relative;
  overflow: hidden;
  border-radius: 48px;
  background:
    radial-gradient(circle at 92% 3%, rgba(117, 177, 133, 0.2), transparent 28rem),
    radial-gradient(circle at 0% 72%, rgba(255, 253, 247, 0.08), transparent 24rem),
    #16221b;
  padding: clamp(34px, 5.2vw, 66px);
  box-shadow: 0 36px 90px rgba(22, 34, 27, 0.2);
}

.screenshot-heading {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin-bottom: 54px;
}

.screenshot-heading .eyebrow {
  color: #a9d6ae;
}

.screenshot-heading h2 {
  max-width: 1040px;
  color: #fff;
}

.screenshot-heading > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.screenshot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 24px;
}

.screenshot-card {
  min-width: 0;
  margin: 0;
}

.screenshot-device {
  position: relative;
  width: min(100%, 252px);
  aspect-ratio: 393 / 852;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 42px;
  background: linear-gradient(145deg, #3c493f, #080d0a 68%);
  padding: 10px;
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.screenshot-device::before {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 34%;
  height: 18px;
  border-radius: 999px;
  background: #111a14;
  content: "";
  transform: translateX(-50%);
}

.screenshot-device::after {
  position: absolute;
  top: 24%;
  right: -3px;
  width: 3px;
  height: 54px;
  border-radius: 0 3px 3px 0;
  background: #38443b;
  content: "";
}

.screenshot-device > img,
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 33px;
}

.screenshot-device > img {
  object-fit: cover;
  object-position: top;
  background: var(--paper);
}

.screenshot-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px dashed rgba(31, 90, 56, 0.32);
  background:
    linear-gradient(rgba(31, 90, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 90, 56, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f9f7ef, #e7efe5);
  background-size: 22px 22px, 22px 22px, auto;
  color: var(--ink);
  padding: 30px 22px;
  text-align: center;
}

.screenshot-placeholder span {
  margin-bottom: 18px;
  border: 1px solid rgba(31, 90, 56, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--green);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.screenshot-placeholder strong {
  font-size: 22px;
  line-height: 1.2;
}

.screenshot-placeholder p {
  max-width: 13em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.screenshot-card figcaption {
  display: grid;
  gap: 8px;
  max-width: 252px;
  margin: 22px auto 0;
}

.screenshot-card figcaption strong {
  color: #fff;
  font-size: 18px;
}

.screenshot-card figcaption span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 74px;
  align-items: center;
}

.workflow-media {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.workflow-panel {
  display: grid;
  gap: 16px;
  min-height: 520px;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(31, 90, 56, 0.12), transparent 42%),
    #fffdf7;
  padding: 34px;
}

.upload-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(29, 43, 35, 0.07);
}

.upload-card.active {
  background: var(--green);
  color: white;
  transform: translateX(28px);
}

.upload-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 900;
}

.upload-card.active span,
.upload-card.active p {
  color: rgba(255, 255, 255, 0.74);
}

.upload-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.upload-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.steps span {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 800;
}

.pricing-grid {
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.membership-note {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.price-card {
  width: min(380px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(29, 43, 35, 0.08);
}

.price-card.featured {
  background: #1f5a38;
  color: #fff;
}

.price {
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.price-card.featured ul {
  color: rgba(255, 255, 255, 0.78);
}

.trust-grid {
  gap: 14px;
}

.trust-grid div {
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 26px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.beian-gongan img {
  width: 14px;
  height: 15px;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .workflow {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .health-book {
    min-height: 500px;
  }

  .metric-strip,
  .pricing-grid,
  .trust-grid {
    flex-direction: column;
  }

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

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card.large {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 76px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .nav-cta {
    padding-inline: 14px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede,
  .section-heading p,
  .feature-card p,
  .workflow-copy p,
  .trust-grid p {
    font-size: 16px;
  }

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

  .screenshots {
    width: min(100% - 24px, 1260px);
  }

  .screenshot-stage {
    border-radius: 30px;
    padding: 36px 18px 30px;
  }

  .screenshot-heading {
    margin-bottom: 38px;
  }

  .screenshot-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin: 0 -18px;
    padding: 0 18px 14px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screenshot-grid::-webkit-scrollbar {
    display: none;
  }

  .screenshot-card {
    flex: 0 0 min(72vw, 254px);
    scroll-snap-align: center;
  }

  .health-book {
    min-height: 430px;
    border-radius: 30px;
    padding: 24px;
  }

  .health-book::before,
  .health-book::after {
    display: none;
  }

  .book-cover {
    width: 100%;
    min-height: 300px;
  }

  .book-cover strong {
    font-size: 38px;
  }

  .book-pages,
  .book-note {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    margin-top: 14px;
  }

  .page-row.short {
    transform: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-head {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.legal-head h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal-meta strong {
  color: var(--ink);
}

.legal-summary {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--green-2);
  color: #1d3b29;
  font-size: 15px;
  line-height: 1.75;
}

.legal-summary strong {
  color: var(--green);
}

.legal-toc {
  margin: 0 0 48px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 36px;
  font-size: 15px;
  line-height: 1.9;
}

.legal-toc a {
  color: var(--ink);
}

.legal-toc a:hover {
  color: var(--green);
  text-decoration: underline;
}

.legal-body section {
  scroll-margin-top: 90px;
  margin-bottom: 44px;
}

.legal-body h2 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.3;
}

.legal-body h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  line-height: 1.4;
}

.legal-body p {
  margin: 0 0 14px;
  color: #2c3a30;
  font-size: 16px;
  line-height: 1.8;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-body li {
  margin-bottom: 9px;
  color: #2c3a30;
  font-size: 16px;
  line-height: 1.75;
}

.legal-body li strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  margin: 0 0 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--clay);
  border-radius: 0 14px 14px 0;
  background: rgba(139, 74, 53, 0.07);
}

.legal-callout p {
  margin: 0;
  color: #5a3122;
  font-size: 15px;
  line-height: 1.75;
}

.legal-callout strong {
  color: var(--clay);
}

.legal-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table th {
  background: var(--soft);
  font-weight: 700;
  color: var(--ink);
}

.legal-table td {
  color: #2c3a30;
}

.legal-backtop {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .legal {
    padding: 44px 0 72px;
  }

  .legal-head h1 {
    font-size: 30px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-body h2 {
    font-size: 21px;
  }
}
