/* ── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B4965;
  --navy-light: #2A6F97;
  --amber:      #CA6702;
  --green:      #2D6A4F;
  --terra:      #B5451B;
  --black:      #1A1A1A;
  --gray:       #6B7280;
  --light-gray: #E5E7EB;
  --off-white:  #F5F5F0;
  --white:      #FFFFFF;
  --linkedin:   #0A66C2;
  --purple:     #5C3E8F;

  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --header-h:   52px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
#app { display: flex; flex-direction: column; min-height: 100vh; }

#app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.header-inner {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 6px; }
.brand-name { color: var(--white); font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.brand-divider { color: rgba(255,255,255,.4); font-size: 14px; }
.brand-sub { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 400; }
.brand-link { text-decoration: none; }
.brand-link:hover { text-decoration: underline; text-underline-offset: 2px; }

#main-content {
  flex: 1;
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: 0 16px 80px;
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}

.btn-primary {
  background: var(--navy); color: var(--white); width: 100%;
}
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:active { transform: scale(.98); }

.btn:disabled, .btn[disabled] {
  opacity: .4; cursor: not-allowed; transform: none !important;
}

.btn-secondary {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--navy); width: 100%;
}
.btn-secondary:hover { background: var(--off-white); }

.btn-amber {
  background: var(--amber); color: var(--white); width: 100%;
}
.btn-amber:hover { background: #b35c02; }

.btn-ghost {
  background: transparent; color: var(--gray);
  font-size: 14px; font-weight: 400; min-height: 40px; padding: 10px 16px;
}
.btn-ghost:hover { color: var(--black); background: var(--light-gray); }

.btn-icon-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: var(--white);
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon-download:hover { background: rgba(255,255,255,.25); }
.btn-icon-download svg { flex-shrink: 0; }

/* Choice buttons (intake) */
.choice-group { display: flex; flex-direction: column; gap: 10px; }

.choice-btn {
  display: flex; align-items: center;
  background: var(--white); border: 2px solid var(--light-gray);
  border-radius: var(--radius); padding: 16px 18px;
  cursor: pointer; text-align: left; font-family: var(--font);
  transition: all .15s; -webkit-tap-highlight-color: transparent;
  min-height: 60px; width: 100%;
}
.choice-btn:hover { border-color: var(--navy); }
.choice-btn.selected { border-color: var(--navy); background: #EDF4F9; }
.choice-btn .choice-label {
  font-size: 15px; font-weight: 600; color: var(--black); display: block;
}
.choice-btn .choice-desc {
  font-size: 13px; color: var(--gray); margin-top: 2px; display: block;
}
.choice-btn .choice-check {
  margin-left: auto; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.choice-btn.selected .choice-check {
  background: var(--navy); border-color: var(--navy);
  color: var(--white); font-size: 12px;
}

/* ── SCREEN WRAPPER ───────────────────────────────────────────────────────── */
.screen {
  animation: fadeSlide .25s ease;
  padding-top: 28px;
}

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

/* ── INTAKE SCREENS ───────────────────────────────────────────────────────── */
.screen-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--amber); margin-bottom: 8px;
}

.screen-title {
  font-size: 24px; font-weight: 700; line-height: 1.2;
  color: var(--black); margin-bottom: 6px;
}

.screen-subtitle {
  font-size: 15px; color: var(--gray); line-height: 1.5; margin-bottom: 28px;
}

.back-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--gray); padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 18px; -webkit-tap-highlight-color: transparent;
}
.back-btn:hover { color: var(--black); }

.step-indicator {
  display: flex; gap: 6px; margin-bottom: 22px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--light-gray);
  transition: background .2s;
}
.step-dot.active { background: var(--navy); }
.step-dot.done   { background: var(--navy-light); }

.action-row { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ── UPLOAD ZONE ──────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--light-gray); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: all .15s;
  background: var(--white);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--navy); background: #EDF4F9; }
