/* Fizz GST Invoice. One motif runs through the site: Indian office paperwork. Ledger ruling (pale blue lines with
   a red margin rule) behind the hero, a violet rubber stamp for whatever is "issued" or "ours", rupee amounts set in
   tabular figures. Motion only plays when a section is on screen and is off under prefers-reduced-motion. */

:root {
  --paper: #f4f6fb;
  --surface: #ffffff;
  --ink: #151935;
  --ink-2: #4f5575;
  --ink-3: #6b7192;
  --rule: #dfe5f1;
  --ledger: #d3def0;
  --margin: #d64545;
  --stamp: #4636c9;
  --stamp-2: #6b5cf0;
  --stamp-soft: rgba(70, 54, 201, .09);
  --on-stamp: #ffffff;
  --green: #0b7a55;
  --green-soft: rgba(11, 122, 85, .1);
  --red: #b42318;
  --red-soft: rgba(180, 35, 24, .08);
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(21, 25, 53, .06), 0 8px 24px -12px rgba(21, 25, 53, .14);
  --shadow-lg: 0 2px 4px rgba(21, 25, 53, .05), 0 24px 60px -24px rgba(36, 30, 110, .28);
  --glow: rgba(70, 54, 201, .16);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0f22;
    --surface: #161a33;
    --ink: #eceefa;
    --ink-2: #aab0d0;
    --ink-3: #8e94b8;
    --rule: #2a2f55;
    --ledger: #1d2244;
    --margin: #ff7070;
    --stamp: #a597ff;
    --stamp-2: #c3b9ff;
    --stamp-soft: rgba(165, 151, 255, .13);
    --on-stamp: #140f3d;
    --green: #4fd3a3;
    --green-soft: rgba(79, 211, 163, .12);
    --red: #ff8a80;
    --red-soft: rgba(255, 138, 128, .1);
    --glass: rgba(22, 26, 51, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -30px rgba(0, 0, 0, .8);
    --glow: rgba(165, 151, 255, .18);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: clip;
  font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; }
a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--stamp-soft); padding: .1em .35em; border-radius: 5px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .opt { display: none; } .nav { gap: 16px; } }
.foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 32px 0 48px; color: var(--ink-2); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot a { color: var(--ink-2); }

/* Buttons (the {{cta}} markup) */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 650; text-decoration: none;
  color: var(--on-stamp); background: linear-gradient(180deg, var(--stamp-2), var(--stamp)); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px var(--stamp);
  transition: transform .2s var(--ease), box-shadow .2s; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -12px var(--stamp); text-decoration: none; }
.cta-note { font-size: .88rem; color: var(--ink-2); max-width: 30em; }

/* Section heads */
.sec { padding: 104px 0 0; }
.head { max-width: 40em; margin: 0 auto 44px; text-align: center; }
.head h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }
.head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 48px 0 24px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -62px calc(50% - 50vw) -40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 360px at 76% 34%, var(--glow), transparent 70%),
    linear-gradient(90deg, transparent 0 calc(50% - 50vw + 9vw), var(--margin) calc(50% - 50vw + 9vw) calc(50% - 50vw + 9vw + 1px), transparent 0 calc(50% - 50vw + 9vw + 5px), var(--margin) calc(50% - 50vw + 9vw + 5px) calc(50% - 50vw + 9vw + 6px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--ledger) 31px 32px);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 35%, transparent 80%); opacity: .9; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-top: 72px; gap: 56px; } }
