:root {
  color-scheme: light dark;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Light mode tokens (Linear / Vercel docs clean technical aesthetic) */
  --bg: #f6f8fa;
  --bg-elevated: #ffffff;
  --bg-subtle: #eff2f6;
  --bg-hover: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.88);
  --fg: #0f172a;
  --fg-secondary: #334155;
  --muted: #526071;
  --line: #dce3ec;
  --line-strong: #bcc8d8;
  --accent: #0f172a;
  --accent-link: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.08);
  --focus: #0284c7;

  /* Semantic & Trust Badges */
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-fg: #065f46;
  --emerald-dot: #10b981;

  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-fg: #1e40af;

  --amber-bg: #fefce8;
  --amber-border: #fde68a;
  --amber-fg: #854d0e;

  --best-row-bg: #f0fdf4;
  --best-row-border: #10b981;
  --summary-row-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090d16;
    --bg-elevated: #101624;
    --bg-subtle: #161f32;
    --bg-hover: #1c273e;
    --bg-header: rgba(9, 13, 22, 0.86);
    --fg: #f1f5f9;
    --fg-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e293b;
    --line-strong: #334155;
    --accent: #f8fafc;
    --accent-link: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.1);
    --focus: #38bdf8;

    --emerald-bg: rgba(16, 185, 129, 0.12);
    --emerald-border: rgba(52, 211, 153, 0.3);
    --emerald-fg: #6ee7b7;
    --emerald-dot: #34d399;

    --blue-bg: rgba(56, 189, 248, 0.12);
    --blue-border: rgba(56, 189, 248, 0.3);
    --blue-fg: #7dd3fc;

    --amber-bg: rgba(250, 204, 21, 0.1);
    --amber-border: rgba(250, 204, 21, 0.28);
    --amber-fg: #fde047;

    --best-row-bg: rgba(16, 185, 129, 0.07);
    --best-row-border: #34d399;
    --summary-row-bg: #172136;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d16;
  --bg-elevated: #101624;
  --bg-subtle: #161f32;
  --bg-hover: #1c273e;
  --bg-header: rgba(9, 13, 22, 0.86);
  --fg: #f1f5f9;
  --fg-secondary: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e293b;
  --line-strong: #334155;
  --accent: #f8fafc;
  --accent-link: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.1);
  --focus: #38bdf8;

  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(52, 211, 153, 0.3);
  --emerald-fg: #6ee7b7;
  --emerald-dot: #34d399;

  --blue-bg: rgba(56, 189, 248, 0.12);
  --blue-border: rgba(56, 189, 248, 0.3);
  --blue-fg: #7dd3fc;

  --amber-bg: rgba(250, 204, 21, 0.1);
  --amber-border: rgba(250, 204, 21, 0.28);
  --amber-fg: #fde047;

  --best-row-bg: rgba(16, 185, 129, 0.07);
  --best-row-border: #34d399;
  --summary-row-bg: #172136;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main, .site-header > div, .footer-inner {
  width: min(82rem, calc(100% - 1.5rem));
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  background: var(--fg);
  color: var(--bg-elevated);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.75rem;
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  text-decoration: none;
  color: var(--fg-secondary);
  font-size: 0.84rem;
  font-weight: 550;
  padding: 0.28rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}

nav a:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}

nav a[aria-current] {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--line-strong);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.theme-btn {
  padding: 0.26rem 0.58rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 0.35rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--fg-secondary);
  cursor: pointer;
}

.theme-btn:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}

a {
  color: var(--accent-link);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

main {
  padding-block: 1rem 2rem;
}

/* Compact Hero & Prominent Trust Bar */
.page-hero {
  margin-bottom: 0.9rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--accent-link);
  margin-bottom: 0.3rem;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.55rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 750;
}

.home-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.hero-desc, .hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
}

.hero-lead {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--fg-secondary);
}

h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: 0.95rem; font-weight: 650; }
p, ul { margin: 0 0 0.75em; }

/* Trust Bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  font-size: 0.81rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  min-width: 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.trust-verified {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-fg);
  font-weight: 600;
}

.trust-verified .verified {
  color: inherit;
  font-size: 0.79rem;
}

.trust-verified time {
  font-family: var(--font-mono);
  font-weight: 700;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--emerald-dot);
  flex-shrink: 0;
}

.trust-neutral {
  color: var(--fg-secondary);
  font-size: 0.79rem;
}

.notice {
  margin: 0;
  font-size: 0.79rem;
  color: var(--fg-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.42rem;
  border-radius: 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-nocomm, .badge-save {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-fg);
}

.badge-aff, .badge-neutral {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-fg);
}

.badge-ftc {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-fg);
}

/* Workbench: Side-by-side Input & Results on Desktop so both are visible in one screen */
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

