/* PaisaMatch — public site.
 *
 * JAAN-BOOJH KAR: koi webfont nahi, koi third-party request nahi. Do
 * wajah — (1) SEO aur phone par speed hi asli currency hai; (2) poori
 * positioning "aapka data bahar nahi jaata" hai, to font CDN tak ko call
 * karna us baat ko kamzor karta hai. Logo aur icons bhi SVG hain — inline,
 * data URI, ya isi site ki file.
 *
 * Design ka motif: LEDGER PAPER — halki ruled lines aur laal margin line
 * (hero/page-head ke peeche). Rang (2026-09-28 se): TIRANGA — kesariya,
 * safed, hara + Ashoka Chakra wala neela (privacy band, app ka sidebar).
 * SIRF RANG: jhanda ya Ashoka Chakra kahin nahi — Flag Code of India aur
 * Emblems Act, 1950 commercial product mein inka istemaal rokte hain.
 * Nav ke upar teen-rang patti (`--flag`) jhande ke anupaat mein nahi aur
 * bina chakra. Dono theme ke tokens neeche hain; app
 * (`.streamlit/config.toml` + `gst_tool/assets/app.css`) inhi ki copy
 * hai — guard `tests/test_look.py`.
 */

:root {
  color-scheme: light;
  --ground:        #F6F7FB;
  --ground-2:      #EDF0F7;
  --paper:         #FFFFFF;
  --ink:           #10193A;
  --ink-2:         #414B6B;
  --ink-3:         #5A6685;
  --rule:          #E1E6F0;
  --accent:        #138808;
  --accent-strong: #0F6E07;
  --accent-soft:   #E6F4E4;
  --accent-ink:    #FFFFFF;
  --gold:          #D2700A;
  --gold-soft:     #FFEBD6;
  --ok:            #0F6E07;
  --ok-soft:       #E3F3E1;
  --warn:          #8A4B00;
  --warn-soft:     #FFF1E0;
  --bad:           #B23A2B;
  --bad-soft:      #F9E3DF;
  --navy:          #1A3A8F;
  --navy-strong:   #1A2F7A;
  --navy-soft:     #EAEEF9;
  --ledger:        rgba(26, 58, 143, .06);
  --margin-line:   rgba(178, 58, 43, .20);
  --shadow-sm: 0 1px 2px rgba(16, 25, 58, .06);
  --shadow:    0 1px 2px rgba(16, 25, 58, .05), 0 10px 28px -12px rgba(16, 25, 58, .16);
  --shadow-lg: 0 2px 4px rgba(16, 25, 58, .04), 0 28px 56px -20px rgba(16, 25, 58, .28);
  --radius: 14px;

  /* Dono theme mein SAME: tiranga patti aur neela band (privacy band,
   * app ka sidebar) */
  --flag-saffron:  #FF9933;
  --flag-white:    #FFFFFF;
  --flag-green:    #138808;
  --flag: linear-gradient(90deg, var(--flag-saffron) 0 33.34%, var(--flag-white) 33.34% 66.67%, var(--flag-green) 66.67%);
  --band:          #0B1F4B;
  --band-2:        #12295E;
  --band-rule:     #1D3570;
  --band-top:      #0F2A63;
  --band-bottom:   #081634;
  --on-band:       #E8EDF9;
  --on-band-2:     #C9D3EE;
  --band-accent:   #FFB266;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas,
          "Liberation Mono", monospace;

  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2314A97C'/%3E%3Cstop offset='1' stop-color='%23085A41'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='16' fill='url(%23g)'/%3E%3Cpath d='M16 22h32M16 32h14M16 42h10' stroke='%23fff' stroke-opacity='.45' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M32 40l7 7 13-15' fill='none' stroke='%23fff' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230F6E07' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground:        #0A0E17;
    --ground-2:      #131A2A;
    --paper:         #0F1522;
    --ink:           #EEF1F8;
    --ink-2:         #AEB8D3;
    --ink-3:         #8A96B4;
    --rule:          #1E2738;
    --accent:        #4CC24A;
    --accent-strong: #6BD268;
    --accent-soft:   #10240F;
    --accent-ink:    #04210A;
    --gold:          #FFA64D;
    --gold-soft:     #2B1D0C;
    --ok:            #6BD268;
    --ok-soft:       #10240F;
    --warn:          #FFB266;
    --warn-soft:     #2B1D0C;
    --bad:           #EE8373;
    --bad-soft:      #2E1814;
    --navy:          #8FA8F0;
    --navy-strong:   #A9BCF4;
    --navy-soft:     #141D36;
    --ledger:        rgba(143, 168, 240, .05);
    --margin-line:   rgba(238, 131, 115, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -20px rgba(0, 0, 0, .75);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground:        #0A0E17;
  --ground-2:      #131A2A;
  --paper:         #0F1522;
  --ink:           #EEF1F8;
  --ink-2:         #AEB8D3;
  --ink-3:         #8A96B4;
  --rule:          #1E2738;
  --accent:        #4CC24A;
  --accent-strong: #6BD268;
  --accent-soft:   #10240F;
  --accent-ink:    #04210A;
  --gold:          #FFA64D;
  --gold-soft:     #2B1D0C;
  --ok:            #6BD268;
  --ok-soft:       #10240F;
  --warn:          #FFB266;
  --warn-soft:     #2B1D0C;
  --bad:           #EE8373;
  --bad-soft:      #2E1814;
  --navy:          #8FA8F0;
  --navy-strong:   #A9BCF4;
  --navy-soft:     #141D36;
  --ledger:        rgba(143, 168, 240, .05);
  --margin-line:   rgba(238, 131, 115, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -20px rgba(0, 0, 0, .75);
}

/* ------------------------------------------------------------ base */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
a { color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--ink); }

a:focus-visible, button:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* SIRF transform, opacity JAAN-BOOJH KAR nahi: agar animation kabhi chale
 * hi nahi (background tab, prerender, kamzor phone), to opacity:0 wala
 * content invisible reh jaata. Preview par yahi dikha tha — text gayab. */
@keyframes rise {
  from { transform: translateY(12px); }
  to   { transform: none; }
}

/* ============================================================
 *  CALCULATOR PAGES  (.wrap layout)
 * ============================================================ */

.wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 88px;
}