.hero h1 { font-size: clamp(2.55rem, 5.6vw, 4.25rem); font-weight: 830; letter-spacing: -0.036em; line-height: 1; margin: 0 0 20px; text-wrap: balance; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 24px; max-width: 26em; }
.chip-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 28px; padding: 9px 14px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--rule); box-shadow: var(--shadow); font-size: .93rem; max-width: 100%; }
.chip-price strong { color: var(--green); font-size: 1.02rem; }
.chip-price span { color: var(--ink-2); }
.chip-price a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* The invoice demo */
.demo { margin: 0; min-width: 0; }
.demo-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.demo-ctl .lbl { font-size: .88rem; color: var(--ink-2); margin-right: 4px; }
.st { font: inherit; font-size: .88rem; cursor: pointer; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.st:hover { border-color: var(--stamp); transform: translateY(-1px); }
.st[aria-pressed="true"] { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
.st small { opacity: .75; font-size: .78rem; margin-left: 2px; }
.inv { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 22px 18px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 40px 120px -50px var(--glow); font-size: .84rem; line-height: 1.45; }
.inv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--stamp), var(--stamp-2)); }
.inv-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.inv-title { font: 700 1.35rem/1.1 var(--serif); letter-spacing: -0.01em; margin: 0; }
.inv-title small { display: block; font: 500 .72rem var(--sans); color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.inv-no { text-align: right; font-variant-numeric: tabular-nums; }
.inv-no b { display: inline-block; font-size: .95rem; padding: 2px 8px; border-radius: 6px; background: var(--stamp-soft); color: var(--stamp); transition: background-color .4s; }
.inv-no b.bump { background: var(--stamp); color: var(--on-stamp); }
.inv-no span { display: block; color: var(--ink-3); font-size: .76rem; margin-top: 4px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.parties h4 { margin: 0 0 3px; font-size: .7rem; font-weight: 650; color: var(--ink-3); letter-spacing: .02em; }
.parties p { margin: 0; }
.pos { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin: 12px 0 10px; border-radius: 10px; background: var(--stamp-soft); }
.pos b { color: var(--stamp); }
.pos .rule { color: var(--ink-2); }
table.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.lines th { text-align: left; font-size: .7rem; font-weight: 650; color: var(--ink-3); padding: 6px 0; border-bottom: 1px solid var(--rule); }
table.lines td { padding: 9px 0; border-bottom: 1px dashed var(--rule); vertical-align: top; }
table.lines .r { text-align: right; padding-left: 10px; white-space: nowrap; }
table.lines td small { display: block; color: var(--ink-3); font-size: .74rem; }
.tax { display: grid; gap: 1px; justify-items: end; }
.tax i { font-style: normal; display: block; transition: opacity .35s, transform .35s var(--ease); }
.tax i em { font-style: normal; color: var(--ink-3); font-size: .72rem; margin-right: 4px; }
.flip .tax i, .flip .sum-tax { opacity: 0; transform: translateY(-4px); }
.sums { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; margin: 12px 0 0 auto; max-width: 270px; font-variant-numeric: tabular-nums; }
.sums dt { color: var(--ink-2); } .sums dd { margin: 0; text-align: right; }
.sums .sum-tax { transition: opacity .35s, transform .35s var(--ease); }
.sums .grand { font-weight: 750; font-size: .98rem; border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 3px; }
.words { margin: 10px 0 0; color: var(--ink-2); font-size: .78rem; }
.inv-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: 84px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .74rem; }
.inv-foot .sign { text-align: right; }
.inv-foot .sign b { display: block; color: var(--ink); font-size: .8rem; }
.stampmark { position: absolute; right: 150px; bottom: 10px; width: 104px; height: 104px; pointer-events: none; color: var(--stamp); opacity: .8; transform: rotate(-12deg); mix-blend-mode: multiply; }
.stampmark text { fill: currentColor; font-family: var(--sans); }
.stampmark .ring { font-size: 9px; font-weight: 700; }
.stampmark .mid { font-size: 10px; font-weight: 800; }
.stampmark .mid.big { font-size: 14px; }
@media (prefers-color-scheme: dark) { .stampmark { mix-blend-mode: screen; } }
.stampmark.thump { animation: thump .55s var(--ease); }
@keyframes thump { 0% { transform: rotate(-4deg) scale(1.5); opacity: 0; } 55% { transform: rotate(-12deg) scale(.96); opacity: .9; } 100% { transform: rotate(-12deg) scale(1); opacity: .78; } }
.demo figcaption { margin: 12px 2px 0; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .inv { padding: 18px 14px 14px; font-size: .8rem; }
  .parties { grid-template-columns: 1fr; gap: 8px; }
  .stampmark { width: 80px; height: 80px; right: 40%; bottom: 50px; }
  .inv-foot { min-height: 112px; }
  table.lines .hide-s { display: none; }
}

/* ---------------------------------------------------------------- Shopify vs invoice */
.versus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .versus { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); } }
.versus .panel { padding: 20px; min-width: 0; }
.versus h3 { font-size: .82rem; font-weight: 650; color: var(--ink-2); letter-spacing: 0; margin: 0 0 12px; }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; font-variant-numeric: tabular-nums; font-size: .93rem; }
.mini dt { color: var(--ink-2); } .mini dd { margin: 0; text-align: right; }
.mini .hl { background: var(--red-soft); border-radius: 6px; padding: 2px 6px; margin: -2px -6px; color: var(--red); }
.mini .ok { background: var(--green-soft); border-radius: 6px; padding: 2px 6px; margin: -2px -6px; color: var(--green); }
.mini .tot { font-weight: 750; border-top: 1px solid var(--rule); padding-top: 8px; }
.arrow { display: grid; place-items: center; color: var(--stamp); }
.arrow svg { width: 40px; height: 40px; }
@media (max-width: 859px) { .arrow svg { transform: rotate(90deg); } }
.quote { max-width: 46em; margin: 28px auto 0; text-align: center; color: var(--ink-2); font-size: .95rem; }
.quote q { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Order to GSTR-1 steps */
ol.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 720px) { ol.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { ol.flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { counter-increment: s; padding: 18px; min-width: 0; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease), opacity .4s; opacity: .55; }
.step.on, .no-motion .step { opacity: 1; }
.step.on { border-color: var(--stamp); box-shadow: var(--shadow-lg), 0 0 0 1px var(--stamp); transform: translateY(-3px); }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 16px 0 4px; letter-spacing: -0.01em; }
.step h3::before { content: counter(s); display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: .8rem; font-weight: 750;
  background: var(--stamp-soft); color: var(--stamp); transition: background-color .3s, color .3s; }