@media (min-width: 58rem) {
  .workbench {
    grid-template-columns: minmax(19rem, 23.5rem) minmax(0, 1fr);
    gap: 1.15rem;
  }
  .workbench-form {
    position: sticky;
    top: 3.6rem;
  }
}

.panel, .tool-card, .workbench-results {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  padding: clamp(0.75rem, 2vw, 1.1rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-subtle);
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
}

/* Form Controls */
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.65rem 0.75rem;
}

label {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 0.24rem;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--fg-secondary);
}

input, select, button { font: inherit; }

input:not([type=checkbox]), select {
  min-height: 2.15rem;
  min-width: 0;
  width: 100%;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.82rem;
  transition: border-color 0.12s, box-shadow 0.12s;
}

input[type=number] {
  font-family: var(--font-mono);
}

input:not([type=checkbox]):hover, select:hover {
  border-color: var(--accent-link);
}

.checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding-top: 0.25rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--fg);
  cursor: pointer;
}

input[type=checkbox] {
  accent-color: var(--accent-link);
  width: 0.98rem;
  height: 0.98rem;
  flex-shrink: 0;
  margin: 0;
}

details {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg-subtle);
}

details > :not(summary) { margin-top: 0.55rem; }

summary {
  cursor: pointer;
  color: var(--fg);
  font-weight: 650;
  font-size: 0.83rem;
}

details p {
  font-size: 0.78rem;
  color: var(--muted);
}

button {
  padding: 0.42rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[role=status]:not(:empty) {
  margin-top: 0.55rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.35rem;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-fg);
  font-size: 0.82rem;
}

/* Takeaway panel below workbench */
.takeaway-panel {
  margin-bottom: 1rem;
}

.takeaway-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.answers {
  padding-inline-start: 1.1rem;
  margin: 0;
  font-size: 0.83rem;
  color: var(--fg-secondary);
}

.answers li + li { margin-top: 0.25rem; }

/* Prominent 24-Month Total & Monthly Average KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.kpi-card {
  padding: 0.7rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
}

.kpi-featured {
  background: var(--accent-glow);
  border-color: var(--accent-link);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
}

.kpi-main {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 0.28rem;
}

.kpi-spec {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.kpi-placeholder {
  font-size: 1.05rem;
  color: var(--muted);
}

.kpi-unit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}

.kpi-avg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.79rem;
  color: var(--fg-secondary);
}

.kpi-avg-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-link);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 0.08rem 0.42rem;
  border-radius: 0.28rem;
}

.kpi-fx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.result-summary {
  font-size: 0.87rem;
  color: var(--fg-secondary);
  margin-bottom: 0.65rem;
}

/* Comparison Table: Readable & Horizontally Scrollable on Mobile without Page Overflow */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: var(--bg-elevated);
  font-size: 0.84rem;
}

caption {
  text-align: start;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

caption span {
  color: var(--muted);
  font-size: 0.78rem;
}

th, td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: start;
  vertical-align: top;
}

th:last-child, td:last-child {
  border-right: 0;
}

tbody tr:last-child th, tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--bg-hover);
}

tbody tr.row-best {
  background: var(--best-row-bg);
}

tbody tr.row-best th:first-child {
  border-left: 3px solid var(--best-row-border);
}

tbody tr.row-summary {
  background: var(--summary-row-bg);
  font-weight: 650;
}

tbody tr.row-unavailable {
  background: var(--bg-subtle);
  color: var(--muted);
}

tbody th {
  font-weight: 600;
  min-width: 10.5rem;
}

.provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.provider-head strong {
  font-size: 0.92rem;
  color: var(--fg);
}

.plan-spec {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--fg-secondary);
}