/* ledger paper behind the page head */
.wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 460px;
  transform: translateX(-50%);
  background:
    radial-gradient(55% 90% at 12% 0%, var(--gold-soft), transparent 70%),
    radial-gradient(40% 70% at 95% 10%, var(--accent-soft), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--ledger) 31px 32px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
          mask-image: linear-gradient(#000 45%, transparent);
  pointer-events: none;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -20px;
  padding: 12px 20px;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
/* Tiranga patti — dono sticky bars ke upar (sticky = positioned, isliye
 * absolute patti unke saath chalti hai) */
.top::before, .site-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--flag);
  box-shadow: 0 1px 0 rgba(16, 25, 58, .12);
}
.top a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.top .home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.top .home::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--logo) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
}
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { color: var(--ink); background: var(--ground-2); }

h1 {
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 48px 0 12px;
  text-wrap: balance;
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.sub {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 8px;
  max-width: 62ch;
  animation: rise .5s .05s cubic-bezier(.2, .7, .2, 1) both;
}
.sub b { color: var(--ink); }

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 6px 14px 6px 10px;
  background: var(--paper);
  color: var(--ok);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- calculator card ---------- */

.calc {
  position: relative;
  overflow: hidden;
  margin: 30px 0 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: rise .55s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--flag);
}
@media (max-width: 520px) { .calc { padding: 20px 16px; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field label, .field > .hint:first-child {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }

input[type="text"], input[type="date"], select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--ground);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input[type="text"]:hover, input[type="date"]:hover, select:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--rule));
}
input[type="text"]:focus, input[type="date"]:focus, select:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input[type="text"] {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Rupaye wale input — GSTIN jaisa uppercase/letter-spacing nahi chahiye */
input[type="text"].money {
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
input:disabled { opacity: .5; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.row + .row, .field + .row, .row + .field { margin-top: 16px; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 4px; }

/* ---------- result ---------- */

.result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
  animation: rise .3s ease-out both;
}
.result[hidden] { display: none !important; }

.verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.verdict .mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.verdict.good { color: var(--ok); }
.verdict.good .mark { background: var(--ok-soft); }
.verdict.bad { color: var(--bad); }
.verdict.bad .mark { background: var(--bad-soft); }
.verdict.neutral { color: var(--ink); }
.verdict.neutral .mark { background: var(--accent-soft); color: var(--accent); }

dl.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0;
  padding: 16px 18px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
dl.facts dt { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
dl.facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
dl.facts dd.plain { font-family: var(--sans); font-weight: 500; }

.why {
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.why:empty { display: none; }
.why b { color: var(--ink); }
.why code { font-family: var(--mono); font-size: 12px; }

/* ---------- prose below the calculator ---------- */

.notes { margin-top: 60px; }
.notes h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 12px;
  font-size: 21px;
  letter-spacing: -.02em;
}
.notes h2::before {
  content: "";
  flex: none;
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(var(--gold), var(--accent));
}
.notes p, .notes li { color: var(--ink-2); max-width: 66ch; }
.notes ul { padding-left: 20px; }
.notes li { margin-bottom: 8px; }
.notes li::marker { color: var(--accent); }
.notes b { color: var(--ink); }
.notes code {
  font-family: var(--mono);
  font-size: .87em;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Calculator pages ke neeche — baaki calculators ke links
 * (tools/make_seo.py banata hai) */
.related {
  margin-top: 56px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.related h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: -.01em; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.related a:hover { background: var(--accent); color: var(--accent-ink); }

.scroll-x {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.result .scroll-x { margin-top: 16px; }
table.plain { border-collapse: collapse; width: 100%; font-size: 14px; }
table.plain th, table.plain td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.plain tr:last-child td { border-bottom: 0; }
table.plain th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  font-weight: 650;
  background: var(--ground);
}
table.plain td { color: var(--ink-2); }
table.plain th.num, table.plain td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.plain tr.pick td { color: var(--ink); font-weight: 650; background: var(--accent-soft); }

.wrap > footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.wrap > footer a { color: var(--ink-2); }

/* ---------- tools index ---------- */

.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.tool-grid a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.tool-grid li:nth-child(2) a { animation-delay: .04s; }
.tool-grid li:nth-child(3) a { animation-delay: .08s; }
.tool-grid li:nth-child(4) a { animation-delay: .12s; }
.tool-grid li:nth-child(5) a { animation-delay: .16s; }
.tool-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
}
.tool-grid h2 { font-size: 17.5px; letter-spacing: -.015em; margin: 4px 0 0; line-height: 1.3; }
.tool-grid p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tool-grid .go { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 650; font-size: 14px; }

/* ============================================================
 *  SHARED BLOCKS  (icons, buttons)
 * ============================================================ */

.icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.icon.gold { background: var(--gold-soft); color: var(--gold); }
.icon.red  { background: var(--bad-soft);  color: var(--bad); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 9px; }

/* ============================================================
 *  HOMEPAGE
 * ============================================================ */

.shell { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .shell { padding: 0 18px; } }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-nav .shell { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--logo) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--ground-2); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 76px 0 104px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 8% 12%, var(--gold-soft), transparent 70%),
    radial-gradient(35% 50% at 92% 18%, var(--accent-soft), transparent 70%),
    linear-gradient(to right, transparent 0 calc(50% - 581px), var(--margin-line) calc(50% - 581px) calc(50% - 579px), transparent calc(50% - 579px)),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--ledger) 35px 36px);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}
