:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --shadow: 0 24px 70px rgba(15, 23, 42, .08);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #eef6ff 0, #f7f9fc 36%, #f4f7fb 100%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  backdrop-filter: blur(16px);
}
.brand { font-weight: 900; letter-spacing: -0.055em; font-size: 1.28rem; }
.brand span { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: .94rem; color: #334155; }
.main-nav a, .nav-form button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 9px 0; }
.nav-pill { padding: 9px 14px !important; border-radius: 999px; background: #0f172a; color: #fff !important; }
.nav-form { margin: 0; }
main { min-height: calc(100vh - 68px); }
.flash-stack { position: fixed; right: 24px; top: 82px; z-index: 20; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); color: #0f172a; }
.flash.error { border-color: #fecaca; background: #fff5f5; }
.flash.success { border-color: #bbf7d0; background: #f0fdf4; }
.flash.info { border-color: #bfdbfe; background: #eff6ff; }
.hero { padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .65fr); gap: clamp(28px, 5vw, 78px); align-items: center; }
.hero-copy { max-width: 850px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1, h2 { letter-spacing: -.06em; color: var(--text); }
h1 { font-size: clamp(2.55rem, 6.4vw, 5.9rem); line-height: .92; margin: 0 0 24px; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1; margin: 0 0 10px; }
.lead { max-width: 820px; color: #475569; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; margin: 0; }
.lead.narrow { max-width: 740px; margin-inline: auto; }
.muted { color: var(--muted); line-height: 1.6; }
.notice { color: #64748b; font-size: .88rem; line-height: 1.5; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 800; border: 0; cursor: pointer; }
.button.secondary { background: #e2e8f0; color: #0f172a; }
.button.wide { width: 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points span { padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #334155; font-weight: 750; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.hero-panel { background: linear-gradient(145deg, #0f172a, #1e293b); color: #fff; border-radius: 36px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.hero-panel::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 999px; background: rgba(37, 99, 235, .3); right: -80px; top: -90px; filter: blur(8px); }
.hero-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.hero-panel-grid div { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.hero-panel-grid span { display: block; color: #cbd5e1; font-size: .85rem; margin-bottom: 7px; }
.hero-panel-grid strong { font-size: 1.1rem; }
.mini-chart { height: 210px; position: relative; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.mini-chart::before { content: ""; position: absolute; inset: 18px; background: linear-gradient(to top, rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 100% 44px, 64px 100%; }
.mini-line { position: absolute; left: 24px; right: 24px; height: 4px; border-radius: 999px; transform-origin: left center; }
.mini-line.target { bottom: 62px; background: #fff; transform: rotate(-24deg); }
.mini-line.actual { bottom: 44px; background: #60a5fa; transform: rotate(-13deg); }
.mini-dot { position: absolute; left: 50%; bottom: 82px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.12); }
.section { padding: 32px clamp(20px, 5vw, 72px) 80px; }
.section.compact { padding-top: 0; }
.section-title { max-width: 820px; margin-bottom: 24px; }
.section-title.centered { text-align: center; margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .metric-card, .chart-card, .input-card, .table-card, .auth-card, .price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card { padding: 24px; display: grid; gap: 10px; }
.feature-card strong { font-size: 1.08rem; }
.feature-card span { color: var(--muted); line-height: 1.55; }
.auth-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(520px, 100%); padding: clamp(24px, 4vw, 42px); }
.auth-card h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.form-stack, .plan-form { display: grid; gap: 14px; }
label { display: grid; gap: 8px; color: #334155; font-weight: 750; font-size: .92rem; }
input { width: 100%; min-height: 48px; border-radius: 15px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; padding: 0 14px; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.small-link { margin: 18px 0 0; color: var(--muted); }
.small-link a { color: var(--blue); font-weight: 800; }
.dashboard-shell { padding: clamp(28px, 4vw, 54px) clamp(20px, 5vw, 72px) 80px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.dashboard-head h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin-bottom: 14px; }
.status-pill { white-space: nowrap; padding: 11px 15px; border-radius: 999px; font-weight: 900; border: 1px solid var(--line); background: #fff; }
.status-pill.behind { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.status-pill.ahead { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.status-pill.on_track { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.metric-card { padding: 22px; }
.metric-card span { display: block; color: var(--muted); margin-bottom: 10px; }
.metric-card strong { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.04em; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr); gap: 16px; align-items: start; }
.chart-card, .input-card, .table-card { padding: clamp(20px, 2.5vw, 30px); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-head p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.card-head span { color: var(--muted); font-weight: 800; }
.chart-wrap { height: 420px; width: 100%; }
.chart-legend-text { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); margin-top: 16px; }
.chart-legend-text span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend-text b { width: 20px; height: 4px; border-radius: 999px; display: inline-block; }
.legend-soll { background: #111827; }
.legend-ist { background: #2563eb; }
.legend-paid { background: #94a3b8; }
.form-row { display: grid; gap: 12px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.table-card { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 10px; }
th { color: #64748b; font-size: .86rem; }
td { font-weight: 650; }
td.negative { color: #b91c1c; }
td.positive { color: #047857; }
.pricing-section { display: grid; justify-items: center; gap: 24px; }
.price-card { width: min(520px, 100%); padding: clamp(24px, 4vw, 38px); }
.price-label { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.price { display: block; font-size: clamp(2.7rem, 5vw, 4rem); letter-spacing: -.06em; margin: 12px 0 18px; }
.price small { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
ul { padding-left: 20px; color: #334155; line-height: 1.8; }
@media (max-width: 1100px) {
  .hero-grid, .dashboard-layout { grid-template-columns: 1fr; }
  .metric-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header { align-items: flex-start; gap: 14px; flex-direction: column; }
  .main-nav { flex-wrap: wrap; gap: 10px 14px; }
  .hero { padding-top: 44px; }
  .hero-panel { min-height: 360px; }
  .metric-grid, .feature-grid, .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; }
  .status-pill { white-space: normal; }
  .chart-wrap { height: 320px; }
  .flash-stack { left: 16px; right: 16px; top: 106px; width: auto; }
}
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; transition: opacity .22s ease, transform .22s ease; }
.flash.is-hiding { opacity: 0; transform: translateY(-6px); }
.flash-close { border: 0; background: transparent; color: #334155; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.metric-grid-large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.scenario-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mini-metric { border: 1px solid var(--line); border-radius: 20px; background: #f8fafc; padding: 16px; display: grid; gap: 8px; }
.mini-metric span, .assumption-grid span { color: var(--muted); font-size: .86rem; }
.mini-metric strong { font-size: clamp(1.25rem, 1.5vw, 1.7rem); letter-spacing: -.04em; }
.assumption-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.assumption-grid div { border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; padding: 14px; display: grid; gap: 6px; }
.assumption-grid strong { font-size: 1rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 15px; padding: 0 14px; background: #fff; }
.check-label input { width: 18px; min-height: 18px; }
.legend-pessimistic { background: #dc2626; }
.legend-optimistic { background: #059669; }
@media (max-width: 1300px) {
  .insight-grid, .assumption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .metric-grid-large, .insight-grid, .assumption-grid, .check-grid { grid-template-columns: 1fr; }
}
select { width: 100%; min-height: 48px; border-radius: 15px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; padding: 0 14px; outline: none; font: inherit; }
select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
input:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.dashboard-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dashboard-tabs a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 800; color: #334155; }
.info-band { border: 1px solid #bfdbfe; background: #eff6ff; color: #1e3a8a; border-radius: 18px; padding: 14px 18px; margin: 0 0 18px; font-weight: 750; }
.info-band a { color: #1d4ed8; text-decoration: underline; }
.muted-band { border-color: #e2e8f0; background: #f8fafc; color: #475569; }
.secondary-layout { grid-template-columns: minmax(320px, .6fr) minmax(0, 1fr); margin-top: 16px; }
.small-chart-wrap { height: 330px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.narrow-card { max-width: 1040px; }
.inline-danger { border: 0; background: #fef2f2; color: #b91c1c; border-radius: 999px; padding: 9px 12px; font-weight: 800; cursor: pointer; }
.compact-assumptions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .secondary-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .compact-assumptions { grid-template-columns: 1fr; } }
.export-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.export-card { border: 1px solid var(--line); border-radius: 20px; background: #f8fafc; padding: 18px; display: grid; gap: 8px; color: #0f172a; }
.export-card:hover { border-color: #bfdbfe; box-shadow: 0 18px 42px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.export-card strong { font-size: 1.05rem; }
.export-card span { color: var(--muted); line-height: 1.5; }
.checklist-panel { display: grid; gap: 12px; }
.checklist-panel div { border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; padding: 15px; display: grid; gap: 6px; }
.checklist-panel span { color: var(--muted); line-height: 1.5; }
.compact-info { margin-top: 16px; font-weight: 650; }
td small { color: var(--muted); font-weight: 650; }
input[type="file"] { padding-top: 12px; }
@media (max-width: 700px) { .export-card-grid { grid-template-columns: 1fr; } }

/* Numeric fields should look like normal money fields, not browser spinner widgets. */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-help {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 650;
  margin-top: -2px;
}
.definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.definition-grid.compact-definition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.definition-grid div,
.warning-list div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  padding: 15px;
  display: grid;
  gap: 6px;
}
.definition-grid strong { color: var(--text); }
.definition-grid span,
.warning-list div { color: var(--muted); line-height: 1.5; }
.warning-list { display: grid; gap: 10px; }
.warning-list div {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .definition-grid,
  .definition-grid.compact-definition { grid-template-columns: 1fr; }
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-size: .9rem;
}
.site-footer a { color: #334155; font-weight: 800; }
.global-account-warning {
  position: sticky;
  top: 69px;
  z-index: 9;
  padding: 10px clamp(20px, 5vw, 72px);
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 800;
}
.global-account-warning a { text-decoration: underline; color: #1d4ed8; }
.qr-box {
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  margin: 14px 0 18px;
}
.qr-box img { width: 100%; display: block; }
.manual-key {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.manual-key summary { cursor: pointer; font-weight: 800; color: #334155; }
.manual-key code { display: block; overflow-wrap: anywhere; margin-top: 10px; color: #0f172a; font-weight: 800; }
.mfa-confirm-form { margin-top: 16px; }
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.recovery-code-grid code {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .08em;
}
@media print {
  .site-header, .site-footer, .flash-stack, .export-actions { display: none !important; }
  body { background: #fff; }
  .table-card { box-shadow: none; }
}
@media (max-width: 700px) { .recovery-code-grid { grid-template-columns: 1fr; } }

.danger-zone {
  border-color: rgba(220, 38, 38, 0.28);
}

.danger-button,
.link-button.danger {
  color: #991b1b;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* Production UX pass */
.inline-admin-form { display: contents; }
.inline-admin-form select,
.inline-admin-form input { min-width: 150px; }
.compact-button { min-height: 38px; padding-inline: 14px; }
.mini-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.mini-check input { width: 18px; min-height: 18px; }
.payment-portal-form { margin-top: 14px; }
.legal-section { max-width: 1120px; margin-inline: auto; }
.legal-card { display: grid; gap: 8px; line-height: 1.65; }
.legal-card h2 { margin-top: 22px; font-size: 1.35rem; }
.legal-card p { margin: 0; color: #334155; }
@media (max-width: 900px) {
  .site-header { padding: 12px 16px; }
  .brand { font-size: 1.16rem; }
  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a,
  .nav-form button {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 9px 12px;
  }
  .nav-pill { padding: 9px 12px !important; }
  .dashboard-shell { padding: 22px 14px 86px; }
  .dashboard-head h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .dashboard-head .muted { font-size: .96rem; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 16px; border-radius: 20px; }
  .metric-card strong { font-size: 1.28rem; }
  .chart-card, .input-card, .table-card { padding: 16px; border-radius: 22px; }
  .dashboard-tabs {
    position: sticky;
    top: 106px;
    z-index: 8;
    margin-inline: -14px;
    padding: 9px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: rgba(244,247,251,.92);
    backdrop-filter: blur(10px);
    border-block: 1px solid rgba(226,232,240,.9);
    scrollbar-width: none;
  }
  .dashboard-tabs::-webkit-scrollbar { display: none; }
  .dashboard-tabs a { white-space: nowrap; background: #fff; }
  .chart-wrap { height: 280px; }
  .table-scroll { margin-inline: -8px; padding-inline: 8px; }
  table { min-width: 680px; font-size: .9rem; }
  th, td { padding: 11px 8px; }
}
@media (max-width: 520px) {
  .hero { padding-inline: 14px; }
  .section { padding-inline: 14px; }
  .hero-points span { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .export-actions .button, .export-card, .actions .button { width: 100%; }
  .flash-stack { top: 116px; }
}
.admin-row-form { display: grid; grid-template-columns: minmax(120px, .7fr) auto minmax(140px, 1fr) auto; gap: 8px; align-items: center; min-width: 560px; }
@media (max-width: 900px) { .admin-row-form { grid-template-columns: 1fr; min-width: 260px; } }

/* Dynamic ETF search */
.head-action-form { align-self: flex-start; }
.search-panel { margin-bottom: 1rem; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.etf-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.etf-card { border: 1px solid var(--border, #e5e7eb); border-radius: 22px; padding: 1rem; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); display: flex; flex-direction: column; gap: 1rem; }
.etf-card-top { display: flex; align-items: flex-start; gap: .85rem; }
.etf-card h3 { margin: 0 0 .25rem 0; font-size: 1rem; line-height: 1.25; }
.etf-card p { margin: 0; color: #64748b; }
.security-cell { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.security-cell strong { display: block; }
.security-cell span { display: block; color: #64748b; font-size: .86rem; margin-top: .15rem; }
.security-avatar { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: #eef2ff; color: #3730a3; flex: 0 0 auto; }
.security-avatar.large { width: 46px; height: 46px; border-radius: 16px; font-size: 1.2rem; }
.mini-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.mini-dl div { border-radius: 14px; background: #f8fafc; padding: .6rem; }
.mini-dl dt { font-size: .72rem; color: #64748b; margin-bottom: .25rem; }
.mini-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.checkbox-line { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.checkbox-line input { width: 18px; height: 18px; }
.compact-actions { margin: .75rem 0 1rem; }
.row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-button { background: #eef2ff; color: #3730a3; border: 0; border-radius: 999px; padding: .45rem .7rem; font-weight: 800; cursor: pointer; }

@media (max-width: 760px) {
  .search-form { grid-template-columns: 1fr; }
  .head-action-form { width: 100%; }
  .head-action-form .button { width: 100%; }
  .mini-dl { grid-template-columns: 1fr; }
  .security-cell { min-width: 180px; }
}
.security-avatar-img { width: 34px; height: 34px; border-radius: 12px; object-fit: cover; background: #eef2ff; flex: 0 0 auto; }
.security-avatar-img.large { width: 46px; height: 46px; border-radius: 16px; }

/* Visual polish pass: header, hero demo and adaptive theme */
:root {
  color-scheme: light dark;
  --bg-a: #f8fbff;
  --bg-b: #eff6ff;
  --bg-c: #f5f7fb;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-soft: #f8fafc;
  --surface-raised: rgba(255, 255, 255, .94);
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #334155;
  --line: rgba(148, 163, 184, .28);
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --blue-soft: #dbeafe;
  --button-bg: #0f172a;
  --button-text: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, .10);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, .08);
  --header-bg: rgba(255,255,255,.78);
  --header-pill: rgba(248,250,252,.92);
  --hero-dark-a: #0b1222;
  --hero-dark-b: #172033;
  --hero-grid: rgba(255,255,255,.13);
  --hero-card: rgba(255,255,255,.105);
  --hero-card-border: rgba(255,255,255,.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-a: #050914;
  --bg-b: #0a1020;
  --bg-c: #0f172a;
  --surface: rgba(15, 23, 42, .78);
  --surface-solid: #111827;
  --surface-soft: #0b1220;
  --surface-raised: rgba(15,23,42,.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, .22);
  --blue: #60a5fa;
  --blue-strong: #93c5fd;
  --blue-soft: rgba(37, 99, 235, .18);
  --button-bg: #f8fafc;
  --button-text: #0f172a;
  --shadow: 0 26px 76px rgba(0, 0, 0, .34);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, .26);
  --header-bg: rgba(15,23,42,.72);
  --header-pill: rgba(30,41,59,.68);
  --hero-dark-a: #020617;
  --hero-dark-b: #0f172a;
  --hero-grid: rgba(148,163,184,.18);
  --hero-card: rgba(15,23,42,.65);
  --hero-card-border: rgba(148,163,184,.22);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --bg-a: #050914;
    --bg-b: #0a1020;
    --bg-c: #0f172a;
    --surface: rgba(15, 23, 42, .78);
    --surface-solid: #111827;
    --surface-soft: #0b1220;
    --surface-raised: rgba(15,23,42,.92);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --line: rgba(148, 163, 184, .22);
    --blue: #60a5fa;
    --blue-strong: #93c5fd;
    --blue-soft: rgba(37, 99, 235, .18);
    --button-bg: #f8fafc;
    --button-text: #0f172a;
    --shadow: 0 26px 76px rgba(0, 0, 0, .34);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, .26);
    --header-bg: rgba(15,23,42,.72);
    --header-pill: rgba(30,41,59,.68);
    --hero-dark-a: #020617;
    --hero-dark-b: #0f172a;
    --hero-grid: rgba(148,163,184,.18);
    --hero-card: rgba(15,23,42,.65);
    --hero-card-border: rgba(148,163,184,.22);
  }
}

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

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-b) 0, transparent 35%),
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 30%),
    linear-gradient(180deg, var(--bg-a), var(--bg-c));
}

.site-header {
  padding: 14px clamp(16px, 4vw, 56px);
  background: transparent;
  border-bottom: 0;
}
.header-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--header-bg);
  box-shadow: 0 16px 44px rgba(15,23,42,.07);
  backdrop-filter: blur(18px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border-radius: 16px;
  letter-spacing: -.065em;
  font-size: 1.22rem;
  color: var(--text);
}
.brand:hover { background: var(--header-pill); }
.brand-mark { color: var(--blue); }
.brand-text { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.main-nav {
  gap: 7px;
  color: var(--muted-strong);
  font-weight: 760;
}
.main-nav a,
.nav-form button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted-strong);
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.main-nav a:hover,
.nav-form button:hover {
  background: var(--header-pill);
  border-color: var(--line);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-pill {
  background: var(--button-bg) !important;
  color: var(--button-text) !important;
  border-color: var(--button-bg) !important;
  padding: 10px 15px !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.12);
}
.theme-toggle {
  width: 43px;
  height: 43px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-pill);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(37,99,235,.35); }
.theme-toggle-icon { display: none; font-size: 1.05rem; font-weight: 900; line-height: 1; }
html[data-theme="auto"] .theme-auto,
html[data-theme="light"] .theme-light,
html[data-theme="dark"] .theme-dark { display: block; }

.hero { padding-top: clamp(46px, 7vw, 94px); }
.hero-grid { align-items: center; }
.hero-panel {
  gap: 18px;
  justify-content: center;
  min-height: 470px;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 88% 18%, rgba(37,99,235,.55), transparent 24%),
    radial-gradient(circle at 78% 52%, rgba(96,165,250,.18), transparent 30%),
    linear-gradient(145deg, var(--hero-dark-a), var(--hero-dark-b));
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 32px 96px rgba(15,23,42,.18);
}
.hero-panel::before { opacity: .75; }
.hero-panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-weight: 850;
  letter-spacing: -.02em;
}
.hero-panel-topline span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.13);
  font-size: .82rem;
}
.hero-panel-topline strong { color: #fff; font-size: .92rem; }
.mini-chart {
  height: 250px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.mini-chart::before {
  inset: 24px 26px 26px;
  background:
    linear-gradient(to top, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(to right, var(--hero-grid) 1px, transparent 1px);
  background-size: 100% 52px, 78px 100%;
}
.chart-label {
  position: absolute;
  z-index: 2;
  font-size: .72rem;
  color: rgba(226,232,240,.78);
  font-weight: 850;
  letter-spacing: .02em;
}
.chart-label-target { left: 32px; top: 28px; }
.chart-label-actual { right: 32px; bottom: 34px; }
.mini-line {
  left: 30px;
  right: 30px;
  height: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.mini-line.target { bottom: 72px; transform: rotate(-24deg); background: linear-gradient(90deg, rgba(255,255,255,.92), #fff); }
.mini-line.actual { bottom: 52px; transform: rotate(-13deg); background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.mini-dot {
  width: 18px;
  height: 18px;
  left: 51%;
  bottom: 94px;
  box-shadow: 0 0 0 12px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.22);
}
.hero-panel-grid {
  gap: 16px;
}
.hero-panel-grid div {
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--hero-card);
  border-color: var(--hero-card-border);
  backdrop-filter: blur(10px);
  min-height: 96px;
}
.hero-panel-grid span { color: #cbd5e1; font-size: .94rem; }
.hero-panel-grid strong { font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: #fff; letter-spacing: -.035em; }

.feature-card, .metric-card, .chart-card, .input-card, .table-card, .auth-card, .price-card,
.etf-card, .definition-grid div, .checklist-panel div, .export-card, .mini-metric, .assumption-grid div {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--text);
}
.hero-points span, .dashboard-tabs a, .status-pill, .qr-box, .manual-key, .recovery-code-grid code {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--muted-strong);
}
.button { background: var(--button-bg); color: var(--button-text); }
.button.secondary { background: var(--header-pill); color: var(--text); border: 1px solid var(--line); }
.lead, label, ul, .legal-card p { color: var(--muted-strong); }
.notice, .muted, .feature-card span, .card-head p, .mini-metric span, .assumption-grid span, .export-card span, td small { color: var(--muted); }
input, select, .check-label {
  background: var(--surface-solid);
  border-color: rgba(148,163,184,.42);
  color: var(--text);
}
input:disabled { background: var(--surface-soft); color: var(--muted); }
th { color: var(--muted); }
.site-footer { background: var(--surface); border-color: var(--line); color: var(--muted); }
.site-footer a { color: var(--muted-strong); }
.global-account-warning { top: 88px; }

@media (max-width: 900px) {
  .site-header { padding: 10px 12px; }
  .header-shell { align-items: flex-start; flex-direction: column; border-radius: 20px; gap: 8px; }
  .header-actions { width: 100%; align-items: center; }
  .main-nav { flex: 1; width: auto; }
  .main-nav a,
  .nav-form button { background: var(--header-pill); border-color: var(--line); }
  .dashboard-tabs { top: 116px; background: color-mix(in srgb, var(--bg-c) 86%, transparent); }
  .global-account-warning { top: 118px; }
}
@media (max-width: 700px) {
  .hero-panel { min-height: auto; border-radius: 28px; padding: 18px; }
  .mini-chart { height: 210px; border-radius: 24px; }
  .hero-panel-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-panel-grid div { min-height: auto; padding: 16px; }
  .chart-label { display: none; }
}

/* Hero demo redesign: product-like preview instead of decorative lines */
.hero-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 610px;
  border-radius: 38px;
  padding: clamp(20px, 2.8vw, 36px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .78), transparent 32%),
    radial-gradient(circle at 78% 58%, rgba(96, 165, 250, .22), transparent 30%),
    linear-gradient(145deg, #050b18 0%, #0b1222 47%, #111c32 100%);
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 34px 110px rgba(15, 23, 42, .22);
}
.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(255,255,255,.06) 45% 46%, transparent 46% 100%),
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.08), transparent 19%);
  pointer-events: none;
  z-index: -1;
}
.preview-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -110px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .42);
  filter: blur(18px);
  opacity: .9;
  z-index: -1;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.preview-toolbar > div {
  display: grid;
  gap: 10px;
}
.preview-toolbar strong {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  letter-spacing: -.035em;
}
.preview-pill,
.preview-status,
.chart-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.10);
  color: rgba(226,232,240,.94);
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.preview-status {
  background: rgba(248,113,113,.14);
  border-color: rgba(248,113,113,.28);
  color: #fecaca;
}
.preview-chart-card {
  position: relative;
  z-index: 1;
  padding: 18px 18px 14px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 24px 66px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
}
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.chart-card-head > div:first-child {
  display: grid;
  gap: 3px;
}
.small-label {
  color: rgba(203,213,225,.82);
  font-weight: 850;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.chart-card-head strong {
  font-size: 1rem;
  letter-spacing: -.035em;
}
.chart-tabs { display: inline-flex; gap: 6px; }
.chart-tabs span {
  min-height: 30px;
  padding-inline: 10px;
  font-size: .72rem;
  color: rgba(203,213,225,.82);
}
.chart-tabs .active {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}
.preview-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 290px;
}
.chart-grid path {
  fill: none;
  stroke: rgba(203,213,225,.18);
  stroke-width: 1;
}
.chart-bars rect {
  fill: rgba(147,197,253,.20);
}
.chart-gap {
  fill: url(#gapFill);
}
.chart-target,
.chart-actual,
.chart-paid {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-target {
  stroke: url(#targetGradient);
  stroke-width: 7;
}
.chart-actual {
  stroke: url(#actualGradient);
  stroke-width: 8;
}
.chart-paid {
  stroke: rgba(148,163,184,.88);
  stroke-width: 3;
  stroke-dasharray: 8 10;
}
.chart-marker circle:first-child { fill: rgba(255,255,255,.15); }
.chart-marker circle:last-child { fill: #fff; }
.gap-callout rect {
  fill: rgba(15,23,42,.72);
  stroke: rgba(255,255,255,.18);
}
.gap-callout text:first-of-type {
  fill: rgba(203,213,225,.84);
  font-size: 13px;
  font-weight: 800;
}
.gap-callout text:last-of-type {
  fill: #fff;
  font-size: 18px;
  font-weight: 900;
}
.axis-labels text {
  fill: rgba(203,213,225,.72);
  font-size: 12px;
  font-weight: 800;
}
.preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 6px 4px 0;
  color: rgba(203,213,225,.9);
  font-size: .82rem;
  font-weight: 800;
}
.preview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.preview-legend i {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  display: inline-block;
}
.legend-target { background: #fff; }
.legend-actual { background: #60a5fa; }
.legend-paid { background: #94a3b8; opacity: .85; }
.preview-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.preview-kpis div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,23,42,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.preview-kpis span {
  color: rgba(203,213,225,.88);
  font-size: .88rem;
  font-weight: 850;
}
.preview-kpis strong {
  color: #fff;
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.preview-kpis small {
  color: rgba(203,213,225,.68);
  font-weight: 720;
}
.preview-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.preview-timeline > span:not(.timeline-dot) {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,.45), rgba(255,255,255,.18));
}
.timeline-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,23,42,.6);
  color: rgba(226,232,240,.9);
  font-weight: 900;
  font-size: .82rem;
}
.timeline-dot.active {
  background: #60a5fa;
  color: #08111f;
  border-color: #93c5fd;
}
.timeline-dot.target {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

@media (max-width: 1100px) {
  .hero-preview { max-width: 780px; margin-inline: auto; width: 100%; }
}
@media (max-width: 700px) {
  .hero-preview { border-radius: 28px; min-height: 0; padding: 16px; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .preview-chart-card { border-radius: 24px; padding: 12px; }
  .chart-card-head { flex-direction: column; align-items: flex-start; }
  .preview-chart { min-height: 230px; }
  .preview-kpis { grid-template-columns: 1fr; gap: 10px; }
  .preview-kpis div { min-height: 94px; border-radius: 22px; padding: 16px; }
  .preview-timeline { grid-template-columns: repeat(4, auto); justify-content: space-between; border-radius: 24px; }
  .preview-timeline > span:not(.timeline-dot) { display: none; }
}

/* Stronger header branding pass */
.header-shell { padding-left: 10px; }
.brand {
  gap: 8px;
  letter-spacing: -.035em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(37,99,235,.18);
  letter-spacing: -.06em;
}
.brand-text {
  color: var(--text) !important;
}
.main-nav a,
.nav-form button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}


/* Cleanup pass: simpler wordmark, non-overlapping demo metric, labelled age timeline */
.header-shell { padding-left: 14px; }
.brand {
  gap: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: -0.065em;
}
.brand-mark {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--blue) !important;
  box-shadow: none !important;
  letter-spacing: inherit !important;
}
.brand-text {
  display: inline !important;
  color: var(--text) !important;
  margin-left: -0.03em;
}
.brand:hover { background: var(--header-pill); }

.chart-card-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.chart-head-metrics {
  display: inline-grid;
  gap: 2px;
  padding: 9px 13px 10px;
  border-radius: 18px;
  background: rgba(15,23,42,.62);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  white-space: nowrap;
}
.chart-head-metrics span {
  color: rgba(203,213,225,.78);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
}
.chart-head-metrics strong {
  color: #fff;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.gap-callout { display: none; }

.preview-age-block {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 13px 14px 14px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
}
.preview-age-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 4px 10px;
  color: rgba(226,232,240,.92);
}
.preview-age-label span {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
  color: rgba(147,197,253,.9);
}
.preview-age-label strong {
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
}
.preview-age-block .preview-timeline {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.preview-timeline > span:not(.timeline-dot) {
  height: 4px;
  background: linear-gradient(90deg, rgba(96,165,250,.72), rgba(255,255,255,.26));
}
.timeline-dot { width: 42px; height: 42px; font-size: .9rem; }

@media (max-width: 700px) {
  .chart-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chart-head-metrics { width: 100%; }
  .preview-age-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .preview-age-block .preview-timeline { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
}


/* Brand refresh: clean symbol mark + readable wordmark, no letters inside the icon */
.brand {
  gap: 10px !important;
  padding: 7px 9px !important;
  border-radius: 16px !important;
  letter-spacing: 0 !important;
  text-decoration: none;
}
.brand:hover { background: var(--header-pill); }
.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, .20));
}
.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.brand-word-etf { color: var(--blue); }
.brand-word-planer { color: var(--text); margin-left: .035em; }
html[data-theme="dark"] .brand-word-planer { color: #f8fafc; }
html[data-theme="dark"] .brand-icon { filter: drop-shadow(0 10px 22px rgba(96, 165, 250, .20)); }

@media (max-width: 760px) {
  .brand-icon { width: 32px; height: 32px; border-radius: 11px; }
  .brand-word { font-size: 1.16rem; }
  .brand { padding: 6px 8px !important; }
}


/* Final brand/text polish: readable wordmark + more distinctive abstract mark */
.brand {
  gap: 11px !important;
  padding: 7px 10px !important;
  border-radius: 16px !important;
  letter-spacing: 0 !important;
}
.brand-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .18);
  filter: none !important;
}
.brand-word {
  display: inline-flex !important;
  align-items: baseline !important;
  font-size: 1.25rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
  white-space: nowrap !important;
}
.brand-word-etf {
  color: var(--blue) !important;
  margin: 0 !important;
}
.brand-word-planer {
  color: var(--text) !important;
  margin-left: .06em !important;
}
html[data-theme="dark"] .brand-word-planer { color: #f8fafc !important; }
.hero-copy h1 { max-width: 900px; }
.hero-copy .lead { max-width: 780px; }
.feature-card span { font-size: 1rem; }
@media (max-width: 760px) {
  .brand-icon { width: 34px !important; height: 34px !important; }
  .brand-word { font-size: 1.16rem !important; }
}

/* SEO pages: hub-and-spoke sections, readable articles, crawlable internal links */
.seo-hero {
  padding-bottom: clamp(34px, 5vw, 64px);
}
.seo-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.35rem, 5.6vw, 5rem);
}
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
}
.seo-breadcrumbs a {
  color: var(--blue);
}
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.seo-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.seo-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.seo-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}
.seo-card-kicker {
  color: var(--blue-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-tags span {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted-strong);
  font-size: .82rem;
  font-weight: 750;
}
.text-link {
  color: var(--blue);
  font-weight: 900;
}
.seo-layout {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.seo-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}
.seo-aside-card,
.seo-section-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.seo-aside-card {
  padding: 18px;
  display: grid;
  gap: 7px;
}
.seo-aside-card strong {
  color: var(--text);
}
.seo-aside-card span {
  color: var(--muted-strong);
  line-height: 1.45;
}
.seo-content {
  display: grid;
  gap: 14px;
}
.seo-section-card {
  padding: clamp(22px, 3vw, 34px);
}
.seo-section-card h2 {
  margin-bottom: 14px;
}
.seo-section-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
  font-size: 1.03rem;
}
.seo-section-card ul {
  margin-bottom: 0;
}
.seo-cta-card {
  background: linear-gradient(135deg, var(--blue-soft), var(--surface-raised));
  border-color: rgba(96, 165, 250, .45);
}
.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.seo-overview-stack {
  display: grid;
  gap: 16px;
}
.seo-overview-block h2 {
  margin-top: 6px;
}
.seo-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.seo-link-list a {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 5px;
}
.seo-link-list a:hover,
.seo-card:hover {
  border-color: rgba(96, 165, 250, .55);
  transform: translateY(-1px);
}
.seo-link-list span {
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 1100px) {
  .seo-card-grid,
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-layout { grid-template-columns: 1fr; }
  .seo-aside { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .seo-card-grid,
  .compact-grid,
  .seo-link-list,
  .seo-aside { grid-template-columns: 1fr; }
}

/* Dark-mode readability for SEO hub cards.
   These rules keep the light theme unchanged while preventing white card surfaces
   and low-contrast technical labels in dark mode. */
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .seo-aside-card,
html[data-theme="dark"] .seo-section-card,
html[data-theme="dark"] .seo-link-list a {
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .88));
  border-color: rgba(148, 163, 184, .26);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .seo-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(15, 23, 42, .94));
  border-color: rgba(96, 165, 250, .42);
}
html[data-theme="dark"] .seo-card h3,
html[data-theme="dark"] .seo-link-list strong,
html[data-theme="dark"] .seo-section-card h2,
html[data-theme="dark"] .seo-overview-block h2,
html[data-theme="dark"] .seo-aside-card strong {
  color: #f8fafc;
}
html[data-theme="dark"] .seo-card p,
html[data-theme="dark"] .seo-section-card p,
html[data-theme="dark"] .seo-link-list span,
html[data-theme="dark"] .seo-aside-card span {
  color: #cbd5e1;
}
html[data-theme="dark"] .seo-tags span {
  background: rgba(30, 41, 59, .88);
  border-color: rgba(148, 163, 184, .30);
  color: #e2e8f0;
}
html[data-theme="dark"] .seo-card-kicker,
html[data-theme="dark"] .seo-breadcrumbs a,
html[data-theme="dark"] .text-link {
  color: #93c5fd;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .seo-card,
  html[data-theme="auto"] .seo-aside-card,
  html[data-theme="auto"] .seo-section-card,
  html[data-theme="auto"] .seo-link-list a {
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .88));
    border-color: rgba(148, 163, 184, .26);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
  }
  html[data-theme="auto"] .seo-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(15, 23, 42, .94));
    border-color: rgba(96, 165, 250, .42);
  }
  html[data-theme="auto"] .seo-card h3,
  html[data-theme="auto"] .seo-link-list strong,
  html[data-theme="auto"] .seo-section-card h2,
  html[data-theme="auto"] .seo-overview-block h2,
  html[data-theme="auto"] .seo-aside-card strong {
    color: #f8fafc;
  }
  html[data-theme="auto"] .seo-card p,
  html[data-theme="auto"] .seo-section-card p,
  html[data-theme="auto"] .seo-link-list span,
  html[data-theme="auto"] .seo-aside-card span {
    color: #cbd5e1;
  }
  html[data-theme="auto"] .seo-tags span {
    background: rgba(30, 41, 59, .88);
    border-color: rgba(148, 163, 184, .30);
    color: #e2e8f0;
  }
  html[data-theme="auto"] .seo-card-kicker,
  html[data-theme="auto"] .seo-breadcrumbs a,
  html[data-theme="auto"] .text-link {
    color: #93c5fd;
  }
}

