/* Kitlab — brand tokens from provided style guide */
:root {
  --color-primary: #4f46e5;
  --color-sky: #38bdf8;
  --color-accent: #ff8a00;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f6f8;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

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

.wordmark__text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wordmark__text .kit {
  color: var(--color-text);
}

.wordmark__text .lab {
  color: var(--color-primary);
}

.wordmark__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.nav-main a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn--primary:hover {
  background: #4338ca;
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.3);
}

.btn--accent:hover {
  background: #e67e00;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: rgba(79, 70, 229, 0.06);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero__lead {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

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

.hero__visual {
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero__visual img {
  width: 100%;
  border-radius: var(--radius);
}

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

.section--soft {
  background: var(--color-bg-soft);
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section__desc {
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(56, 189, 248, 0.15));
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

.card a.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card {
  position: relative;
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--color-bg-soft);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 54ch;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p,
.prose ul {
  color: var(--color-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #e2e8f0;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #93c5fd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.footer-brand img {
  max-width: 280px;
  border-radius: var(--radius);
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

.ad-disclosure {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #64748b;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .wordmark {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  .menu-toggle {
    order: 2;
  }

  .nav-main {
    order: 3;
    flex: none;
    justify-content: flex-start;
  }

  .nav-cta {
    order: 4;
  }

  .nav-main,
  .nav-cta {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-header.is-open .nav-main,
  .site-header.is-open .nav-cta {
    display: flex;
  }
}

/* ============================================================================
 * Calculators (free tools section)
 * ========================================================================== */
.breadcrumb { font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.6rem; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 0.4rem; opacity: 0.5; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .calc-grid--3 { grid-template-columns: 1fr; }
}

.calc-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.calc-panel h2 { margin: 0 0 1.1rem; font-size: 1rem; font-weight: 700; }
.calc-panel--accent { background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(56,189,248,0.05)); border-color: rgba(79,70,229,0.18); }

.calc-field { margin-bottom: 1rem; }
.calc-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.3rem; }
.calc-field .suffix { font-weight: 400; color: var(--color-muted); margin-left: 0.4rem; }
.calc-field input[type="number"],
.calc-field input[type="date"],
.calc-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-field input:focus, .calc-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.10);
}
.calc-field .hint { margin: 0.3rem 0 0; font-size: 0.72rem; color: var(--color-muted); }
.calc-field--check label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.35;
}
.calc-field--check input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.calc-section-title {
  margin: 2.25rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.calc-subtle { font-size: 0.72rem; color: var(--color-muted); font-weight: 400; margin-top: 0.25rem; }

/* Tabbed calculator layout — keeps long forms scannable */
.calc-tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: nowrap; gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
  overflow-x: auto;
  scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tab-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  white-space: nowrap;
  padding: 0.6rem 0.9rem;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.calc-tab-btn:hover { color: var(--color-text); background: rgba(15,23,42,0.04); }
.calc-tab-btn .calc-tab-ico { font-size: 1rem; line-height: 1; }
.calc-tab-btn[aria-selected="true"] {
  color: var(--color-primary);
  background: rgba(79,70,229,0.10);
  border-color: rgba(79,70,229,0.20);
  box-shadow: 0 2px 8px rgba(79,70,229,0.10);
}
.calc-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}
@media (max-width: 640px) {
  .calc-tabs { gap: 0.3rem; padding: 0.35rem; border-radius: 12px; }
  .calc-tab-btn { flex: 0 0 auto; padding: 0.55rem 0.75rem; font-size: 0.8rem; }
  .calc-tab-btn .calc-tab-label { display: none; }
  .calc-tab-btn .calc-tab-ico { font-size: 1.1rem; }
  .calc-tab-btn[aria-selected="true"] .calc-tab-label { display: inline; }
}

