/* ═══════════════════════════════════════════════════════════════════
   tools.css — shared design system for free tool pages
   Clean minimal aesthetic: centered hero, horizontal widget,
   prominent blue CTA, quiet info cards, minimal text.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --tool-primary: #2563EB;
  --tool-primary-hover: #1D4ED8;
  --tool-primary-100: #DBEAFE;
  --tool-primary-800: #1E40AF;
  --tool-text: #0F172A;
  --tool-text-muted: #64748B;
  --tool-border: #E5E7EB;
  --tool-border-strong: #D1D5DB;
  --tool-bg-soft: #F9FAFB;
  --tool-success-bg: #D1FAE5;
  --tool-success: #065F46;
  --tool-error-bg: #FEE2E2;
  --tool-error: #991B1B;
  --tool-warn-bg: #FEF3C7;
  --tool-warn: #92400E;
}

.tool-page {
  background: #fff;
}

.tool-page .navbar--glass {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--tool-border);
}
.tool-page .navbar--glass .navbar__brand,
.tool-page .navbar--glass .navbar__link { color: var(--tool-text); }
.tool-page .navbar--glass .navbar__link:hover { background-color: rgba(0, 0, 0, 0.04); color: var(--tool-text); }

.tool-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px 24px;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.tool-hero {
  text-align: center;
  padding: 16px 0 40px;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: var(--tool-primary-100);
  color: var(--tool-primary-800);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.tool-pill--danger  { background: #FEE2E2; color: #991B1B; }
.tool-pill--success { background: #D1FAE5; color: #065F46; }
.tool-pill--warn    { background: #FEF3C7; color: #92400E; }
.tool-pill svg { stroke-width: 2; }

.tool-h1 {
  font-family: Inter, 'Source Sans 3', system-ui, sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--tool-text);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.tool-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--tool-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ── Widget (input + button inline) ───────────────────────────── */

.tool-widget {
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  max-width: 720px;
  margin: 0 auto;
}

.tool-inline-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.tool-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.tool-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--tool-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--tool-text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Reserve room on the right for the character counter when inside .tool-input-wrap */
.tool-input-wrap .tool-input { padding-right: 62px; }

.tool-input:focus {
  outline: 0;
  border-color: var(--tool-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tool-input--vin {
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-counter {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--tool-text-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.tool-btn {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--tool-primary);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.tool-btn:hover:not([disabled]) { background: var(--tool-primary-hover); }
.tool-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3); }
.tool-btn[disabled] { opacity: 0.65; cursor: not-allowed; }

.tool-hint {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--tool-text-muted);
}
.tool-hint--error { color: var(--tool-error); }
.tool-hint--ok    { color: var(--tool-success); }

/* ── Result ────────────────────────────────────────────────────── */

.tool-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--tool-border);
  border-radius: 10px;
  background: var(--tool-bg-soft);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tool-text);
}

.tool-result--loading { color: var(--tool-text-muted); display: flex; align-items: center; gap: 10px; }
.tool-result--error   { background: var(--tool-error-bg); border-color: #FCA5A5; color: var(--tool-error); }
.tool-result--ok      { background: #fff; }

.tool-result__headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--tool-text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tool-border);
  letter-spacing: -0.01em;
}

.tool-result__dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.tool-result__dl dt {
  font-weight: 500;
  color: var(--tool-text-muted);
  font-size: 13px;
}
.tool-result__dl dd { margin: 0; color: var(--tool-text); font-weight: 500; }

.tool-result__note {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--tool-warn-bg);
  color: var(--tool-warn);
  border-radius: 6px;
  font-size: 13px;
}

.tool-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--tool-border);
  border-top-color: var(--tool-primary);
  border-radius: 50%;
  animation: tool-spin 0.8s linear infinite;
}
@keyframes tool-spin { to { transform: rotate(360deg); } }

/* ── Stat row (3-col big colored stats) — bolder than info cards ── */

.tool-stats {
  background: var(--tool-bg-soft);
  border: 1px solid var(--tool-border);
  border-radius: 14px;
  padding: 32px 24px;
  margin: 56px 0 40px;
}
.tool-stats__heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--tool-text);
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.tool-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .tool-stats__grid { grid-template-columns: 1fr; gap: 20px; }
}
.tool-stat { text-align: center; }
.tool-stat__value {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.tool-stat__value--red    { color: #DC2626; }
.tool-stat__value--blue   { color: var(--tool-primary); }
.tool-stat__value--green  { color: #059669; }
.tool-stat__value--amber  { color: #D97706; }
.tool-stat__value--violet { color: #7C3AED; }
.tool-stat__label {
  font-size: 14px;
  color: var(--tool-text-muted);
  line-height: 1.4;
}

/* ── Info cards (3-col quick reference) ──────────────────────── */

.tool-info { margin: 56px 0 40px; }

.tool-info__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--tool-text);
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.tool-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-info__card {
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  padding: 20px;
}

.tool-info__card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--tool-text);
  margin: 0 0 10px;
}

.tool-info__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--tool-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tool-info__card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}
.tool-info__card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--tool-primary);
  border-radius: 50%;
}

