/* ==========================================================================
   PaisaRoll — site styles (inner pages: tools, salary guides, learn, about, legal)
   Brand tokens follow DESIGN.md. The --pr-* tokens are the source of truth;
   the short names below are aliases so existing class names keep working.
   No violet anywhere.
   ========================================================================== */
:root {
  color-scheme: light;
  /* DESIGN.md palette */
  --pr-ink: #0F1419;
  --pr-paper: #F7F4EC;
  --pr-card: #FFFFFF;
  --pr-line: #E6E0D2;
  --pr-muted: #5E6672;
  --pr-green: #0B7A4E;
  --pr-green-bright: #1DBF73;
  --pr-green-soft: #DDF4E8;
  --pr-gold: #FFB21A;
  --pr-gold-soft: #FFF1CC;
  --pr-coral: #E8492A;
  --pr-coral-soft: #FFE4DC;

  /* aliases used by the component classes */
  --ink: var(--pr-ink);
  --ink-2: #2D3540;          /* body copy on paper */
  --muted: var(--pr-muted);
  --paper: var(--pr-paper);
  --paper-2: #EFEADE;        /* slightly deeper paper for bands and pills */
  --card: var(--pr-card);
  --line: var(--pr-line);
  --line-strong: #D2C9B6;
  --brand: var(--pr-green);  /* primary accent: buttons, links, focus */
  --brand-deep: #096843;     /* green for small text on paper/cards (AA) */
  --brand-soft: var(--pr-green-soft);
  --grow: var(--pr-green);
  --grow-soft: var(--pr-green-soft);
  --warn-soft: var(--pr-gold-soft);
  --leak-text: #A8321A;      /* coral, darkened for small text on light grounds */
  --night: var(--pr-ink);
  --night-2: #1A222B;        /* raised surface on dark grounds */
  --night-line: #26303A;
  --on-night: #E9ECEF;       /* body text on ink */
  --on-night-muted: #A9B1BA;

  /* chart series: CVD-validated, keep this order (DESIGN.md):
     needs / wants / savings / untracked(leak) */
  --s1: #257de0;
  --s2: #f2a600;
  --s3: #00b894;
  --leak: #f25a2b;
  --grid: #ECE6DA;
  --axis: #CBC2AF;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 20, 25, .05), 0 10px 30px rgba(15, 20, 25, .07);
  --shadow-lg: 0 2px 4px rgba(15, 20, 25, .06), 0 24px 60px rgba(15, 20, 25, .14);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pr-green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pr-gold); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 40ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.hl { color: var(--pr-coral); }   /* large display text only */
