/* ==========================================================
   Shreeji Capital Services Pvt Ltd — site styles
   Colours are taken from the company logo:
   navy wordmark, orange swoosh, green + blue bars, amber arrow
   ========================================================== */
:root {
  --navy: #1b3a6b;
  --navy-deep: #0f2547;
  --blue: #1f5cb5;
  --green: #2e9b30;
  --orange: #e8731c;
  --orange-btn: #cf5d0b;      /* darker orange so white text passes contrast */
  --orange-btn-h: #b84f05;
  --amber: #f6a81a;
  --ink: #1c2433;
  --muted: #5b6577;
  --line: #dde4f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-warm: #fff7ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(27, 58, 107, .10);
  --shadow-sm: 0 2px 10px rgba(27, 58, 107, .08);
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Source Serif 4", "Cambria", "Georgia", "Times New Roman", serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.soft { background: var(--bg-soft); }
.section.warm { background: var(--bg-warm); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-btn); margin-bottom: .75rem;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: 0 6px 16px rgba(207, 93, 11, .28); }
.btn-primary:hover { background: var(--orange-btn-h); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy-deep); color: #dbe5f7; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

/* Brand lock-up: logo mark + live text (crisp at any size) */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.85rem; letter-spacing: -.01em; color: var(--navy); }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--orange-btn); margin-top: 4px; white-space: nowrap; }
.brand:hover { color: var(--navy); }

