/* ================================================================
   CittaVerse Plan D — 高端健康医疗科技设计系统
   克制 · 高级 · 可信 · 前沿
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&display=swap");

/* === Design Tokens === */
:root {
  /* Neutrals */
  --d-black:       #0F1B2E;   /* 藏青墨蓝 — 替代纯黑，避免中国文化中黑白丧事联想 */
  --d-charcoal:    #1A1A1A;
  --d-graphite:    #2E2E2E;
  --d-slate:       #525252;
  --d-stone:       #787878;
  --d-silver:      #A3A3A3;
  --d-mist:        #D4D4D4;
  --d-cloud:       #EBEBEB;
  --d-snow:        #F5F5F3;
  --d-white:       #FAFAF8;
  --d-pure-white:  #FFFFFF;

  /* Brand accent */
  --d-amber:       #C47D1A;
  --d-amber-light: #D4952E;
  --d-amber-soft:  #F5E6CC;
  --d-amber-muted: rgba(196, 125, 26, 0.10);
  --d-amber-rgb:   196, 125, 26;

  /* Clinical signal */
  --d-teal:        #1A6B5A;
  --d-teal-soft:   #E8F0ED;
  --d-teal-rgb:    26, 107, 90;

  /* Status */
  --d-success:     #2D7A4F;
  --d-caution:     #B8860B;
  --d-error:       #9A2B2B;

  /* Typography */
  --font-sans:  'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-mono:  'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Type scale */
  --text-display:  clamp(48px, 7vw, 80px);
  --text-h1:       clamp(36px, 5vw, 56px);
  --text-h2:       clamp(28px, 3.5vw, 40px);
  --text-h3:       clamp(20px, 2.5vw, 28px);
  --text-body-lg:  18px;
  --text-body:     16px;
  --text-body-sm:  14px;
  --text-caption:  12px;
  --text-overline: 11px;

  /* Layout */
  --section-gap:    clamp(80px, 10vw, 140px);
  --section-gap-sm: clamp(48px, 6vw, 80px);
  --grid-gap:       24px;
  --grid-gap-lg:    32px;
  --shell-max:      1200px;
  --shell-gutter:   20px;

  /* Page background */
  --d-page-bg:   var(--d-snow);
  --d-page-card: var(--d-white);
}

/* Page-specific background shifts */
body.page-clinical { --d-page-bg: #F3F5F5; --d-page-card: #F8FAFA; }
body.page-convert  { --d-page-bg: #F5F4F1; --d-page-card: #FAF9F6; }

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--d-slate);
  background: var(--d-page-bg);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === Focus States === */
:focus-visible {
  outline: 2px solid var(--d-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.button:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 3px;
  border-radius: 8px;
}

summary:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

/* === Layout === */
.site-shell {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  margin: 0 auto;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--d-pure-white);
  border-bottom: 1px solid var(--d-cloud);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--d-pure-white);
  font-size: 12px;
  font-weight: 700;
  background: var(--d-black);
}

.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--d-charcoal);
}
.brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--d-stone);
}

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--d-stone);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--d-amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--d-charcoal);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  color: var(--d-pure-white);
  font-size: 14px;
  font-weight: 600;
  background: var(--d-charcoal);
  transition: background 200ms ease;
}

.nav-cta:hover {
  background: var(--d-black);
}

/* === Page Main === */
.page-main {
  padding: 28px 0 var(--section-gap);
}

/* === Hero (Dark Cinematic) === */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 100px) 0;
  background: var(--d-black);
  border-radius: 16px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(30%) saturate(0.7);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--d-black) 0%,
    var(--d-black) 35%,
    rgba(15, 27, 46, 0.6) 100%
  );
}

.hero > .site-shell {
  position: relative;
  z-index: 1;
}

/* Hero entrance animation */
.hero > .site-shell > * {
  animation: hero-enter 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero content — single column left-aligned */
.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(196, 125, 26, 0.12);
  border: 1px solid rgba(196, 125, 26, 0.20);
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumbs {
  margin-top: 16px;
  font-size: 13px;
  color: var(--d-silver);
}
.breadcrumbs a { transition: color 200ms ease; }
.breadcrumbs a:hover { color: var(--d-pure-white); }

.page-title {
  margin: 20px 0 16px;
  font-family: var(--font-sans);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--d-pure-white);
}

