:root {
  --ink: #0a1628;
  --ink-2: #16273d;
  --ink-soft: #33475f;
  --muted: #6b7f95;
  --faint: #93a4b8;
  --line: #e3e9f0;
  --line-strong: #cfd9e5;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --surface: #ffffff;
  --brand: #0e9b86;
  --brand-deep: #0a7566;
  --accent: #0e9b86;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 42%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 78%, #071120);
  --brand-bright: #16c0a6;
  --brand-soft: #e6f7f4;
  --leak: #d1483c;
  --leak-soft: #fdeceb;
  --keep: #0e9b86;
  --ghost: #7d92a8;
  --caution: #c07f16;
  --caution-soft: #fdf3e2;
  --gold: #d9a441;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.04);
  --shadow: 0 4px 16px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 18px 48px rgba(10, 22, 40, 0.1), 0 2px 8px rgba(10, 22, 40, 0.05);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(14, 155, 134, 0.4);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
  position: relative;
  box-shadow: 0 3px 10px rgba(14, 155, 134, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.9) 2px, transparent 2px) 0 62% / 40% 100% no-repeat,
    linear-gradient(to top, rgba(255, 255, 255, 0.9) 2px, transparent 2px) 55% 40% / 40% 100% no-repeat;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.nav-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
  margin-left: auto;
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.15rem 0.25rem 0.15rem 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-search:focus-within {
  background: #fff;
  border-color: var(--brand);
}

.nav-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.nav-search-btn {
  border: 0;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav > a:hover,
.nav-flyout-toggle:hover {
  color: var(--brand-deep);
}

.nav-flyout {
  position: relative;
}

.nav-flyout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 600;
}

