/* ==========================================================================
   TFUCare · 天府医途 — design system
   Static bilingual site. No external fonts or CDNs (dual-region speed).
   Palette: navy (authority) + jade (medical) + gold (Chengdu warmth).
   All text/background pairs verified to WCAG AA.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #14304f;
  --navy-700: #1b3d63;
  --navy-500: #2a5580;
  --navy-100: #eaf0f6;
  --jade: #0f766e;
  --jade-700: #0b5d57;
  --jade-100: #e2f1ef;
  --gold: #b8860b;          /* accent on light — 4.6:1 on white */
  --gold-bright: #e0a83c;   /* accent on dark only — 7.3:1 on --navy */

  /* Neutrals */
  --ink: #17212e;
  --ink-soft: #3b4a5c;
  --muted: #5b6b7d;         /* 4.9:1 on --bg, 4.6:1 on --tint */
  --line: #dfe6ee;
  --bg: #f7f9fb;
  --tint: #eef4f8;
  --card: #ffffff;
  --dark-bg: #0e2338;
  /* header bar, following the benchmark's #1e3c72 */
  --header-bg: #1e3c72;

  /* Status */
  --ok: #1e7a3c;
  --ok-bg: #e8f6ec;
  --warn: #a0611a;
  --warn-bg: #fdf3e3;
  --stop: #b3261e;
  --stop-bg: #fdecea;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(20, 48, 79, .06);
  --shadow: 0 6px 20px rgba(20, 48, 79, .07);
  --shadow-lg: 0 16px 44px rgba(20, 48, 79, .11);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }
.section { padding: 52px 0; }
.section-tint { background: var(--tint); }
.center { text-align: center; }

.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--jade); margin-bottom: 10px;
}
h2.sec { font-size: clamp(24px, 3.2vw, 33px); font-weight: 800; margin-bottom: 12px; }
.sub { color: var(--ink-soft); font-size: 17px; max-width: 720px; }
.section-head { margin-bottom: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  line-height: 1.2; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  text-decoration: none !important; text-align: center;
}
.btn-primary { background: var(--jade); color: #fff; box-shadow: 0 4px 14px rgba(15,118,110,.28); }
.btn-primary:hover { background: var(--jade-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-500); background: var(--navy-100); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Focus visibility — required for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
/* Navy bar with white text, following the benchmark's .rc-header (#1e3c72 on #fff).
   --header-bg is a token so the nav text colours below stay in one place. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  /* The homepage hero is a dark gradient within ~1.2:1 of this navy, so without a
     separator the bar and the hero would read as one continuous dark block. A
     hairline plus a soft cast shadow keeps the sticky bar legible as its own
     layer on every page. */
  border-bottom: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 2px 10px rgba(8,20,34,.28);
}
/* Logo left, links centred, action right. The centre column is absolutely
   positioned so the links sit on the true page centre regardless of how wide the
   logo or the right-hand buttons are. */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
@media (max-width: 1160px) { .nav-links { position: static; transform: none; } }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: 0 0 auto; }
.logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.logo-word { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.logo-word b { color: var(--gold-bright); }
.logo-word small { display: block; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.62); letter-spacing: .08em; }

/* One line, always. flex-wrap:nowrap + a nowrap on each link stops the group
   breaking onto a second row; the padding and gap tighten progressively as the
   viewport narrows so the row shrinks instead of reflowing. */
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nav-links > a {
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.88); padding: 8px 9px;
  border-radius: 8px; text-decoration: none !important; white-space: nowrap;
}
.nav-links > a:hover { color: #fff; background: rgba(255,255,255,.13); }
.nav-links > a.is-active { color: #fff; background: rgba(255,255,255,.18); }
.nav-cta { margin-left: 4px; }

/* Below ~1280px the centred row approaches the logo, so tighten the rhythm
   before it collides. Above 1280px there is room for the open spacing. */
@media (min-width: 1161px) and (max-width: 1280px) {
  .nav-links { gap: 4px; }
  .nav-links > a { padding: 8px 8px; }
}

/* ---------- Language dropdown ----------
   Replaced the inline "中文 ID ع RU" link row: it crowded the nav and grew by one
   button per language. The trigger shows only the current language; the rest are in
   a panel. <details>/<summary> gives keyboard and screen-reader support for free. */
.lang-menu { position: relative; flex: 0 0 auto; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::marker { content: ""; }

.lang-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; transition: background .18s, border-color .18s;
}
.lang-trigger:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.lang-menu[open] > .lang-trigger { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.55); }
.lang-globe { opacity: .85; flex: 0 0 auto; }
.lang-caret { opacity: .75; transition: transform .2s; flex: 0 0 auto; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }

.lang-list {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 60;
  min-width: 212px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10,28,48,.22), 0 3px 8px rgba(10,28,48,.10);
  display: flex; flex-direction: column; gap: 1px;
  max-height: min(70vh, 380px); overflow-y: auto;
}
/* small pointer so the panel reads as attached to the trigger */
.lang-list::before {
  content: ""; position: absolute; top: -5px; right: 18px;
  width: 9px; height: 9px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 8px; text-decoration: none !important;
  color: var(--ink) !important; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .14s;
}
.lang-name { text-align: left; }
.lang-code {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--muted); background: var(--tint);
  padding: 2px 6px; border-radius: 5px; flex: 0 0 auto;
}
.lang-item:hover { background: var(--tint); }
.lang-item.is-current { background: var(--navy-100); }
.lang-item.is-current .lang-code { background: var(--navy); color: #fff; }
.lang-item.is-current::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright); flex: 0 0 auto;
}
/* RTL: the panel opens toward the reading edge and the pointer mirrors */
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .lang-list::before { right: auto; left: 18px; }
[dir="rtl"] .lang-item { flex-direction: row-reverse; }

