:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-end: #eef6ff;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe7f3;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-soft: #dbeafe;
  --green: #059669;
  --green-soft: #dcfce7;
  --warning: #b42318;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 231, 243, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links.open-static {
  display: flex;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
}

.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.hero {
  padding: 54px 0 28px;
}

.hero-inner,
.tool-section,
.methodology-grid,
.seo-content,
.faq-section,
.future-tools,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin-bottom: 22px;
  color: #475569;
  font-size: 21px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.trust-badges span,
.gain-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.74);
  color: #047857;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
}

.trust-badges span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
}

.cta-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  padding: 0 24px;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.hero-stat,
.trust-card {
  border: 1px solid rgba(219, 231, 243, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-stat span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.12;
}

.hero-stat p,
.section-heading p,
.chart-header p,
.methodology-section p,
.seo-content p,
.faq-list p,
.site-footer {
  color: var(--muted);
}

.product-showcase,
.calculator-directory,
.use-case-section,
.etf-insights,
.etf-examples,
.etf-cost-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 8px 0 42px;
}

.showcase-copy,
.dashboard-preview,
.calculator-card,
.use-case-grid article {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.showcase-copy {
  padding: clamp(24px, 4vw, 38px);
}

.showcase-copy h2 {
  max-width: 680px;
}

.dashboard-preview {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.dashboard-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-topline span,
.dashboard-metrics span,
.calculator-card span,
.use-case-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-topline strong {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 190px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.45), rgba(255, 255, 255, 0.2));
  padding: 18px;
}

.mini-chart span {
  display: block;
  min-height: 28px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #2563eb 0%, #0f766e 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metrics div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.dashboard-metrics b {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
}

.calculator-directory {
  padding: 12px 0 28px;
}

.calculator-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.calculator-card {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 10px;
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.calculator-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.calculator-card.featured {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 68%);
}

.calculator-card h3,
.use-case-grid h3 {
  margin: 0;
}

.calculator-card p,
.use-case-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.etf-hero-visual {
  display: grid;
  gap: 18px;
}

.portfolio-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: stretch;
}

.portfolio-card {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
  padding: 18px;
}

.portfolio-card span,
.portfolio-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-card strong {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.allocation-ring {
  display: grid;
  min-height: 116px;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, #ffffff 0 44%, transparent 45%),
    conic-gradient(#2563eb 0 72%, #dbeafe 72% 100%);
  box-shadow: inset 0 0 0 1px rgba(219, 231, 243, 0.9);
}

.allocation-ring span {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
}

.visual-bars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 96px;
  border-radius: 14px;
  background: rgba(244, 248, 255, 0.88);
  padding: 14px;
}

.visual-bars i {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #2563eb 0%, #0f766e 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.etf-insights {
  padding: 8px 0 28px;
}

.compact-heading {
  max-width: 820px;
  margin-bottom: 18px;
}

.etf-use-cases article {
  min-height: 230px;
  overflow: hidden;
}

.keyword-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.keyword-answer-grid article {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
  box-shadow: var(--shadow);
  padding: 20px;
}

.keyword-answer-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.keyword-answer-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.keyword-answer-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.sparkline,
.stacked-meter,
.fee-chip {
  margin-top: 16px;
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 64px;
}

.sparkline i {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}

.sparkline i:nth-child(1) {
  height: 20px;
}

.sparkline i:nth-child(2) {
  height: 30px;
}

.sparkline i:nth-child(3) {
  height: 42px;
}

.sparkline i:nth-child(4) {
  height: 54px;
}

.sparkline i:nth-child(5) {
  height: 64px;
}

.stacked-meter {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.stacked-meter i,
.stacked-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
}

.stacked-meter i {
  width: 62%;
  background: #2563eb;
}

.stacked-meter b {
  left: 62%;
  width: 28%;
  background: #059669;
}

.fee-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.72);
  color: #047857;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 850;
}

.etf-cost-section {
  padding: 6px 0 32px;
}

