/* =============================================
   WellMeet Theme — Human Editorial Design
   Principle: typography-first, structure over decoration,
   no AI-pattern grids, real hierarchy, earned whitespace.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ─────────────────────────────────────────────
   Design Tokens
   ───────────────────────────────────────────── */
:root {
  --blue-50:   #E6F3FB;
  --blue-100:  #CCE7F7;
  --blue-200:  #99CFEF;
  --blue-400:  #339FDF;
  --blue-500:  #0078D4;
  --blue-600:  #006CBE;
  --blue-700:  #005BA3;
  --blue-800:  #004A87;
  --blue-900:  #001E3C;   /* 机构深海军蓝 */
  --medical-navy: #003366; /* 医疗品牌深蓝 */
  --safe-green:   #166534; /* 安全/通过绿 */
  --trust-bg:     #F0F7FF; /* 信任蓝底色 */

  --green-50:  #EDF5EF;
  --green-400: #7BA98B;
  --green-500: #5B8C6E;
  --green-700: #467055;

  --amber:     #C8973E;
  --amber-dk:  #A67B2E;

  --ink:       #18181B;
  --ink-60:    rgba(24,24,27,.6);
  --ink-30:    rgba(24,24,27,.3);
  --paper:     #FFFFFF;
  --warm:      #FAF8F5;
  --rule:      #E4E4E7;
  --rule-lt:   #F4F4F5;

  --ff-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  /* CJK 标题字体堆栈 */
  --ff-zh: 'Noto Serif SC', 'Source Han Serif CN', 'STSong', var(--ff-serif);
  --ff-ja: 'Noto Serif JP', 'Hiragino Mincho ProN', var(--ff-serif);
  --ff-ko: 'Noto Serif KR', 'Malgun Gothic', var(--ff-serif);
  --ff-ar: 'Noto Kufi Arabic', 'Noto Naskh Arabic', 'Tahoma', serif;
  --ff-ru: 'DM Sans', 'Segoe UI', sans-serif;

  /* CJK/AR 正文字体堆栈 */
  --ff-zh-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ff-ja-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --ff-ko-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ff-ar-body: 'Noto Naskh Arabic', 'Arabic Typesetting', serif;
  --ff-ar-head: 'Noto Kufi Arabic', 'Arabic Typesetting', serif;

  --max-w:     1280px;
  --px:        clamp(1.25rem, 4vw, 2rem);

  /* 间距 - 黄金比例 */
  --space-xs:  0.382rem;
  --space-sm:  0.618rem;
  --space-md:  1rem;
  --space-lg:  1.618rem;
  --space-xl:  2.618rem;
  --space-2xl: 4.236rem;

  /* 行高 */
  --lh-tight:   1.15;
  --lh-heading: 1.25;
  --lh-body:    1.72;
  --lh-cjk:     1.85;
  --lh-ar:      1.95;

  /* Semantic color tokens — replaces hardcoded hex across all CSS */
  --amber-bg:       #FDF5E6;
  --success-bg:     #ECFDF5;
  --success:        #15803D;
  --success-green:  #22C55E;
  --warning-bg:     #FEF3C7;
  --warning-bg-lt:  #FFFBEB;
  --warning:        #F59E0B;
  --warning-text:   #78350F;
  --warning-border: #92400E;
  --error:          #DC2626;
  --error-bg:       #FFF1F2;
  --error-border:   #E11D48;
  --error-text:     #881337;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);
  --shadow-brand: 0 4px 16px rgba(0,120,212,.22);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  200ms;
}

/* ─────────────────────────────────────────────
   Base Reset
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm);
  /* 固定头部高度补偿: 主导航栏 4.25rem = 68px */
  padding-top: 4.25rem;
}

/* Language-specific fonts — precise per-element rules */

/* 中文 - 正文 Sans，标题 Serif */
:lang(zh) body, :lang(zh) p, :lang(zh) li, :lang(zh) td,
:lang(zh) .body-lg, :lang(zh) .body-md, :lang(zh) .body-sm {
  font-family: var(--ff-zh-body);
  line-height: var(--lh-cjk);
  letter-spacing: 0.02em;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4 {
  font-family: var(--ff-zh);
  letter-spacing: 0.04em;
  font-style: normal;
}
:lang(zh) .italic-accent { font-style: normal; color: var(--blue-600); }

/* 日语 */
:lang(ja) body, :lang(ja) p, :lang(ja) li, :lang(ja) td,
:lang(ja) .body-lg, :lang(ja) .body-md, :lang(ja) .body-sm {
  font-family: var(--ff-ja-body);
  line-height: var(--lh-cjk);
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 {
  font-family: var(--ff-ja);
  letter-spacing: 0.03em;
  font-style: normal;
}
:lang(ja) .italic-accent { font-style: normal; }

/* 韩语 */
:lang(ko) body, :lang(ko) p, :lang(ko) li, :lang(ko) td,
:lang(ko) .body-lg, :lang(ko) .body-md, :lang(ko) .body-sm {
  font-family: var(--ff-ko-body);
  line-height: var(--lh-cjk);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4 {
  font-family: var(--ff-ko);
  word-break: keep-all;
  font-style: normal;
}
:lang(ko) .italic-accent { font-style: normal; }

/* 阿拉伯语 */
:lang(ar) body, :lang(ar) p, :lang(ar) li, :lang(ar) td,
:lang(ar) .body-lg, :lang(ar) .body-md, :lang(ar) .body-sm {
  font-family: var(--ff-ar-body);
  line-height: var(--lh-ar);
  letter-spacing: 0;
  direction: rtl;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 {
  font-family: var(--ff-ar-head);
  letter-spacing: 0;
  font-style: normal;
  direction: rtl;
}
:lang(ar) .label-rule { flex-direction: row-reverse; }
:lang(ar) .label-rule::before { display: none; }
:lang(ar) .label-rule::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--blue-400);
  flex-shrink: 0;
}
:lang(ar) .italic-accent { font-style: normal; }
:lang(ar) .check-list li { flex-direction: row-reverse; padding-right: 0; padding-left: 0; }
:lang(ar) .btn { flex-direction: row-reverse; }
:lang(ar) .btn svg { transform: scaleX(-1); }
:lang(ar) .btn:hover svg { transform: scaleX(-1) translateX(-3px); }

/* 俄语 */
:lang(ru) body { font-family: var(--ff-ru); }
:lang(ru) h1, :lang(ru) h2, :lang(ru) h3 { font-family: 'Playfair Display', Georgia, serif; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-serif);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--ink);
}