.page-title .serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

/* Sub-page hero headings (bare h1 without .page-title) */
.hero h1 {
  margin: 20px 0 16px;
  font-family: var(--font-sans);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--d-pure-white);
}

/* Homepage .page-title overrides .hero h1 when both apply */
.hero .page-title {
  font-size: var(--text-display);
  line-height: 1.1;
}

/* Hero kicker — overline label in dark hero context */
.hero .kicker {
  display: inline-block;
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: var(--text-body-lg);
  line-height: 1.85;
  color: var(--d-silver);
}

.em-brand {
  color: var(--d-amber);
  font-weight: 600;
}

/* Hero buttons */
.hero .button-primary {
  background: var(--d-amber);
  color: var(--d-pure-white);
  border-color: var(--d-amber);
}
.hero .button-primary:hover {
  background: var(--d-amber-light);
  border-color: var(--d-amber-light);
}

.hero .button-secondary {
  background: transparent;
  color: var(--d-cloud);
  border-color: rgba(255, 255, 255, 0.25);
}
.hero .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--d-pure-white);
}

/* === Buttons === */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 200ms ease;
}

.button-primary {
  background: var(--d-charcoal);
  color: var(--d-pure-white);
  border-color: var(--d-charcoal);
}
.button-primary:hover {
  background: var(--d-black);
  border-color: var(--d-black);
}

.button-secondary {
  background: transparent;
  color: var(--d-charcoal);
  border-color: var(--d-mist);
}
.button-secondary:hover {
  border-color: var(--d-charcoal);
}

.button-accent {
  background: var(--d-amber);
  color: var(--d-pure-white);
  border-color: var(--d-amber);
}
.button-accent:hover {
  background: var(--d-amber-light);
  border-color: var(--d-amber-light);
}

.button-text {
  min-height: auto;
  padding: 0;
  background: none;
  border: none;
  color: var(--d-amber);
  font-weight: 600;
  border-radius: 0;
}
.button-text::after {
  content: ' →';
  display: inline-block;
  transition: transform 200ms ease;
}
.button-text:hover::after {
  transform: translateX(4px);
}

/* === Section === */
.section {
  margin-top: var(--section-gap);
}

.section-tight {
  margin-top: var(--section-gap-sm);
}

.section-copy {
  max-width: 820px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.section-head p {
  margin: 0;
  max-width: 760px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--d-charcoal);
}

.section h3,
.card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--d-charcoal);
}

.section p,
.card p {
  color: var(--d-slate);
  line-height: 1.75;
}

/* === Grid === */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* === Cards === */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  transition: border-color 300ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--d-cloud);
  transition: background 300ms ease;
}

.card:hover {
  border-color: var(--d-mist);
}

.card:hover::before {
  background: var(--d-amber);
}

.card .kicker {
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card strong {
  color: var(--d-charcoal);
}

.card p {
  line-height: 1.75;
}

/* === Signal Strip === */
.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--d-cloud);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  overflow: hidden;
}

.signal {
  padding: 28px 24px;
  background: var(--d-page-card);
}

.signal span {
  display: block;
  margin-bottom: 8px;
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--d-charcoal);
  letter-spacing: -0.03em;
  line-height: 1;
}

.signal p {
  color: var(--d-stone);
  font-size: var(--text-body-sm);
  line-height: 1.65;
}

/* === Metrics === */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.metric {
  padding: 32px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  transition: border-color 300ms ease;
}

.metric:hover {
  border-color: var(--d-mist);
}

.metric .kicker {
  color: var(--d-amber);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--d-charcoal);
  line-height: 1;
}

.metric p {
  color: var(--d-stone);
  line-height: 1.65;
}

/* === Steps === */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 28px;
  border-radius: 12px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  transition: border-color 300ms ease;
}

.step:hover { border-color: var(--d-mist); }

.step-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--d-amber-muted);
  color: var(--d-amber);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--d-charcoal);
}

.step p {
  color: var(--d-slate);
  font-size: var(--text-body-sm);
  line-height: 1.65;
}