.calc-tab-panel { display: none; }
.calc-tab-panel.is-active { display: block; animation: calc-tab-fade .18s ease-out; }
.calc-tab-panel > .calc-section-title:first-child { margin-top: 0; }
@keyframes calc-tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Calculator charts (vanilla SVG, no external deps) */
.calc-chart {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.calc-chart__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.calc-chart__title { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.calc-chart__sub   { margin: 0; font-size: 0.72rem; color: var(--color-muted); font-weight: 500; }

.calc-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}
.calc-chart__svg text { fill: var(--color-muted); font-size: 11px; }
.calc-chart__svg .axis line,
.calc-chart__svg .axis path { stroke: rgba(15, 23, 42, 0.10); stroke-width: 1; fill: none; }
.calc-chart__svg .grid line { stroke: rgba(15, 23, 42, 0.06); stroke-width: 1; }
.calc-chart__svg .area-principal { fill: rgba(79, 70, 229, 0.22); }
.calc-chart__svg .area-interest  { fill: rgba(244, 114, 182, 0.30); }
.calc-chart__svg .line-balance   { fill: none; stroke: #0ea5e9; stroke-width: 2; }
.calc-chart__svg .bar-fill       { fill: rgba(79, 70, 229, 0.85); }
.calc-chart__svg .bar-fill--alt  { fill: rgba(14, 165, 233, 0.85); }
.calc-chart__svg .bar-fill--mae  { fill: rgba(245, 158, 11, 0.90); }
.calc-chart__svg .bar-fill--win  { fill: rgba(16, 185, 129, 0.90); }
.calc-chart__svg .bar-label {
  fill: var(--color-text);
  font-weight: 600;
  font-size: 11px;
}
.calc-chart__svg .donut-track { fill: none; stroke: rgba(15, 23, 42, 0.06); stroke-width: 22; }
.calc-chart__svg .donut-center-num { fill: var(--color-text); font-size: 16px; font-weight: 700; }
.calc-chart__svg .donut-center-lbl { fill: var(--color-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.calc-chart__svg .marker-line { stroke: #ef4444; stroke-width: 1.5; stroke-dasharray: 4 4; }
.calc-chart__svg .marker-text { fill: #b91c1c; font-size: 11px; font-weight: 600; }

.calc-chart__legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  list-style: none; padding: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.calc-chart__legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.calc-chart__legend .swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.calc-chart__legend strong { color: var(--color-text); font-weight: 600; }

.calc-chart--empty .calc-chart__svg { opacity: 0.35; }
.calc-chart__empty {
  display: none;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.calc-chart--empty .calc-chart__empty { display: block; }

.calc-chart__explain {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text);
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 10px;
}
.calc-chart__explain strong { font-weight: 700; color: var(--color-text); }
.calc-chart__explain ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.calc-chart__explain li { margin: 0.35rem 0; color: var(--color-muted); }
.calc-chart__explain li strong { color: var(--color-text); }
.calc-chart__explain-note {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}
.calc-chart__svg .axis-title { fill: #64748b; font-size: 11px; font-weight: 600; }
.calc-chart__svg .marker-detail { fill: #92400e; font-size: 10px; font-weight: 500; }

.calc-compare-banner {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}
.calc-compare-banner--rent {
  background: rgba(79, 70, 229, 0.12);
  color: #3730a3;
}
.calc-compare-banner--lease {
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
}
.calc-compare-banner--tie {
  background: var(--color-bg-soft);
  color: var(--color-muted);
  font-weight: 500;
}

.calc-compare-banner--mae {
  background: rgba(255, 138, 0, 0.12);
  color: #b45309;
}

.calc-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0.45rem; }
.calc-radios label {
  display: flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.5rem; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(15,23,42,0.12); border-radius: 10px;
  cursor: pointer; background: #fff; color: var(--color-text);
  transition: border-color .15s, background .15s, color .15s;
}
.calc-radios input { position: absolute; opacity: 0; pointer-events: none; }
.calc-radios input:checked + span,
.calc-radios label:has(input:checked) {
  border-color: var(--color-primary); background: rgba(79,70,229,0.08); color: var(--color-primary);
}

.calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 460px) { .calc-row-2 { grid-template-columns: 1fr; } }

.calc-bigvalue {
  background: #fff; border-radius: 10px; padding: 1.1rem 1.2rem; box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.calc-bigvalue p.eyebrow { margin: 0 0 0.4rem; font-size: 0.72rem; color: var(--color-muted); font-weight: 600; }
.calc-bigvalue .num {
  font-size: 2rem; font-weight: 700; color: var(--color-primary); letter-spacing: -0.02em;
}
.calc-bigvalue .num small { font-size: 0.95rem; color: var(--color-muted); font-weight: 500; margin-left: 0.3rem; }
.calc-bigvalue .sub { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--color-muted); }

.calc-meta {
  list-style: none; padding: 0; margin: 1rem 0 0; background: #fff;
  border-radius: 10px; box-shadow: 0 2px 10px rgba(15,23,42,0.04);
  font-size: 0.92rem;
}
.calc-meta li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1rem; border-bottom: 1px solid rgba(15,23,42,0.05);
}
.calc-meta li:last-child { border-bottom: none; }
.calc-meta dt { color: var(--color-muted); font-weight: 500; }
.calc-meta dd { margin: 0; font-weight: 600; color: var(--color-text); }
.calc-meta .accent dd { color: var(--color-primary); }

.calc-disclaimer {
  margin: 1rem 0 0; font-size: 0.72rem; color: var(--color-muted); line-height: 1.55;
}

.calc-link-button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.85rem; background: none; border: none; padding: 0;
  color: var(--color-primary); font-weight: 600; font-size: 0.82rem;
  cursor: pointer;
}

.calc-table-wrap { display: none; margin-top: 0.75rem; max-height: 320px; overflow: auto; border: 1px solid rgba(79,70,229,0.18); border-radius: 10px; background: #fff; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.calc-table thead { position: sticky; top: 0; background: rgba(79,70,229,0.06); }
.calc-table th, .calc-table td { padding: 0.45rem 0.7rem; text-align: left; }
.calc-table td.r, .calc-table th.r { text-align: right; }
.calc-table tbody tr { border-top: 1px solid rgba(15,23,42,0.05); }

.calc-notice { margin-top: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 10px; background: rgba(255,138,0,0.08); color: #b54a00; font-size: 0.78rem; font-weight: 500; }

/* Ad slot — Coupang Partners (responsive) */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin: 1.5rem 0;
  overflow: hidden;
}
.ad-slot iframe { max-width: 100%; }
.ad-slot__desktop { display: block; }
.ad-slot__mobile { display: none; }
@media (max-width: 720px) {
  .ad-slot__desktop { display: none; }
  .ad-slot__mobile { display: block; }
}

/* FAQ */
.faq { margin-top: 2.5rem; }
.faq h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.faq-list { background: #fff; border-radius: var(--radius); border: 1px solid rgba(15,23,42,0.08); overflow: hidden; }
.faq-list details { border-bottom: 1px solid rgba(15,23,42,0.05); }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 0.92rem; color: var(--color-text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "⌄"; color: var(--color-muted); transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list .answer { padding: 0 1.25rem 1.1rem; color: var(--color-muted); line-height: 1.7; font-size: 0.9rem; white-space: pre-line; }

/* Related cards (smaller card variant) */
.related { margin-top: 2.5rem; }
.related h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
.related-card {
  display: block; padding: 1rem 1.1rem; background: #fff;
  border: 1px solid rgba(15,23,42,0.08); border-radius: var(--radius);
  text-decoration: none; color: var(--color-text); transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: rgba(79,70,229,0.3); box-shadow: 0 6px 20px rgba(79,70,229,0.08); text-decoration: none; }
.related-card .ico { font-size: 1.4rem; }
.related-card .name { display: block; margin-top: 0.4rem; font-weight: 700; font-size: 0.9rem; }
.related-card .desc { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--color-muted); }

/* Calculator index page tweak */
.calc-index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem;
}
.calc-index-card {
  display: block; padding: 1.5rem; background: #fff;
  border: 1px solid rgba(15,23,42,0.08); border-radius: var(--radius);
  text-decoration: none; color: var(--color-text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.calc-index-card:hover { transform: translateY(-2px); border-color: rgba(79,70,229,0.3); box-shadow: 0 12px 30px rgba(15,23,42,0.08); text-decoration: none; }
.calc-index-card .ico { font-size: 2rem; }
.calc-index-card h3 { margin: 0.6rem 0 0.3rem; font-size: 1.05rem; }
.calc-index-card .tagline { margin: 0; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; }
.calc-index-card p.desc { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--color-muted); line-height: 1.6; }
.calc-index-card .go { display: inline-flex; gap: 0.25rem; margin-top: 0.85rem; font-weight: 600; font-size: 0.82rem; color: var(--color-primary); }