.brand { flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button {
  white-space: nowrap;
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); background: none; border: 0;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.nav > a:hover, .nav .dd > button:hover, .nav a.active, .nav .dd.active > button { color: var(--navy); background: var(--bg-soft); }
.nav a.active, .nav .dd.active > button { font-weight: 700; }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.dd-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.dd-menu small { display: block; color: var(--muted); font-size: .78rem; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 1260px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; display: none; max-height: calc(100vh - 80px); overflow: auto;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 13px 10px; width: 100%; justify-content: space-between; }
  .dd-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu { display: block; }
  .nav-cta { margin: 8px 0 0; }
  .topbar .tb-right { display: none; }
}
@media (max-width: 480px) {
  .brand img { height: 44px; }
  .brand-name { font-size: 1.55rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .1em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f1f6ff 0%, #ffffff 100%); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%;
  border: 46px solid rgba(232, 115, 28, .10);
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%;
  border: 38px solid rgba(31, 92, 181, .08);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.hero h1 .accent { color: var(--orange-btn); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip i.g { background: var(--green); } .chip i.o { background: var(--orange); } .chip i.b { background: var(--blue); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.hero-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.hero-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 32px; } }

.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #24508f); color: #fff; padding: clamp(36px, 5vw, 64px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 34px solid rgba(246, 168, 26, .16); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d3def2; max-width: 68ch; margin: 0; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--amber); }
.crumbs { font-size: .86rem; margin-bottom: 14px; color: #b8c8e6; }
.crumbs a { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d2ec; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card .more { color: var(--orange-btn); font-weight: 600; font-size: .95rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.icon-badge svg { width: 28px; height: 28px; }
.bg-green { background: linear-gradient(135deg, #36b038, #2e9b30); }
.bg-blue { background: linear-gradient(135deg, #2a6fd1, #1f5cb5); }
.bg-orange { background: linear-gradient(135deg, #f58a33, #e8731c); }
.bg-navy { background: linear-gradient(135deg, #2a4f8c, #1b3a6b); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.service-card li { padding: 6px 0 6px 28px; position: relative; color: var(--ink); font-size: .96rem; }
.service-card li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.service-card { display: flex; flex-direction: column; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { padding: 7px 0 7px 30px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: #fff; padding: 22px 18px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.stats span { font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step .n { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--orange); line-height: 1; margin-bottom: 10px; display: block; }
.step h3 { font-size: 1.1rem; margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Calculator tiles */
.calc-tile { display: flex; gap: 16px; align-items: flex-start; }
.calc-tile .icon-badge { flex: none; margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.calc-tile .icon-badge svg { width: 24px; height: 24px; }
.calc-tile h3 { font-size: 1.1rem; margin-bottom: .2em; }
.calc-tile p { font-size: .92rem; margin: 0 0 .4em; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.6rem; color: var(--orange-btn); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--blue)); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; border: 30px solid rgba(246, 168, 26, .18); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d3def2; margin: 0; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item .icon-badge { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.info-item .icon-badge svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.info-item p { margin: 0; color: var(--ink); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label.f { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 14px; }
.f input, .f select, .f textarea, .num-input {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #c9d5ea; border-radius: 10px; padding: 12px 14px; margin-top: 6px;
}
.f input:focus, .f select:focus, .f textarea:focus, .num-input:focus { border-color: var(--blue); outline: 3px solid rgba(31, 92, 181, .18); }
.f textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 10px; font-size: .94rem; margin-top: 14px; display: none; }
.alert.show { display: block; }
.alert.ok { background: #e8f6ea; color: #1d5d20; border: 1px solid #bde0c0; }
.alert.warn { background: #fff4e0; color: #7a4a00; border: 1px solid #f2d59b; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* Notices */
.notice { background: var(--bg-warm); border: 1px solid #f2d9bd; border-left: 4px solid var(--orange); border-radius: 10px; padding: 14px 18px; font-size: .9rem; color: #5a4020; }
.risk-line { font-size: .86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3d0ea; padding: 56px 0 0; font-size: .94rem; }
.site-footer a { color: #e4ecfb; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand { background: #fff; display: inline-flex; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand img { height: 46px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding: 22px 0 30px; font-size: .8rem; color: #98a9cb; }
.footer-legal p { margin-bottom: .7em; }
.footer-legal strong { color: #d4def2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.announce { background: var(--amber); color: #3a2600; text-align: center; font-weight: 600; font-size: .92rem; padding: 8px 16px; }
.announce a { color: #3a2600; }
.topbar .team-login { font-weight: 600; text-decoration: underline; }
.nav-team-m { display: none; }
@media (max-width: 1260px) { .nav-team-m { display: block; padding: 13px 10px; color: var(--muted); font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); margin-top: 6px; } }

/* Floating "open account" prompt, bottom-left */
.fab-open { position: fixed; left: 18px; bottom: 18px; z-index: 95; display: flex; align-items: stretch; background: linear-gradient(135deg, #2a8a2e, #1f6f26); color: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(15, 37, 71, .35); max-width: calc(100vw - 100px); transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.fab-open.show { transform: none; opacity: 1; pointer-events: auto; }
.fab-open a { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; color: #fff; text-decoration: none; }
.fab-open a:hover { color: #fff; }
.fab-open .fab-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.fab-open .fab-ic svg { width: 22px; height: 22px; }
.fab-txt { display: flex; flex-direction: column; line-height: 1.25; }
.fab-txt strong { font-size: .95rem; }
.fab-txt small { font-size: .74rem; opacity: .9; }
.fab-open:hover { box-shadow: 0 14px 32px rgba(15, 37, 71, .45); }
.fab-x { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; padding: 0 12px 0 6px; cursor: pointer; opacity: .8; align-self: flex-start; margin-top: 6px; }
.fab-x:hover { opacity: 1; }
@media (max-width: 560px) { .fab-txt small { display: none; } .fab-txt strong { font-size: .88rem; } .fab-open { left: 12px; bottom: 12px; } }
.nav-signin { color: var(--navy); font-weight: 600; font-size: .95rem; padding: 10px 12px; text-decoration: none; white-space: nowrap; border-radius: 8px; }
.nav-signin:hover { background: var(--bg-soft); color: var(--navy); }
@media (max-width: 1120px) { .nav-signin { padding: 13px 10px; } }

/* Floating WhatsApp (shown only when a number is configured) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ==========================================================
   Calculators
   ========================================================== */
.calc { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc > *, .two-col > *, .contact-grid > *, .hero .container > *, .cta-band > * { min-width: 0; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.steps-4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .two-col, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 24px; }
.panel h3 { font-size: 1.1rem; margin-bottom: 14px; }
.field { margin-bottom: 22px; }
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field-top label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.inp { display: inline-flex; align-items: center; background: var(--bg-soft); border: 1.5px solid #c9d5ea; border-radius: 10px; padding: 0 10px; min-width: 0; }
.inp:focus-within { border-color: var(--blue); outline: 3px solid rgba(31, 92, 181, .15); background: #fff; }
.inp span { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.inp input { border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--navy); text-align: right; width: 118px; padding: 8px 4px; outline: none; -moz-appearance: textfield; }
.inp input::-webkit-outer-spin-button, .inp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inp.sm input { width: 70px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) var(--p, 50%), #dbe3f1 var(--p, 50%)); outline: none; margin: 8px 0 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); cursor: pointer; }
.range-lims { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.results.r2 { grid-template-columns: repeat(2, 1fr); }
.results.r5 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .results, .results.r5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .results, .results.r2, .results.r5 { grid-template-columns: 1fr; } }
.res { background: var(--bg-soft); border-radius: 14px; padding: 16px 16px; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.res.g { border-top-color: var(--green); } .res.o { border-top-color: var(--orange); } .res.n { border-top-color: var(--navy); }
.res small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.res strong { display: block; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--navy); line-height: 1.2; word-break: break-word; }
.res em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.res.hero-res { background: linear-gradient(135deg, var(--navy), var(--blue)); border: 0; }
.res.hero-res small, .res.hero-res em { color: #cfe0fb; }
.res.hero-res strong { color: #fff; }

.viz { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .viz { grid-template-columns: 1fr; justify-items: center; } .viz .chart-wrap { width: 100%; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }

.tbl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.tbl-head h3 { margin: 0; }
.tbl-scroll { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 560px; }
table.data th { position: sticky; top: 0; background: var(--navy); color: #fff; text-align: right; padding: 10px 12px; font-weight: 600; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; z-index: 1; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { padding: 8px 12px; text-align: right; border-bottom: 1px solid #edf1f8; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr:nth-child(even) td { background: #f8fafd; }
table.data td.hl { font-weight: 700; color: var(--navy); }
table.data td input { width: 110px; font: inherit; text-align: right; border: 1.5px solid #c9d5ea; border-radius: 8px; padding: 5px 8px; background: #fffdf6; }
table.data td input:focus { border-color: var(--blue); outline: none; }
table.data tr.neg td { color: #b3261e; }
.tbl-hint { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.assume { font-size: .84rem; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.callout { background: #fff4e0; border: 1px solid #f2d59b; color: #7a4a00; border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; display: none; }
.callout.show { display: block; }
.callout.good { background: #e8f6ea; border-color: #bde0c0; color: #1d5d20; }
.tabs { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; font-size: .88rem; border: 0; background: none; color: var(--navy); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--navy); color: #fff; }
.seg-note { font-size: .86rem; color: var(--muted); }

.mini-calc .field { margin-bottom: 16px; }
.mini-calc .results { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.mini-calc .res { padding: 12px 14px; }
.mini-calc .res strong { font-size: 1.15rem; }

/* prose pages */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 520px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--bg-soft); color: var(--navy); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
@media print { .site-header, .site-footer, .cta-band, .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