.hl-green { color: var(--pr-green); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pr-green); color: #fff; box-shadow: 0 6px 18px rgba(11, 122, 78, .25); }
.btn-primary:hover { background: #096843; color: #fff; transform: translateY(-1px); }
.btn-primary .arrow { color: #fff; transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--night); color: var(--on-night); font-size: .9rem; text-align: center; padding: 9px 16px;
}
.announce a { color: #fff; font-weight: 600; }
.announce .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pr-green-bright); margin-right: 8px; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.wordmark { white-space: nowrap; }
.w-paisa { color: var(--pr-ink); }
.w-roll { color: var(--pr-green); }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 52px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--pr-coral); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; border-radius: 99px;
  background: var(--pr-coral); opacity: .22;
}
.hero .lede { margin-bottom: 26px; max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--grow); }
.hero-blob {
  position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 178, 26, .18), rgba(255, 178, 26, 0)); pointer-events: none;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: none; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  width: min(330px, 86vw); aspect-ratio: 9 / 18.6; background: var(--night); border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A333D; position: relative; transform: rotate(2.5deg);
}
.phone-screen { width: 100%; height: 100%; background: var(--paper); border-radius: 36px; overflow: hidden; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: var(--night); border-radius: 99px; }
.ps-top { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.ps-hi { font: 700 1.05rem/1.2 var(--font-display); }
.ps-level { font-size: 11px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 4px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.ps-level i { width: 8px; height: 8px; border-radius: 50%; background: var(--pr-gold); display: inline-block; }
.ps-card { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); }
.ps-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.ps-big { font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.ps-donut-row { display: flex; align-items: center; gap: 14px; }
.ps-donut-row svg { width: 104px; height: 104px; flex: none; }
.ps-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 11.5px; }
.ps-legend li { display: flex; align-items: center; gap: 6px; }
.ps-legend b { margin-left: auto; font-weight: 600; }
.ps-legend .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ps-leak { background: var(--pr-coral-soft); border: 1px solid #FFC9B9; color: #7A2412; }
.ps-leak .ps-big { color: var(--leak-text); }
.ps-voice { display: flex; align-items: center; gap: 10px; background: var(--night); color: #fff; border-radius: 16px; padding: 12px 14px; }
.ps-mic { width: 30px; height: 30px; border-radius: 50%; background: var(--pr-green); display: grid; place-items: center; flex: none; }
.ps-mic svg { width: 15px; height: 15px; }
.ps-streak { display: flex; gap: 5px; margin-top: 8px; }
.ps-streak span { flex: 1; height: 22px; border-radius: 6px; background: var(--grow-soft); }
.ps-streak span.on { background: var(--grow); }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grow-soft); color: var(--grow); }
.float-chip .ic svg { width: 18px; height: 18px; }
.chip-a { left: -12%; top: 7%; transform: rotate(-4deg); }
.chip-b { right: -2%; bottom: 14%; transform: rotate(3deg); }
@media (max-width: 520px) { .chip-a { left: 0; } .chip-b { right: 0; } }

/* ---------- Pain cards ---------- */
.pain { background: var(--paper-2); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.pain-card { background: var(--card); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); position: relative; }
.pain-card .q { font: 600 1.18rem/1.3 var(--font-display); letter-spacing: -0.01em; margin-bottom: 12px; }
.pain-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.pain-card .tag { position: absolute; top: -11px; left: 20px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; }
@media (max-width: 980px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--night); color: var(--on-night); text-align: center; }
.manifesto h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.manifesto h2 .soft { color: #8C949D; }
.manifesto p { color: var(--on-night-muted); max-width: 56ch; margin-inline: auto; font-size: 1.12rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 .85rem/1 var(--font-body); color: var(--brand-deep); background: var(--pr-green-soft); padding: 6px 10px; border-radius: 99px;
  display: inline-block; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
.step .voice-q { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; background: var(--paper-2); padding: 6px 12px; border-radius: 99px; color: var(--ink-2); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards / tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.tool-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--pr-green-soft); color: var(--brand-deep); margin-bottom: 6px; }
.tool-card .ic svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.2rem; margin: 0; }
.tool-card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.tool-card .go { font-weight: 600; font-size: .92rem; color: var(--brand-deep); }
.tool-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-card.featured p { color: var(--on-night-muted); }
.tool-card.featured .go { color: var(--pr-green-bright); }
.tool-card.featured .ic { background: var(--night-2); color: var(--pr-gold); }
@media (max-width: 980px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); margin-bottom: 14px; }
.feature .badge.live { background: var(--grow-soft); color: var(--grow); }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Waitlist ---------- */
.join { background: var(--pr-ink); color: var(--on-night); }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.join h2 { color: #fff; }
.join .lede { color: var(--on-night-muted); }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--on-night); }
.perks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--pr-green-bright); }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 3.5vw, 36px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); color: var(--ink); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.form-steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--paper-2); }
.form-steps span.on { background: var(--pr-green); }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 14px;
  font: 400 1rem var(--font-body); color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 122, 78, .18); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); color: var(--muted); font-weight: 500; }