/* Step illustration image (phone screenshots — portrait) */
.step-image {
  grid-column: 1 / -1;
  max-width: 60%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--d-cloud);
  margin: 12px auto 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Step timeline & role annotations */
.step-timeline {
  font-size: 12px;
  font-weight: 600;
  color: var(--d-amber);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.step-role {
  font-size: 12px;
  color: var(--d-stone);
  margin-top: 6px;
}

/* === Checklist (deliverables) === */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 8px;
  font-size: 15px;
  color: var(--d-graphite);
  line-height: 1.6;
}

.checklist li::before {
  content: "\2713";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--d-teal-soft);
  color: var(--d-teal);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* === Boundary Grid (适用 / 不适用) === */
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.boundary-col h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.boundary-col.boundary-yes h3 { color: var(--d-teal); }
.boundary-col.boundary-no h3 { color: var(--d-error); }

.boundary-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-col li {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-graphite);
}

.boundary-col.boundary-yes li {
  background: var(--d-teal-soft);
  border: 1px solid rgba(26, 107, 90, 0.12);
}

.boundary-col.boundary-no li {
  background: #FDF2F2;
  border: 1px solid rgba(154, 43, 43, 0.12);
}

/* === Solution Mapping Table === */
.solution-map {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--d-cloud);
  border-radius: 12px;
  overflow: hidden;
}

.solution-map-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--d-cloud);
}

.solution-map-header > div {
  padding: 14px 28px;
  background: var(--d-charcoal);
  color: var(--d-pure-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--d-cloud);
}

.solution-map-row > div {
  padding: 28px 32px;
  background: var(--d-page-card);
}

.solution-map-row .map-pain {
  border-right: 1px solid var(--d-cloud);
}

.solution-map-row h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--d-charcoal);
  margin-bottom: 6px;
}

.solution-map-row p {
  font-size: 14px;
  color: var(--d-slate);
  line-height: 1.75;
}

/* === Position Statement Bar === */
.position-statement {
  padding: 20px 28px;
  background: var(--d-teal-soft);
  border: 1px solid rgba(26, 107, 90, 0.15);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--d-teal);
  line-height: 1.7;
  text-align: center;
}

/* === Workflow Diagram === */
.workflow-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--d-cloud);
}

.workflow-step {
  flex: 1;
  padding: 32px 24px;
  background: var(--d-page-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.workflow-step + .workflow-step {
  border-left: 1px solid var(--d-cloud);
}

.workflow-step.workflow-highlight {
  background: var(--d-amber-muted);
  border-left-color: var(--d-amber-soft);
}

.workflow-step .workflow-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-stone);
}

.workflow-step.workflow-highlight .workflow-label {
  color: var(--d-amber);
}

.workflow-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--d-charcoal);
}

.workflow-step p {
  font-size: 13px;
  color: var(--d-slate);
  line-height: 1.6;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  padding: 0 2px;
  background: var(--d-cloud);
  color: var(--d-stone);
  font-size: 18px;
  flex-shrink: 0;
}

/* === Quote Card === */
.quote-card {
  padding: 32px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  border-left: 3px solid var(--d-amber);
}

.quote-card p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--d-slate);
  line-height: 1.75;
}

.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-meta strong {
  font-size: 16px;
  color: var(--d-charcoal);
}

/* === Lists === */
.mini-list,
.pill-list,
.feature-list,
.definition-list,
.source-list,
.note-list,
.footer-links,
.ops-list,
.grid-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.mini-list li,
.feature-list li,
.source-list li,
.note-list li,
.ops-list li,
.grid-list li {
  position: relative;
  padding-left: 18px;
}

.mini-list li::before,
.feature-list li::before,
.source-list li::before,
.note-list li::before,
.ops-list li::before,
.grid-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--d-amber);
}

.pill-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pill-list li {
  padding: 12px 16px;
  border: 1px solid var(--d-cloud);
  border-radius: 8px;
  background: var(--d-page-card);
  color: var(--d-charcoal);
  font-weight: 600;
  line-height: 1.5;
}

/* === Table === */
.table-wrap {
  padding: 32px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  overflow: hidden;
}

.table-wrap table,
.ops-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.table-wrap thead th,
.ops-table th {
  padding: 0 16px 12px;
  text-align: left;
  font-size: var(--text-overline);
  font-weight: 600;
  color: var(--d-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--d-cloud);
}