.etf-examples {
  padding: 4px 0 32px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.example-grid article,
.example-note {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.example-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
  padding: 24px;
}

.example-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.example-grid strong {
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
}

.example-grid p,
.example-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.example-note {
  padding: clamp(22px, 4vw, 34px);
}

.example-note h3 {
  margin-bottom: 10px;
}

.cost-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.cost-comparison article,
.fee-explainer {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.cost-comparison article {
  display: grid;
  gap: 8px;
  min-height: 210px;
  align-content: start;
  padding: 22px;
}

.cost-comparison span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.cost-comparison strong {
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
}

.cost-comparison p {
  margin-bottom: 0;
  color: var(--muted);
}

.fee-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.fee-explainer h3 {
  margin-bottom: 10px;
}

.fee-explainer p {
  margin-bottom: 0;
  color: var(--muted);
}

.tool-section {
  padding: 32px 0 50px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.tool-shell {
  overflow: hidden;
  border: 1px solid rgba(219, 231, 243, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.etf-tool {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.etf-inputs {
  border-bottom: 0;
}

.ad-slot,
.ad-section {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #b8c7dc;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot-top {
  margin-bottom: 18px;
}

.ad-slot-inline,
.ad-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 24px;
}

.ad-slot-inline {
  min-height: 140px;
}

.ad-section {
  min-height: 120px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.mode-tab,
.chart-tab {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.mode-tab.active,
.chart-tab.active {
  border-color: rgba(37, 99, 235, 0.18);
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  min-height: 760px;
}

.input-panel {
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fbfdff;
}

.form-section {
  display: none;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-section.active {
  display: grid;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--blue);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 138px;
  gap: 12px;
  align-items: center;
}

.input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.input-suffix:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.input-suffix input {
  border: 0;
  box-shadow: none;
}

.input-suffix b {
  flex: 0 0 auto;
  padding: 0 14px 0 4px;
  color: var(--muted);
}

.inflation-row {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.switch-line {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}

.switch-line input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}

.hidden {
  display: none;
}

.error-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--warning);
  font-weight: 850;
}

.scenario-panel {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.scenario-panel > span {
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scenario-grid button,
.action-row button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 850;
}

.scenario-grid button:hover,
.action-row button:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: var(--blue-soft);
}

.result-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.11), transparent 34%),
    #fff;
}

.result-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #102a6b 0%, #2563eb 48%, #0f766e 100%);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.result-card p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.result-card strong {
  display: block;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.projection-summary {
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius);
  background: rgba(220, 252, 231, 0.52);
  color: #065f46;
  padding: 14px 16px;
  font-weight: 750;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric b {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.metric.gain b {
  color: var(--green);
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-header p {
  margin-bottom: 0;
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-tab {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
}

.chart-wrap {
  position: relative;
  min-height: 400px;
}

#growthChart {
  display: block;
  width: 100%;
  min-height: 400px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 176px;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.table-section {
  padding: 26px;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  background: #f8fbff;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.methodology-section {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.52);
  border-block: 1px solid rgba(219, 231, 243, 0.7);
}

.use-case-section {
  padding: 18px 0 42px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-case-grid article {
  padding: 24px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.methodology-grid article,
.seo-content article,
.faq-list details,
.future-tools {
  border: 1px solid rgba(219, 231, 243, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.methodology-grid article {
  padding: 26px;
}

.trust-card ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.seo-content {
  display: grid;
  gap: 24px;
  padding: 52px 0;
}

.legal-page h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: clamp(24px, 4vw, 34px);
}

.seo-content article {
  padding: clamp(22px, 4vw, 42px);
}

.seo-content article p:last-child {
  margin-bottom: 0;
}

.faq-section {
  padding: 18px 0 52px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

summary {
  min-height: 58px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.future-tools {
  margin-bottom: 44px;
  padding: 28px;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  padding: 0 16px;
  font-weight: 850;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a {
  color: var(--blue-dark);
  font-weight: 850;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .hero-inner,
  .calculator-grid,
  .methodology-grid,
  .etf-tool,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .calculator-cards,
  .keyword-answer-grid,
  .use-case-grid,
  .example-grid,
  .cost-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-panel,
  .etf-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open-static {
    position: static;
    display: flex;
    flex-direction: row;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
  }

  .mode-tabs,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chart-header,
  .section-title {
    display: block;
  }

  .chart-tabs {
    margin-top: 14px;
  }

  .result-panel {
    position: sticky;
    top: 82px;
    z-index: 4;
  }

  .action-row,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .tool-section,
  .seo-content,
  .faq-section,
  .product-showcase,
  .calculator-directory,
  .use-case-section {
    width: min(100% - 24px, 1220px);
  }

  .input-panel,
  .result-panel,
  .table-section {
    padding: 16px;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 20px;
  }

  .chart-wrap,
  #growthChart {
    min-height: 340px;
  }

  .chart-tab {
    flex: 1 1 100%;
  }

  .calculator-cards,
  .keyword-answer-grid,
  .use-case-grid,
  .example-grid,
  .cost-comparison,
  .fee-explainer,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    min-height: auto;
  }

  .dashboard-topline {
    display: block;
  }

  .dashboard-topline strong {
    margin-top: 10px;
    display: block;
  }
}