.input-prefix .input { border-radius: 0 12px 12px 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  font-size: .9rem; font-weight: 500; cursor: pointer; user-select: none; transition: all .12s ease; background: #fff;
}
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--pr-green); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-error { color: #b42318; font-size: .88rem; margin: -6px 0 12px; min-height: 1em; }
.form-card .btn { width: 100%; }
.form-foot { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-done { text-align: center; padding: 10px 0; }
.form-done .big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--grow-soft); color: var(--grow); display: grid; place-items: center; margin: 0 auto 16px; }
.form-done .big-check svg { width: 32px; height: 32px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.share-row .btn { width: auto; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 1.14rem/1.35 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Article cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.post-card .cover { aspect-ratio: 16 / 8; display: grid; place-items: center; font: 700 2.2rem/1 var(--font-display); letter-spacing: -0.03em; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { font-size: .8rem; color: var(--muted); font-weight: 500; }
.post-card h3 { font-size: 1.2rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.c1 { background: #ffe3d6; color: #a3330b; }
.c2 { background: #dcebfb; color: #174e8c; }
.c3 { background: #d9f3ea; color: #0b6a48; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); max-width: 18ch; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.answer-box {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pr-green); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 24px 0 0; max-width: 760px;
}
.answer-box strong.lbl { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 6px; }
.answer-box p { margin: 0; color: var(--ink-2); }

/* ---------- Calculator layout ---------- */
.calc { display: grid; grid-template-columns: 400px 1fr; gap: 22px; align-items: start; }
.calc-panel, .calc-result { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.calc-panel { position: sticky; top: 92px; }
.calc-panel h2, .calc-result h2 { font-size: 1.3rem; margin-bottom: 18px; letter-spacing: -0.015em; }
.range-row { margin-bottom: 20px; }
.range-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.range-top label { font-weight: 600; font-size: .92rem; }
.num-box { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: #fff; flex: none; width: 140px; }
.num-box span { color: var(--muted); font-size: .9rem; }
.num-box input { border: 0; width: 100%; min-height: 38px; font: 600 1rem var(--font-body); text-align: right; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.num-box input::-webkit-outer-spin-button, .num-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-box input:focus { outline: none; }
.num-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 122, 78, .16); }
input[type="range"] { width: 100%; accent-color: var(--pr-green); height: 28px; margin: 0; }
.seg { display: flex; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 22px; }
.seg button { flex: 1; border: 0; background: transparent; min-height: 40px; border-radius: 9px; font: 600 .9rem var(--font-body); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--paper); border-radius: 14px; padding: 16px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.stat .v { font: 700 clamp(1.25rem, 2.2vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat.hero-stat { background: var(--ink); color: #fff; }
.stat.hero-stat .k { color: var(--on-night-muted); }
.stat.alert { background: var(--pr-coral-soft); }
.stat.alert .v { color: var(--leak-text); }
.stat.good { background: var(--pr-green-soft); }
.stat.good .v { color: var(--brand-deep); }
.insights { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.insights li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: .95rem; }
.insights li .ico { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.insights li.bad .ico { background: var(--pr-coral-soft); color: var(--leak-text); }
.insights li.ok .ico { background: var(--pr-green-soft); color: var(--brand-deep); }
.insights li.tip .ico { background: var(--pr-gold-soft); color: #7A5200; }
.insights b { font-weight: 600; }
.cta-strip {
  margin-top: 22px; background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-strip p { margin: 0; max-width: 46ch; }
.cta-strip strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: 2px; }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cat-list .range-row { margin-bottom: 14px; }
.example-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.example-btns button { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 99px; min-height: 36px; padding: 0 12px; font: 500 .85rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.example-btns button:hover { border-color: var(--ink); color: var(--ink); }
details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; }
  .calc-panel { position: static; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:first-child { grid-column: 1 / -1; }
  .cat-list { grid-template-columns: 1fr; }
}

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .dlabel { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--ink-2); margin: 0 0 10px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend .sw.line { height: 3px; border-radius: 2px; }
.legend .sw.dash { height: 0; border-top: 2px dashed var(--ink); background: none !important; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--night); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: .82rem;
  line-height: 1.45; box-shadow: var(--shadow); white-space: nowrap; z-index: 5; opacity: 0; transition: opacity .1s ease; transform: translate(-50%, -110%);
}
.tooltip.show { opacity: 1; }
.tooltip .t { font-weight: 700; margin-bottom: 2px; }
.tooltip .r { display: flex; align-items: center; gap: 7px; }
.tooltip .r i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.tooltip .r b { margin-left: auto; padding-left: 14px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bar-list li { display: grid; grid-template-columns: 150px 1fr 92px; align-items: center; gap: 12px; font-size: .9rem; }
.bar-list .name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list .track { height: 14px; border-radius: 0 4px 4px 0; position: relative; }
.bar-list .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; transition: width .35s ease; }
.bar-list .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-list .val small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.bar-list li.leak .fill { background: repeating-linear-gradient(135deg, var(--leak) 0 6px, #ff9a76 6px 10px); }
.bar-list li.leak .name { color: var(--leak-text); font-weight: 600; }
.split-bar { display: flex; height: 34px; gap: 2px; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; }
.split-bar > div { display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 700; min-width: 0; transition: flex-basis .35s ease; overflow: hidden; white-space: nowrap; }
.split-label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 14px; }
@media (max-width: 560px) { .bar-list li { grid-template-columns: 110px 1fr 80px; font-size: .84rem; } }

/* ---------- Prose (articles, legal) ---------- */
.prose { font-size: 1.07rem; line-height: 1.75; color: #232B34; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; font-variant-numeric: tabular-nums; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--paper-2); font-size: .85rem; letter-spacing: .02em; }
.prose td.num, .prose th.num { text-align: right; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--pr-gold); background: #fff; border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose .callout { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 1.6em 0; }
.prose .callout h3 { margin-top: 0; font-size: 1.1rem; }
.prose .callout p:last-child, .prose .callout ul:last-child { margin-bottom: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 28px 0; font-size: .96rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.inline-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: var(--on-night); border-radius: var(--radius); padding: 22px 24px; margin: 2em 0; }
.inline-cta p { margin: 0; max-width: 44ch; }
.inline-cta strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; display: block; }
.article-foot { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.5em; font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 72px 0 36px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { max-width: 34ch; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .w-paisa { color: var(--pr-paper); }
.site-footer .w-roll { color: var(--pr-green-bright); }
.site-footer h4 { color: #fff; font: 600 .82rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #D5DAE0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { border-top: 1px solid var(--night-line); margin-top: 48px; padding-top: 24px; font-size: .82rem; line-height: 1.6; color: #929AA3; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--night-2); }
.socials svg { width: 18px; height: 18px; color: var(--on-night); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Extra article covers ---------- */
.c4 { background: var(--pr-gold-soft); color: #6B4700; }
.c5 { background: var(--pr-green-soft); color: var(--brand-deep); }
.c6 { background: var(--pr-coral-soft); color: var(--leak-text); }

/* ---------- Salary guides ---------- */
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; }
.table-scroll table.wide { min-width: 540px; }
@media (max-width: 560px) { .prose .hide-sm { display: none; } }
.prose .illus, .illus { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.prose tr.total td { font-weight: 700; background: var(--paper); }
.prose tr.sub td:first-child { padding-left: 28px; color: var(--ink-2); }
.moves { list-style: none; counter-reset: mv; padding: 0 !important; margin: 1.2em 0 1.8em !important; display: grid; gap: 12px; }
.moves li { counter-increment: mv; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 18px 66px; position: relative; margin: 0 !important; }
.moves li::before {
  content: counter(mv); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pr-gold); color: var(--ink); font: 800 1rem/32px var(--font-display); text-align: center;
}
.moves li strong { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; margin-bottom: 4px; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 1em 0 1.6em !important; }
.pill-links li { margin: 0 !important; }
.pill-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums;
}
.pill-links a:hover { border-color: var(--ink); color: var(--ink); }
.pill-links a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.6em 0; }
.prev-next a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.prev-next a:hover { border-color: var(--ink); color: var(--ink); }
.prev-next small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prev-next b { font-family: var(--font-display); font-size: 1.1rem; }
.prev-next .next { text-align: right; grid-column: 2; }
.salary-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.salary-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.salary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.salary-card .amt { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.salary-card .sub { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.salary-card .go { color: var(--brand-deep); font-weight: 600; font-size: .9rem; margin-top: auto; }
.band-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--pr-gold-soft); color: #6B4700; }
@media (max-width: 560px) {
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { grid-column: 1; }
}

/* ---------- Levels: Rookie to High Roller ---------- */
.levels { list-style: none; padding: 0 !important; margin: 1.2em 0 1.6em !important; display: grid; gap: 10px; }
.levels li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 !important; }
.levels .lv { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pr-gold-soft); color: #6B4700; font: 800 1rem/1 var(--font-display); }
.levels li:last-child .lv { background: var(--pr-gold); color: var(--ink); }
.levels b { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.levels span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Misc ---------- */
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .announce, .site-footer, .cta-strip, .inline-cta, .join { display: none !important; }
}
