/* ── TOOLS PAGE LAYOUT ─────────────────────────────────── */
.tools-hero {
  padding: clamp(56px, 8vh, 96px) var(--gutter) clamp(40px, 5vh, 60px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tools-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-40);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-40); text-decoration: underline; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--ink-20); }

.tools-headline {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 820px;
}

.tools-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-70);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.tools-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tools-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 14px;
  color: var(--ink-60);
}

/* ── SECTION SKELETON ──────────────────────────────────── */
.tools-section {
  padding: clamp(48px, 7vh, 80px) var(--gutter);
  overflow-x: clip;
}
.tools-section.bg-whisper { background: var(--whisper); }
.tools-section.bg-paper2  { background: var(--paper-2); }

.tools-section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-70);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ── PLATFORM TABS ─────────────────────────────────────── */
.platform-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.platform-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.bench-reset-btn {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-40);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bench-reset-btn:hover { color: var(--ink); border-color: var(--ink-40); }

/* ── PRESET BAR ────────────────────────────────────────── */
.preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.preset-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-40);
  white-space: nowrap;
}
.preset-btn {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-60);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.preset-btn:hover { color: var(--ink); background: var(--paper); border-color: var(--ink-40); }
.preset-btn.active { color: var(--ink); background: var(--paper); border-color: var(--ink); font-weight: 600; }

/* ── SECTION HEADER ROW + CURRENCY ─────────────────────── */
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.currency-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
}
.currency-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-40);
}
.currency-select {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 540px) { .section-header-row { flex-direction: column; } .currency-wrap { align-items: flex-start; } }
.platform-tab {
  padding: 9px 22px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-60);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.platform-tab:hover { border-color: var(--ink-40); color: var(--ink); }
.platform-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── CALC GRID ─────────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

/* ── INPUTS PANEL ──────────────────────────────────────── */
.calc-inputs { display: flex; flex-direction: column; gap: 28px; }

.input-group {}
.input-group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.input-row { margin-bottom: 18px; }
.input-row:last-child { margin-bottom: 0; }

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.input-tip {
  font-size: 11px;
  color: var(--ink-40);
  font-style: italic;
}

.input-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s;
  margin-bottom: 6px;
}
.input-field:focus-within { border-color: var(--clay); }

.input-prefix {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-40);
  background: var(--paper-2);
  border-right: 1.5px solid var(--line);
  height: 42px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 36px;
  justify-content: center;
}

.input-field input[type="number"] {
  border: none;
  background: transparent;
  padding: 0 12px;
  height: 42px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}
.input-field input[type="number"]::-webkit-inner-spin-button,
.input-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clay);
  cursor: pointer;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--paper);
  cursor: pointer;
}

/* ── RESULTS PANEL ─────────────────────────────────────── */
.calc-results {
  background: var(--ink);
  border-radius: 8px;
  padding: 28px;
}
@media (min-width: 861px) {
  .calc-results { position: sticky; top: 76px; }
}

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.results-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.35);
}