h1 { font-weight: 700; letter-spacing: -.035em; }

p { line-height: 1.75; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-800); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul,ol { list-style: none; }

::selection { background: var(--blue-100); color: var(--blue-800); }

/* ─────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left:  var(--px);
  padding-right: var(--px);
}

.section      { padding: 5rem 0; }
.section-sm   { padding: 3.5rem 0; }
.section-lg   { padding: 7rem 0; }
.section-xl   { padding: 9rem 0; }

/* ─────────────────────────────────────────────
   Typography Tokens
   ───────────────────────────────────────────── */
.label-sm {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.label-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1.25rem;
}
.label-rule::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--blue-600);
  flex-shrink: 0;
}

/* 页面主标题 - 权威感 */
.display-xl {
  font-family: var(--ff-serif);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.display-lg {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
}

/* 章节主标题 */
.heading-xl {
  font-family: var(--ff-serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: 1.18;
}
:lang(zh) .heading-xl, :lang(ja) .heading-xl, :lang(ko) .heading-xl {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  letter-spacing: 0.03em;
  line-height: 1.35;
}
:lang(ar) .heading-xl { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: 0; }

/* 小节标题 */
.heading-lg {
  font-family: var(--ff-serif);
  font-size: clamp(1.375rem, 2.8vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
}

/* 段落标题 */
.heading-md {
  font-family: var(--ff-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.3;
}

/* 正文体积层级 */
.body-xl  { font-size: 1.25rem;   line-height: 1.72; }
.body-lg  { font-size: 1.125rem;  line-height: 1.75; }
.body-md  { font-size: 1rem;      line-height: 1.72; }
.body-sm  { font-size: .9375rem;  line-height: 1.7; }
.body-xs  { font-size: .875rem;   line-height: 1.65; }
.body-2xs { font-size: .8125rem;  line-height: 1.6; }

:lang(zh) .body-lg, :lang(ja) .body-lg, :lang(ko) .body-lg { line-height: var(--lh-cjk); }
:lang(ar) .body-lg { line-height: var(--lh-ar); }

.text-muted { color: var(--ink-60); }
.text-blue  { color: var(--blue-600); }
.text-green { color: var(--green-500); }
.text-amber { color: var(--amber); }
.text-center { text-align: center; }

/* italic editorial accent */
.italic-accent {
  font-style: italic;
  color: var(--blue-600);
}

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: none;
  border-radius: .375rem;
  padding: .6875rem 1.5rem;
  font-family: var(--ff-sans);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  font-feature-settings: "kern" 1, "liga" 1;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
:lang(zh) .btn, :lang(ja) .btn, :lang(ko) .btn {
  font-family: var(--ff-zh-body);
  letter-spacing: 0.03em;
}
:lang(ar) .btn {
  font-family: var(--ff-ar-body);
  letter-spacing: 0;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--paper);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--blue-800); color: var(--paper); box-shadow: 0 6px 20px rgba(0,120,212,.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-60); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); color: var(--paper); }

.btn-green {
  background: var(--green-500);
  color: var(--paper);
}
.btn-green:hover { background: var(--green-700); color: var(--paper); }

.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.125rem; font-size: .875rem; }

/* Compact nav CTA button — fits in 68px header without overflow */
.btn-nav-cta {
  padding: .4375rem 1rem !important;
  font-size: clamp(.75rem, 1.05vw, .875rem) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-nav-cta svg { width: .875rem; height: .875rem; }

/* ─────────────────────────────────────────────
   Pill / Badge
   ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: 999px;
  padding: .25rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  font-family: var(--ff-sans);
  line-height: 1.5;
}
.pill-blue   { background: var(--blue-50);  color: var(--blue-700); }
.pill-green  { background: var(--green-50); color: var(--green-700); }
.pill-amber  { background: var(--amber-bg);  color: var(--amber-dk); }
.pill-white  { background: rgba(255,255,255,.9); color: var(--ink); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.pill-saving { background: var(--success-bg); color: var(--success); font-weight: 600; }

.dot-live {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.05); }
}

/* ─────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────── */
.card {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.card-shadow { box-shadow: var(--shadow-sm); }
.card-lift { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card-lift:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ─────────────────────────────────────────────
   SVG Icon helpers
   ───────────────────────────────────────────── */
.icon     { width: 1.25rem; height: 1.25rem; display: inline-block; flex-shrink: 0; }
.icon-sm  { width: 1rem;    height: 1rem; }
.icon-lg  { width: 1.5rem;  height: 1.5rem; }
.icon-xl  { width: 2rem;    height: 2rem; }
.icon-2xl { width: 2.5rem;  height: 2.5rem; }

.icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: .625rem;
  background: var(--blue-50);
  color: var(--blue-600);
  flex-shrink: 0;
}
.icon-wrap svg { width: 1.375rem; height: 1.375rem; }
.icon-wrap-green { background: var(--green-50); color: var(--green-500); }
.icon-wrap-amber { background: var(--amber-bg); color: var(--amber); }
.icon-wrap-lg { width: 3.5rem; height: 3.5rem; border-radius: .75rem; }
.icon-wrap-lg svg { width: 1.625rem; height: 1.625rem; }

/* ═══════════════════════════════════════════════════════════════
   固定头部容器 — 包含副导航栏 + 主导航栏
   参照 frontend/apps/web/components/layout/Header.tsx 结构:
   整体 position:fixed, z-index:300
   ═══════════════════════════════════════════════════════════════ */
#site-header-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
}

/* ─────────────────────────────────────────────
   TOP BAR (副导航栏) — social + multimedia
   默认高度 0, hover 展开至 2.25rem
   ───────────────────────────────────────────── */
.top-bar {
  height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f9fafb;
  border-bottom: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--ink-60);
  transition: height .28s var(--ease), opacity .28s var(--ease);
  /* 移动端永久隐藏 */
}
@media (max-width: 639px) { .top-bar { display: none !important; } }

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  gap: 1rem;
}