.table-wrap tbody td,
.ops-table td {
  padding: 16px;
  color: var(--d-slate);
  border-bottom: 1px solid var(--d-cloud);
}

.table-wrap tbody tr:last-child td,
.ops-table tr:last-child td {
  border-bottom: none;
}

/* === Image Panel === */
.image-panel {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.image-panel img,
.qr-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.6s ease;
}

.image-panel:hover img {
  filter: saturate(1);
}

.image-caption {
  color: var(--d-stone);
  font-size: 13px;
  line-height: 1.65;
}

/* === FAQ === */
.faq-group {
  padding: 40px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
}

.faq-group h2,
.faq-group h3 {
  margin: 0;
  color: var(--d-charcoal);
}

.faq-group details {
  border-top: 1px solid var(--d-cloud);
}

.faq-group details:first-of-type {
  margin-top: 8px;
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--d-charcoal);
}

summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--d-stone);
  background: var(--d-snow);
  border: 1px solid var(--d-cloud);
  font-size: 18px;
  line-height: 1;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

summary::-webkit-details-marker { display: none; }

details[open] summary {
  color: var(--d-charcoal);
}

details[open] summary::after {
  content: "−";
  background: var(--d-amber-muted);
  color: var(--d-amber);
  border-color: rgba(196, 125, 26, 0.2);
}

.answer {
  padding: 0 2px 20px;
  color: var(--d-slate);
  line-height: 1.78;
}

/* === Notice / Boundary === */
.notice {
  margin-top: 28px;
  padding: 28px;
  border-radius: 12px;
  background: var(--d-teal-soft);
  border: 1px solid rgba(26, 107, 90, 0.15);
  color: var(--d-slate);
}

.notice h2,
.notice h3 {
  color: var(--d-teal);
}

.notice p,
.notice li,
.notice a {
  color: var(--d-slate);
}

.notice .button-secondary {
  border-color: rgba(26, 107, 90, 0.2);
  color: var(--d-teal);
}
.notice .button-secondary:hover {
  border-color: var(--d-teal);
}

/* Boundary notice (amber variant) */
.boundary-notice {
  padding: 24px;
  border-radius: 12px;
  background: var(--d-amber-soft);
  border-left: 3px solid var(--d-amber);
  color: var(--d-graphite);
  font-size: var(--text-body-sm);
  line-height: 1.75;
}

/* === Evidence Badge (new component) === */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--d-teal-soft);
  border: 1px solid rgba(26, 107, 90, 0.12);
  color: var(--d-teal);
  font-size: var(--text-caption);
  font-weight: 600;
}

/* === CTA Band === */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: var(--grid-gap-lg);
  padding: clamp(32px, 4vw, 52px);
  background: var(--d-black);
  color: var(--d-cloud);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-band h2,
.cta-band p,
.cta-band strong {
  color: inherit;
}

.cta-band h2 { color: var(--d-pure-white); }

.cta-band .section-kicker {
  color: var(--d-amber);
}

.cta-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--d-silver);
}

.cta-band .button-primary {
  background: var(--d-amber);
  color: var(--d-pure-white);
  border-color: var(--d-amber);
}
.cta-band .button-primary:hover {
  background: var(--d-amber-light);
  border-color: var(--d-amber-light);
}

.cta-band .button-secondary {
  background: transparent;
  color: var(--d-cloud);
  border-color: rgba(255, 255, 255, 0.2);
}
.cta-band .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--d-pure-white);
}

/* === QR Card === */
.qr-card {
  padding: 24px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
}

.qr-card img {
  width: min(100%, 170px);
  padding: 10px;
  background: var(--d-pure-white);
  border-radius: 8px;
}

/* === Source Link === */
.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--d-amber);
  font-weight: 600;
}

/* === Glossary === */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.glossary-item {
  padding: 24px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
  transition: border-color 300ms ease;
}

.glossary-item:hover { border-color: var(--d-mist); }

.glossary-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--d-charcoal);
}

.glossary-item p {
  color: var(--d-slate);
  line-height: 1.75;
}

/* === Operations Card === */
.ops-card {
  padding: 28px;
  margin-top: 28px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  border-radius: 12px;
}

