/* Client diagnosis flow — dark navy + white + gold, matching demo.css aesthetic.
   One question per screen, card-style options, mobile-first responsive. */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111829;
  --bg-card: #171f33;
  --bg-input: #1d2640;
  --border: #2a3352;
  --border-focus: #c8a96e;
  --accent: #c8a96e;
  --accent-dim: rgba(200, 169, 110, 0.15);
  --accent-glow: rgba(200, 169, 110, 0.08);
  --text-primary: #e8e4dc;
  --text-secondary: #9a9690;
  --text-muted: #5c5a56;
  --danger: #e85d4a;
  --warning: #e8a94a;
  --safe: #4ae88a;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.cd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cd-brand { display: flex; align-items: center; gap: 0.6rem; }
.cd-brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), #a08040);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem; color: var(--bg-primary); font-weight: 700;
}
.cd-brand-name { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-secondary); }

/* Progress bar */
.cd-progress { display: flex; align-items: center; gap: 0.35rem; }
.cd-progress-dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--border);
  transition: background 0.4s, box-shadow 0.4s;
}
.cd-progress-dot.done { background: var(--accent); opacity: 0.45; }
.cd-progress-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent-dim); }
.cd-progress-counter {
  font-size: 0.7rem; color: var(--text-muted);
  margin-left: 0.5rem; white-space: nowrap;
}

/* Container */
.cd-container {
  max-width: 620px; margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}

/* Screens */
.cd-screen { display: none; animation: cdFadeIn 0.35s ease; }
.cd-screen.active { display: block; }
@keyframes cdFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Intro */
.cd-intro { text-align: center; padding-top: 4vh; }
.cd-intro h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.cd-intro-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 169, 110, 0.25);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.cd-intro-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; }
.cd-intro-desc {
  font-size: 0.85rem; color: var(--text-secondary);
  max-width: 420px; margin: 0 auto 2rem; line-height: 1.8;
}