/* 左: 社交图标 */
.top-bar-social {
  display: flex;
  align-items: center;
  gap: .1875rem;
}
.top-bar-social-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-right: .5rem;
  display: none;
  white-space: nowrap;
}
@media (min-width: 768px) { .top-bar-social-label { display: inline; } }

.top-bar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: .3125rem;
  color: var(--ink-60);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}
.top-bar-social a:hover { background: var(--rule-lt); }
.top-bar-social a:hover[style*="color:#E4405F"]  { color: #E4405F !important; }
.top-bar-social a:hover[style*="color:#1877F2"]  { color: #1877F2 !important; }
.top-bar-social a:hover[style*="color:#FF0000"]  { color: #FF0000 !important; }
.top-bar-social a:hover[style*="color:#FF4500"]  { color: #FF4500 !important; }
.top-bar-social a svg { width: .875rem; height: .875rem; }

/* 右: 多媒体服务 + 邮箱 */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

.top-bar-media {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* 多媒体按钮 — 品牌色方案 */
.top-bar-media-btn {
  display: flex;
  align-items: center;
  gap: .3125rem;
  padding: .25rem .5625rem;
  border-radius: .375rem;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.top-bar-media-btn svg { width: .8125rem; height: .8125rem; flex-shrink: 0; }

/* WeChat — 品牌绿 */
.top-bar-media-btn--wechat {
  background: #e8f8ef;
  color: #07C160;
  border-color: #a7e6c4;
}
.top-bar-media-btn--wechat:hover {
  background: #07C160;
  color: var(--paper);
  border-color: #07C160;
}

/* WhatsApp — 品牌绿 */
.top-bar-media-btn--whatsapp {
  background: #e8f8ef;
  color: #128C7E;
  border-color: #a7e6c4;
}
.top-bar-media-btn--whatsapp:hover {
  background: #25D366;
  color: var(--paper);
  border-color: #25D366;
}

/* Video Consult — 品牌蓝 */
.top-bar-media-btn--video {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-200);
}
.top-bar-media-btn--video:hover {
  background: var(--blue-600);
  color: var(--paper);
  border-color: var(--blue-600);
}

/* Emergency SOS — 警示红 */
.top-bar-media-btn--sos {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}
.top-bar-media-btn--sos:hover {
  background: #dc2626;
  color: var(--paper);
  border-color: #dc2626;
}

.top-bar-divider {
  width: 1px;
  height: 1.125rem;
  background: var(--rule);
  flex-shrink: 0;
}

.top-bar-email {
  display: flex;
  align-items: center;
  gap: .3125rem;
  color: var(--ink-60);
  font-size: .8125rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.top-bar-email svg { width: .875rem; height: .875rem; flex-shrink: 0; }
.top-bar-email:hover { color: var(--blue-600); }
.top-bar-email span { display: none; }
@media (min-width: 900px) { .top-bar-email span { display: inline; } }

/* ─────────────────────────────────────────────
   主导航栏 — 在固定容器内 position:relative
   随副导航栏展开向下位移 (JS translateY)
   ───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* 移动端多媒体快捷入口 */
.mobile-nav-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--rule-lt);
}
.mobile-media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .625rem .75rem;
  border-radius: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.mobile-media-btn--wechat   { background: #e8f8ef; color: #07C160; }
.mobile-media-btn--whatsapp { background: #e8f8ef; color: #128C7E; }
.mobile-media-btn--video    { background: var(--blue-50); color: var(--blue-700); }
.mobile-media-btn--sos      { background: #fef2f2; color: #dc2626; }
.mobile-media-btn:hover     { filter: brightness(.92); }

.nav-wrap {
  display: flex; align-items: center;
  height: 4.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  gap: .5rem;
  overflow: visible;
  /* Single row enforced — flex never wraps */
  flex-wrap: nowrap;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark {
  width: 2.125rem; height: 2.125rem;
  border-radius: .5rem;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--paper);
  letter-spacing: -.02em;
}
.nav-logo-text {
  font-family: var(--ff-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}
.nav-logo-text em { font-style: normal; color: var(--blue-600); }

/* Primary links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0;
  margin-left: .75rem;
  flex: 1;
  /* Critical: prevent any wrapping regardless of language label length */
  white-space: nowrap;
  overflow: visible;
  flex-wrap: nowrap;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
/* Russian/Arabic have wider labels — keep hamburger until 1060px */
:lang(ru) .nav-links, :lang(ar) .nav-links { display: none; }
@media (min-width: 1060px) {
  :lang(ru) .nav-links, :lang(ar) .nav-links { display: flex; }
  :lang(ru) .nav-hamburger, :lang(ar) .nav-hamburger { display: none; }
}

.nav-links a {
  padding: .3125rem .75rem;
  border-radius: 9999px;
  font-size: clamp(.72rem, 1.1vw, .875rem);
  font-weight: 500;
  color: var(--ink-60);
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}
/* Hover — 浅蓝胶囊 */
.nav-links a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}
/* Active 当前页 — 深蓝胶囊 */
.nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 600;
}

/* CJK/AR languages: slightly tighter nav */
:lang(zh) .nav-links a,
:lang(ja) .nav-links a,
:lang(ko) .nav-links a { font-size: clamp(.75rem, 1.05vw, .9rem); padding: .375rem .5rem; }
:lang(ar) .nav-links a { font-size: clamp(.72rem, 1.0vw, .875rem); }

/* ── Nav dropdown ("More") ── */
.nav-dropdown-wrap {
  position: relative;
  display: none;
  align-items: center;
}
@media (min-width: 900px) { .nav-dropdown-wrap { display: flex; } }
:lang(ru) .nav-dropdown-wrap, :lang(ar) .nav-dropdown-wrap { display: none; }
@media (min-width: 1060px) {
  :lang(ru) .nav-dropdown-wrap, :lang(ar) .nav-dropdown-wrap { display: flex; }
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3125rem .75rem;
  border-radius: 9999px;
  font: inherit;
  font-size: clamp(.72rem, 1.1vw, .875rem);
  font-weight: 500;
  color: var(--ink-60);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-dropdown-btn:hover,
.nav-dropdown-wrap.open .nav-dropdown-btn {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-dropdown-btn .nav-chevron {
  width: .75rem; height: .75rem;
  transition: transform var(--dur) var(--ease);
}
.nav-dropdown-wrap.open .nav-dropdown-btn .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + .375rem);
  right: 0;
  min-width: 11rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .625rem;
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: .375rem;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 400;
}
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: .5rem .75rem;
  border-radius: .375rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.nav-dropdown li a:hover { background: var(--blue-50); color: var(--blue-700); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; white-space: nowrap; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: .375rem;
  padding: .375rem .625rem;
  border-radius: .375rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-60);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.lang-current:hover { border-color: var(--ink-30); color: var(--ink); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-chevron { width: .75rem; height: .75rem; transition: transform var(--dur) var(--ease); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-label { display: none; }
@media (min-width: 640px) { .lang-label { display: inline; } }

.lang-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 10rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .625rem;
  box-shadow: var(--shadow-md);
  padding: .375rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 50;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-dropdown li a {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem;
  border-radius: .375rem;
  font-size: .875rem;
  color: var(--ink-60);
  transition: all var(--dur) var(--ease);
}
.lang-dropdown li a:hover { background: var(--rule-lt); color: var(--ink); }
.lang-dropdown [aria-selected="true"] a { color: var(--blue-600); background: var(--blue-50); }

/* Hamburger */
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: .5rem; background: none; border: none;
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 1.25rem; height: 1.5px;
  background: var(--ink-60); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  padding: 1rem var(--px) 1.5rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: var(--ink-60);
  font-size: .9375rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.mobile-nav ul li a:hover { color: var(--ink); background: var(--rule-lt); }
.mobile-nav-cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }


/* ─────────────────────────────────────────────
   HERO — editorial, asymmetric
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--warm);
  overflow: hidden;
  padding: 7rem 0 5rem;
  min-height: min(100vh, 56rem);
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-accent-1 {
  position: absolute;
  top: -8rem; right: -6rem;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-100) 0%, transparent 70%);
  opacity: .7;
}
.hero-accent-2 {
  position: absolute;
  bottom: -6rem; left: 20%;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-50) 0%, transparent 70%);
  opacity: .6;
}
/* Subtle Chinese-pattern SVG background */
.hero-pattern {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230078D4' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
}

.hero-copy {}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.07;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title .hl {
  display: block;
  font-style: italic;
  color: var(--blue-600);
}

/* Arabic hero adjust */
[lang="ar"] .hero-title { letter-spacing: 0; font-size: clamp(2rem, 4.5vw, 3.5rem); }

/* Hero 背景图场景文字阴影 */
.slide-h1.on-dark {
  text-shadow: 0 2px 20px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
}
.slide-subtitle.on-dark {
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.slide-h1.on-light {
  text-shadow: 0 1px 12px rgba(255,255,255,.6);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--ink-60);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.hero-subtitle strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-bottom: 3rem; }

.hero-stats {
  display: flex; gap: 0;
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: fit-content;
}
.hero-stat {
  padding: 1.125rem 1.5rem;
  flex: 1;
}
.hero-stat + .hero-stat { border-left: 1px solid var(--rule); }
.hero-stat-val {
  font-family: var(--ff-serif);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.hero-stat-lbl { font-size: .75rem; color: var(--ink-60); margin-top: .25rem; }

/* Hero visual panel */
.hero-visual {
  display: none;
}
@media (min-width: 900px) { .hero-visual { display: block; } }

.hero-card-stack {
  position: relative;
  height: 28rem;
}
.hero-card-main {
  position: absolute; inset: 0;
  background: var(--paper);
  border-radius: 1.25rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 2rem;
}
.hero-card-accent {
  position: absolute;
  bottom: -1.25rem; right: -1.25rem;
  width: 80%; aspect-ratio: 1;
  background: var(--blue-50);
  border-radius: 1.25rem;
  z-index: -1;
}
.hero-card-accent-2 {
  position: absolute;
  top: -1rem; left: -1rem;
  width: 12rem; height: 8rem;
  background: var(--green-50);
  border-radius: 1rem;
  z-index: -1;
}

/* Floating stat cards */
.hero-float {
  position: absolute;
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: .875rem 1.125rem;
  display: flex; align-items: center; gap: .75rem;
  z-index: 2;
}
.hero-float-1 { top: 1rem; right: -1.5rem; }
.hero-float-2 { bottom: 4rem; left: -1.5rem; }
.hero-float-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: .5rem;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}
.hero-float-icon svg { width: 1.25rem; height: 1.25rem; }
.hero-float-val { font-family: var(--ff-serif); font-size: 1.375rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-float-lbl { font-size: .75rem; color: var(--ink-60); }

/* Hospital trust row */
.hero-hospitals {
  display: flex; flex-direction: column;
  gap: .5rem;
  flex: 1;
  justify-content: flex-end;
}
.hero-hospital-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .625rem;
  background: var(--rule-lt);
}
.hero-hospital-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green-400); flex-shrink: 0; }
.hero-hospital-name { font-size: .875rem; font-weight: 600; color: var(--ink); flex: 1; }
.hero-hospital-badge { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; color: var(--blue-600); background: var(--blue-50); border-radius: 999px; padding: .125rem .5rem; }

/* ─────────────────────────────────────────────
   STATS BAR
   ───────────────────────────────────────────── */
.stats-bar {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--px);
}
.stats-bar-item + .stats-bar-item { border-left: 1px solid var(--rule); }
.stats-bar-val {
  font-family: var(--ff-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--blue-800);
  line-height: 1;
  display: block;
  margin-bottom: .375rem;
}
:lang(zh) .stats-bar-val, :lang(ja) .stats-bar-val, :lang(ko) .stats-bar-val {
  font-family: var(--ff-serif); /* 数字保持英文字体 */
}
.stats-bar-lbl { font-size: .8125rem; color: var(--ink-60); }

/* ─────────────────────────────────────────────
   CONCERNS  (Q&A row — not a grid of cards)
   ───────────────────────────────────────────── */
.concerns-section { background: var(--warm); }

.concerns-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .concerns-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .concerns-grid { grid-template-columns: repeat(4, 1fr); } }

.concern-item {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.concern-item:hover { box-shadow: var(--shadow-sm); transform: none; }

.concern-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: .625rem;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.concern-icon svg { width: 1.375rem; height: 1.375rem; }

.concern-q { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 600; margin-bottom: .625rem; color: var(--ink); }
.concern-a { font-size: .875rem; color: var(--ink-60); line-height: 1.7; }

/* ─────────────────────────────────────────────
   WHY CHINA  (two-column editorial)
   ───────────────────────────────────────────── */
.why-china-section { background: var(--paper); }

/* Price table */
.price-table-wrap {
  border: 1px solid var(--rule);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table-head {
  background: var(--ink);
  color: var(--paper);
  padding: .875rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  display: flex; align-items: center; gap: .625rem;
}
.price-table-head svg { width: 1rem; height: 1rem; opacity: .7; }
.price-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.price-tbl th {
  background: var(--rule-lt);
  text-align: left;
  padding: .75rem 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-60);
  border-bottom: 1px solid var(--rule);
}
.price-tbl td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--rule-lt); }
.price-tbl tr:last-child td { border-bottom: none; }
.price-tbl tr:hover td { background: var(--rule-lt); }
.td-name { font-weight: 600; color: var(--ink); }
.td-home { color: var(--ink-60); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.td-china { font-weight: 700; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.price-tbl td { font-size: .9rem; }
:lang(zh) .price-tbl td, :lang(ja) .price-tbl td {
  font-family: var(--ff-zh-body);
  font-size: .875rem;
}
.price-tbl-foot {
  padding: .625rem 1.25rem;
  font-size: .75rem;
  color: var(--ink-60);
  background: var(--rule-lt);
  border-top: 1px solid var(--rule);
}

/* Advantage cards — horizontal strip */
.adv-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }

.adv-card {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  gap: .625rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.adv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.adv-num {
  font-family: var(--ff-serif);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -.06em;
  color: var(--blue-700);
  line-height: 1;
}
.adv-unit { font-size: .75rem; color: var(--ink-60); }
.adv-title { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.adv-desc { font-size: .875rem; color: var(--ink-60); line-height: 1.7; }

/* ─────────────────────────────────────────────
   MEDIA + TEXT (alternating)
   ───────────────────────────────────────────── */
.split-section { background: var(--warm); }

.split-row {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.split-row:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .split-row { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split-row.rev > *:first-child { order: 2; }
  .split-row.rev > *:last-child  { order: 1; }
}

.split-visual {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.split-visual-inner {
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  width: 100%;
}
.visual-row {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  background: var(--rule-lt);
  border-radius: .5rem;
}
.visual-row svg { width: 1.125rem; height: 1.125rem; color: var(--blue-600); flex-shrink: 0; }
.visual-row-text { font-size: .875rem; font-weight: 500; color: var(--ink); }
.visual-row-sub { font-size: .75rem; color: var(--ink-60); }

.split-body {}
.split-body .label-rule { margin-bottom: 1rem; }
.split-body h2 { margin-bottom: 1rem; }
.split-body .body-lg { color: var(--ink-60); margin-bottom: 1.5rem; }
.split-checklist { margin-bottom: 2rem; }
.split-check-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .4375rem 0;
  font-size: .9375rem;
  color: var(--ink-60);
  border-bottom: 1px solid var(--rule-lt);
}
.split-check-item:last-child { border-bottom: none; }
.check-icon { width: 1.125rem; height: 1.125rem; color: var(--green-500); flex-shrink: 0; margin-top: .125rem; }

/* ─────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────── */
.services-section { background: var(--paper); }

.services-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.svc-icon-wrap {
  width: 2.75rem; height: 2.75rem;
  border-radius: .625rem;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.svc-icon-wrap svg { width: 1.25rem; height: 1.25rem; }
.svc-name { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.svc-desc { font-size: .875rem; color: var(--ink-60); line-height: 1.65; flex: 1; }
.svc-saving { font-size: .8125rem; font-weight: 600; color: var(--success); background: var(--success-bg); border-radius: .375rem; padding: .25rem .625rem; align-self: flex-start; }

/* ─────────────────────────────────────────────
   HOW IT WORKS — numbered, inline
   ───────────────────────────────────────────── */
.how-section { background: var(--blue-50); }

.steps-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: var(--paper);
  border-radius: .75rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0,120,212,.1);
  display: flex; flex-direction: column; gap: .75rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step-card:hover { box-shadow: var(--shadow-sm); transform: none; }

.step-num {
  font-family: var(--ff-serif);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue-600);
  text-transform: uppercase;
}
.step-icon-wrap {
  width: 2.75rem; height: 2.75rem;
  border-radius: .625rem;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.step-icon-wrap svg { width: 1.25rem; height: 1.25rem; }
.step-title { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.step-desc { font-size: .875rem; color: var(--ink-60); line-height: 1.65; }

/* ─────────────────────────────────────────────
   TESTIMONIALS — editorial pull-quote style
   ───────────────────────────────────────────── */
.trust-section { background: var(--paper); }

.testimonials-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 640px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }

.tst-card {
  background: var(--warm);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow var(--dur) var(--ease);
}
.tst-card:hover { box-shadow: var(--shadow-md); }

.tst-header { display: flex; align-items: center; gap: .75rem; }
.tst-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.tst-name { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.tst-country { font-size: .8125rem; color: var(--ink-60); }
.tst-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.tst-treatment {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .1875rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-60);
}
.tst-saving { font-size: .875rem; font-weight: 700; color: var(--success); }

.tst-stars { display: flex; gap: .125rem; }
.tst-star { width: .9375rem; height: .9375rem; color: var(--warning); fill: var(--warning); }
.tst-star-empty { width: .9375rem; height: .9375rem; color: var(--rule); fill: var(--rule); }

.tst-quote {
  flex: 1;
  position: relative;
  padding-left: 1.25rem;
}
.tst-quote::before {
  content: '';
  position: absolute;
  left: 0; top: .125rem; bottom: .125rem;
  width: 2px;
  background: var(--blue-200);
  border-radius: 2px;
}
.tst-quote p {
  font-size: .875rem;
  color: var(--ink-60);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* Stats dashboard */
.stats-dash {
  border-radius: .75rem;
  background: var(--ink);
  padding: 2.5rem 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-dash { grid-template-columns: repeat(4, 1fr); } }
.dash-stat { text-align: center; }
.dash-val {
  font-family: var(--ff-serif);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: .375rem;
}
.dash-lbl { font-size: .8125rem; color: rgba(255,255,255,.55); }

/* Partners */
.partners-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .875rem;
  margin-top: 2.5rem;
}
.partner-chip {
  display: inline-flex; align-items: center;
  height: 3rem; padding: 0 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  font-size: .8125rem; font-weight: 600;
  color: var(--ink-60);
  transition: all var(--dur) var(--ease);
}
.partner-chip:hover { border-color: var(--ink-30); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ─────────────────────────────────────────────
   CTA — minimal, four cards
   ───────────────────────────────────────────── */
.cta-section {
  background: var(--warm);
  border-top: 1px solid var(--rule);
}

.cta-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: repeat(4, 1fr); max-width: 72rem; margin: 0 auto; } }

.cta-card {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cta-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cta-card-primary {
  background: var(--blue-600);
  border-color: var(--blue-700);
  box-shadow: var(--shadow-brand);
}
.cta-card-primary:hover { box-shadow: 0 8px 28px rgba(0,120,212,.3); }

.cta-icon { width: 2.75rem; height: 2.75rem; border-radius: .625rem; display: flex; align-items: center; justify-content: center; }
.cta-card:not(.cta-card-primary) .cta-icon { background: var(--blue-50); color: var(--blue-600); }
.cta-card-primary .cta-icon { background: rgba(255,255,255,.2); color: var(--paper); }
.cta-icon svg { width: 1.25rem; height: 1.25rem; }

.cta-title { font-family: var(--ff-serif); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.cta-card:not(.cta-card-primary) .cta-title { color: var(--ink); }
.cta-card-primary .cta-title { color: var(--paper); }

.cta-desc { font-size: .875rem; line-height: 1.65; flex: 1; }
.cta-card:not(.cta-card-primary) .cta-desc { color: var(--ink-60); }
.cta-card-primary .cta-desc { color: rgba(255,255,255,.8); }

.cta-action { margin-top: auto; }
.cta-card:not(.cta-card-primary) .btn { width: 100%; justify-content: center; }
.cta-card-primary .btn { width: 100%; justify-content: center; background: var(--paper); color: var(--blue-600); }
.cta-card-primary .btn:hover { background: var(--blue-50); color: var(--blue-800); }

.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.trust-item { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--ink-60); }
.trust-item svg { width: .875rem; height: .875rem; }

/* ─────────────────────────────────────────────
   FAQ — clean accordion, no borders-everywhere
   ───────────────────────────────────────────── */
.faq-section { background: var(--warm); }

.faq-list { max-width: 46rem; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  background: none; border: none;
  width: 100%; text-align: left;
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--blue-600); }
.faq-q svg {
  width: 1.125rem; height: 1.125rem;
  color: var(--ink-60); flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 0 1.125rem;
  font-size: .9375rem;
  color: var(--ink-60);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ─────────────────────────────────────────────
   EMAIL SIGNUP
   ───────────────────────────────────────────── */
.signup-section { background: var(--paper); border-top: 1px solid var(--rule); }

.signup-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.signup-form {
  display: flex; gap: .625rem; flex-wrap: wrap;
  margin-top: 1.75rem;
}
.signup-input {
  flex: 1; min-width: 14rem;
  padding: .75rem 1.125rem;
  border-radius: .375rem;
  border: 1.5px solid var(--rule);
  font-family: var(--ff-sans);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--warm);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.signup-input::placeholder { color: var(--ink-60); }
.signup-input:focus { border-color: var(--blue-500); background: var(--paper); }
.signup-privacy { font-size: .75rem; color: var(--ink-60); margin-top: .875rem; }
.signup-msg { margin-top: .875rem; font-size: .875rem; color: var(--green-500); }
.signup-msg.error { color: var(--error); }

/* ─────────────────────────────────────────────
   PAGE HERO (inner pages)
   ───────────────────────────────────────────── */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); margin-bottom: .875rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.125rem; max-width: 42rem; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.site-footer {
  background: #111827;   /* gray-900, 匹配前端 bg-gray-900 */
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
  font-size: .875rem;
}
:lang(zh) .site-footer, :lang(ja) .site-footer {
  font-family: var(--ff-zh-body);
  font-size: .875rem;
}
:lang(ar) .site-footer {
  font-family: var(--ff-ar-body);
  line-height: var(--lh-ar);
}

/* ── 5列网格: brand(span-2 on mobile) + 4 link cols ── */
.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr 1fr;   /* mobile: 2 col */
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  /* 5 cols: brand wider + 4 equal link cols */
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; }
}

/* Brand 列移动端占满2列 */
.footer-brand-col {
  grid-column: 1 / -1;   /* full width on mobile */
}
@media (min-width: 960px) {
  .footer-brand-col { grid-column: auto; }
}

/* Logo */
.footer-brand-name {
  font-family: var(--ff-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-brand-name em { font-style: normal; color: var(--blue-400); }
.footer-brand-name:hover { opacity: .85; }

/* Brand 描述文字 */
.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 22rem;
}

/* 社交图标 — 圆形 (匹配前端 rounded-full bg-gray-800) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: #1f2937;   /* gray-800 */
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.footer-social a svg { width: 1.125rem; height: 1.125rem; }
.footer-social a:hover {
  background: #374151;   /* gray-700 */
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* 链接列标题 — 白色 semibold，无大写 (匹配前端 text-sm font-semibold text-white) */
.footer-col-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* 链接列表 */
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);   /* gray-400 equivalent */
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--paper); }

/* 底部版权栏 */
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;   /* gray-800 */
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* 特性标签 — 纯文字+emoji，匹配前端 */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  /* 移除 pill 边框/背景 */
  background: none;
  border-radius: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────
   Checklist utility
   ───────────────────────────────────────────── */
.check-list { list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: .625rem;
  padding: .4375rem 0;
  font-size: .9375rem;
  color: var(--ink-60);
}
.check-list li svg { width: 1.125rem; height: 1.125rem; color: var(--green-500); flex-shrink: 0; margin-top: .1rem; }

/* ─────────────────────────────────────────────
   Info box
   ───────────────────────────────────────────── */
.info-box {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-400);
  border-radius: 0 .5rem .5rem 0;
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  color: var(--ink-60);
  line-height: 1.7;
}
.info-box.green { background: var(--green-50); border-left-color: var(--green-400); }
.info-box strong { color: var(--ink); }

/* ─────────────────────────────────────────────
   Offer card (services, features)
   ───────────────────────────────────────────── */
.offer-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }

.offer-card {
  background: var(--paper);
  border-radius: .75rem;
  border: 1px solid var(--rule);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.offer-icon-wrap {
  width: 2.75rem; height: 2.75rem;
  border-radius: .625rem;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.offer-icon-wrap svg { width: 1.25rem; height: 1.25rem; }
.offer-title { font-family: var(--ff-serif); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.offer-desc { font-size: .875rem; color: var(--ink-60); line-height: 1.7; flex: 1; }
.offer-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.offer-tag { background: var(--blue-50); color: var(--blue-700); border-radius: 999px; padding: .1875rem .625rem; font-size: .75rem; font-weight: 500; }

/* ─────────────────────────────────────────────
   Comparison table (Why Us page)
   ───────────────────────────────────────────── */
.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.compare-tbl th {
  padding: .875rem 1.25rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: var(--rule-lt);
  border-bottom: 1px solid var(--rule);
}
.compare-tbl td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--rule-lt); vertical-align: middle; }
.compare-tbl tr:last-child td { border-bottom: none; }
.compare-tbl .wm { color: var(--green-500); font-weight: 600; }
.compare-tbl .other { color: var(--ink-60); }
.compare-tbl tr:hover td { background: var(--rule-lt); }

/* ─────────────────────────────────────────────
   Guide / TOC
   ───────────────────────────────────────────── */
.guide-toc {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 .75rem .75rem 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.guide-toc h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-700); margin-bottom: .875rem; font-family: var(--ff-sans); font-weight: 700; }
.guide-toc ol { padding-left: 1.125rem; color: var(--blue-700); }
.guide-toc li { margin-bottom: .375rem; font-size: .875rem; }
.guide-toc a { color: var(--blue-600); font-weight: 500; }
.guide-toc a:hover { text-decoration: underline; }

.guide-step { margin-bottom: 3.5rem; }
.guide-step-header {
  display: flex; align-items: center; gap: .875rem;
  margin-bottom: 1.25rem;
}
.guide-step-num {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--paper);
  font-family: var(--ff-serif);
  font-weight: 700; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guide-step-title { font-family: var(--ff-serif); font-size: 1.375rem; font-weight: 600; color: var(--ink); }

/* ─────────────────────────────────────────────
   Fade-in animation
   ───────────────────────────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js-reveal.visible { opacity: 1; transform: translateY(0); }
.js-reveal.d1 { transition-delay: .1s; }
.js-reveal.d2 { transition-delay: .2s; }
.js-reveal.d3 { transition-delay: .3s; }
.js-reveal.d4 { transition-delay: .4s; }

/* ─────────────────────────────────────────────
   RTL overrides (Arabic)
   ───────────────────────────────────────────── */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .label-rule { flex-direction: row-reverse; }
[dir="rtl"] .label-rule::before { content: none; }
[dir="rtl"] .label-rule::after {
  content: '';
  display: block;
  width: 2.5rem; height: 1px;
  background: var(--blue-400);
  flex-shrink: 0;
}
[dir="rtl"] .split-row { direction: rtl; }
[dir="rtl"] .split-row > * { direction: ltr; }
[dir="rtl"] .split-row.rev > *:first-child { order: 1; }
[dir="rtl"] .split-row.rev > *:last-child  { order: 2; }
[dir="rtl"] .tst-quote::before { left: auto; right: 0; }
[dir="rtl"] .tst-quote { padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] .info-box { border-left: none; border-right: 3px solid var(--blue-400); border-radius: .5rem 0 0 .5rem; }
[dir="rtl"] .guide-toc { border-left: none; border-right: 3px solid var(--blue-500); border-radius: .75rem 0 0 .75rem; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: .75rem; }
[dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-grid > * { direction: ltr; }
[dir="rtl"] .btn svg { transform: rotate(180deg); }
[dir="rtl"] .btn:hover svg { transform: rotate(180deg) translateX(3px); }

/* ─────────────────────────────────────────────
   Scrollbar
   ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--rule-lt); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-30); }

/* ─────────────────────────────────────────────
   Anchor-jump offset — prevents fixed header obscuring sections
   ───────────────────────────────────────────── */
[id] {
  scroll-margin-top: 5.5rem; /* 4.25rem nav + 1.25rem breathing room */
}

/* ─────────────────────────────────────────────
   Misc utilities
   ───────────────────────────────────────────── */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .hero-stats { flex-direction: column; width: 100%; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid var(--rule); }
  .stats-dash { grid-template-columns: repeat(2, 1fr); padding: 1.75rem; }
}
/* Nav CTA hides below 1060px for ru/ar to prevent overflow */
@media (max-width: 1059px) {
  :lang(ru) .btn-nav-cta,
  :lang(ar) .btn-nav-cta { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   GOV-STYLE DESIGN LAYER — CA DMV / CA.gov inspired
   Institutional trust, accessibility-first, function over decoration
   ═══════════════════════════════════════════════════════════ */

/* ── Skip to content (Accessibility) ── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .625rem 1.25rem;
  background: var(--blue-700);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 0 0 .375rem .375rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-to-content:focus { top: 0; }

/* ── Focus ring (WCAG AA) ── */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}
button:focus-visible, a:focus-visible { outline-color: var(--blue-600); }

/* ── Gov-style announcement bar ── */
.gov-notice {
  background: var(--warning-bg);
  border-bottom: 3px solid var(--warning);
  padding: .75rem var(--px);
  font-size: .9rem;
  color: var(--warning-text);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.gov-notice a { color: var(--warning-border); font-weight: 600; }
.gov-notice-icon { font-size: 1.125rem; flex-shrink: 0; }
.gov-notice.info { background: var(--blue-50); border-bottom-color: var(--blue-400); color: var(--blue-800); }
.gov-notice.info a { color: var(--blue-700); }
.gov-notice.success { background: var(--success-bg); border-bottom-color: #10b981; color: #064e3b; }

/* ── Gov-style service card (left-icon, flat) ── */
.gov-service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.375rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 .375rem .375rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: border-left-color .15s, box-shadow .15s;
}
.gov-service-card:hover {
  border-left-color: var(--blue-800);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.gov-service-card-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: .375rem;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gov-service-card-title { font-weight: 600; font-size: 1rem; color: var(--blue-700); margin-bottom: .25rem; }
.gov-service-card-desc  { font-size: .875rem; color: var(--ink-60); line-height: 1.55; margin: 0; }

/* ── Gov-style stat figure ── */
.gov-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  overflow: hidden;
}
.gov-stat-cell {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.gov-stat-cell:last-child { border-right: none; }
.gov-stat-val { font-family: var(--ff-serif); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: var(--blue-700); line-height: 1; display: block; }
.gov-stat-lbl { font-size: .8125rem; color: var(--ink-60); margin-top: .375rem; display: block; }

/* ── Gov breadcrumb ── */
.gov-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--ink-60);
  padding: .875rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.gov-breadcrumb a { color: var(--blue-600); text-decoration: none; font-weight: 500; }
.gov-breadcrumb a:hover { text-decoration: underline; }
.gov-breadcrumb-sep { color: var(--ink-30); }
.gov-breadcrumb-current { color: var(--ink); }

/* ── Gov-style trust badge row ── */
.gov-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2rem 0;
}
.gov-trust-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--ink-60);
  font-weight: 500;
}
.gov-trust-item svg { color: var(--blue-600); }