.upload-zone.has-file { border-color: var(--green); border-style: solid; background: #F0FAF4; }

.upload-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.upload-title { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.upload-hint  { font-size: 13px; color: var(--gray); }
.upload-formats { font-size: 12px; color: var(--gray); margin-top: 6px; }
.upload-filename {
  font-size: 14px; font-weight: 600; color: var(--green);
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.upload-filename .remove-file {
  background: none; border: none; cursor: pointer;
  color: var(--terra); font-size: 16px; line-height: 1;
  padding: 2px 4px;
}
.upload-input { display: none; }

/* LinkedIn paste toggle */
.toggle-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 13px; color: var(--gray);
}
.toggle-link {
  background: none; border: none; color: var(--navy); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 0; text-decoration: underline;
}

.paste-area {
  margin-top: 10px;
  width: 100%; min-height: 120px; max-height: 240px;
  border: 1.5px solid var(--light-gray); border-radius: var(--radius-sm);
  padding: 12px; font-size: 13px; font-family: var(--font);
  resize: vertical; color: var(--black); background: var(--white);
}
.paste-area:focus { outline: none; border-color: var(--navy); }

/* Expandable guide */
.guide-expand {
  border: 1px solid var(--light-gray); border-radius: var(--radius-sm);
  margin-top: 10px; overflow: hidden;
}
.guide-expand summary {
  padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px;
  background: var(--white);
}
.guide-expand summary::-webkit-details-marker { display: none; }
.guide-expand summary::before { content: '▶'; font-size: 10px; transition: transform .15s; }
.guide-expand[open] summary::before { transform: rotate(90deg); }
.guide-expand-body { padding: 12px 16px; font-size: 13px; color: var(--gray); line-height: 1.6; background: var(--white); border-top: 1px solid var(--light-gray); }
.guide-expand-body ol, .guide-expand-body ul { padding-left: 18px; }
.guide-expand-body li { margin-bottom: 4px; }

/* ── ANALYZING SCREEN ─────────────────────────────────────────────────────── */
.analyzing-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.analyzing-sub   { font-size: 14px; color: var(--gray); line-height: 1.5; max-width: 320px; }

/* ── MODE SELECT ──────────────────────────────────────────────────────────── */
.mode-select-card {
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--light-gray); padding: 18px 20px;
  cursor: pointer; transition: all .15s; width: 100%;
  text-align: left; -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}
.mode-select-card:hover { border-color: var(--navy); }
.mode-select-card .mode-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.mode-select-card .mode-desc  { font-size: 13px; color: var(--gray); }

/* ── DELTA BANNER ─────────────────────────────────────────────────────────── */
.delta-banner {
  background: var(--white); border: 2px solid var(--amber); border-radius: var(--radius);
  padding: 20px; margin-bottom: 24px;
}
.delta-banner-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--amber); margin-bottom: 12px;
}
.delta-scores { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.delta-score-item { flex: 1; min-width: 120px; }
.delta-score-label { font-size: 11px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.delta-score-row   { display: flex; align-items: baseline; gap: 6px; }
.delta-prev  { font-size: 13px; color: var(--gray); }
.delta-arrow { color: var(--gray); }
.delta-curr  { font-size: 20px; font-weight: 700; }
.delta-diff  { font-size: 13px; font-weight: 700; }
.delta-diff.positive { color: var(--green); }
.delta-diff.negative { color: var(--terra); }
.delta-diff.neutral  { color: var(--gray); }
.delta-meta { font-size: 13px; color: var(--gray); line-height: 1.5; }
.delta-meta strong { color: var(--black); }

/* ── REPORT ───────────────────────────────────────────────────────────────── */
.report-opening {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
.report-opening-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.report-opening-text  { font-size: 15px; line-height: 1.5; }

.pillar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}

.pillar-header {
  padding: 18px 20px 14px; border-bottom: 1px solid var(--light-gray);
}

.pillar-eyebrow {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray); margin-bottom: 4px;
}

.pillar-title {
  font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 12px;
}

/* Score display */
.score-block { display: flex; align-items: center; gap: 14px; }
.score-number { font-size: 36px; font-weight: 800; line-height: 1; flex-shrink: 0; }
.score-right { flex: 1; }
.score-bar-wrap { background: var(--light-gray); border-radius: 100px; height: 8px; overflow: hidden; margin-bottom: 4px; }
.score-fill { height: 100%; border-radius: 100px; transition: width .6s ease; }
.score-band-label { font-size: 12px; color: var(--gray); }

/* No score (ranking) */
.ranking-readiness-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EDF4F9; color: var(--navy);
  border-radius: 100px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}

