:root {
  color-scheme: light dark;
  --bg: #eef2e8;
  --surface: #f8faf4;
  --surface-strong: #e1e9d8;
  --ink: #20251f;
  --muted: #5e685b;
  --line: rgba(32, 37, 31, 0.14);
  --accent: #557a3d;
  --accent-strong: #365727;
  --accent-text: #f7faef;
  --cocoa: #6f4c33;
  --shadow: 0 28px 80px rgba(44, 57, 39, 0.16);
  --radius: 24px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b16;
    --surface: #20261f;
    --surface-strong: #293326;
    --ink: #edf2e8;
    --muted: #aab5a5;
    --line: rgba(237, 242, 232, 0.14);
    --accent: #91b875;
    --accent-strong: #b4d59c;
    --accent-text: #172014;
    --cocoa: #c69a78;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
p { color: var(--muted); }

.site-header,
main,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -0.02em; }
.brand img { border-radius: 12px; box-shadow: 0 8px 24px rgba(73, 60, 45, 0.16); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); white-space: nowrap; }
nav a, .footer-links a { color: var(--muted); font-size: 0.92rem; font-weight: 680; }
nav a:hover, .footer-links a:hover { color: var(--accent-strong); }

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  padding: 54px 0 80px;
}
.hero-copy { max-width: 700px; }
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 { max-width: 12ch; margin-bottom: 24px; }
.hero-text { max-width: 26rem; margin-bottom: 32px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 820;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.98); }
.button.primary { background: var(--accent-strong); color: var(--accent-text); }
.button.secondary { border: 1px solid var(--line); background: var(--surface); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 430px); }
.phone-frame { padding: 10px; border-radius: 42px; background: #252a23; box-shadow: var(--shadow); transform: rotate(2.5deg); }
.phone-frame img { width: 100%; border-radius: 33px; }
.hero-icon { position: absolute; left: -52px; bottom: 9%; width: 31%; border-radius: 27%; box-shadow: 0 20px 52px rgba(37, 45, 34, 0.26); transform: rotate(-6deg); }

.privacy-story,
.screens,
.usage,
.availability,
.contact-block,
.faq,
.data-note { padding: clamp(72px, 10vw, 132px) 0; }
.statement { max-width: 820px; margin-bottom: 48px; }
.statement p:last-child, .section-heading p { max-width: 42rem; font-size: 1.08rem; }
.boundary-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-areas: "local clear" "local honest";
  gap: 16px;
}
.boundary { min-height: 190px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.boundary strong { display: block; margin-bottom: 18px; font-size: 1.45rem; letter-spacing: -0.03em; }
.boundary p { max-width: 30rem; margin-bottom: 0; }
.boundary.local { grid-area: local; min-height: 396px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--accent-strong); }
.boundary.local strong, .boundary.local p { color: var(--accent-text); }
.boundary.clear { grid-area: clear; background: var(--surface-strong); }
.boundary.honest { grid-area: honest; }

.section-heading { margin-bottom: 48px; }
.screen-gallery { display: grid; grid-template-columns: 1.35fr 0.8fr; align-items: start; gap: clamp(24px, 6vw, 72px); }
.screen-shot { margin: 0; }
.screen-shot img { width: 100%; border-radius: 32px; box-shadow: var(--shadow); }
.screen-shot figcaption { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.side-shot { margin-top: 120px; }

.usage > h2 { max-width: 680px; margin-bottom: 48px; }
.usage-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.usage-grid article { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.usage-grid .usage-large { grid-row: span 2; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--cocoa); }
.usage-large h3, .usage-large p, .usage-large .step-word { color: #fff6ed; }
.step-word { display: block; margin-bottom: 36px; color: var(--accent-strong); font-weight: 850; }
.usage-grid p { margin-bottom: 0; }

.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  padding-inline: clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--surface-strong);
}
.availability h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.availability p { margin-bottom: 0; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 44px 0 54px; border-top: 1px solid var(--line); }
footer p { margin: 6px 0 0; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.medical-note { grid-column: 1 / -1; }

.support-main { max-width: 960px; }
.support-hero { padding: clamp(72px, 10vw, 128px) 0 48px; }
.support-hero h1 { max-width: 12ch; margin-bottom: 22px; }
.support-hero > p:last-child { max-width: 42rem; font-size: 1.08rem; }
.contact-block { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.contact-block h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-block p { max-width: 36rem; margin-bottom: 0; }
.email-link { padding: 16px 20px; border-radius: 14px; background: var(--accent-strong); color: var(--accent-text); font-weight: 820; }
.verification-note { grid-column: 1 / -1; font-size: 0.88rem; }
.faq h2 { margin-bottom: 36px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 820; }
details p { margin: 14px 0 0; }
.data-note { padding-inline: clamp(24px, 5vw, 52px); border-radius: var(--radius); background: var(--surface-strong); margin-bottom: 72px; }
.data-note h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.data-note p { max-width: 44rem; margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, var(--max)); }
  .site-header { min-height: 64px; }
  nav { gap: 14px; }
  nav a:first-child { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 48px 0 78px; }
  .hero h1 { max-width: 13ch; }
  .hero-visual { justify-self: center; width: min(82vw, 390px); }
  .hero-icon { left: -18px; }
  .boundary-grid, .screen-gallery, .usage-grid, .contact-block, .faq-list { grid-template-columns: 1fr; }
  .boundary-grid { grid-template-areas: "local" "clear" "honest"; }
  .boundary.local { min-height: 300px; }
  .side-shot { margin-top: 0; }
  .screen-gallery { gap: 48px; }
  .usage-grid .usage-large { grid-row: auto; min-height: 330px; }
  .availability { align-items: flex-start; flex-direction: column; }
  .contact-block { align-items: start; }
  .verification-note { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .medical-note { grid-column: auto; }
}

@media (max-width: 430px) {
  .brand span { display: none; }
  nav { width: 100%; justify-content: flex-end; }
  .hero-actions, .hero-actions .button, .availability .button { width: 100%; }
  h1 { font-size: 2.55rem; }
  .boundary, .usage-grid article { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