.step.on h3::before { background: var(--stamp); color: var(--on-stamp); }
.step p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.vis { height: 148px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  overflow: hidden; font-size: .8rem; font-variant-numeric: tabular-nums; position: relative; }
.vis .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.vis .muted { color: var(--ink-3); }
.vis .tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--stamp-soft); color: var(--stamp); font-weight: 650; white-space: nowrap; }
.vis .neg { color: var(--red); }
.vis .okk { color: var(--green); font-weight: 650; }
.vis .bar { height: 7px; border-radius: 4px; background: var(--rule); position: relative; overflow: hidden; }
.vis .bar i { position: absolute; inset: 0; width: 0; background: var(--stamp); border-radius: 4px; }
.step.on .bar i { animation: fill 1s .2s var(--ease) forwards; }
.no-motion .vis .bar i { width: 100%; }
@keyframes fill { to { width: 100%; } }
.csvs { display: flex; flex-wrap: wrap; gap: 5px; }
.csvs span { padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--rule); font-size: .72rem; font-weight: 600; }
.step.on .pop { animation: pop .5s var(--ease) both; }
.step.on .pop2 { animation: pop .5s .45s var(--ease) both; }
.step.on .csvs span { animation: pop .4s var(--ease) both; }
.step.on .csvs span:nth-child(2) { animation-delay: .08s; } .step.on .csvs span:nth-child(3) { animation-delay: .16s; } .step.on .csvs span:nth-child(4) { animation-delay: .24s; }
.step.on .csvs span:nth-child(5) { animation-delay: .32s; } .step.on .csvs span:nth-child(6) { animation-delay: .4s; } .step.on .csvs span:nth-child(7) { animation-delay: .48s; } .step.on .csvs span:nth-child(8) { animation-delay: .56s; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Rule 46 checklist */
.particulars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.particulars li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); font-size: .93rem; }
.particulars .cl { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; font-size: .78rem; font-weight: 700;
  background: var(--stamp-soft); color: var(--stamp); font-variant-numeric: tabular-nums; }