/* In the stacked mobile nav the dropdown becomes a plain block so it cannot
   float over the page. */
@media (max-width: 1160px) {
  .lang-menu { width: 100%; margin: 6px 0 0; }
  .lang-trigger { width: 100%; justify-content: center; }
  .lang-list {
    position: static; min-width: 0; margin-top: 8px;
    box-shadow: none; background: rgba(255,255,255,.97);
  }
  .lang-list::before { display: none; }
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,.34);
  border-radius: 10px; cursor: pointer; padding: 0 11px; flex: 0 0 auto;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 1160px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 8px 18px 22px;
    max-height: calc(100vh - 68px); overflow-y: auto;
    display: none;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links > a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 16px; border-radius: 0; }
  .nav-links > a:last-of-type { border-bottom: 0; }
  .nav-links .nav-cta { margin: 14px 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 84px 0 76px;
  background:
    linear-gradient(118deg, rgba(14,35,56,.96) 0%, rgba(15,74,80,.90) 52%, rgba(14,35,56,.94) 100%),
    url("../assets/photos/hero-bg.jpg") center 38% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: start; }
.hero .eyebrow { color: #8fd8cb; }
.hero h1 { font-size: clamp(30px, 4.4vw, 47px); font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-bright); display: block; }
.hero .lead { font-size: 17.5px; color: rgba(255,255,255,.9); margin-bottom: 22px; max-width: 620px; }
.hero .lead b { color: #fff; }
/* Two columns for the six hero proofs, so the hero does not grow tall. */
.hero-points {
  list-style: none; margin: 22px 0 0; display: grid; gap: 9px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1100px) { .hero-points { grid-template-columns: 1fr; } }
.hero-points li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,.86); }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; color: var(--gold-bright); font-weight: 800;
}

/* Hero enquiry card — the above-the-fold conversion mechanism */
.match-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 26px 26px 22px; box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.match-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.match-card > p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.match-card .field { margin-bottom: 12px; }
.match-card label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.match-card input, .match-card select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.match-card input:focus, .match-card select:focus { border-color: var(--jade); }
.match-card .hint { font-size: 12.5px; color: var(--muted); margin-top: 11px; line-height: 1.55; }
.match-card .reassure {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--jade-700);
  background: var(--jade-100); border-radius: 9px; padding: 9px 12px; margin-top: 13px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 17px 18px; }
.stat b { display: block; font-size: 27px; font-weight: 800; color: var(--gold-bright); line-height: 1.1; margin-bottom: 4px; }
.stat span { font-size: 13.5px; color: rgba(255,255,255,.84); display: block; line-height: 1.5; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 9px; }
#why .card h3 { font-size: 17.5px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.card-link { display: block; text-decoration: none !important; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--jade); }
.card-link .more { color: var(--jade); font-weight: 700; font-size: 14.5px; margin-top: 12px; display: inline-block; }

