:root {
  --ink: #17211d;
  --muted: #5f6f67;
  --soft: #f7fbf6;
  --paper: #fffaf1;
  --line: rgba(23, 33, 29, 0.13);
  --teal: #2c8f7b;
  --teal-dark: #176957;
  --sky: #2f8fc1;
  --clay: #bf7d44;
  --orange: #e9652f;
  --night: #14241f;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(28, 51, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(233, 101, 47, 0.7);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--night);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 251, 246, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(44, 143, 123, 0.2);
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.nav-cta,
.lang-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding-inline: 14px;
  color: var(--muted);
}

.nav-links a:hover {
  background: var(--white);
  color: var(--ink);
}

.lang-toggle {
  padding-inline: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.nav-cta {
  padding-inline: 18px;
  color: var(--white);
  background: var(--ink);
}

.nav-cta:hover {
  color: var(--white);
  background: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  isolation: isolate;
  background: #eef8f2;
}

.hero-bg-shot {
  position: absolute;
  right: max(-38px, -2vw);
  bottom: -23vh;
  z-index: -2;
  width: min(52vw, 620px);
  min-width: 420px;
  filter: drop-shadow(0 34px 70px rgba(23, 33, 29, 0.22));
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(238, 248, 242, 0.99) 0%, rgba(238, 248, 242, 0.88) 48%, rgba(238, 248, 242, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.92) 0%, rgba(255, 250, 241, 0.08) 72%);
}

.hero-content {
  padding: 94px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 760px;
  font-family: "Lora", "Noto Sans SC", serif;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: 60px;
  font-weight: 700;
}

h2 {
  margin-bottom: 22px;
  font-size: 44px;
  font-weight: 700;
}

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

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  color: #314139;
  font-size: 20px;
  line-height: 1.8;
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 16px 30px rgba(233, 101, 47, 0.25);
}

.button.primary:hover {
  color: var(--white);
  background: #cf5524;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(23, 33, 29, 0.22);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0;
}

.hero-metrics div,
.feature-card,
.case-grid article,
.plan,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics dt {
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.proof-grid span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px 12px;
  color: #3d4d45;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 104px 0;
}

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

.section-heading.compact {
  max-width: 760px;
}

.section-heading p,
.showcase-copy p,
.pricing-grid > div > p,
.privacy-points p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  min-height: 280px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(23, 33, 29, 0.06);
}

.feature-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.feature-card p,
.case-grid p,
.plan p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.showcase {
  background: var(--paper);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: 64px;
}

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

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #314139;
  font-weight: 600;
}

.check-list span {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--white) 0 27%, var(--teal) 30% 100%);
}

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

.phone-shot {
  position: absolute;
  width: min(350px, 48%);
  border-radius: 34px;
  filter: drop-shadow(0 28px 42px rgba(23, 33, 29, 0.2));
}

.main-shot {
  right: 20%;
  top: 0;
  z-index: 2;
}

.side-shot {
  right: 0;
  bottom: 0;
  opacity: 0.92;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case-grid article {
  padding: 24px;
  background: #ffffff;
}

.privacy-band {
  padding: 92px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 36, 31, 0.96), rgba(23, 105, 87, 0.92)),
    url("/assets/screen-score.png") right center / auto 115% no-repeat;
}

.privacy-band .eyebrow,
.privacy-band h2,
.privacy-band p,
.privacy-band a {
  color: var(--white);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 52px;
  align-items: start;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.privacy-list span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.pricing {
  background: #f3f8f4;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan {
  min-height: 250px;
  padding: 28px;
  background: var(--white);
}

.plan.featured {
  color: var(--white);
  background: var(--night);
}

.plan.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.plan strong {
  display: block;
  margin-top: 26px;
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1.2;
}

.plan.featured strong {
  color: #f4b27f;
}

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

.faq details {
  background: var(--white);
}

.faq summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq summary::after {
  content: "+";
  color: var(--teal-dark);
  font-size: 24px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 780px;
  margin: 0;
  padding: 0 22px 22px;
}

.faq a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.final-cta {
  padding: 88px 0;
  color: var(--white);
  background: #1e332c url("/assets/screen-health.png") right -180px center / auto 132% no-repeat;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta .eyebrow {
  color: #f4b27f;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}

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

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

.legal-page {
  background: var(--white);
}

.legal-hero {
  padding: 76px 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.legal-content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

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

.legal-content a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero-bg-shot {
    right: -160px;
    bottom: -170px;
    width: 560px;
    opacity: 0.34;
  }

  .hero-shade {
    background: rgba(238, 248, 242, 0.88);
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .feature-grid,
  .showcase-grid,
  .privacy-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .phone-gallery {
    min-height: 560px;
  }

  .main-shot {
    left: 8%;
    right: auto;
  }

  .side-shot {
    right: 8%;
  }

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

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container,
  .legal-content {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 66px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta,
  .lang-toggle {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    padding: 48px 0 32px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-subtitle,
  .section-heading p,
  .showcase-copy p,
  .pricing-grid > div > p,
  .privacy-points p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
  }

  .button {
    width: auto;
    min-height: 50px;
    padding-inline: 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero-metrics,
  .feature-grid,
  .case-grid,
  .privacy-list,
  .plan-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div {
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 24px;
  }

  .hero-metrics dd {
    font-size: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .feature-card {
    min-height: 240px;
  }

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

  .phone-shot {
    width: 62%;
  }

  .main-shot {
    left: 0;
  }

  .side-shot {
    right: 0;
  }

  .privacy-band,
  .final-cta {
    background-image: linear-gradient(90deg, rgba(20, 36, 31, 0.96), rgba(23, 105, 87, 0.92));
  }
}

@media (max-width: 360px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