.tool-info__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tool-info__icon--blue  { background: #DBEAFE; color: #1D4ED8; }
.tool-info__icon--green { background: #D1FAE5; color: #047857; }
.tool-info__icon--amber { background: #FEF3C7; color: #92400E; }
.tool-info__icon--rose  { background: #FFE4E6; color: #BE123C; }
.tool-info__icon--violet{ background: #EDE9FE; color: #6D28D9; }

/* ── FAQ ──────────────────────────────────────────────────────── */

.tool-faq { margin: 40px 0; max-width: 720px; margin-left: auto; margin-right: auto; }

.tool-faq__item {
  border-bottom: 1px solid var(--tool-border);
}

.tool-faq__item summary {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tool-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tool-faq__item summary::-webkit-details-marker { display: none; }
.tool-faq__item summary::after {
  content: "+";
  color: var(--tool-text-muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.tool-faq__item[open] summary::after { content: "−"; }

.tool-faq__item p {
  margin: 0 0 18px;
  color: var(--tool-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Bottom dark CTA banner ───────────────────────────────────── */

.tool-cta {
  background: #0F172A;
  color: #fff;
  padding: 48px 24px;
  border-radius: 14px;
  text-align: center;
  margin: 40px 0;
}

.tool-cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.tool-cta p {
  color: #CBD5E1;
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.tool-cta__btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--tool-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.tool-cta__btn:hover { background: var(--tool-primary-hover); color: #fff; }

/* ── Tabs (used by recall-checker) ────────────────────────────── */

.tool-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--tool-bg-soft);
  border-radius: 10px;
  margin-bottom: 20px;
}

.tool-tab {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tool-text-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.tool-tab:hover { color: var(--tool-text); }
.tool-tab[aria-selected="true"] {
  background: #fff;
  color: var(--tool-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* ── Stacked form fields (used by recall/plate/calc forms) ────── */

.tool-field { margin-bottom: 14px; }
.tool-field:last-child { margin-bottom: 0; }

.tool-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tool-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.tool-field__row {
  display: grid;
  gap: 8px;
}
.tool-field__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.tool-field__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .tool-field__row--3, .tool-field__row--2 { grid-template-columns: 1fr; }
}

.tool-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid var(--tool-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--tool-text);
  font-family: inherit;
  cursor: pointer;
}
.tool-select:focus {
  outline: 0;
  border-color: var(--tool-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tool-btn--block { width: 100%; justify-content: center; }

/* ── Recall card (used by recall checker results) ─────────────── */

/* ── Result alert container (e.g. recall results outer wrapper) ── */

.tool-alert {
  background: #fff;
  border: 1px solid var(--tool-border);
  border-left: 4px solid var(--tool-primary);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.tool-alert--danger  { border-left-color: #DC2626; }
.tool-alert--warn    { border-left-color: #F59E0B; }
.tool-alert--ok      { border-left-color: #10B981; }

.tool-alert__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.tool-alert__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-alert__icon--danger { background: #FEE2E2; color: #DC2626; }
.tool-alert__icon--ok     { background: #D1FAE5; color: #059669; }
.tool-alert__icon--warn   { background: #FEF3C7; color: #D97706; }
.tool-alert__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tool-text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.tool-alert__subtitle {
  font-size: 14px;
  color: var(--tool-text-muted);
  margin: 3px 0 0;
}

/* ── Amber "Important:" note banner ── */
.tool-important {
  padding: 14px 16px;
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #713F12;
  margin-bottom: 18px;
}
.tool-important strong { color: #713F12; font-weight: 700; }

/* ── Recall cards (inside .tool-alert) ── */

.tool-recall-card {
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.tool-recall-card:last-child { margin-bottom: 0; }

.tool-recall-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tool-recall-card__campaign {
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tool-recall-card__date {
  font-size: 13px;
  color: var(--tool-text-muted);
  font-variant-numeric: tabular-nums;
}

.tool-recall-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tool-text);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.tool-recall-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tool-text-muted);
  margin: 0 0 14px;
}

/* Nested yellow sub-section boxes for SAFETY RISK / REMEDY */
.tool-recall-box {
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #422006;
}
.tool-recall-box__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B91C1C;
  margin-bottom: 5px;
}
.tool-recall-box p { margin: 0; color: #422006; }

.tool-badge-row {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tool-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tool-badge--danger  { background: var(--tool-error-bg); color: var(--tool-error); }
.tool-badge--warn    { background: var(--tool-warn-bg);  color: var(--tool-warn); }
.tool-badge--info    { background: var(--tool-primary-100); color: var(--tool-primary-800); }
.tool-badge--success { background: var(--tool-success-bg); color: var(--tool-success); }

.tool-banner {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  margin: 16px 0;
  border-left: 3px solid;
}
.tool-banner--ok    { background: var(--tool-success-bg); color: var(--tool-success); border-left-color: #10B981; }
.tool-banner--warn  { background: var(--tool-warn-bg);  color: var(--tool-warn);    border-left-color: #F59E0B; }
.tool-banner--error { background: var(--tool-error-bg); color: var(--tool-error);   border-left-color: #DC2626; }

/* ── Calculator two-pane layout (payment, TCO) ────────────────── */

.tool-calc {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 820px) {
  .tool-calc { grid-template-columns: 1fr; }
}

.tool-calc__form {
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tool-calc__form h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--tool-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tool-border);
}

.tool-calc__form .tool-field:last-child { margin-bottom: 0; }

.tool-calc__input-prefix,
.tool-calc__input-suffix {
  position: relative;
}
.tool-calc__input-prefix::before,
.tool-calc__input-suffix::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tool-text-muted);
  font-size: 15px;
  pointer-events: none;
}
.tool-calc__input-prefix::before { content: attr(data-prefix); left: 14px; }
.tool-calc__input-suffix::after  { content: attr(data-suffix); right: 14px; }
.tool-calc__input-prefix .tool-input { padding-left: 30px; }
.tool-calc__input-suffix .tool-input { padding-right: 34px; }

.tool-calc__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--tool-text-muted);
  cursor: pointer;
}
.tool-calc__check input { accent-color: var(--tool-primary); cursor: pointer; }

/* Result card (blue prominence) */
.tool-calc__result {
  background: var(--tool-primary);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 80px;
}

.tool-calc__result h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px;
  font-weight: 600;
}

.tool-calc__result-primary {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.tool-calc__result-subline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.tool-calc__result-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.tool-calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.tool-calc__result-row-label { color: rgba(255, 255, 255, 0.85); }
.tool-calc__result-row-value { font-weight: 600; font-variant-numeric: tabular-nums; }

.tool-calc__result-cta {
  display: block;
  margin-top: 18px;
  padding: 12px;
  background: #fff;
  color: var(--tool-primary);
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.tool-calc__result-cta:hover { background: rgba(255, 255, 255, 0.92); color: var(--tool-primary-hover); }

/* Breakdown bar (TCO) */
.tool-calc__bar {
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: var(--tool-bg-soft);
  margin: 14px 0;
}
.tool-calc__bar-seg { transition: flex 0.3s ease; min-width: 0; }

/* ── Tools hub page — card grid ──────────────────────────────── */

.tool-hub {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 24px;
}

.tool-hub__hero {
  text-align: center;
  padding: 16px 0 40px;
}

.tool-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 16px 0 40px;
}
@media (max-width: 960px) {
  .tool-hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tool-hub__grid { grid-template-columns: 1fr; }
}

.tool-hub__card {
  background: var(--tool-bg-soft);
  border: 1px solid var(--tool-border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tool-hub__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: var(--tool-primary);
  background: #fff;
  color: inherit;
}
.tool-hub__card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  border-color: var(--tool-primary);
}

.tool-hub__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tool-hub__badge--popular { background: #FEE2E2; color: #991B1B; }
.tool-hub__badge--free    { background: #DBEAFE; color: #1E40AF; }
.tool-hub__badge--preview { background: #D1FAE5; color: #065F46; }
.tool-hub__badge--pro     { background: #FED7AA; color: #9A3412; }
.tool-hub__badge--safety  { background: #FEE2E2; color: #991B1B; }

.tool-hub__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tool-hub__icon--blue   { background: #DBEAFE; color: #1D4ED8; }
.tool-hub__icon--red    { background: #FEE2E2; color: #DC2626; }
.tool-hub__icon--green  { background: #D1FAE5; color: #059669; }
.tool-hub__icon--amber  { background: #FEF3C7; color: #D97706; }
.tool-hub__icon--violet { background: #EDE9FE; color: #6D28D9; }

.tool-hub__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tool-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.tool-hub__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tool-text-muted);
  margin: 0 0 18px;
  flex: 1;
}

.tool-hub__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--tool-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-hub__card:hover .tool-hub__link { gap: 8px; }
.tool-hub__link-arrow { transition: transform 0.15s ease; }

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .tool-main { padding: 32px 16px 24px; }
  .tool-h1 { font-size: 32px; }
  .tool-subtitle { font-size: 15px; }
  .tool-widget { padding: 18px; border-radius: 12px; }
  .tool-inline-form { flex-direction: column; }
  .tool-btn { width: 100%; justify-content: center; }
  .tool-info__grid { grid-template-columns: 1fr; }
  .tool-info__heading { font-size: 22px; }
  .tool-cta { padding: 32px 20px; }
  .tool-cta h2 { font-size: 22px; }
  .tool-result__dl { grid-template-columns: 1fr; gap: 2px 0; }
  .tool-result__dl dd { margin-bottom: 10px; }
  .tool-calc__result-primary { font-size: 34px; }
}