/* ---------- Steps ---------- */
/* 8 numbered steps: 4 x 2 on wide screens, collapsing to 2 then 1 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 1180px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 13px;
}
.step h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.step ul { list-style: none; margin: 0; display: grid; gap: 7px; }
.step ul li { position: relative; padding-left: 17px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.step ul li::before { content: "·"; position: absolute; left: 4px; color: var(--jade); font-weight: 800; }

/* ---------- Compare band ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccol { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ccol.hl { border: 2px solid var(--jade); box-shadow: var(--shadow); }
.ccol .flag { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.ccol h3 { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.ccol .sys { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ccol dl { display: grid; gap: 10px; }
.ccol dt { font-size: 13.5px; color: var(--muted); }
.ccol dd { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.ccol.hl dd { color: var(--jade); }
.source { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 15px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table.data th {
  background: var(--navy-100); text-align: left; font-weight: 800; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
  padding: 13px 15px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 15px; border-bottom: 1px solid #eef3f8; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
table.data .yes { color: var(--ok); font-weight: 700; }
table.data .no { color: var(--muted); }
.notes { font-size: 13px; color: var(--muted); margin-top: 11px; line-height: 1.65; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; display: flex; flex-direction: column; }
.tier.popular { border: 2px solid var(--jade); box-shadow: var(--shadow-lg); }
.tier .flag {
  position: absolute; top: -13px; left: 24px; background: var(--jade); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tier h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.tier .tagline { font-size: 14.5px; color: var(--ink-soft); min-height: 44px; margin-bottom: 16px; }
.tier .amount { font-size: 27px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 4px; }
.tier .amount.free { color: var(--ok); }
.tier .answers { font-size: 13.5px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0 0 18px; display: grid; gap: 9px; }
.tier ul li { position: relative; padding-left: 25px; font-size: 14.5px; color: var(--ink-soft); }
.tier ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--jade); font-weight: 800; }
.tier .excl { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.tier .excl p { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.tier .excl ul li { font-size: 13.5px; color: var(--muted); }
.tier .excl ul li::before { content: "–"; color: var(--muted); }
.tier .btn { margin-top: 18px; }

/* Placeholder chip — visible so nothing ships silently */
.ph {
  display: inline-block; background: var(--warn-bg); color: var(--warn);
  border: 1.5px dashed var(--warn); border-radius: 7px; padding: 3px 10px;
  font-weight: 800; font-family: var(--mono); font-size: .95em;
}
.ph-block {
  display: block; background: var(--warn-bg); color: var(--warn); border: 1.5px dashed var(--warn);
  border-radius: 10px; padding: 14px 16px; margin: 14px 0; font-size: 14px; font-weight: 600;
}
/* label comes from the markup; do not inject it here or it prints twice */

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--jade);
  border-radius: var(--radius); padding: 18px 22px; margin: 18px 0;
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); border-color: #f0dcbb; }
.callout.stop { border-left-color: var(--stop); background: var(--stop-bg); border-color: #f5cdc9; }
.callout .ic { font-size: 21px; line-height: 1.2; flex: 0 0 auto; }
.callout .bd { flex: 1; min-width: 0; }
.callout .bd > strong:first-child { display: block; font-size: 16px; margin-bottom: 5px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }







/* ---------- Comparison pages ---------- */
.cmp-table { font-size: 14.5px; }
.cmp-table th:first-child, .cmp-table td:first-child { font-weight: 600; color: var(--navy); }
.cmp-table td { vertical-align: top; }
.cmp-table .cmp-edge { white-space: nowrap; }
.cmp-caveats { list-style: none; display: grid; gap: 11px; margin-top: 14px; }
.cmp-caveats li {
  position: relative; padding-left: 20px; color: var(--ink-soft);
  font-size: 15px; line-height: 1.65;
}
.cmp-caveats li::before {
  content: "!"; position: absolute; left: 0; top: 1px;
  color: var(--warn); font-weight: 800;
}
/* badge tones used by the verdict column */
.badge.jade { background: var(--jade-100); color: var(--jade-700); }
.badge.navy { background: #e6ecf5; color: var(--navy); }
.badge.muted { background: var(--tint); color: var(--muted); }
/* ---------- Refund terms ---------- */
.refund-row {
  border-top: 1px solid var(--line); padding: 18px 0 4px;
}
.refund-row:first-of-type { border-top: 0; padding-top: 10px; }
.refund-row h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.refund-row ul { list-style: none; display: grid; gap: 7px; }
.refund-row li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.refund-row li::before { content: "·"; position: absolute; left: 4px; color: var(--jade); font-weight: 800; }
/* ---------- About: impact figures ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.stat-card b { display: block; font-size: 34px; font-weight: 800; color: var(--jade); line-height: 1.05; }
.stat-card span { display: block; font-size: 14px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
/* ---------- Homepage insurance summary ---------- */
.hosp-board {
  display: grid; gap: 3px; text-decoration: none !important;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.hosp-board:hover { border-color: var(--jade); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hosp-board-n { font-size: 30px; font-weight: 800; color: var(--jade); line-height: 1; }
.hosp-board-t { font-size: 14px; font-weight: 700; color: var(--navy); }
.hosp-board-s { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.hosp-board-l { font-size: 13px; font-weight: 700; color: var(--jade); margin-top: 9px; }
/* ---------- Insurance direct-billing board ---------- */
.board-figure { margin: 22px 0 0; }
.board-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.board-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.board-zoom { color: var(--jade); font-weight: 700; white-space: nowrap; }
/* ---------- Hospital feature card: photo column + text column ---------- */
.hosp-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 26px; align-items: start; }
.hosp-media { display: grid; gap: 14px; }
.hosp-photo {
  width: 100%; height: auto; aspect-ratio: 1024 / 525; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.hosp-figure { margin: 0; }
.hosp-figure { overflow: hidden; }
.hosp-figure img {
  width: 100%; height: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
}
.hosp-figure figcaption { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 7px; }
.hosp-body { min-width: 0; }
.hosp-position { color: var(--ink-soft); margin-bottom: 14px; }
.hosp-body .btn-row { margin-top: 16px; }
@media (max-width: 1020px) {
  .hosp-grid { grid-template-columns: 1fr; gap: 20px; }
  .hosp-media { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 700px) {
  .hosp-media { grid-template-columns: 1fr; }
}
/* ---------- Hospital card ---------- */
.hosp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.hosp-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 6px; }
.hosp h3 { font-size: 22px; font-weight: 800; }
.hosp h3 span { display: block; font-size: 14.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.hosp .verified { font-size: 12.5px; color: var(--muted); white-space: nowrap; background: var(--tint); border-radius: 7px; padding: 5px 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 15px; }
.badge { font-size: 12.5px; font-weight: 700; color: var(--jade-700); background: var(--jade-100); border-radius: 999px; padding: 4px 11px; }
.badge.navy { color: var(--navy); background: var(--navy-100); }
.hosp ul.facts { list-style: none; display: grid; gap: 9px; margin-bottom: 16px; }
.hosp ul.facts li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); }
.hosp ul.facts li::before { content: "▪"; position: absolute; left: 4px; color: var(--jade); font-weight: 800; }
.hosp .intl { background: var(--tint); border-radius: var(--radius-sm); padding: 15px 17px; font-size: 14.5px; color: var(--ink-soft); }
.hosp .specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.hosp .specs a { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; text-decoration: none !important; color: var(--ink-soft); }
.hosp .specs a:hover { border-color: var(--jade); color: var(--jade); }

/* ---------- Filter bar ---------- */
.tab {
  padding: 9px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.tab:hover { border-color: var(--navy-500); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- FAQ ---------- */
/* Two columns. A grid (not CSS columns) is used deliberately: expanding an
   accordion answer changes one cell's height only, instead of making the
   browser reflow items between columns. */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: start; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0; overflow: hidden;
}
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--jade); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 5px; }
.form-card > p.intro { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field .req { color: var(--stop); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); line-height: 1.5;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jade); }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.consent input { width: 19px; height: 19px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--jade); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; border-radius: 10px; padding: 13px 16px; margin-top: 14px; }
.form-note.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3c9; }
.form-note.err { background: var(--stop-bg); color: var(--stop); border: 1px solid #f5cdc9; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Contact channels ---------- */
.channels { display: grid; gap: 14px; }
.channel-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; }
.channel-item .ci { font-size: 22px; flex: 0 0 auto; line-height: 1.2; }
.channel-item h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.channel-item p, .channel-item a { font-size: 14.5px; color: var(--ink-soft); word-break: break-word; }
/* QR codes: two equal square cards so both codes always render the same size.
   White surround is required — scanners need an uninterrupted quiet zone. */
