/* ===========================================================================
   The Core — Calculators. Light, airy, mobile-first.
   Tokens from the Earnings design system (ink, pink, teal, blue; Inter + Mona Sans, per thecore.in).
   =========================================================================== */
:root {
  --bg: #f1f1f1; --ink: #0f0f14; --ink-2: #2a2a33; --muted: #545E69; --muted-2: #5f6873;
  --line: #dfdfdf; --line-2: #e2e2e9; --surface: #f8f8fb; --surface-2: #f2f2f7;
  --pink: #EA246B; --pink-dk: #c21760; --teal: #00A880; --blue: #1772DC; --amber: #d98a0b; --violet: #7a4df0; --red: #dc2626;
  --t0: #fdeaf2; --t1: #e8eefe; --t2: #e3f6f1; --t3: #fdf1dc; --t4: #efe9fd; --t5: #ececf2;
  --c0: #EA246B; --c1: #1772DC; --c2: #00A880; --c3: #d98a0b; --c4: #7a4df0; --c5: #3a3a48;
  --r: 16px; --r-s: 12px;
  --shadow: 0 1px 2px rgba(20,20,40,.04), 0 6px 20px -8px rgba(20,20,40,.06);
  --shadow-up: 0 2px 4px rgba(20,20,40,.04), 0 14px 32px -12px rgba(20,20,40,.14);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif; --font-head: "Mona Sans", "Inter", sans-serif;
  --font-serif: "Mona Sans", sans-serif;
  --hh: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body { font-size: 15px; line-height: 1.55; }
h1,h2,h3,h4,.hero .v,.stat .v { font-family: var(--font-head); margin: 0; letter-spacing: -0.022em; color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -0.03em; } h2,h3 { font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.ic { flex: none; display: block; }
.tn { font-variant-numeric: tabular-nums; }
.container-core { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 900px) { .container-core { padding: 0 16px; } :root { --hh: 54px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container-core { height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .div { width: 1px; height: 22px; background: var(--line-2); }
.brand .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.brand .lbl small { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.brand .lbl b { font-size: 14px; font-weight: 600; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--surface-2); color: var(--ink); }
@media (max-width: 640px) { .brand .div, .brand .lbl { display: none; } .nav a.ext { display: none; } .nav a { padding: 9px 12px; } }

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .container-core { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; font-size: 12px; color: var(--muted); }
.site-footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.site-footer p { margin: 0; line-height: 1.65; max-width: 380px; }
@media (max-width: 800px) { .site-footer .container-core { grid-template-columns: 1fr; gap: 20px; } }

/* shared */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--muted); }
.eyebrow .ib { width: 26px; height: 26px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin: 22px 0 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { opacity: .5; }
.lede { color: var(--muted); font-size: 16px; max-width: 900px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-pink { background: var(--t0); color: var(--pink-dk); } .chip-ink { background: var(--surface-2); color: var(--ink-2); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pos { color: var(--teal); } .neg { color: var(--red); } .muted { color: var(--muted); }
.ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.g0 { background: var(--t0); color: var(--c0); } .g1 { background: var(--t1); color: var(--c1); } .g2 { background: var(--t2); color: var(--c2); }
.g3 { background: var(--t3); color: var(--c3); } .g4 { background: var(--t4); color: var(--c4); } .g5 { background: var(--t5); color: var(--c5); }

/* calculator page */
.calc-head { padding-bottom: 4px; }
.calc-head h1 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.1; margin-top: 12px; }
.calc-grid { display: grid; grid-template-columns: 372px 1fr; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; gap: 16px; } }
.inputs { padding: 18px 20px 22px; position: sticky; top: calc(var(--hh) + 16px); max-height: calc(100vh - var(--hh) - 32px); overflow-y: auto; scroll-margin-top: calc(var(--hh) + 10px); }
@media (max-width: 960px) { .inputs { position: static; max-height: none; padding: 16px; } }
.inputs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inputs-top h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.inputs-top .acts { display: flex; gap: 6px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 0; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.linkbtn:hover { background: var(--surface-2); } .linkbtn:active { transform: scale(.97); }
.grp-title { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.grp-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.grp-title:first-of-type { margin-top: 14px; border-top: 0; padding-top: 0; }
.field { margin-top: 16px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label .muted { font-weight: 500; font-size: 12px; color: var(--pink-dk); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.inwrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; min-height: 48px; }
.inwrap:hover { border-color: var(--line-2); }
.inwrap:focus-within { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(15,15,20,.06); }
.inwrap span { padding: 0 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.inwrap span:last-child:not(:first-child) { padding: 0 14px 0 0; font-size: 13px; }
.inwrap input, .field select, .field input[type=text] { font: inherit; font-size: 16px; font-weight: 600; border: 0; outline: 0; background: transparent; width: 100%; padding: 12px 14px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; -moz-appearance: textfield; }
.inwrap input::-webkit-outer-spin-button, .inwrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inwrap span:first-child + input { padding-left: 6px; }
.inwrap input:not(:last-child) { padding-right: 6px; }
.field select { border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e7a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; padding-right: 40px; min-height: 48px; cursor: pointer; }
.field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,15,20,.06); background-color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--line); border-radius: 99px; margin: 16px 0 6px; outline: 0; touch-action: pan-y; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); box-shadow: 0 2px 6px rgba(234,36,107,.3); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); box-shadow: 0 2px 6px rgba(234,36,107,.3); cursor: grab; }
.field.check { background: var(--surface); border-radius: var(--r-s); padding: 0 14px; }
.field.check label { cursor: pointer; justify-content: flex-start; align-items: center; margin: 0; min-height: 48px; gap: 10px; font-weight: 500; }
.field.check input { accent-color: var(--pink); width: 20px; height: 20px; margin: 0; }

/* results */
.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; scroll-margin-top: calc(var(--hh) + 10px); }
.hero { position: relative; overflow: hidden; padding: 24px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 100% 0%, rgba(234,36,107,.10), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(23,114,220,.08), transparent 55%), #fff; box-shadow: var(--shadow); }
.hero .ib { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 14px; }
.hero .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding-right: 56px; }
.hero .v { font-size: clamp(34px, 7vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero .s { color: var(--ink-2); opacity: .75; font-size: 14.5px; margin-top: 10px; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 521px) and (max-width: 1100px) { .stats:has(> :nth-child(4):last-child) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } }
.stat { padding: 14px 14px 16px; }
.stat .ib { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 10px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.stat .v { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.stat.pos .v { color: var(--teal); } .stat.neg .v { color: var(--red); }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: var(--r); font-size: 14px; color: var(--ink-2); }
.insight .ib { width: 30px; height: 30px; border-radius: 9px; background: var(--t3); color: var(--c3); }
.insight p { margin: 4px 0 0; }
.panel { padding: 18px 18px 14px; }
.panel h3 { font-size: 15px; margin-bottom: 2px; }
.panel .sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 8px 0 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart text { font-family: var(--font-sans); font-size: 11px; fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -100%); z-index: 5; display: none; line-height: 1.5; box-shadow: var(--shadow-up); }
.tip b { font-weight: 600; } .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.twrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.data-table th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; }
table.data-table th:first-child { border-radius: 10px 0 0 10px; } table.data-table th:last-child { border-radius: 0 10px 10px 0; }
table.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data-table th:not(:first-child), table.data-table td:not(:first-child) { text-align: right; }
table.data-table th:first-child, table.data-table td:first-child { position: sticky; left: 0; }
table.data-table td:first-child { background: #fff; font-weight: 500; }
table.data-table th:first-child { background: var(--surface); z-index: 1; }
table.data-table tbody tr:last-child td { border-bottom: 0; }
table.data-table tr.total td { font-weight: 700; background: var(--surface); }
table.data-table td.win { color: var(--teal); font-weight: 700; } table.data-table td.lose { color: var(--red); }
.notes { font-size: 12px; color: var(--muted); padding: 0 4px; line-height: 1.6; }
.notes p { margin: 0 0 4px; }

/* mobile sticky result bar */
.mbar { display: none; }
@media (max-width: 960px) {
  body.has-mbar { padding-bottom: 84px; }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: rgba(15,15,20,.94); color: #fff; border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -8px rgba(15,15,20,.45); }
  .mbar .t { min-width: 0; } .mbar small { display: block; font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .mbar button { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 11px 14px; border-radius: 14px; cursor: pointer; }
  .mbar button:active { transform: scale(.97); }
}

/* long-form content */
.prose { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .prose { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; } }
.prose h2 { font-size: 20px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; }
.prose ul { padding-left: 18px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; margin-bottom: 8px; background: #fff; }
.faq details[open] { background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; min-height: 24px; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.disclaimer { margin-top: 28px; display: flex; gap: 10px; font-size: 12px; color: var(--muted); padding: 14px 16px; background: var(--surface); border-radius: var(--r); line-height: 1.6; }
.disclaimer .ic { margin-top: 2px; color: var(--teal); }
.related { margin-top: 40px; }
.related h2 { font-size: 18px; margin-bottom: 14px; }

/* hub */
.hub-hero { padding: 40px 0 8px; }
.hub-hero h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.04; max-width: 820px; margin-top: 12px; }
.hub-hero h1 em { font-family: var(--font-serif); font-style: normal; font-weight: 700; letter-spacing: -0.01em; color: var(--pink); }
.hub-hero .lede { font-size: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface); padding: 6px 12px 6px 9px; border-radius: 999px; }
.trust .ic { color: var(--teal); }
.hub-tools { position: sticky; top: var(--hh); z-index: 20; margin: 20px -16px 0; padding: 10px 16px 8px; background: rgba(241,241,241,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 901px) { .hub-tools { margin: 24px 0 0; padding: 10px 0; } }
.search { position: relative; max-width: 520px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px 13px 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); outline: 0; transition: border-color .15s, background .15s, box-shadow .15s; }
.search input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(15,15,20,.06); }
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.pills::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .pills { margin: 10px 0 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; } }
.pill { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px 9px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.pill .ic { opacity: .7; } .pill:hover { border-color: var(--line-2); background: var(--surface); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); } .pill.on .ic { opacity: 1; }
.sec { margin-top: 30px; scroll-margin-top: calc(var(--hh) + 120px); }
.sec > h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.sec > h2 .ib { width: 32px; height: 32px; border-radius: 10px; }
.sec > h2 span.n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 999px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: flex-start; gap: 14px; padding: 16px; transition: border-color .16s, box-shadow .16s, transform .16s; }
.tile:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); border-color: var(--line-2); }
.tile:active { transform: scale(.99); }
.tile .tb { flex: 1; min-width: 0; }
.tile h3 { font-size: 16px; line-height: 1.25; }
.tile p { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--muted-2); }
.tile .chev { color: var(--muted-2); align-self: center; transition: transform .16s, color .16s; } .tile:hover .chev { transform: translateX(3px); color: var(--ink); }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; gap: 10px; } .tile { padding: 14px; } .tile .ib { width: 44px; height: 44px; } }
.empty { padding: 40px; text-align: center; color: var(--muted); display: none; }
@media print { .site-header, .site-footer, .inputs, .related, .nav, .mbar { display: none; } .calc-grid { display: block; } }
@media (max-width: 600px) { .trust span:nth-child(3) { display: none; } .hub-hero { padding-top: 28px; } }
.brand img { height: 34px; width: auto; display: block; border-radius: 6px; }
@media (max-width: 640px) { .brand img { height: 30px; } }