.calc-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.badge-good { background: rgba(109,208,154,0.15); color: #6dd09a; border: 1px solid rgba(109,208,154,0.3); }
.badge-warn { background: rgba(232,198,120,0.15); color: #e8c678; border: 1px solid rgba(232,198,120,0.3); }
.badge-bad  { background: rgba(240,128,96,0.15);  color: #f08060; border: 1px solid rgba(240,128,96,0.3); }

/* Hero metric */
.result-hero {
  text-align: center;
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(246,242,234,0.08);
  margin-bottom: 20px;
}
.result-hero-lbl {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.4);
  margin-bottom: 8px;
}
.result-hero-val {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.result-hero-sub {
  font-size: 11px;
  color: rgba(246,242,234,0.45);
  margin-top: 6px;
  letter-spacing: 0.03em;
}
.val-good { color: #6dd09a; }
.val-warn { color: #e8c678; }
.val-bad  { color: #f08060; }

/* Funnel strip */
.funnel-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 22px;
}
.funnel-cell {
  background: rgba(246,242,234,0.06);
  border-radius: 4px;
  padding: 10px 4px;
  text-align: center;
}
.f-val {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--paper);
  display: block;
  margin-bottom: 3px;
}
.f-lbl {
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.35);
  display: block;
  line-height: 1.2;
}

/* Result rows */
.result-group { margin-bottom: 18px; }
.result-group:last-child { margin-bottom: 0; }
.result-group-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.25);
  margin-bottom: 8px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(246,242,234,0.05);
  font-size: 13px;
}
.result-row:last-child { border-bottom: none; }
.rr-lbl { color: rgba(246,242,234,0.55); font-size: 12px; }
.rr-val {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
}

/* ── GAUGE ─────────────────────────────────────────────── */
.gauge-wrap { margin: 4px 0 20px; }
.gauge-top-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(246,242,234,0.35);
  margin-bottom: 6px;
}
.gauge-track {
  height: 10px;
  background: rgba(246,242,234,0.08);
  border-radius: 5px;
  position: relative;
  overflow: visible;
}
.gauge-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease, background 0.35s ease;
  width: 0%;
  position: relative;
}
.gauge-good { background: linear-gradient(90deg, rgba(109,208,154,0.5), #6dd09a); }
.gauge-warn { background: linear-gradient(90deg, rgba(232,198,120,0.5), #e8c678); }
.gauge-bad  { background: linear-gradient(90deg, rgba(240,128,96,0.5), #f08060); }

.gauge-be-line {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: rgba(246,242,234,0.5);
  border-radius: 1px;
}
.gauge-be-label {
  font-size: 9px;
  color: rgba(246,242,234,0.4);
  margin-top: 8px;
  text-align: center;
}

/* ── PROOF GRID ────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-val {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.proof-lbl {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── BRIDGE CARDS ──────────────────────────────────────── */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 860px) { .bridge-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bridge-grid { grid-template-columns: 1fr; } }

.bridge-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.bridge-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.bridge-title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.bridge-desc {
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.7;
}

/* ── HOW TO USE ────────────────────────────────────────── */
.how-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.how-step  { display: flex; gap: 20px; align-items: flex-start; }
.how-num {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  min-width: 40px;
  letter-spacing: -0.02em;
}
.how-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.how-body p {
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.7;
}

/* ── BENCHMARK TABLE ───────────────────────────────────── */
.bench-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.bench-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
.bench-table th {
  background: var(--paper-2);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  border-bottom: 1px solid var(--line);
}
.bench-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 13px;
}
.bench-table tr:last-child td { border-bottom: none; }
.bench-table tbody tr:hover { background: var(--whisper); }
.bench-table td:first-child {
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--ink);
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  color: var(--ink);
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--clay);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.8;
  max-width: 680px;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--ink); font-weight: 600; }

/* ── ADVANCED COSTS ────────────────────────────────────── */
.adv-costs {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.adv-costs-toggle {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--paper-2);
  transition: color 0.15s;
}
.adv-costs-toggle::-webkit-details-marker { display: none; }
.adv-costs-toggle:hover { color: var(--ink); }
.adv-costs[open] .adv-costs-toggle { border-bottom: 1px solid var(--line); }
.adv-costs-body { padding: 16px 16px 4px; }
.adv-costs-note {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.55;
  margin-bottom: 16px;
}
.adv-results-group { border-top: 1px dashed rgba(246,242,234,0.2); margin-top: 8px; padding-top: 8px; }

/* ── EMAIL RESULTS ─────────────────────────────────────── */
.email-results-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(246,242,234,0.12);
}
.email-results-heading {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.email-results-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  line-height: 1.5;
}
.er-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.er-row label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
}
.er-optional { opacity: 0.6; }
.er-row input, .er-row select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: 14px;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  -webkit-box-shadow: 0 0 0 100px rgba(28,22,14,0.97) inset;
  box-shadow: 0 0 0 100px rgba(28,22,14,0.97) inset;
  -webkit-text-fill-color: var(--paper);
}
.er-row input:focus, .er-row select:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.er-row input::placeholder { color: rgba(255,255,255,0.3); }
.er-row select option { background: #1c1610; color: #f6f2ea; }
.er-row-split { flex-direction: row; gap: 10px; }
.er-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.er-submit { width: 100%; margin-top: 4px; }
.er-error { font-size: 12px; color: #ff8a7a; margin-bottom: 8px; }
.er-success {
  text-align: center;
  padding: 20px 0;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
}
.er-success-icon { display: block; font-size: 28px; color: #6ee7b7; margin-bottom: 10px; }

/* ── EMAIL NUDGE (Calc 1 results) ─────────────────────── */
.email-nudge {
  display: block;
  margin-top: 16px;
  padding: 9px 0;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(246,242,234,0.38);
  border-top: 1px solid rgba(246,242,234,0.08);
  text-decoration: none;
  transition: color 0.15s;
}
.email-nudge:hover { color: rgba(246,242,234,0.75); }

/* ── PRINT BUTTON ──────────────────────────────────────── */
.print-btn {
  width: 100%;
  margin-top: 20px;
  padding: 10px 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.print-btn:hover { color: var(--ink); border-color: var(--ink-40); }
.calc-results .print-btn { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.18); }
.calc-results .print-btn:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45); }

/* ── PRINT / SAVE AS PDF ───────────────────────────────── */
@media print {
  .utility-bar, .site-header, .tools-hero .breadcrumb,
  .tools-badges, #revenue-calculator, .bg-paper2,
  .tools-section:not(#breakeven-calculator),
  .how-steps, .bridge-grid, .faq-list,
  .proof-grid, .tools-cta-section, .site-footer,
  .link-toggle-bar, .print-btn, .platform-tabs-row,
  .preset-bar, .currency-wrap { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }

  #breakeven-calculator { padding: 0 !important; }

  .calc-grid { display: block !important; }

  .calc-inputs { display: none !important; }

  .calc-results {
    position: static !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    padding: 24px !important;
    width: 100% !important;
  }

  .result-hero-val, .rr-val { color: #000 !important; }

  .result-group-title { color: #555 !important; }

  .gauge-wrap { display: none !important; }

  #breakeven-calculator::after {
    content: "Generated at decoradspro.com/tools/ads-calculators";
    display: block;
    margin-top: 32px;
    font-size: 10pt;
    color: #888;
    text-align: center;
  }
}

/* ── FUNNEL STRIP SMALL PHONE FIX ─────────────────────── */
@media (max-width: 400px) {
  .funnel-strip { gap: 2px; }
  .funnel-cell { padding: 8px 2px; }
  .f-val { font-size: 9px; }
  .f-lbl { font-size: 7px; }
}

/* ── TOOLS CTA ─────────────────────────────────────────── */
.tools-cta-section {
  padding: clamp(60px, 9vh, 100px) var(--gutter);
  background: var(--ink);
  text-align: center;
}
.tools-cta-inner { max-width: 620px; margin: 0 auto; }
.tools-cta-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 16px;
}
.tools-cta-sub {
  font-size: 16px;
  color: rgba(246,242,234,0.6);
  line-height: 1.75;
  margin-bottom: 32px;
}
.tools-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tools-cta-note {
  font-size: 12px;
  color: rgba(246,242,234,0.35);
  margin-top: 16px;
  line-height: 1.6;
}

/* ── LINK TOGGLE BAR ───────────────────────────────────── */
.link-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.link-toggle-bar.is-linked {
  background: rgba(47,79,58,0.06);
  border-color: rgba(47,79,58,0.4);
}

.link-toggle-left { display: flex; flex-direction: column; gap: 4px; }

.link-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* Toggle switch */
.link-switch { position: relative; flex-shrink: 0; }
.link-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.link-switch-track {
  display: block;
  width: 40px;
  height: 22px;
  background: var(--line);
  border-radius: 11px;
  transition: background 0.2s;
  position: relative;
}
.link-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.link-switch input:checked + .link-switch-track { background: var(--moss); }
.link-switch input:checked + .link-switch-track::after { transform: translateX(18px); }
.link-switch input:focus-visible + .link-switch-track { outline: 2px solid var(--clay); outline-offset: 2px; }

.link-label-text { font-size: 14px; font-weight: 600; color: var(--ink); }

.link-status-note {
  font-size: 12px;
  color: var(--ink-40);
  line-height: 1.5;
  margin: 0;
  max-width: 420px;
}

.link-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.is-linked .link-badge {
  color: var(--moss);
  background: rgba(47,79,58,0.08);
  border-color: rgba(47,79,58,0.3);
}

/* Locked (auto-fill) input state */
.input-locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--paper-2) !important;
}
.input-locked input[type="number"] {
  cursor: not-allowed;
  color: var(--ink-60);
}

@media (max-width: 540px) {
  .link-toggle-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .link-badge { align-self: flex-end; }
}

/* ── INLINE CONTENT SECTIONS ───────────────────────────── */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  overflow: hidden;
}
.content-cols > * { min-width: 0; }
@media (max-width: 860px) { .content-cols { grid-template-columns: 1fr; gap: 36px; } }

.prose { max-width: 680px; }
.prose h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink);
}
.prose p {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.8;
  margin-bottom: 14px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.metric-pill {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-mono);
  padding: 5px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
