/* ETF Fee Lab — shared styles */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5b6472;
  --line: #e4e8ee;
  --accent: #0d6e5f;
  --accent-soft: #e6f4f1;
  --accent2: #b45309;
  --danger: #b91c1c;
  --radius: 12px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.3px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 720px; margin-top: 14px; }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: 0.3px; text-transform: uppercase;
}

/* Cards & grid */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(20, 40, 60, .07); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .go { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; }

/* Answer-first block */
.answer {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 22px 0;
  font-size: 16px;
}
.answer strong { color: var(--accent); }

/* Tool form */
.tool-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin: 26px 0;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  border: none; border-radius: 8px; padding: 12px 26px; font-size: 15px; cursor: pointer;
  margin-top: 18px;
}
.btn:hover { filter: brightness(1.08); }

/* Results */
.results { margin-top: 26px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.kpi .value { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -0.5px; }
.kpi .value.good { color: var(--accent); }
.kpi .value.bad { color: var(--danger); }
.chart-box { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.hidden { display: none; }

/* Tables */
table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--surface); font-size: 14.5px; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.compare th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.compare td:first-child { font-weight: 600; }
.tick { color: var(--accent); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }

/* Pros/cons */
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.pc-list { list-style: none; }
.pc-list li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.pc-list.good li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.pc-list.bad li::before { content: "✕"; position: absolute; left: 4px; color: var(--danger); font-weight: 800; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #0d6e5f, #0a5a4d); color: #fff;
  border-radius: var(--radius); padding: 30px; margin: 30px 0;
}
.cta h3 { color: #fff; }
.cta p { color: #d4eae5; font-size: 15px; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .fine { font-size: 12px; color: #b8d8d1; margin-top: 12px; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 12px 0; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }

/* Disclosure note */
.note { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 14px 18px; font-size: 13px; color: var(--muted); margin: 18px 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0; color: var(--muted); font-size: 13.5px; background: var(--surface); }
footer.site .cols { display: flex; gap: 30px; flex-wrap: wrap; }
h2.section { font-size: 26px; letter-spacing: -0.4px; margin: 40px 0 8px; }
p.section-sub { color: var(--muted); margin-bottom: 12px; max-width: 760px; }
