/* Zhenly practitioner pages: home (EN + /zh/), privacy, terms. */
:root {
  --bg: #F6F4EF;
  --paper: #FFFFFF;
  --paper-warm: #FFFEFB;
  --ink: #1B1A17;
  --ink-2: #3D3A34;
  --muted: #5E5A52;
  --line: #E2DED5;
  --line-2: #DDD8CD;
  --jade: #1D5C55;
  --jade-deep: #123E39;
  --jade-soft: #E3EEEC;
  --jade-light: #5FB3A6;
  --note: #FBF7EC;
  --note-line: #E8DDBF;
  --night: #1B1A17;
  --night-ink: #F6F4EF;
  --night-muted: #D9D4CA;
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
a { color: var(--jade); }
a:hover { color: var(--jade-deep); }
:focus-visible { outline: 3px solid var(--jade-light); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-zh { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--jade); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 340px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--jade-deep); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 15px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px; }
.lang-switch:hover { border-color: var(--jade); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 11px;
  padding: 12px 18px; font-size: 15px; line-height: 1.3; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--jade); color: #FFFFFF; }
.btn-primary:hover { background: var(--jade-deep); color: #FFFFFF; }
.btn-lg { padding: 15px 24px; font-size: 17px; border-radius: 12px; }
.btn-outline { border-color: var(--jade); color: var(--jade-deep); background: transparent; }
.btn-outline:hover { background: var(--jade-soft); }
.btn-link { color: var(--jade); padding: 15px 6px; font-weight: 600; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

/* Sections */
.section { padding: 64px 0; }
.section-white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-night { background: var(--night); color: var(--night-ink); }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--jade-deep); letter-spacing: 0.01em; }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; }
h2 .h2-sub { font-family: var(--sans); font-weight: 500; font-size: 0.6em; color: var(--muted); }
.lede { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.16; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--jade); }
.hero-sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.trust { margin: 0; font-size: 14px; color: var(--muted); }
.trust span + span::before { content: " · "; }

.example { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card-warm { background: var(--paper-warm); border-color: var(--line-2); }
.card-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.shorthand { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.75; white-space: pre-line; }
.arrow { margin: 0; text-align: center; font-size: 22px; color: var(--jade); line-height: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 10px; }
.tab { background: #F0EDE6; padding: 5px 10px; border-radius: 7px; }
.tab.is-on { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.record { margin: 0; font-size: 15px; line-height: 1.75; }
.record dt { font-weight: 600; display: inline; }
.record dd { display: inline; margin: 0; }
.record div { margin: 0 0 2px; }
.flag { margin: 10px 0 0; font-size: 13px; background: var(--note); border: 1px solid var(--note-line); border-radius: 8px; padding: 8px 10px; }
.added { border-bottom: 1.5px dashed var(--jade-light); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
[id] { scroll-margin-top: 84px; }
.doc-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.doc-card h3 { font-size: 22px; }
.doc-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.doc-card .doc-alt { font-size: 14px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: 14px; }
blockquote.rule { margin: 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--jade); border-radius: 14px; padding: 22px 24px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
blockquote.rule footer { margin-top: 10px; font-size: 13px; color: var(--muted); }

.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.step-n { font-size: 14px; font-weight: 700; color: var(--jade); }
.step-t { font-size: 18px; font-weight: 600; }
.step-d { font-size: 15px; color: var(--ink-2); }

.facts { margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: 15px; line-height: 1.6; }
.facts strong { display: block; margin-bottom: 4px; }
.more-link { display: inline-block; margin-top: 22px; font-weight: 600; }

/* Pricing + form */
.pricing .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.pricing-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--night-muted); }
.pricing-copy strong { color: #FFFFFF; }
.founding { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.founding label { font-size: 14px; color: var(--night-muted); }
.founding .row { display: flex; gap: 8px; flex-wrap: wrap; }
.founding input[type=email] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px; border: 1px solid transparent; background: #FFFFFF; color: var(--ink); }
.founding button { font: inherit; font-size: 16px; font-weight: 600; padding: 13px 20px; border-radius: 10px; border: 0; background: var(--jade-light); color: #0B0B0A; cursor: pointer; }
.founding button:hover { background: #7CC6BA; }
.founding button[disabled] { opacity: 0.7; cursor: wait; }
.founding .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--night-muted); }
.founding .check input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.founding .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-status.is-ok { color: #9FE0D4; }
.form-status.is-error { color: #F4B3A6; }
.fine { margin: 0; font-size: 13px; color: #BDB7AB; }
.fine a { color: #BDB7AB; }

.patients-band .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.patients-band p { margin: 0; }
.patients-band .pb-title { font-size: 18px; font-weight: 600; }
.patients-band .pb-sub { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer .disclaimer { flex-basis: 100%; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--jade-deep); }

/* Legal / long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin-bottom: 8px; }
.doc .updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-family: var(--sans); font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .summary { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); background: #F0EDE6; }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 40px; }
  .hero-sub { font-size: 17px; }
  .nav { order: 3; flex-basis: 100%; gap: 4px 16px; font-size: 14px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { padding: 9px 12px; font-size: 14px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