.nav-flyout-count {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-flyout-count-badge {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
}

.nav-caret::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

.nav-flyout-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  width: min(760px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  z-index: 60;
}

.nav-flyout-layout {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 320px;
}

.nav-flyout-cats {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border-right: 1px solid var(--line);
  overflow: auto;
  max-height: 380px;
}

.nav-flyout-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-flyout-cat.is-active .nav-flyout-cat-link,
.nav-flyout-cat-link:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.nav-flyout-arrow::before {
  content: "›";
  color: var(--faint);
}

.nav-flyout-tools {
  padding: 0.5rem 0.75rem 0.75rem;
  overflow: auto;
  max-height: 380px;
}

.nav-flyout-tools-panel[hidden] {
  display: none;
}

.nav-flyout-tools-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.nav-flyout-tools-title {
  margin: 0;
  font-weight: 700;
}

.nav-flyout-tools-head a {
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-flyout-tools-desc {
  margin: 0.3rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-flyout-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
}

.nav-flyout-tool-list a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.nav-flyout-tool-list a:hover {
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 0 auto;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: 78vh;
  overflow: auto;
}

.mobile-nav a,
.mobile-nav summary {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.mobile-nav-label {
  margin: 1rem 0 0.25rem;
  color: var(--faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.mobile-nav-child {
  padding-left: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft);
}

.nav-search-mobile {
  max-width: none;
  margin: 0 0 0.75rem;
  border-radius: var(--radius);
  padding: 0.3rem;
  background: var(--paper-2);
}

.nav-search-mobile .btn {
  margin-left: 0.35rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 155, 134, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 8px 22px rgba(14, 155, 134, 0.34);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #eaf4f6;
  isolation: isolate;
  background: var(--ink);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 22, 40, 0.94) 0%, rgba(10, 22, 40, 0.7) 45%, rgba(10, 22, 40, 0.4) 100%),
    radial-gradient(700px 420px at 78% 26%, rgba(22, 192, 166, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  max-width: 760px;
  margin-right: auto;
  animation: rise-in 0.7s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ff0e2;
  margin-bottom: 1.25rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(234, 244, 246, 0.82);
  max-width: 34ch;
}

.hero-lead {
  margin: 0 0 2rem;
  color: rgba(234, 244, 246, 0.65);
  font-size: 1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(234, 244, 246, 0.6);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 44rem;
}

.section-heading h2,
.signature-section h2,
.about-split h2,
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section-heading p,
.signature-section p,
.about-copy p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-cta {
  margin: 2.25rem 0 0;
  text-align: center;
}

/* ---------- Cards ---------- */
.category-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* The desk holds exactly seven signature tools. A 6-column track lets them
   sit 2 / 3 / 2 so no row is left with a gap. */
.desk-suite {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.desk-suite > :nth-child(1),
.desk-suite > :nth-child(2),
.desk-suite > :nth-child(6),
.desk-suite > :nth-child(7) {
  grid-column: span 3;
}

.desk-suite > :nth-child(3),
.desk-suite > :nth-child(4),
.desk-suite > :nth-child(5) {
  grid-column: span 2;
}

/* ---------- Front-page payment explorer ---------- */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.25rem;
  align-items: start;
}

.explorer-controls,
.explorer-results {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.explorer-controls {
  padding: 1.5rem;
}

.explorer-pane-label {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.explorer-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  margin-bottom: 1.35rem;
}

.explorer-field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.explorer-value {
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.explorer-field input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
}

.explorer-fineprint {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.5;
}

.explorer-hero {
  padding: 1.5rem 1.6rem 1.4rem;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    linear-gradient(150deg, #12283f 0%, var(--ink) 60%, #071120 100%);
  color: #fff;
}

.explorer-hero-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.explorer-hero-value {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.explorer-hero-note {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.75rem 1.1rem 0;
}

.explorer-tab {
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.explorer-tab:hover {
  color: var(--accent-deep);
}

.explorer-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.explorer-chart {
  padding: 0.9rem 1.1rem 0;
  min-height: 190px;
}

/* The explorer supplies its own card chrome, so the chart figure inside it
   should not draw a second box. */
.explorer-chart .dd-chart {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.explorer-cta {
  margin: 1.1rem 1.1rem 1.25rem;
}

@media (max-width: 900px) {
  .explorer {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tool accents ----------
   Thirteen hues spaced evenly around the wheel at matched weight, so every
   tool reads as its own colour while the set still looks like one palette.
   The brand teal is a member of the set, not an exception to it. */
.accent-1 { --accent: #0e9b86; } /* teal — Decision Desk */
.accent-2 { --accent: #a8801a; } /* amber — True Cost of Owning */
.accent-3 { --accent: #5566cf; } /* indigo — Mortgage Mechanics */
.accent-4 { --accent: #8552c6; } /* violet — Rent vs Buy */
.accent-5 { --accent: #2a7dc4; } /* azure — Investor Yardsticks */
.accent-6 { --accent: #14976a; } /* emerald — Rental Cashflow */
.accent-7 { --accent: #c26326; } /* orange — Flip & BRRRR */
.accent-8 { --accent: #0d90a8; } /* cyan — Affordability */
.accent-9 { --accent: #ab45ab; } /* plum — Equity & Appreciation */
.accent-10 { --accent: #c9453c; } /* red — Selling & Exit */
.accent-11 { --accent: #c5407f; } /* magenta — Short-Term Rental Lab */
.accent-12 { --accent: #45933f; } /* green — Location & Market */
.accent-13 { --accent: #7f8f22; } /* olive — Decision Frames */

/* Derived on the element itself, so it resolves against whichever --accent
   that element ended up with. The base value is inherited from :root. */
.desk-card,
.category-link,
.tool-card,
.tool-page {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 42%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 78%, #071120);
}

.desk-card,
.category-link,
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 100%;
}

.desk-card:hover,
.category-link:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}

.desk-card h3,
.tool-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.category-name {
  font-weight: 800;
}

.desk-card p,
.category-desc,
.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.desk-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- Decision Desk cards ---------- */
.desk-card {
  position: relative;
  gap: 0.6rem;
  padding: 1.6rem 1.55rem 1.4rem;
  overflow: hidden;
}

.desk-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.desk-card:hover::before,
.desk-card:focus-visible::before {
  transform: scaleY(1);
}

.desk-card-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.2rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}

.desk-card:hover .desk-card-index {
  background: var(--accent);
  color: #fff;
}

.desk-card h3 {
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.desk-card p {
  line-height: 1.6;
}

.desk-card-arrow {
  transition: transform 0.22s ease;
}

.desk-card:hover .desk-card-arrow {
  transform: translateX(4px);
}

/* The signature tool anchors the section. Its accent has to be mixed toward
   white rather than white-tinted, since it sits on a dark card. */
.desk-suite > .desk-card:first-child {
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    linear-gradient(150deg, #12283f 0%, var(--ink) 58%, #071120 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.desk-suite > .desk-card:first-child h3 {
  color: #fff;
}

.desk-suite > .desk-card:first-child p {
  color: rgba(255, 255, 255, 0.72);
}

.desk-suite > .desk-card:first-child .desk-card-index {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, #fff);
}

.desk-suite > .desk-card:first-child:hover .desk-card-index {
  background: color-mix(in srgb, var(--accent) 70%, #fff);
  color: var(--ink);
}

.desk-suite > .desk-card:first-child .desk-card-link {
  color: color-mix(in srgb, var(--accent) 45%, #fff);
}

.category-count {
  margin-top: auto;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Tool cards ---------- */
.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tool-card-meta,
.tool-card-cat {
  align-self: flex-start;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Category links ---------- */
.category-link {
  position: relative;
  overflow: hidden;
}

.category-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.category-link:hover::before {
  opacity: 1;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.signature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.signature-points li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
  border-left: 3px solid var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}

.search-section {
  padding-block: 1rem;
}

.tool-search {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.tool-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.75rem 1rem;
  background: transparent;
}

.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

/* ---------- Tool page ---------- */
.tool-page {
  padding: 1.75rem 0 4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.breadcrumbs a:hover {
  color: var(--brand-deep);
}

.tool-header {
  margin-bottom: 1.5rem;
  max-width: 50rem;
}

.tool-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tool-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.tool-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

.tool-workspace {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 1.25rem;
}

.tool-root {
  min-height: 320px;
}

.tool-loading {
  color: var(--muted);
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* Two-pane workspace */
.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.pane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}

.pane-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

.pane-body {
  padding: 1.4rem;
}

.pane-results {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* Inputs */
.tool-fields {
  display: grid;
  gap: 1.15rem;
}

.tool-field {
  display: grid;
  gap: 0.35rem;
}

.field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tool-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}

.field-value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--accent-deep);
  font-size: 0.82rem;
}

.tool-field input[type="number"],
.tool-field input[type="text"] {
  width: 118px;
  flex-shrink: 0;
  text-align: right;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  outline: none;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 42px;
}

.tool-field input[type="number"]:hover {
  background: #fff;
}

.tool-field input[type="number"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.tool-field input.is-invalid {
  border-color: var(--leak);
  box-shadow: 0 0 0 4px var(--leak-soft);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.2);
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.field-error {
  margin: 0;
  font-size: 0.78rem;
  color: var(--leak);
  font-weight: 600;
}

/* Presets & chips */
.preset-bar,
.saved-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.preset-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.2rem;
}

.preset-chip {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.82rem !important;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}

.preset-chip:hover,
.preset-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-deep);
}

.preset-chip.is-danger {
  color: var(--leak);
  padding-inline: 0.5rem !important;
}

.muted-inline {
  color: var(--faint);
  font-size: 0.85rem;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.advanced-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--paper);
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tool-status {
  margin: 0.75rem 0 0;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 1.2em;
}

/* Hero result */
.result-hero {
  padding: 1.6rem 1.4rem;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.result-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 192, 166, 0.35), transparent 70%);
}

.result-hero-label {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.result-hero-value {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.result-hero-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
}

.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  position: relative;
}

.verdict-pill.is-go {
  background: rgba(22, 192, 166, 0.18);
  color: #7ff0dc;
}

.verdict-pill.is-caution {
  background: rgba(217, 164, 65, 0.2);
  color: #ffd894;
}

.verdict-pill.is-stop {
  background: rgba(209, 72, 60, 0.2);
  color: #ffb3ac;
}

.verdict-pill.is-neutral {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Tabs */
.result-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.result-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
}

.result-tab:hover {
  color: var(--ink);
}

.result-tab.is-active {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] {
  display: none;
}

.result-body {
  padding: 1.4rem;
}

/* Metrics */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.metric {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}

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

.metric-value {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.metric-value.is-leak {
  color: var(--leak);
}

.metric-value.is-keep {
  color: var(--keep);
}

.metric-value.is-ghost {
  color: var(--ghost);
}

/* Decision card */
.decision-report {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.decision-report.is-go {
  background: var(--brand-soft);
  border-color: rgba(14, 155, 134, 0.28);
}

.decision-report.is-caution {
  background: var(--caution-soft);
  border-color: rgba(192, 127, 22, 0.3);
}

.decision-report.is-stop {
  background: var(--leak-soft);
  border-color: rgba(209, 72, 60, 0.28);
}

.decision-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.decision-verdict {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.decision-next {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Charts */
.dd-chart {
  margin: 0 0 1.15rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.dd-chart-title {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.dd-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.dd-chart-caption {
  margin: 0.6rem 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.dd-table-wrap {
  margin: 0 0 1.15rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  max-height: 460px;
}

.dd-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.dd-table th,
.dd-table td {
  padding: 0.6rem 0.8rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dd-table th:first-child,
.dd-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.dd-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
  z-index: 1;
}

.dd-table tbody tr:hover {
  background: var(--paper);
}

.dd-table-toggle {
  margin: 0.6rem;
}

.tool-stat {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--line);
}

.assumptions-box,
.compare-delta {
  margin: 0 0 1.15rem;
  padding: 1.05rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.assumptions-box h4,
.compare-delta h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.assumptions-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist li.is-done::before {
  background: var(--brand);
  border-color: var(--brand);
}

/* Sticky mobile summary */
.sticky-summary {
  display: none;
}

/* Tool content sections */
.tool-disclaimer {
  color: var(--faint);
  font-size: 0.82rem;
  margin: 1.25rem 0;
}

.tool-intro,
.tool-methodology,
.tool-faq,
.related-tools {
  margin-top: 2.5rem;
}

.tool-intro h2,
.tool-methodology h2,
.tool-faq h2,
.related-tools h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.tool-intro p {
  color: var(--muted);
  max-width: 70ch;
}

.tool-methodology {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.tool-methodology ol,
.tool-methodology ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tool-methodology li {
  margin-bottom: 0.35rem;
}

.tool-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.tool-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

.tool-faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header p {
  color: var(--muted);
  max-width: 46rem;
}

.search-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-toolbar {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
}

.chip.is-active,
.chip:hover {
  background: var(--brand-soft);
  border-color: rgba(14, 155, 134, 0.4);
  color: var(--brand-deep);
}

.catalog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.fav-toggle {
  align-self: flex-start;
}

.tool-card.is-fav {
  border-color: rgba(217, 164, 65, 0.5);
}

.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

/* Journey / hub */
.journey {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.journey-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1rem;
}

.journey-step h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.journey-step p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.journey-links a {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.journey-links a:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 1.5rem;
  background: var(--ink);
  color: rgba(234, 244, 246, 0.8);
}

.site-footer .brand-name {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 3rem;
}

.footer-brand p {
  color: rgba(234, 244, 246, 0.55);
  max-width: 36ch;
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.8rem !important;
}

.footer-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 360px;
}

.footer-search input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: 0.7fr 0.9fr 1.4fr;
  gap: 1.5rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 244, 246, 0.45);
  font-weight: 800;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-menu a {
  color: rgba(234, 244, 246, 0.78);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--brand-bright);
}

.footer-category-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem !important;
}

.footer-cat-count {
  margin-left: 0.3rem;
  color: rgba(234, 244, 246, 0.35);
  font-size: 0.78rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(234, 244, 246, 0.45);
  font-size: 0.85rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bar a:hover {
  color: var(--brand-bright);
}

.not-found {
  padding: 5rem 0;
  text-align: center;
}

.not-found h1 {
  font-weight: 800;
  font-size: 3rem;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .tool-actions,
  .breadcrumbs,
  .related-tools,
  .nav-toggle,
  .mobile-nav,
  .preset-bar,
  .saved-bar,
  .advanced-panel,
  .tool-status,
  .result-tabs,
  .dd-table-toggle,
  .pane-inputs {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .tool-shell {
    grid-template-columns: 1fr;
  }

  .pane {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .tab-panel[hidden] {
    display: block !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tool-shell {
    grid-template-columns: 1fr;
  }

  .pane-results {
    position: static;
  }
}

@media (max-width: 980px) {
  .site-nav,
  .nav-search {
    display: none;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .desk-suite,
  .category-grid,
  .tool-grid,
  .signature-grid,
  .about-split,
  .footer-inner,
  .footer-cols,
  .nav-flyout-layout,
  .nav-flyout-tool-list,
  .footer-category-grid {
    grid-template-columns: 1fr;
  }

  .desk-suite > .desk-card {
    grid-column: auto;
  }

  .signature-grid {
    padding: 1.5rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .sticky-summary:not(:empty) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.85rem 1.25rem;
    background: var(--ink);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -6px 24px rgba(10, 22, 40, 0.2);
  }

  .sticky-summary strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
  }

  .sticky-summary span {
    font-size: 0.78rem;
    opacity: 0.7;
  }

  body:has(.sticky-summary:not(:empty)) {
    padding-bottom: 72px;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .desk-suite,
  .category-grid,
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .desk-suite > .desk-card {
    grid-column: auto;
  }

  /* Seven cards over two columns: let the last one run full width. */
  .desk-suite > .desk-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .pane-body,
  .result-body {
    padding: 1.1rem;
  }

  .result-hero {
    padding: 1.3rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