.ops-card h2,
.ops-card h3 {
  margin: 0;
  color: var(--d-charcoal);
}

.ops-card p {
  color: var(--d-slate);
  line-height: 1.75;
}

.ops-table th,
.ops-table td {
  font-size: 13px;
}

/* === Tags === */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--d-page-card);
  border: 1px solid var(--d-cloud);
  color: var(--d-slate);
  font-size: 13px;
  font-weight: 600;
}

/* === Footer === */
.footer {
  padding: 48px 0 64px;
  background: var(--d-snow);
  border-top: 1px solid var(--d-cloud);
}

.footer-copy strong {
  font-size: 15px;
  color: var(--d-charcoal);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--d-cloud);
}

.footer-copy {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--d-stone);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
}

.footer-links li {
  padding-left: 0;
}

.footer-links li::before {
  display: none;
}

.footer-links a:hover {
  color: var(--d-amber);
}

/* === Utility === */
.muted { color: var(--d-stone); }
.small { font-size: 13px; color: var(--d-stone); }
.strong { color: var(--d-charcoal); font-weight: 700; }

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.06);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* === Animation System === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (max 3) */
.animate-on-scroll.is-visible > .card:nth-child(1),
.animate-on-scroll.is-visible > .signal:nth-child(1),
.animate-on-scroll.is-visible > .step:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll.is-visible > .card:nth-child(2),
.animate-on-scroll.is-visible > .signal:nth-child(2),
.animate-on-scroll.is-visible > .step:nth-child(2) { transition-delay: 60ms; }
.animate-on-scroll.is-visible > .card:nth-child(3),
.animate-on-scroll.is-visible > .signal:nth-child(3),
.animate-on-scroll.is-visible > .step:nth-child(3) { transition-delay: 120ms; }

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

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--d-charcoal);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Responsive: Tablet (≤1080px) === */
@media (max-width: 1080px) {
  .cta-band,
  .grid-4,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    gap: 0;
    border-radius: 12px;
  }

  .grid-3,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle { display: block; }
  .site-header-inner { flex-direction: row; flex-wrap: wrap; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { display: none; width: 100%; }
  .site-nav.is-open ~ .nav-cta { display: inline-flex; }
}

/* === Responsive: Mobile (≤720px) === */
@media (max-width: 720px) {
  :root {
    --shell-gutter: 14px;
    --grid-gap: 16px;
    --grid-gap-lg: 20px;
  }

  .grid-3,
  .grid-2,
  .metric-grid,
  .glossary-grid,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table { min-width: 600px; }

  .site-header-inner {
    gap: 14px;
    padding: 12px 0;
  }

  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 8px; font-size: 11px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy span { font-size: 11px; }

  .page-main { padding-top: 18px; }
  .hero { padding: clamp(32px, 6vw, 48px) 0; border-radius: 12px; }

  .card,
  .quote-card,
  .faq-group,
  .ops-card,
  .cta-band,
  .signal,
  .table-wrap,
  .notice {
    padding: 22px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-index {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 16px;
  }

  summary { font-size: 16px; }

  .page-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  /* Shared component responsive overrides */
  .solution-map-row,
  .solution-map-header { grid-template-columns: 1fr; }
  .solution-map-row .map-pain { border-right: none; border-bottom: 1px solid var(--d-cloud); }
  .boundary-grid { grid-template-columns: 1fr; }
  .workflow-diagram { flex-direction: column; }
  .workflow-step + .workflow-step { border-left: none; border-top: 1px solid var(--d-cloud); }
  .workflow-arrow { display: none; }

  /* Pain-point card grid → fused compact list on mobile */
  .grid-3 {
    gap: 0;
    border: 1px solid var(--d-cloud);
    border-radius: 12px;
    overflow: hidden;
  }
  .grid-3 > .card {
    padding: 18px 20px;
    gap: 8px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--d-cloud);
  }
  .grid-3 > .card:last-child {
    border-bottom: none;
  }
  .grid-3 > .card::before {
    display: none;
  }
  .grid-3 > .card h3 {
    font-size: 16px;
  }
  .grid-3 > .card p {
    font-size: 13px;
  }
}