/* Failure mode */
.failure-mode-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 8px 14px; margin-bottom: 14px;
  font-size: 13px;
}
.failure-mode-badge .fm-mode { font-weight: 800; }
.failure-mode-badge .fm-label { font-weight: 600; }
.failure-mode-badge .fm-action { color: inherit; opacity: .75; }

/* Source tag */
.source-tag {
  display: inline-flex; align-items: center;
  border-radius: 4px; padding: 2px 7px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  flex-shrink: 0;
}
.source-tag.resume   { background: #EDF4F9; color: var(--navy); }
.source-tag.linkedin { background: #E8F1FB; color: var(--linkedin); }
.source-tag.both     { background: #F0EBF9; color: var(--purple); }

/* Pillar body */
.pillar-body { padding: 16px 20px; }

.finding-section { margin-bottom: 20px; }
.finding-section:last-child { margin-bottom: 0; }

.finding-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 10px;
}
.label-green  { color: var(--green); }
.label-terra  { color: var(--terra); }
.label-amber  { color: var(--amber); }
.label-navy   { color: var(--navy); }
.label-gray   { color: var(--gray); }

.finding-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--off-white);
}
.finding-item:last-child { border-bottom: none; }
.finding-text { font-size: 14px; line-height: 1.55; color: var(--black); flex: 1; }

/* High leverage box */
.high-leverage-box {
  background: #FFF8EE; border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 4px;
}
.hlb-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--amber); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.hlb-text { font-size: 14px; line-height: 1.55; color: var(--black); }

/* Deep dive expandable */
.deep-dive {
  margin-top: 8px; border-top: 1px solid var(--light-gray); padding-top: 8px;
}
.deep-dive summary {
  font-size: 12px; color: var(--navy); cursor: pointer;
  list-style: none; display: inline-flex; align-items: center; gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.deep-dive summary::-webkit-details-marker { display: none; }
.deep-dive summary::before { content: '▶'; font-size: 9px; transition: transform .15s; }
.deep-dive[open] summary::before { transform: rotate(90deg); }
.deep-dive-body { margin-top: 8px; font-size: 13px; color: var(--gray); line-height: 1.6; }

/* Progress marker */
.progress-marker {
  text-align: right; font-size: 11px; color: var(--gray);
  padding: 10px 20px; border-top: 1px solid var(--off-white);
  background: var(--white);
}

/* Honest boundary */
.honest-boundary {
  font-size: 13px; color: var(--gray); font-style: italic;
  text-align: center; padding: 14px 20px; border-top: 1px solid var(--off-white);
}

/* Closing action */
.closing-card {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 24px 22px; margin-bottom: 20px;
}
.closing-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: 8px; }
.closing-action  { font-size: 17px; line-height: 1.5; font-weight: 600; }

/* Segmented nav */
.segment-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.segment-nav .btn-ghost { min-height: 40px; }

