/* Same family look as insightgyan.knowledgewala.com: indigo and teal, amber highlights, Nunito text, Lora headings. */
@font-face { font-family:'Nunito Variable'; font-style:normal; font-display:swap; font-weight:200 1000; src:url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family:'Lora Variable'; font-style:normal; font-display:swap; font-weight:400 700; src:url('/fonts/lora-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --bg:#fffdf8; --bg-alt:#f4f1ff; --surface:#ffffff; --text:#1d1b3a; --muted:#55526f; --primary:#3b34a8; --primary-dark:#2d2a6e; --on-primary:#ffffff;
  --accent:#ffb703; --on-accent:#231a00; --teal:#0b7a75; --border:#dcd8ee; --control:#6b6794; --focus:#b45309;
  --good:#0a6b3a; --good-soft:#e3f5ea; --warn:#fff3d6; --warn-line:#e8c660; --bad:#a1260d;
  --shadow:0 1px 2px rgba(29,27,58,.06),0 10px 28px rgba(45,42,110,.08);
  --font:'Nunito Variable',system-ui,-apple-system,'Segoe UI',Roboto,'Noto Sans',Arial,sans-serif;
  --font-head:'Lora Variable',Georgia,'Noto Serif','Times New Roman',serif;
}
:root[data-theme="dark"] {
  --bg:#12112b; --bg-alt:#1a1840; --surface:#1f1d4a; --text:#f1efff; --muted:#bdb9e0; --primary:#b9b3ff; --primary-dark:#0e0d24; --on-primary:#14123a;
  --accent:#ffc83d; --teal:#5fd6cf; --border:#3a3777; --control:#8c88cc; --focus:#ffd166;
  --good:#5fd08c; --good-soft:#12281c; --warn:#2a2412; --warn-line:#5a4a14; --bad:#ff8a73; --shadow:none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#12112b; --bg-alt:#1a1840; --surface:#1f1d4a; --text:#f1efff; --muted:#bdb9e0; --primary:#b9b3ff; --primary-dark:#0e0d24; --on-primary:#14123a;
    --accent:#ffc83d; --teal:#5fd6cf; --border:#3a3777; --control:#8c88cc; --focus:#ffd166;
    --good:#5fd08c; --good-soft:#12281c; --warn:#2a2412; --warn-line:#5a4a14; --bad:#ff8a73; --shadow:none;
  }
}

* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; scroll-padding-top:84px; font-size:100%; }
html[data-size="lg"] { font-size:112.5%; } html[data-size="xl"] { font-size:125%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { animation:none !important; transition:none !important; } }
body { margin:0; background:var(--bg); color:var(--text); font:1.0625rem/1.6 var(--font); -webkit-font-smoothing:antialiased; }
a { color:var(--primary); }
h1,h2,h3 { font-family:var(--font-head); line-height:1.25; margin:0 0 .5em; color:var(--text); }
.wrap { max-width:1060px; margin:0 auto; padding:0 18px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:1rem; top:-4rem; background:var(--accent); color:var(--on-accent); padding:.7rem 1rem; border-radius:8px; font-weight:800; z-index:100; }
.skip:focus { top:.75rem; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }

/* Header */
.top { position:sticky; top:0; z-index:50; background:var(--surface); border-bottom:1px solid var(--border); box-shadow:0 1px 0 rgba(0,0,0,.02); }
.top::before { content:""; display:block; height:4px; background:linear-gradient(90deg,var(--primary),var(--teal),var(--accent)); }
.bar { display:flex; align-items:center; gap:14px; min-height:68px; padding-top:6px; padding-bottom:6px; }
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--text); }
.logo { width:46px; height:46px; display:block; flex:none; }
.brand-text { display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong { font-family:var(--font-head); font-size:1.3rem; color:var(--primary); white-space:nowrap; }
.brand-text small { color:var(--muted); font-weight:700; letter-spacing:.02em; font-size:.82rem; }
.nav-toggle { display:none; margin-left:auto; min-width:44px; min-height:44px; border:2px solid var(--control); background:var(--surface); color:var(--text); border-radius:10px; font:inherit; font-weight:800; padding:0 .8rem; cursor:pointer; }
.menu { display:flex; align-items:center; gap:12px; flex:1; justify-content:space-between; }
.nav { display:flex; gap:2px; }
.nav a { color:var(--text); text-decoration:none; padding:.5rem .75rem; border-radius:10px; font-weight:700; min-height:44px; display:inline-flex; align-items:center; white-space:nowrap; }
.nav a:hover { background:var(--bg-alt); }
.tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tool { min-width:44px; min-height:44px; padding:0 .55rem; border:2px solid var(--control); background:var(--surface); color:var(--text); border-radius:10px; font:inherit; font-weight:800; line-height:1; cursor:pointer; }
.tool[aria-pressed="true"] { background:var(--primary); color:var(--on-primary); border-color:var(--primary); }
.lang { display:inline-flex; border:2px solid var(--control); border-radius:10px; overflow:hidden; }
.lang-btn { background:var(--surface); color:var(--text); border:0; padding:0 .7rem; min-height:40px; font:inherit; font-weight:800; cursor:pointer; }
.lang-btn[aria-pressed="true"] { background:var(--primary); color:var(--on-primary); }
.draft { background:var(--warn); border-bottom:1px solid var(--warn-line); padding:8px 16px; text-align:center; font-size:.92rem; }
@media (max-width:900px) {
  .nav-toggle { display:inline-block; }
  .menu { display:none; position:absolute; left:0; right:0; top:100%; background:var(--surface); border-bottom:1px solid var(--border); padding:10px 18px 16px; flex-direction:column; align-items:stretch; box-shadow:var(--shadow); }
  .menu.open { display:flex; }
  .nav { flex-direction:column; } .nav a { width:100%; }
  .tools { justify-content:flex-start; }
  .brand-text small { display:none; }
}
.no-js .menu { display:flex; position:static; flex-direction:column; box-shadow:none; }

/* Buttons */
.btn { min-height:48px; padding:.7rem 1.4rem; border:2px solid transparent; border-radius:999px; background:var(--primary); color:var(--on-primary); font:inherit; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; }
.btn:hover { background:var(--primary-dark); } :root[data-theme="dark"] .btn:hover { background:#d4d0ff; }
.btn-tg { background:#1d8fcb; color:#fff; min-height:44px; padding:.45rem 1rem; }
.btn-main { min-width:220px; }
.btn-accent { background:var(--accent); color:var(--on-accent); } .btn-accent:hover { background:#ffc633; }
.btn[disabled], button[disabled] { opacity:.6; cursor:wait; }
.btn-ghost { background:var(--surface); color:var(--primary); border-color:var(--control); } .btn-ghost:hover { background:var(--bg-alt); }

/* Hero */
.hero { padding:38px 0 14px; background:linear-gradient(180deg,var(--bg-alt),var(--bg)); }
.hero .wrap { display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; }
.hero-logo { width:168px; height:168px; filter:drop-shadow(0 12px 22px rgba(45,42,110,.25)); }
@media (max-width:760px) { .hero .wrap { grid-template-columns:1fr; } .hero-logo { display:none; } }
.eyebrow { display:inline-block; background:var(--surface); border:1px solid var(--border); color:var(--teal); font-weight:800; letter-spacing:.06em; text-transform:uppercase; font-size:.78rem; padding:.25rem .8rem; border-radius:999px; margin:0 0 .8rem; }
h1 { font-size:clamp(1.9rem,4.6vw,2.75rem); letter-spacing:-.01em; margin:0 0 .45em; }
h2 { font-size:clamp(1.45rem,3vw,1.85rem); }
.lead { color:var(--muted); max-width:660px; margin:0 0 1rem; font-size:1.1rem; }
.trust { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0 0 .8rem; }
.trust li { background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:.2rem .85rem; font-size:.92rem; font-weight:700; }
.trust li::before { content:"✓ "; color:var(--teal); font-weight:900; }
.status { color:var(--muted); font-size:.92rem; min-height:1.4em; margin:0 0 6px; }

/* Advisor card */
.advisor { margin-top:14px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); padding:20px; }
.tabs { display:flex; gap:6px; margin-bottom:16px; border-bottom:2px solid var(--border); }
.tabs button { background:none; border:0; border-bottom:4px solid transparent; margin-bottom:-2px; color:var(--muted); padding:.6rem .9rem; min-height:48px; font:inherit; font-weight:800; cursor:pointer; }
.tabs button[aria-selected="true"] { color:var(--primary); border-bottom-color:var(--accent); }
.field { margin:0 0 16px; border:0; padding:0; min-width:0; }
label, legend { display:block; font-weight:800; margin-bottom:6px; padding:0; }
input[type=number], select, textarea, input[type=search], input[type=text] { width:100%; padding:.7rem .85rem; font:inherit; color:var(--text); background:var(--bg); border:2px solid var(--control); border-radius:12px; min-height:48px; }
textarea { resize:vertical; }
.stepper { display:flex; gap:8px; max-width:280px; }
.stepper button { width:52px; min-height:48px; border:2px solid var(--control); background:var(--surface); color:var(--text); border-radius:12px; font-size:1.4rem; font-weight:800; cursor:pointer; }
.stepper input { text-align:center; font-weight:800; font-size:1.15rem; }
.pills { display:flex; flex-wrap:wrap; gap:8px; }
.pill { margin:0; font-weight:700; cursor:pointer; }
.pill input { position:absolute; opacity:0; pointer-events:none; }
.pill span { display:inline-flex; align-items:center; min-height:46px; padding:0 1rem; border:2px solid var(--control); border-radius:999px; background:var(--surface); }
.pill input:checked + span { background:var(--bg-alt); border-color:var(--primary); color:var(--primary); }
.pill input:checked + span::before { content:"✓ "; margin-right:4px; }
.pill input:focus-visible + span { outline:3px solid var(--focus); outline-offset:2px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .grid2 { grid-template-columns:1fr; } .btn-main { width:100%; } }
.hint { color:var(--muted); font-size:.92rem; margin:4px 0 14px; }
.row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.busy, #rep-status { color:var(--muted); font-weight:700; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Result */
.result { margin:20px 0; display:grid; gap:14px; }
.best { border:3px solid var(--primary); background:var(--surface); border-radius:20px; padding:22px; box-shadow:var(--shadow); position:relative; }
.best::before { content:""; position:absolute; left:22px; top:-3px; width:84px; height:6px; background:var(--accent); border-radius:0 0 6px 6px; }
.best .kicker { color:var(--teal); font-weight:800; font-size:.92rem; margin:6px 0 2px; text-transform:uppercase; letter-spacing:.05em; }
.best .name { font-size:1.65rem; margin:0; }
.best .fee { font-family:var(--font); font-size:2.8rem; font-weight:900; line-height:1.1; margin:6px 0 2px; color:var(--primary); }
.best .tiernote { color:var(--muted); font-size:.95rem; margin:0 0 12px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; padding:0; list-style:none; }
.chip { font-size:.9rem; font-weight:700; border-radius:999px; padding:.15rem .7rem; background:var(--bg-alt); }
.chip.good { background:var(--good-soft); color:var(--good); }
.chip.warn { background:var(--warn); border:1px solid var(--warn-line); }
.best .meta { color:var(--muted); font-size:.92rem; margin:12px 0 0; }
.save { color:var(--good); font-weight:800; margin:0 0 10px; }
.ai { border:2px dashed var(--control); border-radius:14px; padding:12px 16px; background:var(--surface); }
.ai strong { display:inline-block; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); margin-bottom:2px; }
.ai p { margin:2px 0 4px; } .ai small { color:var(--muted); }
.tablewrap { overflow-x:auto; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
table { border-collapse:collapse; width:100%; min-width:540px; }
th, td { text-align:left; padding:.7rem .85rem; border-bottom:1px solid var(--border); vertical-align:top; }
th { font-size:.85rem; color:var(--muted); font-weight:800; background:var(--bg-alt); }
tr:last-child td { border-bottom:0; }
td.fee { font-weight:900; white-space:nowrap; color:var(--primary); }
.badge { font-size:.82rem; font-weight:700; border-radius:8px; padding:.1rem .5rem; white-space:nowrap; display:inline-block; }
.badge.ok { background:var(--good-soft); color:var(--good); }
.badge.bad { background:var(--warn); border:1px solid var(--warn-line); }
.badge.na { background:var(--bg-alt); color:var(--muted); }
.notes { display:grid; gap:8px; }
.note { background:var(--warn); border:1px solid var(--warn-line); border-radius:12px; padding:.7rem .9rem; margin:0; }
.excluded { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:2px 16px; }
.excluded summary { cursor:pointer; padding:.7rem 0; font-weight:800; min-height:48px; }
.excluded ul { margin:0 0 10px; padding-left:20px; color:var(--muted); }
.share { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.share .btn { min-height:44px; font-size:.95rem; padding:.4rem 1rem; }
.msgcard { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px; white-space:pre-line; }

/* Sections */
.block { margin-top:52px; }
.sub { color:var(--muted); margin:0 0 16px; }
.searchrow { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.searchrow input { max-width:360px; }
.count { color:var(--muted); font-size:.92rem; font-weight:700; }
.plist { list-style:none; margin:0; padding:8px; display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:8px; max-height:480px; overflow:auto; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.plist li { padding:.55rem .75rem; border-radius:10px; display:flex; flex-direction:column; gap:2px; }
.plist li.cmp { background:var(--bg-alt); border-left:4px solid var(--teal); }
.plist a { font-weight:800; word-break:break-word; }
.plist .tag { font-size:.82rem; color:var(--good); font-weight:800; }
.plist .host { color:var(--muted); font-size:.85rem; }
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; list-style:none; counter-reset:s; padding:0; margin:14px 0; }
.steps li { counter-increment:s; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px 18px 18px 64px; position:relative; display:flex; flex-direction:column; gap:4px; }
.steps li::before { content:counter(s); position:absolute; left:16px; top:16px; width:36px; height:36px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-weight:900; font-size:1.1rem; }
.steps span { color:var(--muted); }
.fine { color:var(--muted); font-size:.9rem; }
#faq-list details { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:2px 18px; margin-bottom:8px; }
#faq-list summary { cursor:pointer; padding:.8rem 0; font-weight:800; min-height:48px; }
#faq-list p { margin:0 0 14px; color:var(--muted); }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.pcard { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:8px; border-top:4px solid var(--teal); }
.pcard h3 { margin:0; font-size:1.1rem; } .pcard p { margin:0; color:var(--muted); flex:1; font-size:.96rem; }
.pcard .btn { align-self:flex-start; min-height:44px; padding:.4rem 1.1rem; font-size:.95rem; }

/* Footer */
.foot { margin-top:64px; background:var(--primary-dark); color:#e8e6ff; padding:0 0 18px; }
.foot::before { content:""; display:block; height:4px; background:linear-gradient(90deg,var(--primary),var(--teal),var(--accent)); margin-bottom:34px; }
:root[data-theme="dark"] .foot { background:#0e0d24; }
.foot a { color:#e8e6ff; }
.fgrid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:28px; }
@media (max-width:860px) { .fgrid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .fgrid { grid-template-columns:1fr; } }
.foot h3 { font-family:var(--font); font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:#ffd166; margin:0 0 10px; }
.foot ul { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.foot li a { display:inline-block; padding:.45rem 0; min-height:44px; text-decoration:none; font-weight:600; }
.foot li a:hover { text-decoration:underline; }
.brandline { display:flex; align-items:center; gap:10px; margin:0 0 10px; font-family:var(--font-head); font-size:1.25rem; color:#fff; }
.brandline img { width:40px; height:40px; }
.foot .fine { color:#c9c5f0; }
.legal { color:#c9c5f0; font-size:.88rem; padding-top:18px; margin-top:22px; border-top:1px solid rgba(255,255,255,.18); display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:space-between; }
