: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(54px, 7.2vw, 104px);
  line-height: 0.92;
  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;
}

.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;
}

.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);
}

.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;
  }

  .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;
  }

  .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;
  }
}
