/* ===========================================================
   Panda CarePath — inbound medical service site
   Design system v2: clinical blue / violet / white.
   Clean, cool, high-tech — the palette international medical
   platforms use (blue = trust, violet = advanced technology,
   white = hygiene and clarity).
   =========================================================== */

:root {
  /* ---- Surfaces: cool near-white, never warm grey ---- */
  --bg: #f6f9fd;
  --surface: #ffffff;
  --surface-2: #f1f6fc;
  --surface-3: #e9f1fb;

  /* ---- Ink: deep navy scale ---- */
  --ink: #0d1b34;
  --ink-2: #4a5c78;
  --ink-3: #8496ae;

  /* ---- Lines: cool hairlines ---- */
  --line: #e2eaf5;
  --line-2: #cbd9ec;

  /* ---- Brand: clinical blue ---- */
  --brand: #1d5fd8;
  --brand-2: #1749ad;
  --brand-3: #0e2f73;
  --brand-soft: #eaf1fe;
  --brand-line: #c7daf9;

  /* ---- Violet: technology accent ---- */
  --violet: #6d3ce8;
  --violet-2: #5a2cc9;
  --violet-soft: #f1ecfe;

  /* ---- Cyan: signal accent, used sparingly ---- */
  --cyan: #0ea5c9;
  --cyan-soft: #e6f7fb;

  /* ---- Emphasis (was warm ochre; now a cool azure) ---- */
  --accent: #1d5fd8;
  --accent-soft: #eaf1fe;

  /* ---- Gradients: the signature of the new look ---- */
  --grad: linear-gradient(135deg, #1d5fd8 0%, #6d3ce8 100%);
  --grad-hover: linear-gradient(135deg, #1749ad 0%, #5a2cc9 100%);
  --grad-soft: linear-gradient(135deg, #eaf1fe 0%, #f1ecfe 100%);
  --grad-dark: linear-gradient(155deg, #081428 0%, #102a5e 52%, #2a1667 100%);

  /* ---- Status ---- */
  --ok: #0f8a63;
  --ok-soft: #e6f6f0;
  --warn: #b8770c;
  --warn-soft: #fdf5e6;
  --danger: #cf3a34;
  --danger-soft: #fdeeec;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 52, .05), 0 10px 28px -14px rgba(13, 27, 52, .20);
  --shadow-lg: 0 2px 6px rgba(13, 27, 52, .06), 0 28px 56px -24px rgba(13, 27, 52, .28);
  --shadow-brand: 0 10px 26px -12px rgba(29, 95, 216, .55);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.brand-panda { width: 23px; height: 23px; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links .nav-cta { display: none; }

.lang-switch {
  display: flex; border: 1px solid var(--line-2); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  font-family: var(--font);
}
.lang-switch button.on { background: var(--brand); color: #fff; }

.nav-toggle { display: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; text-decoration: none; transition: .16s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--grad-hover); color: #fff; box-shadow: 0 14px 30px -12px rgba(29, 95, 216, .68); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h2 { font-size: clamp(23px, 2.9vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
h4 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 16px; color: var(--ink-2); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.72; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: var(--brand); -webkit-text-fill-color: transparent;
}
.eyebrow.on-dark {
  background: none; -webkit-text-fill-color: currentColor;
  color: #a8c4f5;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 88% -4%, rgba(109, 60, 232, .10), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(29, 95, 216, .10), transparent 60%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}
/* faint technical grid — reads as precision, not decoration */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 95, 216, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 95, 216, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(680px 340px at 78% 6%, #000 0%, transparent 72%);
  mask-image: radial-gradient(680px 340px at 78% 6%, #000 0%, transparent 72%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-2);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none;
  box-shadow: 0 0 0 3px rgba(29, 95, 216, .16);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card .num-badge {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-soft); color: var(--brand);
  border: 1px solid var(--brand-line);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { border-color: var(--brand-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-link .card { transition: .18s ease; height: 100%; }

/* ---------- Price table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: 13px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-ours { background: var(--brand-soft); }
.row-ours td { font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 3px solid var(--brand); background: var(--surface);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout.danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout.accent { border-left-color: var(--brand); background: var(--brand-soft); }
.callout strong { color: var(--ink); }

.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: .02em;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.brand { background: var(--brand-soft); color: var(--brand-2); }
.pill.violet { background: var(--violet-soft); color: var(--violet-2); }
.pill.muted { background: var(--surface-3); color: var(--ink-3); }

/* ---------- Lists ---------- */
ul.clean { list-style: none; padding: 0; margin: 0 0 16px; }
ul.clean li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--ink-2); font-size: 14.5px; }
ul.clean li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
ul.check li::before {
  content: "✓"; background: none; color: var(--ok); font-weight: 700;
  left: 2px; top: 0; width: auto; height: auto; font-size: 13px;
}
ul.cross li::before {
  content: "✕"; background: none; color: var(--danger); font-weight: 700;
  left: 2px; top: 0; width: auto; height: auto; font-size: 12px;
}
ul.clean li strong { color: var(--ink); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); font-family: var(--font); font-size: 14.5px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 95, 216, .15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.checkbox-row input { width: auto; margin-top: 3px; flex: none; }

.form-status { margin-top: 14px; font-size: 14px; border-radius: var(--radius-sm); padding: 12px 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-soft); color: #0a5f45; border: 1px solid #b8e3d3; }
.form-status.err { background: var(--danger-soft); color: #9c2a25; border: 1px solid #f3cbc7; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.step-item:last-child { border-bottom: 0; }
.step-no {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-brand);
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { margin-bottom: 8px; font-size: 14.5px; }
.step-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.step-meta .pill { font-weight: 600; }

/* ---------- Process / roadmap rail ---------- */
.rail { position: relative; padding-left: 28px; }
.rail::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.rail-item { position: relative; padding-bottom: 26px; }
.rail-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--brand);
}
.rail-item h4 { margin-bottom: 4px; }
.rail-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Dark band ---------- */
.band {
  position: relative;
  background: var(--grad-dark);
  color: #dce7fb;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 84% 0%, rgba(109, 60, 232, .34), transparent 66%),
    radial-gradient(560px 300px at 10% 100%, rgba(29, 95, 216, .30), transparent 64%);
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #4d8cf5 22%, #a580ff 78%, transparent);
  opacity: .8;
}
.band > .wrap { position: relative; z-index: 1; }
.band h2, .band h3, .band h4 { color: #fff; }
.band p, .band li { color: #b9c9e6; }
.band .card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); box-shadow: none; color: #dce7fb; backdrop-filter: blur(6px); }
.band .card p { color: #b9c9e6; }
.band .card h3 { color: #fff; }
.band .num-badge { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.band a { color: #9dc0ff; }

/* ---------- Footer ---------- */
.site-footer { background: #08152c; color: #93a4c0; padding: 52px 0 30px; font-size: 14px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5 { color: #e6edf9; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; font-weight: 650; }
.site-footer a { color: #93a4c0; text-decoration: none; display: block; margin-bottom: 9px; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #7a8ba8; }
.foot-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid #16294a;
  font-size: 12.5px; color: #6b7d9b; line-height: 1.75;
}
.foot-bottom p { color: #6b7d9b; margin-bottom: 10px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; font-size: 13px; color: var(--ink-3); line-height: 1.7;
}
.disclaimer strong { color: var(--ink-2); }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt40 { margin-top: 40px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.kpi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi .k {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi .k b { display: block; font-size: 26px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.kpi .k span { font-size: 13px; color: var(--ink-3); }
.band .kpi .k { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.band .kpi .k b { color: #fff; }
.band .kpi .k span { color: #a9bcdd; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { max-width: 760px; }
.page-head .lead { max-width: 700px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }

/* ---------- Planner ---------- */
.planner-shell { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.opt-group { margin-bottom: 22px; }
.opt-group > label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; cursor: pointer; font-family: var(--font);
  color: var(--ink-2); transition: .14s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.result-panel { position: sticky; top: 88px; }
.res-block { border-bottom: 1px dashed var(--line-2); padding-bottom: 16px; margin-bottom: 16px; }
.res-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.res-block > h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.res-tier { font-size: 21px; font-weight: 700; color: var(--brand); }
.cost-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cost-cell { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); }
.cost-cell.ours { background: var(--brand-soft); border-color: var(--brand-line); }
.cost-cell span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.cost-cell b { font-size: 17px; font-weight: 700; color: var(--ink); }
.cost-cell.ours b { color: var(--brand-2); }
.item-list { display: flex; flex-wrap: wrap; gap: 6px; }
.item-list span { background: var(--surface-3); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .planner-shell { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-right { margin-left: 0; }
  .nav-row { gap: 12px; }
  .nav-links .nav-cta { display: block; color: var(--accent); font-weight: 650; }
  .nav-right > .btn-primary { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .g4 { grid-template-columns: 1fr; }
  .cost-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; }
  th, td { padding: 11px 12px; font-size: 13.5px; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .lang-switch { display: none !important; }
  body { background: #fff; }
  section { padding: 20px 0; }
}