.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.qr-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.qr-box img {
  width: 100%; max-width: 190px; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; image-rendering: pixelated;
  background: #fff; border-radius: 8px;
}
.qr-box p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0; }
.qr-box b { display: block; font-size: 14px; color: var(--ink); margin-top: 2px; word-break: break-word; }

/* ---------- Guides ---------- */
/* ---------- Merged "Understand your options": sub-headed groups ---------- */
.subhead {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  margin: 38px 0 4px; padding-top: 26px; border-top: 1px solid var(--line);
}
.subhead:first-of-type { margin-top: 6px; padding-top: 0; border-top: 0; }
.subhead-note { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }

.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
@media (max-width: 900px) { .guide-list { grid-template-columns: 1fr; } }
.guide-list a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none !important; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.guide-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--jade); }
.guide-list b { display: block; font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.guide-list span { font-size: 14.5px; color: var(--ink-soft); }
.guide-list .tag-soon { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 2px; }

/* Article body (guides) */
.refs { font-size: 13.5px; color: var(--muted); }
.refs li { margin-bottom: 6px; }

/* ---------- Inline CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 36px 34px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(21px, 2.8vw, 27px); font-weight: 800; margin-bottom: 7px; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 15.5px; max-width: 580px; }
.cta-band .btn { flex: 0 0 auto; }

/* ---------- Footer ---------- */
/* Same surface as the header, so the page is framed top and bottom by one colour.
   It also has to be dark: the footer carries the same .logo-word markup as the
   header, whose text is white. */
.site-footer {
  background: var(--header-bg); color: rgba(255,255,255,.76);
  border-top: 0;
  padding: 34px 0 18px; margin-top: 0; font-size: 14px;
}
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.site-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.58); margin-bottom: 9px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer ul a { font-size: 14px; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word b { color: var(--gold-bright); }
.site-footer .logo-word small { color: rgba(255,255,255,.55); }
.footer-about { font-size: 13.5px; color: rgba(255,255,255,.70); max-width: 290px; margin-top: 10px; line-height: 1.55; }
.disclaimer { font-size: 12.5px; color: rgba(255,255,255,.58); border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; line-height: 1.6; margin-bottom: 10px; }
.footer-contact { margin-top: 8px; font-size: 13.5px; }
.footer-contact a { color: rgba(255,255,255,.80); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
.footer-legal-links a { white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.60); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  box-shadow: 0 -4px 20px rgba(20,48,79,.1);
}
.sticky-cta .btn { flex: 1; padding: 13px 14px; font-size: 15px; }
@media (max-width: 760px) { .sticky-cta { display: flex; } body { padding-bottom: 74px; } }

/* Floating WhatsApp (desktop) */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37,211,102,.42);
}
.wa-float svg { width: 29px; height: 29px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 760px) { .wa-float { display: none; } }