/* minmax(0, …) ZAROORI hai: bina iske mock table ka nowrap content grid
 * track ko screen se chauda kar deta tha, aur phone par h1 wrap hone ke
 * bajaye kat jaata tha. */
.hero-grid { display: grid; gap: 64px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; }
}

.eyebrow {
  /* homepage par ye H1 hai — global `h1` ke margin/size/spacing yahan reset */
  margin: 0;
  line-height: 1.4;
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 9px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
/* Slogan bada dikhta hai par H1 NAHI — H1 upar wali eyebrow line hai jisme
 * keyword hai ("GST & TDS reconciliation software for CAs"). SEO ke liye
 * H1 mein keyword chahiye; slogan mein koi search term nahi. */
.hero .display {
  text-wrap: balance;
  margin: 22px 0 20px;
  font-size: clamp(44px, 7.6vw, 80px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 850;
}
.hl {
  background: linear-gradient(100deg, var(--gold) 15%, var(--accent) 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lede { margin: 0; max-width: 54ch; font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.cta-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-soft) var(--tick) center / 13px no-repeat;
}

.rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .06s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .18s; }
.d4 { animation-delay: .26s; }

/* ---------- hero visual: reconciliation mock ---------- */

.visual { position: relative; }
.mock {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
}
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.mock-sum { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.mock-sum div { padding: 14px 16px; }
.mock-sum div + div { border-left: 1px solid var(--rule); }
.mock-sum small {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mock-sum b {
  display: block;
  margin-top: 2px;
  font-size: clamp(18px, 2.4vw, 23px);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.mock-sum .ok { color: var(--ok); }
.mock-sum .bad { color: var(--bad); }
.mock-table { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td {
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.mock th {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mock tr:last-child td { border-bottom: 0; }
.mock td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pill.ok   { background: var(--ok-soft);   color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad  { background: var(--bad-soft);  color: var(--bad); }
.mock-caption { margin: 10px 4px 0; font-size: 12px; color: var(--ink-3); text-align: right; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: rise .7s .35s cubic-bezier(.2, .7, .2, 1) both;
}
.float-card small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.float-card b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
/* z-index: mock DOM mein baad mein aata hai, bina iske fc-2 uske peeche chhip jaata tha */
.float-card { z-index: 2; }
.fc-1 { left: -34px; bottom: -8px; }
.fc-2 { right: -22px; top: -34px; min-width: 210px; flex-direction: column; align-items: stretch; gap: 8px; }
.fc-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 800;
}
.bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--ground-2); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--accent)); }
@media (max-width: 1100px) { .fc-1 { left: 12px; } .fc-2 { right: 12px; } }
@media (max-width: 640px) {
  .visual { display: flex; flex-direction: column; gap: 12px; }
  .float-card { position: static; animation-delay: .1s; }
  .fc-2 { order: -1; }
  .mock .hide-sm { display: none; }
}
/* 375px phone par Status pill kat raha tha — padding/font kam karke fit */
@media (max-width: 420px) {
  .mock { font-size: 12.5px; }
  .mock th, .mock td { padding: 10px 8px; }
  .mock th:first-child, .mock td:first-child { padding-left: 14px; }
  .mock .pill { padding: 3px 8px; font-size: 11.5px; }
}

/* ---------- sections ---------- */

.strip { padding: 22px 0; background: var(--paper); border-block: 1px solid var(--rule); }
.strip .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 26px;
}
.strip .label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.strip b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); }

.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--rule); }
@media (max-width: 640px) { .section { padding: 68px 0; } }
.section-head { max-width: 700px; margin: 0 0 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.section-head p { margin: 0; font-size: 18px; color: var(--ink-2); }

.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section.alt .card { background: var(--ground); box-shadow: none; }
.card h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li {
  position: relative;
  margin: 11px 0;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ok-soft) var(--tick) center / 12px no-repeat;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 28px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
  font-size: 17px;
  font-weight: 800;
}
.steps h3 { margin: 0 0 6px; font-size: 18.5px; letter-spacing: -.015em; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }

.privacy-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 153, 51, .22) 0%, transparent 60%),
    linear-gradient(135deg, var(--band-top), var(--band-bottom));
  color: var(--on-band);
  box-shadow: var(--shadow-lg);
}
.privacy-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(255, 255, 255, .045) 35px 36px);
  pointer-events: none;
}
@media (min-width: 920px) { .privacy-band { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.privacy-band > * { position: relative; z-index: 1; }
.privacy-band .kicker { color: var(--band-accent); }
.privacy-band h2 { color: #FFFFFF; }
.privacy-band p { margin: 0; font-size: 17.5px; color: var(--on-band-2); }
.privacy-band a { color: var(--band-accent); font-weight: 600; }
.privacy-band ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.privacy-band li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px;
  font-size: 14.5px;
  color: var(--on-band-2);
}
.privacy-band li b { display: block; color: #FFFFFF; font-size: 15.5px; }
.privacy-band li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--band-accent); }

a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
}
a.card .go { margin-top: auto; padding-top: 16px; font-size: 14.5px; font-weight: 650; color: var(--accent); }
.tools-5 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tools-5 .card { padding: 22px; }
.tools-5 .card h3 { margin-top: 14px; font-size: 17px; }
.tools-5 .card p { font-size: 14.5px; }

.pricing { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.15fr .85fr; } }
.price-card { position: relative; overflow: hidden; }
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--flag);
}
.big {
  display: block;
  margin: 6px 0 8px;
  font-size: clamp(44px, 6.4vw, 64px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.045em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}
.contact-line { margin-top: 18px; font-size: 15px; color: var(--ink-2); word-break: break-word; }
.contact-line b { color: var(--ink); }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.site-footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