.particulars li.out { background: transparent; border-style: dashed; color: var(--ink-2); }
.particulars li.out .cl { background: var(--red-soft); color: var(--red); }
.note { max-width: 46em; margin: 22px auto 0; text-align: center; color: var(--ink-2); font-size: .93rem; }

/* ---------------------------------------------------------------- Comparison cards ({{compare}}) */
.cmp-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.cmp-card { position: relative; display: flex; flex-direction: column; padding: 24px 20px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); min-width: 0; }
.cmp-card.us { border-color: transparent; color: #fff;
  background: radial-gradient(420px 220px at 20% 0%, rgba(165, 151, 255, .45), transparent 70%), linear-gradient(160deg, #2a2178, #171a3d 70%);
  box-shadow: var(--shadow-lg), 0 30px 80px -30px var(--stamp); }
@media (min-width: 1000px) { .cmp-card.us { transform: translateY(-10px); } }
.cmp-badge { position: absolute; top: -11px; left: 18px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #4fd3a3; color: #06261b; white-space: nowrap; }
.cmp-name { font-size: 1.05rem; margin: 0 0 2px; letter-spacing: -0.01em; }
.cmp-plan { margin: 0 0 16px; font-size: .85rem; color: var(--ink-2); min-height: 2.6em; }
.cmp-card.us .cmp-plan { color: rgba(255, 255, 255, .72); }
.cmp-price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.cmp-amount { font-size: 2.7rem; font-weight: 820; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cmp-card.us .cmp-amount { color: #c3b9ff; }
.cmp-per { font-size: .92rem; color: var(--ink-2); }
.cmp-card.us .cmp-per { color: rgba(255, 255, 255, .7); }
.cmp-tag { align-self: flex-start; margin: 10px 0 0; font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 7px; background: var(--stamp-soft); color: var(--stamp); }
.cmp-checks { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: .88rem; }
.cmp-card.us .cmp-checks { border-top-color: rgba(255, 255, 255, .16); }
.cmp-checks li { position: relative; padding-left: 28px; }
.cmp-checks li::before { position: absolute; left: 0; top: 1px; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.cmp-checks li.yes::before { content: "\2713"; background: var(--green-soft); color: var(--green); }
.cmp-checks li.no::before { content: "\2715"; background: var(--red-soft); color: var(--red); }
.cmp-card.us .cmp-checks li.yes::before { background: rgba(79, 211, 163, .18); color: #4fd3a3; }
.cmp-card.us .cmp-checks li.no::before { background: rgba(255, 138, 128, .16); color: #ff8a80; }
.cmp-sources { margin: 26px auto 0; max-width: 62em; text-align: center; font-size: .78rem; color: var(--ink-3); }
.cmp-sources a { color: var(--ink-3); }

/* ---------------------------------------------------------------- Tools tiles, guides, FAQ */
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tool { display: block; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--stamp); text-decoration: none; }
.tool h3 { font-size: 1.15rem; margin: 0 0 4px; }
.tool p { margin: 0 0 16px; color: var(--ink-2); font-size: .93rem; }
.tool .peek { display: flex; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; font-size: .82rem; }
.tool .peek span { padding: 5px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); }
.tool .peek b { color: var(--stamp); }
.guide-list { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; gap: 0; }
.guide-list li { border-bottom: 1px solid var(--rule); padding: 16px 0; display: grid; gap: 2px; }
.guide-list a { font-weight: 650; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.guide-list a:hover { color: var(--stamp); }
.guide-list span { color: var(--ink-2); font-size: .92rem; }
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-2); font-weight: 400; font-size: 1.35rem; line-height: 1; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { color: var(--ink-2); padding-top: 8px; }
.faq-a p { margin: 0 0 8px; }
.end { text-align: center; padding: 72px 24px; margin-top: 104px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, var(--glow), transparent 70%), var(--surface); border: 1px solid var(--rule); }
.end h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; }
.end p { color: var(--ink-2); margin: 0 0 24px; }
.end .cta { justify-content: center; }

/* Scroll reveal: one orchestrated reveal per section head; off without JS or with reduced motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Articles and guides index */
.crumbs { font-size: .86rem; color: var(--ink-3); margin: 36px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 820; letter-spacing: -0.035em; margin: 14px 0 12px; text-wrap: balance; }
.article .meta { color: var(--ink-3); font-size: .88rem; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.prose { font-size: 1.04rem; line-height: 1.72; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin: 0 0 .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--stamp); color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose .table { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--stamp-soft); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.prose pre code { background: none; padding: 0; }
.aside-app { margin: 44px 0 0; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: grid; gap: 14px; }
.aside-app p { margin: 0; color: var(--ink-2); }
.aside-app strong { color: var(--ink); }
.related { margin-top: 52px; }
.related h2 { font-size: 1.2rem; margin: 0 0 6px; }
.index-head { max-width: 720px; margin: 0 auto 24px; }
.index-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 820; letter-spacing: -0.04em; margin: 14px 0 8px; }
.index-head p { color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------------------- Tools */
.tool-page { max-width: 980px; margin: 0 auto; }
.tool-page h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 820; letter-spacing: -0.04em; margin: 14px 0 8px; text-wrap: balance; }
.tool-page .lead { color: var(--ink-2); margin: 0 0 28px; font-size: 1.08rem; max-width: 40em; }
.calc { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.calc .panel { padding: 22px; min-width: 0; }
.field { display: grid; gap: 6px; margin: 0 0 18px; }
.field > span, .field legend { font-size: .86rem; font-weight: 650; color: var(--ink-2); padding: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.money { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.money:focus-within { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-soft); }
.money b { padding: 0 4px 0 14px; color: var(--ink-2); font-weight: 600; }
.money input, input.txt, select.txt { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: 600 1.3rem var(--sans); padding: 12px 14px 12px 4px; font-variant-numeric: tabular-nums; }
.money input:focus, input.txt:focus { outline: none; }
input.txt { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); padding: 12px 14px; font: 600 1.15rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
input.txt:focus { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: .9rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
.seg input:focus-visible + span { outline: 3px solid var(--stamp); outline-offset: 2px; }
.rate-other { width: 90px; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.out-big { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 820; letter-spacing: -0.04em; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.05; }
.out-sub { color: var(--ink-2); margin: 4px 0 18px; font-size: .92rem; }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-variant-numeric: tabular-nums; }
.breakdown dt { color: var(--ink-2); } .breakdown dd { margin: 0; padding-left: 16px; text-align: right; font-weight: 600; }
.breakdown .tot { border-top: 1px solid var(--rule); padding-top: 8px; font-weight: 750; color: var(--ink); }
.breakdown dt.split { padding-left: 14px; }
.small { font-size: .84rem; color: var(--ink-3); margin: 16px 0 0; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--rule); }
.verdict.good { background: var(--green-soft); border-color: transparent; }
.verdict.bad { background: var(--red-soft); border-color: transparent; }
.verdict b { display: block; }
.verdict .ic { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85rem; background: var(--rule); }
.verdict.good .ic { background: var(--green); color: var(--surface); } .verdict.bad .ic { background: var(--red); color: var(--surface); }
.gstin-parts { display: grid; grid-template-columns: repeat(5, auto); gap: 4px; justify-content: start; margin: 0 0 14px; font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.gstin-parts span { padding: 6px 8px; border-radius: 8px; background: var(--stamp-soft); color: var(--stamp); text-align: center; }
.gstin-parts span.badpart { background: var(--red-soft); color: var(--red); }
.gstin-legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.gstin-legend dt { font-weight: 650; } .gstin-legend dd { margin: 0; color: var(--ink-2); }
.howto { margin-top: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .step { opacity: 1; }
}

/* Landing: guides as a two-column grid of short cards */
#guides .guide-list { max-width: none; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
#guides .guide-list li { align-content: start; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 16px 18px; transition: border-color .2s, transform .2s var(--ease); }
#guides .guide-list li:hover { border-color: var(--stamp); transform: translateY(-1px); }
#guides .guide-list a { font-size: 1rem; line-height: 1.35; }
#guides .guide-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.5; max-height: 3em; }