/* ── FAQ PANEL ────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200;
}

.btn-faq {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  border: none; font-size: 18px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lg);
  -webkit-tap-highlight-color: transparent;
}

.faq-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(380px, 100vw); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.faq-panel.open { transform: translateX(0); }

.faq-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--light-gray);
  background: var(--navy);
}
.faq-title { font-size: 16px; font-weight: 700; color: var(--white); }
.btn-close {
  background: rgba(255,255,255,.15); border: none; color: var(--white);
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer;
}

.faq-body { flex: 1; overflow-y: auto; padding: 12px 0; }

.faq-item {
  border-bottom: 1px solid var(--off-white);
}
.faq-item summary {
  padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--black);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '▶'; font-size: 9px; color: var(--navy); flex-shrink: 0; transition: transform .15s; }
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item p { padding: 0 20px 16px; font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── ERROR STATE ──────────────────────────────────────────────────────────── */
.error-card {
  background: #FFF5F5; border: 1.5px solid var(--terra);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
.error-card-title { font-size: 15px; font-weight: 700; color: var(--terra); margin-bottom: 6px; }
.error-card-body  { font-size: 14px; color: var(--black); line-height: 1.5; }

/* ── UTILITY ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-12  { margin-top: 12px; }
.mt-20  { margin-top: 20px; }
.text-center { text-align: center; }
.text-gray   { color: var(--gray); }
.text-sm     { font-size: 13px; }
.divider     { height: 1px; background: var(--light-gray); margin: 20px 0; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .screen { padding-top: 36px; }
  .screen-title { font-size: 28px; }
  #main-content { padding: 0 24px 100px; }
}

/* ── FIX 1: LANDING PAGE ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

.landing-screen { padding-top: 48px; }

.landing-hook {
  font-size: 28px; font-weight: 800; line-height: 1.2;
  color: var(--black); margin-bottom: 16px;
}
.landing-hook em { color: var(--navy); font-style: normal; }

.landing-trust {
  font-size: 12px; color: var(--gray); text-align: center;
  margin-top: 14px; line-height: 1.5;
}

@media (min-width: 600px) { .landing-hook { font-size: 32px; } }

/* ── FIX 2: SOURCE LEGEND ────────────────────────────────────────────────── */
.source-legend {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-gray); padding: 12px 16px;
  margin-bottom: 16px;
}
.source-legend-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray); margin-bottom: 8px;
}
.source-legend-items { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.source-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray); }

/* ── FIX 3: DIALS ────────────────────────────────────────────────────────── */
.dials-section {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-gray); padding: 20px 16px;
  margin-bottom: 16px;
}

.dials-row {
  display: flex; justify-content: center;
  align-items: center; gap: 8px;
}
.dial-container {
  flex: 1; max-width: 110px; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: opacity .15s;
}
.dial-container:hover { opacity: .8; }
.dial-svg { width: 100%; height: auto; display: block; margin: 0 auto; }
.dial-label {
  font-size: 11px; color: var(--gray); margin-top: 6px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}

/* ── FIX 4: BAND STATUS LABEL ────────────────────────────────────────────── */
.score-band-status { font-size: 12px; font-weight: 700; margin-top: 3px; line-height: 1.3; }

/* ── FIX 5: EXCEPTION FRAME ──────────────────────────────────────────────── */
.exception-frame {
  border-left: 3px solid var(--terra); background: #FFF5F5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; margin-bottom: 16px;
}
.exception-frame-text { font-size: 14px; color: var(--black); line-height: 1.55; }

/* ── FIX 7: PILLAR ANCHORS ───────────────────────────────────────────────── */
.pillar-anchors {
  display: flex; gap: 6px; padding: 8px 20px;
  border-bottom: 1px solid var(--light-gray);
  background: var(--off-white); flex-wrap: wrap;
}
.pillar-anchor {
  font-size: 11px; color: var(--navy); text-decoration: none;
  font-weight: 600; padding: 3px 8px;
  border-radius: 100px; background: rgba(27,73,101,.08);
  transition: background .15s; -webkit-tap-highlight-color: transparent;
}
.pillar-anchor:hover { background: rgba(27,73,101,.18); }