/* Case code entry */
.cd-case-entry {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cd-case-entry-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.cd-case-input-row { display: flex; gap: 0.5rem; max-width: 320px; margin: 0 auto; }
.cd-case-input {
  flex: 1; padding: 0.6rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
}
.cd-case-input:focus { border-color: var(--accent); }
.cd-case-input::placeholder { color: var(--text-muted); }
.cd-case-error {
  font-size: 0.75rem; color: var(--danger);
  margin-top: 0.5rem; min-height: 1.2em;
}

/* Question screen */
.cd-q-header {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600; margin-bottom: 0.75rem;
}
.cd-q-title {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.35; margin-bottom: 0.5rem;
}
.cd-q-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* Option cards */
.cd-options { display: flex; flex-direction: column; gap: 0.6rem; }
.cd-option {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.25rem;
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.cd-option:hover { border-color: rgba(200, 169, 110, 0.35); background: var(--bg-input); }
.cd-option.selected { border-color: var(--accent); background: var(--accent-dim); }
.cd-option-key {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s;
}
.cd-option.selected .cd-option-key {
  background: var(--accent); border-color: var(--accent); color: var(--bg-primary);
}
.cd-option-text {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5; transition: color 0.2s;
}
.cd-option.selected .cd-option-text { color: var(--text-primary); }

/* Navigation */
.cd-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; }
.cd-btn {
  padding: 0.6rem 1.4rem; border-radius: 6px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s;
}
.cd-btn-back {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cd-btn-back:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.cd-btn-next { background: var(--accent); color: var(--bg-primary); }
.cd-btn-next:hover { background: #d4b87a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200, 169, 110, 0.25); }
.cd-btn-next:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* Results page */
.cd-result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.cd-result-card-title {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}

/* Tier badge */
.cd-tier-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
}
.cd-tier-high { background: rgba(232,93,74,0.15); color: #e85d4a; border: 1px solid rgba(232,93,74,0.3); }
.cd-tier-mid { background: rgba(232,169,74,0.15); color: #e8a94a; border: 1px solid rgba(232,169,74,0.3); }
.cd-tier-low { background: rgba(74,232,138,0.15); color: #4ae88a; border: 1px solid rgba(74,232,138,0.3); }
.cd-tier-undiagnosed { background: rgba(92,90,86,0.15); color: var(--text-muted); border: 1px solid rgba(92,90,86,0.3); }

/* Labels list */
.cd-label-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.85rem; color: var(--text-primary);
  border-bottom: 1px solid rgba(42, 51, 82, 0.4);
}
.cd-label-item:last-child { border-bottom: none; }
.cd-label-dot { font-size: 0.9rem; }

/* Case code display */
.cd-case-code {
  text-align: center; padding: 1rem 0;
}
.cd-case-code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.cd-case-code-label {
  font-size: 0.75rem; color: var(--text-muted);
}

/* CTA section */
.cd-cta {
  text-align: center; padding: 1rem 0;
}
.cd-cta-text {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8;
}
.cd-cta-contact {
  font-size: 0.9rem; color: var(--accent); font-weight: 500;
  margin-top: 0.75rem;
}

/* Five dimensions visual */
.cd-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cd-dim-item {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.85rem 1rem;
  font-size: 0.8rem; position: relative;
}
.cd-dim-item.cd-dim-active { border-color: var(--accent); background: var(--accent-dim); }
.cd-dim-item.cd-dim-locked { opacity: 0.45; }
.cd-dim-lock { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.85rem; }
.cd-dim-num { font-size: 0.65rem; color: var(--accent); font-weight: 600; margin-bottom: 0.15rem; }
.cd-dim-name { font-weight: 500; font-size: 0.8rem; }
.cd-dim-item:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }

/* Loading / Invalid */
.cd-loading { text-align: center; padding-top: 20vh; }
.cd-invalid { text-align: center; padding-top: 20vh; }
.cd-invalid h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.cd-invalid p { font-size: 0.85rem; color: var(--text-secondary); }

/* Completion */
.cd-complete { text-align: center; padding: 2rem 0; }
.cd-complete-icon { font-size: 3rem; margin-bottom: 1rem; }
.cd-complete h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1rem; }
.cd-complete p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

/* Spinner */
.cd-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cdSpin 0.6s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 0.5rem;
}
@keyframes cdSpin { to { transform: rotate(360deg); } }

/* Risk heatmap */
.cd-heatmap { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cd-hm-cell {
  border-radius: 10px; padding: 1rem;
  position: relative; text-align: center;
  border: 1px solid transparent;
}
.cd-hm-cell:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
.cd-hm-high { background: rgba(232,93,74,0.12); border-color: rgba(232,93,74,0.35); }
.cd-hm-mid { background: rgba(232,169,74,0.12); border-color: rgba(232,169,74,0.35); }
.cd-hm-low { background: rgba(74,232,138,0.12); border-color: rgba(74,232,138,0.35); }
.cd-hm-locked { background: var(--bg-input); border-color: var(--border); opacity: 0.55; }
.cd-hm-undiagnosed { background: var(--bg-input); border-color: var(--border); opacity: 0.55; }
.cd-hm-undiagnosed .cd-hm-tier { color: var(--text-muted); }
.cd-hm-undiagnosed .cd-hm-num { color: var(--text-muted); }
.cd-hm-num { font-size: 0.6rem; color: var(--accent); font-weight: 600; margin-bottom: 0.15rem; }
.cd-hm-name { font-weight: 500; font-size: 0.8rem; margin-bottom: 0.25rem; }
.cd-hm-tier { font-size: 0.75rem; font-weight: 600; }
.cd-hm-high .cd-hm-tier { color: #e85d4a; }
.cd-hm-mid .cd-hm-tier { color: #e8a94a; }
.cd-hm-low .cd-hm-tier { color: #4ae88a; }
.cd-hm-lock-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Narrative blocks */
.cd-narrative-block {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(42, 51, 82, 0.4);
}
.cd-narrative-block:last-of-type { border-bottom: none; }
.cd-narrative-para {
  font-size: 0.88rem; line-height: 1.85; color: var(--text-primary);
  margin: 0.5rem 0;
}
.cd-narrative-cross {
  color: var(--text-secondary); font-style: italic;
  border-left: 2px solid var(--accent-dim); padding-left: 0.75rem;
}

/* Locked content indicator */
.cd-locked-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  margin-top: 0.75rem;
}
.cd-locked-item {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.5rem 0.75rem;
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.35rem;
}
.cd-locked-item span { opacity: 0.7; }

/* Locked dimension wrapper — blurred content + overlay */
.cd-locked-dim-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 120px;
}
.cd-narrative-blurred {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.5;
}
.cd-locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(10, 14, 26, 0.4);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.cd-locked-overlay-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.cd-locked-overlay-text {
  font-size: 0.8rem; color: var(--accent);
  font-weight: 500; text-align: center;
  padding: 0 1rem;
}

/* Label title within locked sections */
.cd-locked-label-title {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(42, 51, 82, 0.3);
}

/* Dimension tier tag in section headers */
.cd-dim-tier-tag {
  display: inline-block;
  vertical-align: middle;
}

/* Undiagnosed dimension placeholder */
.cd-undiagnosed-placeholder {
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-input); border-radius: 8px;
  border: 1px dashed var(--border);
}
.cd-undiagnosed-icon { font-size: 1.5rem; margin-bottom: 0.5rem; opacity: 0.6; }
.cd-undiagnosed-text {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 500;
}

/* Paid CTA card */
.cd-cta-card { border-color: var(--accent); background: rgba(200, 169, 110, 0.04); }
.cd-cta-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 0.75rem; text-align: center;
}
.cd-cta-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.cd-cta-desc p { margin-bottom: 0.5rem; }
.cd-cta-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.cd-cta-list li {
  padding: 0.35rem 0; font-size: 0.85rem;
  color: var(--text-secondary);
}
.cd-cta-list li strong { color: var(--accent); }
.cd-cta-btn {
  font-size: 0.95rem !important;
  padding: 0.85rem !important;
  letter-spacing: 0.05em;
}

/* ═══════ Deep-report framework sections ═══════ */

/* Section card */
.cd-section-card { padding-bottom: 0.5rem; }
.cd-section-heading {
  font-size: 0.95rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.cd-heading-bar {
  display: inline-block; width: 3px; height: 18px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}

/* Overall tier box */
.cd-overall-tier-box {
  border-radius: 10px; padding: 1.25rem; text-align: center;
  margin-bottom: 1rem; border: 1px solid var(--border);
}
.cd-tier-high-bg { background: rgba(232,93,74,0.08); border-color: rgba(232,93,74,0.3); }
.cd-tier-mid-bg { background: rgba(232,169,74,0.08); border-color: rgba(232,169,74,0.3); }
.cd-tier-low-bg { background: rgba(74,232,138,0.08); border-color: rgba(74,232,138,0.3); }
.cd-tier-undiagnosed-bg { background: var(--bg-input); }
.cd-overall-tier-label {
  font-size: 0.6rem; letter-spacing: 6px; color: var(--text-muted);
  margin-bottom: 0.5rem; text-transform: uppercase;
}
.cd-overall-tier-value { font-size: 1.5rem; font-weight: 700; letter-spacing: 3px; }
.cd-overall-tier-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.35rem; }

/* TOP3 items */
.cd-top3-intro { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.cd-top3-item {
  display: flex; gap: 0.75rem; margin-bottom: 0.75rem;
  align-items: flex-start; padding: 0.5rem 0;
}
.cd-top3-num {
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.cd-top3-num-locked { opacity: 0.5; }
.cd-top3-content { flex: 1; min-width: 0; }
.cd-top3-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.cd-top3-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.cd-top3-locked { opacity: 0.6; }
.cd-sev-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}

/* Risk label cards */
.cd-risk-label-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.85rem 1rem; margin-bottom: 0.6rem;
  background: var(--bg-input);
}
.cd-risk-label-locked { opacity: 0.55; }
.cd-risk-label-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.cd-risk-label-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.cd-risk-label-body { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }

/* Locked panel — used for locked sections */
.cd-locked-panel {
  text-align: center; padding: 1.25rem;
  background: var(--bg-input); border: 1px dashed var(--border);
  border-radius: 8px; margin-top: 0.75rem;
}
.cd-locked-panel-icon { font-size: 1.2rem; margin-bottom: 0.35rem; opacity: 0.6; }
.cd-locked-panel-text { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.cd-locked-panel-tier {
  font-size: 0.68rem; color: var(--accent); margin-top: 0.25rem;
  letter-spacing: 0.05em; font-weight: 600;
}
.cd-locked-text { color: var(--text-muted) !important; }

/* Scenario cards */
.cd-section-dark-header {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem;
  text-align: center;
}
.cd-dark-header-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: 2px; margin-bottom: 0.35rem;
}
.cd-dark-header-sub { font-size: 0.72rem; color: var(--text-muted); }
.cd-scenario-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.85rem 1rem; margin-bottom: 0.6rem;
  background: var(--bg-input);
}
.cd-scenario-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.cd-scenario-title { font-size: 0.85rem; font-weight: 600; }
.cd-scenario-body { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }

/* Expert verdicts */
.cd-expert-item { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(42,51,82,0.3); }
.cd-expert-item:last-of-type { border-bottom: none; }
.cd-expert-title { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.3rem; }
.cd-expert-body { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }

/* Optimization rows */
.cd-opt-row {
  display: flex; gap: 0.75rem; padding: 0.65rem 0;
  border-bottom: 1px solid rgba(42,51,82,0.3); align-items: flex-start;
}
.cd-opt-row:last-of-type { border-bottom: none; }
.cd-opt-sev { flex-shrink: 0; padding-top: 0.1rem; }
.cd-opt-detail { flex: 1; min-width: 0; }
.cd-opt-path { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.3rem; }
.cd-opt-tool { font-size: 0.78rem; color: var(--text-muted); }

/* Dimension preview cards (dims 2-5) */
.cd-dim-preview-card { border-left: 3px solid var(--border); }
.cd-dim-preview-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.cd-dim-preview-num { font-size: 0.6rem; color: var(--accent); font-weight: 700; }
.cd-dim-preview-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cd-dim-preview-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.4rem; }
.cd-dim-preview-lock { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

/* Dual CTA block */
.cd-cta-dual {
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.cd-cta-dual-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  text-align: center; margin-bottom: 0.4rem;
}
.cd-cta-dual-subtitle {
  font-size: 0.75rem; color: var(--text-muted); text-align: center;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.cd-cta-tier-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.cd-cta-tier-card {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; position: relative;
}
.cd-cta-tier-deep { border-color: var(--accent); background: var(--accent-dim); }
.cd-cta-tier-badge {
  position: absolute; top: -8px; right: 12px;
  background: var(--accent); color: var(--bg-primary);
  padding: 2px 10px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
}
.cd-cta-tier-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.cd-cta-tier-price { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; }
.cd-cta-tier-features { list-style: none; padding: 0; margin: 0; }
.cd-cta-tier-features li {
  font-size: 0.72rem; padding: 0.2rem 0; color: var(--text-secondary);
  line-height: 1.4;
}
.cd-cta-contact {
  text-align: center; font-size: 0.8rem; color: var(--accent);
  font-weight: 500; margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .cd-container { padding: 5rem 1rem 2rem; }
  .cd-q-title { font-size: 1.2rem; }
  .cd-intro h1 { font-size: 1.5rem; }
  .cd-nav { flex-direction: column; gap: 0.75rem; }
  .cd-nav .cd-btn { width: 100%; text-align: center; }
  .cd-header { padding: 0.6rem 1rem; }
  .cd-dims { grid-template-columns: 1fr; }
  .cd-dim-item:last-child { max-width: none; }
  .cd-case-input-row { flex-direction: column; }
  .cd-heatmap { grid-template-columns: 1fr; }
  .cd-hm-cell:last-child { max-width: none; }
  .cd-locked-section { grid-template-columns: 1fr; }
  .cd-cta-tier-row { grid-template-columns: 1fr; }
  .cd-top3-item { flex-wrap: wrap; }
  .cd-result-actions { flex-direction: column; gap: 0.5rem; }
  .cd-btn-pdf { width: 100%; text-align: center; }
}

/* ─── PDF Download Button ─── */
.cd-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}
.cd-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.cd-btn-pdf:hover {
  background: rgba(200, 169, 110, 0.25);
  transform: translateY(-1px);
}
.cd-btn-pdf:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── Bottom PDF Export Section ─── */
.cd-pdf-bottom {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 0.5rem 0 1.5rem;
  background: var(--card-bg, #1e1d1b);
  border: 1px dashed rgba(200, 169, 110, 0.3);
  border-radius: 12px;
}
.cd-btn-pdf-bottom {
  font-size: 0.95rem !important;
  padding: 0.65rem 2rem !important;
}
.cd-pdf-bottom-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #5c5a56);
  margin-top: 0.5rem;
}
