/* design-polish.css — calm, unified chrome (load AFTER page calculator CSS)
   Goals: one brand green, readable type floor, quieter results, simpler CTAs. */

:root {
  --brand: #1d9e75;
  --brand-dark: #0f7558;
  --brand-tint: #f0fdf9;
  --brand-line: #a7f3d0;
  --brand-tint-2: #d1fae5;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
  --calc-text-2xs: 0.75rem;
  --calc-text-xs: 0.8125rem;
}

/* ── One brand: restore green chrome on every calculator ── */
body.emi-page,
body.sip-page,
body.fd-page,
body.rd-page,
body.ppf-page,
body.ssy-page,
body.evt-page {
  --brand: #1d9e75;
  --brand-dark: #0f7558;
  --brand-tint: #f0fdf9;
  --brand-line: #a7f3d0;
  --brand-tint-2: #d1fae5;
  --rd-text-2xs: 0.75rem;
  --emi-text-2xs: 0.75rem;
  --ppf-text-2xs: 0.75rem;
  --ssy-text-2xs: 0.75rem;
  background: #f8fafc;
}

body.emi-page ::selection,
body.sip-page ::selection,
body.fd-page ::selection,
body.rd-page ::selection,
body.ppf-page ::selection,
body.ssy-page ::selection,
body.evt-page ::selection {
  background: var(--brand-line);
  color: var(--brand-dark);
}

body[class*="-page"] .nav-logo span {
  color: var(--brand);
}

body[class*="-page"] .nav-links-calc a.is-current {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand-dark);
  box-shadow: none;
}

body[class*="-page"] .nav-links-calc a:hover:not(.is-current) {
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-color: var(--brand-line);
}

/* Thin page accent only on stack top bar (not full chrome recolor) */
body.emi-page .calc-page-stack::before,
body.emi-page.hero-theme-emi .hero-stage-inner::before,
.page > .hero-theme-emi.hero-stage-compact > .hero-stage-inner::before {
  background: #ea580c;
}
body.sip-page .calc-page-stack::before {
  background: #0d9488;
}
body.fd-page .calc-page-stack::before {
  background: #64748b;
}
body.rd-page .calc-page-stack::before {
  background: #6366f1;
}
body.ppf-page .calc-page-stack::before {
  background: #059669;
}
body.ssy-page .calc-page-stack::before {
  background: #db2777;
}
body.evt-page .calc-page-stack::before {
  background: #0f766e;
}

body[class*="-page"] .calc-shell::before {
  display: none;
}

/* ── Type floor: nothing interactive/readable below 12px ── */
.strip-label,
.pill-text,
.discover-pill,
.hero-stat-hint,
.hero-kicker-badge,
.hero-updated,
.hero-updated-inline,
.hero-truth-eyebrow,
.hero-truth-label,
.hero-truth-bridge,
.hero-tool-desc,
.hero-compare-links a,
.hero-chip-list li,
.calc-sticky-result-label,
.zone-label,
.zone-label--muted,
.summary-status,
.field-hint,
.slider-min,
.slider-max,
.chart-caption,
.ux-donut-center span,
.ux-trust-formula,
.calc-hero-chip-meta,
.ux-chart-legend-help,
.fd-chart-legend-help,
.rd-chart-legend-help,
.compare-table thead th,
.examples-table thead th,
.section-eyebrow,
.home-featured-kicker {
  font-size: 12px !important;
  letter-spacing: 0.03em;
}

.ink-faint-safe,
.page-breadcrumb,
.page-breadcrumb ol,
.footer-disclaimer,
.footer-copy {
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* ── Solid titles — no gradient text fill ── */
.hero-title-line.hero-title-accent,
.hero-title-compact .hero-title-accent,
.hero-stage-compact[class*="hero-theme-"] .hero-page-layout .hero-title-accent,
.hero-truth-row--real .hero-truth-val,
body[class*="-page"] [class*="-title-accent"],
body.sip-page [style*="background-clip"],
.sip-verdict-value,
[class*="hero-title-accent"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--brand-dark) !important;
}

.hero-stage-compact[class*="hero-theme-"] .hero-page-layout .hero-title-accent,
.hero-title-compact .hero-title-accent {
  color: var(--hero-accent-dark, var(--brand-dark)) !important;
}

/* ── Buttons: two styles, no gradient glow ── */
.cta-block__btn,
[class*="-decision-cta"] [class*="-cta-btn"],
[class*="-exit"] .cta-block__btn {
  border-radius: 12px !important;
  background: var(--brand) !important;
  box-shadow: none !important;
  color: #fff !important;
  border: 1px solid var(--brand-dark);
}

.cta-block__btn:hover,
[class*="-decision-cta"] [class*="-cta-btn"]:hover,
[class*="-exit"] .cta-block__btn:hover {
  background: var(--brand-dark) !important;
  transform: none !important;
  box-shadow: none !important;
}

.cta-btn,
.cta-secondary {
  border-radius: 12px;
}

/* ── Calm results: drop alarm borders / scale tricks ── */
.real-return,
.value-block.real-return,
[class*="-return-step--real"].real-return,
[class*="-value-block--real"].real-return,
[class*="-value-block--bank"].real-return {
  border: 1px solid var(--brand-line) !important;
  background: var(--brand-tint) !important;
  box-shadow: none !important;
  transform: none !important;
}

.real-return.is-negative,
.real-return.is-negative .return-flow__step-value,
.real-return.is-negative .value-block__amount {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

.truth-box {
  border: 1px solid var(--line) !important;
  background: var(--brand-tint) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.truth-box strong,
.truth-box--caution strong,
.truth-box--negative strong {
  color: var(--brand-dark) !important;
}

.truth-box--negative {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.reality-strip,
.reality-strip.is-warning {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
}

.ux-yield-hero,
[class*="-yield-hero"] {
  box-shadow: var(--shadow-sm) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
}

/* ── Surfaces: fewer nested shadows ── */
.calc-page-stack,
.calc-shell,
.card,
.ux-chart-card,
.insight-card {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.calc-page-stack {
  box-shadow: var(--shadow-sm);
}

.insight-card:hover,
.ux-chart-card:hover,
.return-flow__step:hover,
.value-block:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ── Contrast: faint ink not for small critical UI ── */
.zone-label,
.strip-label,
.field-hint,
.calc-sticky-result-label,
.hero-kicker-badge {
  color: var(--ink-mute) !important;
}

/* ── Larger visible slider thumbs ── */
input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
}

/* ── Page body type closer to home ── */
body[class*="-page"] {
  font-size: 15px;
  line-height: 1.55;
}

body[class*="-page"] .page {
  max-width: 1080px;
}

/* ── Nav radius: one system (12px) ── */
.nav-links-calc a,
body.home-page .nav-links-calc a,
body[class*="-page"] .nav-links-calc a {
  border-radius: 12px !important;
}

/* ── Below-fold learn panels (compare tables, long SEO) ── */
.below-fold-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.below-fold-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
}

.below-fold-summary::-webkit-details-marker {
  display: none;
}

.below-fold-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 14px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 400;
}

.below-fold-panel {
  position: relative;
}

.below-fold-panel[open] > .below-fold-summary::after {
  content: "−";
}

.below-fold-title {
  font-size: 15px;
  padding-right: 28px;
}

.below-fold-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
}

.below-fold-body {
  padding: 0 16px 16px;
}

.below-fold-body .compare-panel {
  margin-top: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* Hide decorative page-stack rainbow bars — one quiet top edge */
body[class*="-page"] .calc-page-stack::before {
  background: var(--brand) !important;
  height: 2px;
}