/* ---------- Reveal animation ----------
   Applied only when JS is available (html.js), so content is never
   permanently hidden if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 23px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .qr-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 26px 22px; }
  .cta-band .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero h1 { font-size: 29px; }
  .hosp { padding: 22px 18px; }
  .match-card { padding: 22px 18px 18px; }
  /* iOS: keep inputs >=16px to prevent focus zoom */
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .sticky-cta, .nav-toggle, .cta-band .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------- Why Chengdu: featured hospital lead ---------- */
.why-feature { margin-bottom: 30px; }
.why-feature-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--jade); margin-bottom: 12px;
}
.why-feature .hosp { border-left: 4px solid var(--jade); }
/* ---------- Reference hospital directory ---------- */
.dir-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.dir-controls input[type=search] {
  flex: 1 1 300px; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 15.5px; font-family: inherit; min-width: 0;
}
.dir-controls select {
  flex: 0 1 240px; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 15px; font-family: inherit; background: #fff;
  color: var(--ink); min-width: 0;
}
.dir-controls input:focus, .dir-controls select:focus { border-color: var(--jade); }
.dir-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dir-tabs .tab { font-size: 13.5px; padding: 8px 14px; }
.tab-n { opacity: .6; font-weight: 600; margin-left: 3px; }
.dir-table { font-size: 14.5px; }
.dir-table th:nth-child(2), .dir-table td:nth-child(2) { white-space: nowrap; }
.dir-table td { vertical-align: top; }
.dir-alt { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.dir-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-specs .badge { font-size: 11.5px; padding: 3px 8px; }
.dir-table tr[hidden] { display: none; }
@media (max-width: 700px) {
  .dir-controls select { flex: 1 1 100%; }
  /* stack the directory table into labelled cards */
  .dir-table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table thead { display: none; }
  .dir-table { border: 0; background: none; }
  .dir-table tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 0; margin-bottom: 10px; background: #fff;
  }
  .dir-table tr:last-child { margin-bottom: 0; }
  .dir-table td { border-bottom: 0; padding: 4px 15px; }
  .dir-table td:first-child { padding-bottom: 8px; font-size: 16px; }
  .dir-table td:not(:first-child)::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
}