/* ── Accessible table ── */
.a11y-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.a11y-table caption {
  font-size: .8125rem;
  color: var(--ink-60);
  text-align: left;
  margin-bottom: .5rem;
  font-style: italic;
}
.a11y-table th {
  background: var(--blue-700);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.a11y-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--rule-lt);
  vertical-align: middle;
}
.a11y-table tr:nth-child(even) td { background: var(--rule-lt); }
.a11y-table tr:hover td { background: var(--blue-50); }
.a11y-table td:first-child { font-weight: 500; }

/* ── Content reading width ── */
.reading-width { max-width: 72ch; }
.content-width  { max-width: 68rem; }

/* ── Horizontal rule ── */
.gov-divider {
  border: none;
  border-top: 2px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Alert banner (inline) ── */
.alert {
  display: flex;
  gap: .875rem;
  padding: 1rem 1.25rem;
  border-radius: .375rem;
  font-size: .9375rem;
  line-height: 1.6;
  border-left: 4px solid;
  margin: 1.5rem 0;
}
.alert-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.4; }
.alert-body  { flex: 1; }
.alert-info    { background: var(--blue-50);  border-left-color: var(--blue-500); color: var(--blue-800); }
.alert-success { background: var(--success-bg);   border-left-color: #10b981;             color: #064e3b; }
.alert-warning { background: var(--warning-bg-lt); border-left-color: var(--warning);       color: var(--warning-text); }
.alert-danger  { background: var(--error-bg);      border-left-color: var(--error-border);  color: var(--error-text); }

/* ── Improved card radius (Gov: less rounded) ── */
.svc-card, .adv-card, .step-card, .tst-card, .faq-item,
.grade3a-card, .concern-item { border-radius: .5rem; }
.price-table-wrap, .model-table-wrap { border-radius: .5rem; }

/* ── Print styles ── */
@media print {
  .site-header, .mobile-nav, .lang-switcher, .cta-band,
  .slide-arrow, .slideshow-controls { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .wrap { max-width: 100%; }
}

/* ── High contrast mode support ── */
@media (forced-colors: active) {
  .btn-primary { forced-color-adjust: none; }
  .pill-saving { border: 1px solid ButtonText; }
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ─────────────────────────────────────────────
   WhatsApp Floating Action Button
   ───────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  padding: .75rem 1.125rem .75rem .875rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.40), 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
  font-family: var(--ff-sans);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease),
              box-shadow .2s var(--ease),
              background .2s var(--ease);
}
.wa-fab svg {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}
.wa-fab:hover {
  color: #fff;
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 3px 8px rgba(0,0,0,.18);
}
.wa-fab:active {
  transform: translateY(-1px);
}
/* Label hidden on small screens, show on ≥480px */
.wa-fab-label { display: none; }
@media (min-width: 480px) {
  .wa-fab-label { display: inline; }
}
/* RTL — flip to left side */
[dir="rtl"] .wa-fab {
  right: auto;
  left: 1.75rem;
}