/* ── FIX 8: RANKING NOTE ─────────────────────────────────────────────────── */
.ranking-note {
  background: #EDF4F9; border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 16px;
}
.ranking-note-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--navy); margin-bottom: 5px;
}
.ranking-note-text { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ── FIX 9: STICKY PILLAR BAR ────────────────────────────────────────────── */
.sticky-pillar-bar {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  height: 38px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.spb-item {
  flex: 1; max-width: 180px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: rgba(255,255,255,.55);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 0 10px; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.spb-item:hover { color: var(--white); }
.spb-item.active { color: var(--white); border-bottom-color: var(--amber); }
.spb-letter { font-size: 13px; font-weight: 800; }
.spb-name { display: none; }
@media (min-width: 400px) { .spb-name { display: inline; } }

.spb-delta {
  background: none; border: none;
  color: rgba(255,255,255,.45);
  font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 0 12px; height: 100%;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.spb-delta:hover { color: var(--amber); }

/* ── FIX 9: SAVE BUTTON ──────────────────────────────────────────────────── */
.btn-save {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--white);
  border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; -webkit-tap-highlight-color: transparent;
}
.btn-save:hover { background: #245a40; }
.btn-save svg { flex-shrink: 0; }

/* Fix 9: Move FAQ to left so save button owns right */
.btn-faq { right: auto; left: 20px; }

/* ── FIX 10: DOC TYPE DETECTION CONFIRM ──────────────────────────────────── */
.doc-confirm-wrap {
  background: #FFF8EE; border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 8px;
}
.doc-confirm-text { font-size: 13px; color: var(--black); line-height: 1.4; margin-bottom: 10px; }
.doc-confirm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-confirm-row .btn { min-height: 38px; font-size: 13px; padding: 6px 14px; flex: 1; }

/* ── FIX 12: YIELD MARKERS ───────────────────────────────────────────────── */
.yield-marker {
  color: var(--amber);
  font-size: 22px; font-weight: 700;
  line-height: 1; flex-shrink: 0;
  display: flex; align-items: center;
  margin-top: -18px; /* offset for dial-label below the SVG */
}

/* ── FIX 11: METAPHOR FRAME ──────────────────────────────────────────────── */
.metaphor-frame {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-gray); border-left: 3px solid var(--navy);
  padding: 14px 18px; margin-bottom: 16px;
}
.metaphor-frame p {
  font-size: 14px; color: var(--black); line-height: 1.65;
}

/* ── FIX 11: PILLAR OPENING QUESTION ─────────────────────────────────────── */
.pillar-opening-question {
  font-size: 13px; color: var(--navy);
  font-style: italic; margin-top: 4px; margin-bottom: 12px;
  line-height: 1.4;
}

/* ── FIX 13: BAND EXPLANATION ────────────────────────────────────────────── */
.band-explanation {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-gray); padding: 16px 18px;
  margin-bottom: 16px;
}
.band-explanation-intro {
  font-size: 13px; color: var(--gray); line-height: 1.6;
  margin-bottom: 14px;
}
.band-explanation-bands { display: flex; flex-direction: column; gap: 8px; }
.band-row {
  display: flex; align-items: baseline; gap: 12px;
}
.band-range {
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  width: 72px; text-align: right;
}
.band-desc { font-size: 13px; color: var(--black); line-height: 1.45; }
.band-green  { color: var(--green); }
.band-teal   { color: #1B8A72; }
.band-amber  { color: var(--amber); }
.band-terra  { color: var(--terra); }

/* ── V1.4: LANDING PAGE NOUNS / VERBS / PROOF INTRO ─────────────────────── */
.landing-nvp {
  margin: 16px 0 4px;
  padding: 14px 16px;
  background: var(--off-white);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
}
.landing-nvp-item {
  font-size: 13px; color: var(--black); line-height: 1.55;
  margin-bottom: 6px;
}
.landing-nvp-item:last-child { margin-bottom: 0; }

/* ── V1.4: TRIANGLE VISUAL ───────────────────────────────────────────────── */
.nvp-triangle-wrap {
  margin: 16px 0 4px;
  padding: 4px 0;
}
.nvp-triangle-wrap svg {
  max-width: 400px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* ── V1.4: METAPHOR FRAME NVP SENTENCE ──────────────────────────────────── */
.metaphor-nvp-frame {
  margin-top: 10px;
  font-size: 13px; color: var(--navy);
  font-weight: 600; line-height: 1.5;
}

/* ── V1.4: PILLAR ELEMENT LINE ───────────────────────────────────────────── */
.pillar-element-line {
  font-size: 12px; color: var(--gray);
  margin-top: -6px; margin-bottom: 10px;
  line-height: 1.4;
}

/* ── V1.4: RANKING TRANSITION ────────────────────────────────────────────── */
.ranking-transition {
  padding: 12px 14px;
  background: #EEF2F7;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.ranking-transition p {
  font-size: 13px; color: var(--navy); line-height: 1.6;
}
