:root {
  --bg: #0b1917;
  --bg-elev: #102420;
  --bg-card: #132a26;
  --bg-input: #0a1614;
  --border: rgba(16, 185, 129, 0.2);
  --border-subtle: rgba(148, 197, 184, 0.14);
  --text: #eef7f4;
  --text-muted: #9cb9b1;
  --text-dim: #73938a;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dark: #059669;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(900px 520px at 90% 5%, rgba(245, 158, 11, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 920px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 25, 23, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #031510;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  text-decoration: none;
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.32);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  text-decoration: none;
}

.btn-amber {
  background: var(--amber-soft);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.22);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding: 36px 0 28px;
}

.hero-top {
  max-width: 840px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.26);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f8fffe;
}

.hero-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
}

.milestone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(19, 42, 38, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 11px;
  border-radius: 8px;
}

.milestone-pill strong {
  color: var(--text);
}

.milestone-pill.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

/* Main Calculator Grid */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: linear-gradient(180deg, rgba(19, 42, 38, 0.94), rgba(14, 33, 30, 0.96));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-accent {
  border-color: rgba(16, 185, 129, 0.32);
}

.card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-sub {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Form Controls */
.field {
  margin-bottom: 15px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cce3dc;
  margin-bottom: 6px;
}

.label-hint {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-dim);
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Searchable CN Combobox */
.cn-picker {
  position: relative;
}

.cn-search-input {
  padding-right: 34px;
}

.cn-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 290px;
  overflow-y: auto;
  background: #0c1d1a;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 30;
  display: none;
}

.cn-dropdown.open {
  display: block;
}

.cn-option {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 197, 184, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cn-option:hover,
.cn-option.active {
  background: rgba(16, 185, 129, 0.16);
}

.cn-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.cn-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  font-weight: 600;
}

.cn-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Segmented Toggle */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.chip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chip:hover,
.chip.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.45);
}

/* Range Slider */
input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

/* Alerts & Banners */
.alert-banner {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.alert-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.alert-amber {
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-box {
  background: rgba(10, 22, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.kpi-box.primary {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.12), rgba(10, 22, 20, 0.92));
}

.kpi-box.savings {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14), rgba(10, 22, 20, 0.92));
}

.kpi-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.kpi-box.primary .kpi-value {
  color: #fcd34d;
}

.kpi-box.savings .kpi-value {
  color: var(--emerald-bright);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Formula Breakdown */
.breakdown-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: rgba(10, 22, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.breakdown-item span {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.breakdown-item strong {
  color: var(--text);
  font-size: 0.86rem;
}

/* Chart Container */
.chart-card {
  background: rgba(10, 22, 20, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 180px;
  padding-top: 22px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 5px;
}

.bar-pair {
  width: 100%;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.bar {
  width: 44%;
  max-width: 22px;
  border-radius: 4px 4px 1px 1px;
  min-height: 3px;
  transition: height 0.25s ease;
  position: relative;
}

.bar-default {
  background: linear-gradient(180deg, #fbbf24, #b45309);
}

.bar-actual {
  background: linear-gradient(180deg, #34d399, #059669);
}

.bar-col.selected-year .bar-year {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.28);
  padding: 1px 5px;
  border-radius: 4px;
}

.bar-val {
  font-size: 0.67rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.bar-pct {
  font-size: 0.64rem;
  color: var(--text-dim);
}

/* Action Row */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* AI Scope Checker */
.section {
  padding: 46px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.ai-panel {
  border-color: rgba(16, 185, 129, 0.34);
  background:
    radial-gradient(600px 260px at 95% 0%, rgba(16, 185, 129, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(19, 42, 38, 0.96), rgba(11, 27, 24, 0.98));
}

.ai-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-result-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(9, 20, 18, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.28);
  display: none;
}

.ai-result-box.visible {
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-in {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-out {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-cond {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), var(--shadow);
}

.price-tag {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.price-tag span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: #cde3dc;
}

.check-list li::before {
  content: "✓";
  color: var(--emerald-bright);
  font-weight: 800;
  margin-right: 9px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(10, 22, 20, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 197, 184, 0.1);
}

th {
  background: rgba(16, 185, 129, 0.09);
  color: #d1fae5;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 14px 18px;
}

details.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::after {
  content: "+";
  color: var(--emerald-bright);
  font-size: 1.2rem;
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 10, 0.78);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #102420;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--emerald);
}

.email-preview {
  width: 100%;
  min-height: 250px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* pSEO Guide Layout */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.geo-answer {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 36, 32, 0.9));
  border-left: 4px solid var(--emerald);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  border-right: 1px solid rgba(16, 185, 129, 0.25);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 18px 0 24px;
}

.geo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-bright);
  margin-bottom: 6px;
}

.geo-answer p {
  margin: 0;
  font-size: 0.96rem;
  color: #effcf8;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0;
}

.guide-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.guide-link-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.guide-link-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-link-card .code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--emerald-bright);
  font-weight: 700;
}

.guide-link-card .title {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin: 4px 0;
}

.guide-link-card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 56px;
  padding: 36px 0 44px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.86rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 980px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links a.hide-sm {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .breakdown-strip {
    grid-template-columns: 1fr 1fr;
  }
  .field-row,
  .grid-2,
  .ai-input-row {
    grid-template-columns: 1fr;
  }
  .bar-chart {
    gap: 4px;
  }
  .bar-val {
    font-size: 0.58rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