.plan-loc, .meta-note, .unverified-note {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.provider-cta {
  margin-top: 0.4rem;
}

.provider-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.18rem 0.48rem;
  border-radius: 0.28rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

.provider-btn:hover {
  border-color: var(--accent-link);
  color: var(--accent-link);
}

.link-note {
  display: block;
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Charges list inside cells */
.charges, .charges dd { margin: 0; }
.charges > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.4rem;
  border-bottom: 1px dashed var(--line);
  padding-block: 0.18rem;
}
.charges > div:last-child { border-bottom: 0; }
.charges dd {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fg);
}
.charges dt {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Prominent Total Cell inside Table */
.cell-total {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.total-figure {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.total-period {
  font-size: 0.69rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.total-monthly {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-link);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 0.08rem 0.38rem;
  border-radius: 0.25rem;
}

.total-fx {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.summary-num {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--fg);
}

.unverified-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
}

.verified, .note, small {
  font-size: 0.81rem;
  color: var(--muted);
}

.insight-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.insight-box h3 {
  margin-bottom: 0.25rem;
}

.insight-box p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--fg-secondary);
}

/* Documentation, Formula, FAQ & Official Sources */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.doc-section {
  margin-bottom: 1rem;
}

.doc-section h2 {
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.doc-section p {
  font-size: 0.86rem;
  color: var(--fg-secondary);
}

.faq-list h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
  color: var(--fg);
}

.faq-list h3:first-child { margin-top: 0; }

.sources {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.sources li {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.38rem;
  background: var(--bg);
  font-size: 0.82rem;
}

.source-provider {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
}

.sep { color: var(--muted); }

/* Homepage Cards */
.home-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.tool-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--accent-link);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.tool-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.tool-card h2 a {
  color: var(--fg);
  text-decoration: none;
}

.tool-card h2 a:hover {
  color: var(--accent-link);
}

.tool-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.tool-preview {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.4rem;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.32rem;
  font-size: 0.78rem;
}

.preview-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.preview-label {
  color: var(--fg-secondary);
  font-weight: 550;
}

.preview-val {
  text-align: end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.preview-val strong {
  display: block;
  color: var(--fg);
  font-size: 0.83rem;
}

.preview-val small {
  display: block;
  font-size: 0.69rem;
  color: var(--muted);
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.75rem;
  border-radius: 0.38rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 0.83rem;
  font-weight: 650;
  text-decoration: none;
}

.tool-cta:hover {
  background: var(--accent);
  color: var(--bg-elevated);
  border-color: var(--accent);
}

.trust-explainer {
  margin-bottom: 1.25rem;
}

.trust-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.trust-cols h2 {
  margin-bottom: 0.4rem;
}

.trust-cols p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

/* Subscribe & Footer */
.subscribe-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.subscribe-copy {
  max-width: 38rem;
}

.subscribe-copy h2 { margin-bottom: 0.25rem; }
.subscribe-copy p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 18rem) auto;
  gap: 0.5rem;
  align-items: end;
}

footer {
  padding: 1.1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.skip {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-150%);
  background: var(--bg-elevated);
  color: var(--fg);
  padding: 0.5rem;
  z-index: 50;
}

.skip:focus { transform: none; }

@media (max-width: 36rem) {
  main, .site-header > div, .footer-inner {
    width: calc(100% - 1rem);
  }
  main {
    padding-block: 0.6rem 1.5rem;
  }
  .page-hero {
    margin-bottom: 0.55rem;
  }
  h1 {
    font-size: 1.2rem;
  }
  .hero-desc {
    font-size: 0.8rem;
  }
  .trust-bar {
    padding: 0.38rem 0.55rem;
    gap: 0.3rem;
    font-size: 0.74rem;
  }
  .trust-verified .verified, .trust-neutral, .notice {
    font-size: 0.73rem;
  }
  .panel, .tool-card, .workbench-results {
    padding: 0.6rem 0.65rem;
  }
  .section-head {
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.5rem;
  }
  label {
    font-size: 0.74rem;
    gap: 0.15rem;
  }
  input:not([type=checkbox]), select {
    min-height: 1.9rem;
    padding: 0.18rem 0.35rem;
    font-size: 0.76rem;
  }
  .checks {
    gap: 0.25rem 0.65rem;
  }
  .check {
    font-size: 0.75rem;
  }
  .workbench {
    gap: 0.65rem;
  }
  .subscribe-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .kpi-card:first-child {
    grid-column: 1 / -1;
  }
  .kpi-card {
    padding: 0.5rem 0.65rem;
  }
  .kpi-main {
    font-size: 1.2rem;
  }
  table {
    min-width: 31rem;
  }
}