/* ---- Core signature (distinct identity) ---- */
body { background: var(--bg); }
h1 { position: relative; }
h1::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--pink), var(--blue)); }
.eyebrow { background: var(--ink); color: #fff; padding: 4px 12px 4px 4px; border-radius: 999px; letter-spacing: .1em; }
.eyebrow .ib { background: #fff !important; }
.card { border: 0; box-shadow: var(--shadow), inset 0 3px 0 var(--pink); }
.inputs { box-shadow: var(--shadow-up), inset 0 3px 0 var(--pink); }
.hero { background: radial-gradient(90% 140% at 100% 0%, rgba(234,36,107,.45), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(23,114,220,.35), transparent 60%), var(--ink); color: #fff; border: 0; box-shadow: 0 18px 40px -18px rgba(15,15,20,.5); }
.hero .k, .hero .s { color: rgba(255,255,255,.72); opacity: 1; }
.hero .v { color: #fff; }
.hero .ib { background: rgba(255,255,255,.14) !important; color: #fff !important; }

/* ---- Core 4-colour borders: pink, blue, teal, amber, by section ---- */
.card { --sc: var(--pink); border: 1.5px solid color-mix(in srgb, var(--sc) 45%, #fff); border-top: 4px solid var(--sc); box-shadow: var(--shadow); }
.inputs { --sc: var(--pink); }
.stat:nth-child(4n+1), .tile:nth-child(4n+1) { --sc: var(--pink); }
.stat:nth-child(4n+2), .tile:nth-child(4n+2) { --sc: var(--blue); }
.stat:nth-child(4n+3), .tile:nth-child(4n+3) { --sc: var(--teal); }
.stat:nth-child(4n+4), .tile:nth-child(4n+4) { --sc: var(--amber); }
.panel:nth-of-type(4n+1) { --sc: var(--blue); }
.panel:nth-of-type(4n+2) { --sc: var(--teal); }
.panel:nth-of-type(4n+3) { --sc: var(--amber); }
.panel:nth-of-type(4n+4) { --sc: var(--pink); }
.hero { border: 0; border-top: 4px solid var(--pink); }

/* ---- thecore.in alignment: grey canvas, white cards, black + green pills, 100px buttons ---- */
:root { --teal: #00A880; --green: #09a981; }
.card { border-radius: 20px; }
.hero { background: radial-gradient(90% 140% at 100% 0%, rgba(234,36,107,.5), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(0,168,128,.35), transparent 60%), #000; }
.hero .v, .stat .v, h1 { font-weight: 800; }
.mbar button { background: var(--green) !important; color: #fff !important; border-radius: 100px !important; }
.eyebrow { background: #000; }
.site-header { background: #fff; }

/* answer-first block */
.qa { margin: 24px 0 0; padding: 16px 18px; background: #fff; border-radius: 16px; border-left: 4px solid var(--green); }
.qa h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 6px; }
.qa p { margin: 0 0 8px; color: var(--ink-2); } .qa ul { margin: 0 0 8px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.qa-note { font-size: 12px; color: var(--muted); margin: 0 !important; }

/* Accessibility pass */
:root { --green-ink: #00775A; }
.qa h2 { color: var(--green-ink); }
.qa { border-left-color: var(--green-ink); }
.mbar button { background: var(--green-ink) !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
input[type=range]:focus-visible { outline: 0; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
.inwrap:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #000; color: #fff; padding: 12px 18px; border-radius: 100px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.linkbtn, .site-header a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
input[type=range] { padding: 19px 0; background-clip: content-box; height: 6px; box-sizing: content-box; margin: 0; }
input[type=checkbox] { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Value chip (Groww-style): grouped Indian-format value beside each rupee input label */
.field label .muted.tn:not(:empty) { background: #e6f6f1; color: var(--green-ink, #00775A); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; white-space: nowrap; }

/* Pill choices (short selects) */
.pill-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.field.has-pills { position: relative; }
.choice { padding: 6px; margin: -6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.choice button { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.choice button:hover { border-color: var(--ink); }
.choice button:active { transform: scale(.97); }
.choice button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-ink, #00775A); }

/* Privacy line */
.privacy { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.5; color: var(--muted-2, #5f6873); }
.privacy svg { flex: none; margin-top: 2px; color: var(--green-ink, #00775A); }

/* What moves your number */
.whatif .wi { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; margin-top: 4px; border-radius: 12px; cursor: pointer; min-height: 44px; }
.whatif .wi:hover { background: #f6f6f7; }
.whatif .wi:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wi-t b { font-size: 14px; font-weight: 600; color: var(--ink); }
.wi-t em { font-style: normal; font-size: 12px; color: var(--muted-2, #5f6873); }
.wi-b { height: 10px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.wi-b i { display: block; height: 100%; border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.wi-b i.up { background: var(--green); } .wi-b i.dn { background: var(--pink); }
.wi-v { text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; min-width: 84px; }
.wi-v.up { color: var(--green-ink, #00775A); } .wi-v.dn { color: #C4124F; }
.wi-v small { font-weight: 500; font-size: 11px; color: var(--muted-2, #5f6873); }
@media (max-width: 520px) { .whatif .wi { grid-template-columns: 1fr auto; } .wi-b { grid-column: 1 / -1; order: 3; } }
@media (prefers-reduced-motion: reduce) { .wi-b i, .choice button { transition: none; } }

/* Steps */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.step-off { display: none !important; }
.stepper { list-style: none; margin: 18px 0 4px; padding: 0; display: flex; justify-content: space-between; position: relative; counter-reset: none; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 15px; left: 36px; height: 3px; border-radius: 3px; }
.stepper::before { right: 36px; background: var(--line); }
.stepper::after { width: calc((100% - 72px) * var(--prog, 0)); background: var(--green-ink, #00775A); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.stepper li { position: relative; z-index: 1; flex: 1; display: flex; justify-content: center; }
.stepper li:first-child { justify-content: flex-start; } .stepper li:last-child { justify-content: flex-end; }
.stepper li[hidden] { display: none; }
.stepper button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 72px; min-height: 44px; font-size: 11.5px; font-weight: 600; color: var(--muted-2, #5f6873); text-align: center; }
.stepper button b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 13px; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.stepper button.done b { background: var(--green-ink, #00775A); border-color: var(--green-ink, #00775A); color: #fff; }
.stepper button.cur b { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.12); }
.stepper button.cur { color: var(--ink); }
.stepper button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 10px; }
.stepnav { display: flex; gap: 10px; margin-top: 22px; }
.stepnav button { font: inherit; font-weight: 700; font-size: 14px; min-height: 48px; border-radius: 999px; padding: 0 20px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: transform .1s, background .2s; }
.stepnav button:active { transform: scale(.97); }
.stepnav .back:disabled { opacity: .4; cursor: default; }
.stepnav .next { flex: 1; background: var(--ink); color: #fff; border-color: var(--ink); }
.stepnav .next.last { background: var(--green-ink, #00775A); border-color: var(--green-ink, #00775A); }
.stepnav button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.step-in { animation: stepIn .38s cubic-bezier(.2,.8,.2,1) both; }
.step-in:nth-child(2) { animation-delay: .04s; } .step-in:nth-child(3) { animation-delay: .08s; } .step-in:nth-child(4) { animation-delay: .12s; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Intro: results rise in once on load */
.results.intro > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.results.intro > :nth-child(2) { animation-delay: .08s; } .results.intro > :nth-child(3) { animation-delay: .16s; }
.results.intro > :nth-child(4) { animation-delay: .24s; } .results.intro > :nth-child(n+5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.hero .v { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .step-in, .results.intro > * { animation: none !important; } .stepper::after, .stepper button b { transition: none; } }

.stepnav .next { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 16px; line-height: 1.2; }
.stepnav .next small { font-size: 11.5px; font-weight: 500; opacity: .75; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) { .inputs { margin-bottom: 84px; } .stepnav { scroll-margin-bottom: 110px; } }
