/* Pakka marketing site — "Haldi & Emerald", night-market edition (see DESIGN-NOTES.md).
 * Tokens copied from packages/web/src/styles.css; not imported, so the site never breaks when the
 * app's stylesheet changes. Emerald = action, haldi = money/seal moments, amounts are ink.
 * Motion rule: everything that moves lives in the `prefers-reduced-motion: no-preference` block at
 * the end, and only transform-family properties and opacity are animated. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched stand-in while Inter loads (Arial scaled to Inter's width/height), so the swap does not move text. */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }
/* Display face, shared with the app (decision.md "Wow pass"): Bricolage Grotesque, OFL 1.1, subset to
 * Latin + punctuation (37.5 KB) and one file for ₹ (1.1 KB). Only the wght axis is shipped. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-wght-pakka.woff2) format('woff2-variations');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-rupee-wght-pakka.woff2) format('woff2-variations');
  unicode-range: U+20B9;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal; font-display: swap; font-weight: 600;
  src: url(/assets/fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

:root {
  color-scheme: light;
  --canvas: #FCFAF7;
  --surface: #FFFFFF;
  --sunken: #F6F4F1;
  --border: #E9E4DE;
  --border-strong: #8B8782;
  --text: #1B1814;
  --muted: #56524E;
  --subtle: #76716D;
  --primary: #057045;
  --primary-hover: #015D38;
  --on-primary: #FFFFFF;
  --primary-soft: #F0F7F3;
  --primary-soft-2: #DEEFE4;
  --primary-text: #057045;
  --focus: #018451;
  --haldi: #FFB572;
  --haldi-soft: #FEEFE3;
  --haldi-text: #965603; /* app uses #A65F04; darkened so 13px text on --haldi-soft passes AA */
  --success-bg: #E1EEDE; --success-text: #24700D;
  --warning-bg: #FFF0DF; --warning-text: #7F5001;
  --info-bg: #DFECF7; --info-text: #03629C;
  /* night bands: always dark, in both themes */
  --night: #02321C;
  --night-2: #011A0E;
  --night-text: #FCFAF7;
  --night-muted: #B9DEC7;
  --night-line: rgba(151, 209, 174, .18);
  --glass: rgba(255, 255, 255, .8);
  --glass-line: rgba(27, 24, 20, .08);
  --shadow-1: 0 1px 2px rgba(27, 24, 20, .05);
  --shadow-2: 0 1px 2px rgba(27, 24, 20, .05), 0 12px 32px -12px rgba(27, 24, 20, .16);
  --shadow-3: 0 2px 4px rgba(27, 24, 20, .06), 0 32px 64px -24px rgba(2, 50, 28, .35);
  --font: 'Inter Variable', 'Inter Fallback', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque Variable', 'Inter Variable', 'Noto Sans Devanagari', system-ui, sans-serif;
  /* radius rule: pills for anything you press or pick, 24 for cards, 16 for panels inside a card, 12 for inputs and rows, 36 for full-width bands */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 36px;
  --gutter: clamp(16px, 4vw, 32px);
  --hdr: 76px;
  /* motion tokens — the app's names and values (packages/web/src/styles.css), so both stylesheets speak one language */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
  --dur-1: 90ms;    /* press, hover */
  --dur-2: 160ms;   /* a figure settling, a card lifting */
  --dur-3: 200ms;   /* something arriving */
  --stagger: 45ms;
  --ease: var(--ease-out);
  --shadow-lift: 0 2px 4px rgba(27, 24, 20, .05), 0 16px 36px -14px rgba(27, 24, 20, .2);
  /* one light from above; shadows carry the hue of what they fall on — ink on paper, bottle green on night bands */
  --shadow-night: 0 2px 6px rgba(1, 26, 14, .25), 0 50px 90px -30px rgba(1, 26, 14, .8);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark: follows the device unless the visitor chose a theme (same values in both blocks). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0C0906; --surface: #1B1814; --sunken: #15120F; --border: #2A2723; --border-strong: #76716D;
    --text: #FCFAF7; --muted: #D8D4CE; --subtle: #A49F9A;
    --primary: #97D1AE; --primary-hover: #C2E3CE; --on-primary: #02321C; --primary-soft: #0B2A1B; --primary-soft-2: #004D2D; --primary-text: #97D1AE; --focus: #5EB787;
    --haldi-soft: #3E2001; --haldi-text: #FFCCA0;
    --success-bg: #0F3206; --success-text: #A3CF99; --warning-bg: #3B2301; --warning-text: #FECD94; --info-bg: #052B46; --info-text: #9AC6ED;
    --night: #03200F; --night-2: #010A05;
    --glass: rgba(20, 17, 14, .78); --glass-line: rgba(255, 255, 255, .09);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7); --shadow-3: 0 2px 4px rgba(0, 0, 0, .4), 0 32px 64px -24px rgba(0, 0, 0, .8);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -16px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0C0906; --surface: #1B1814; --sunken: #15120F; --border: #2A2723; --border-strong: #76716D;
  --text: #FCFAF7; --muted: #D8D4CE; --subtle: #A49F9A;
  --primary: #97D1AE; --primary-hover: #C2E3CE; --on-primary: #02321C; --primary-soft: #0B2A1B; --primary-soft-2: #004D2D; --primary-text: #97D1AE; --focus: #5EB787;
  --haldi-soft: #3E2001; --haldi-text: #FFCCA0;
  --success-bg: #0F3206; --success-text: #A3CF99; --warning-bg: #3B2301; --warning-text: #FECD94; --info-bg: #052B46; --info-text: #9AC6ED;
  --night: #03200F; --night-2: #010A05;
  --glass: rgba(20, 17, 14, .78); --glass-line: rgba(255, 255, 255, .09);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7); --shadow-3: 0 2px 4px rgba(0, 0, 0, .4), 0 32px 64px -24px rgba(0, 0, 0, .8);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -16px rgba(0, 0, 0, .8);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--haldi); }
::selection { background: var(--haldi); color: #1B1814; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
/* headline rupee figures share the display face with the app's totals; digits are tabular there */
.figure { font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
[lang="hi"] { font-family: 'Noto Sans Devanagari', var(--font); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.haldi-text { color: var(--haldi-text); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
em[lang="hi"] { font-style: normal; font-weight: 600; }

/* ---------- buttons, badges, stickers, placeholders ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.btn .ic { width: 18px; height: 18px; transition: transform var(--dur-3) var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 22%, transparent); }
.night .btn:focus-visible, .site-header.on-dark .btn:focus-visible { box-shadow: 0 0 0 6px color-mix(in srgb, var(--haldi) 28%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--sunken); }
.btn-haldi { background: var(--haldi); color: #2A1600; box-shadow: 0 10px 30px -10px rgba(255, 181, 114, .6); }
.btn-haldi:hover { background: #FFC794; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 181, 114, .75); }
.btn-haldi::after { /* shine sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-haldi:hover::after { transform: translateX(120%); }
/* every control presses — the app's rule: translateY(1px) scale(.98), sub-100 ms */
:where(.btn, .chip, .ind-tab, .theme-toggle, .menu summary, .nav-desktop a, .menu-panel > a, .chips a, .replay, .faq summary, .link-arrow, .footer-nav a, .switch, .scroll-cue):active,
.seg label:active span { transform: translateY(1px) scale(.98); transition-duration: var(--dur-1); }
.btn-haldi:active { box-shadow: 0 6px 18px -10px rgba(255, 181, 114, .6); }
.btn-onchrome { background: rgba(252, 250, 247, .04); color: var(--night-text); border-color: rgba(252, 250, 247, .28); }
.btn-onchrome:hover { background: rgba(252, 250, 247, .12); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; vertical-align: .15em; }
.badge .ic { width: 13px; height: 13px; }
.badge-soon { background: var(--info-bg); color: var(--info-text); }
.badge-beta { background: var(--warning-bg); color: var(--warning-text); }
.todo {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px;
  border: 1.5px dashed var(--haldi-text); background: var(--haldi-soft); color: var(--haldi-text);
  font-size: 13px; font-weight: 650; line-height: 1.6; vertical-align: .05em;
}
.todo .ic { width: 14px; height: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-text); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--haldi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--haldi) 30%, transparent); }
.night .eyebrow { color: var(--haldi); }

.sticker {
  position: absolute; top: 18px; right: 18px; z-index: 2; rotate: 5deg;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 4px 0 -1px rgba(27, 24, 20, .14); transition: rotate var(--dur-3) var(--ease-spring), scale var(--dur-3) var(--ease-spring);
}
.sticker-emerald { background: #057045; color: #fff; }
.sticker-haldi { background: #FFB572; color: #2A1600; }
.sticker-ink { background: #1B1814; color: #FFB572; }
.card:hover .sticker { rotate: -4deg; scale: 1.08; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 17px; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow { transition: transform var(--dur-1) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--haldi); }

/* ---------- header: a floating glass pill that turns dark over night bands ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--hdr); padding: 8px var(--gutter) 0; }
.header-row {
  display: flex; align-items: center; gap: 20px; height: 60px; max-width: 1240px; margin-inline: auto; padding: 0 8px 0 18px;
  view-transition-name: site-header; /* on the pill itself: a named ancestor would become its backdrop root and kill the blur */
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 10px 30px -18px rgba(27, 24, 20, .35);
  transition: background-color .35s, border-color .35s, color .35s;
}
.site-header.on-dark .header-row { background: rgba(2, 22, 12, .5); border-color: rgba(252, 250, 247, .12); color: var(--night-text); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 22px; letter-spacing: -.03em; }
.mark { width: 32px; height: 32px; transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.06); }
.nav-desktop { display: flex; gap: 2px; margin-inline: auto; }
.nav-desktop a, .menu-panel > a { display: inline-flex; align-items: center; gap: 7px; color: inherit; opacity: .78; text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 13px; border-radius: 999px; transition: opacity var(--dur-1), background-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.nav-desktop a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-desktop a[aria-current="page"], .menu-panel > a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 11%, transparent); }
.nav-desktop a[aria-current="page"]::before, .menu-panel > a[aria-current="page"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--haldi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--haldi) 25%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.site-header .btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.site-header.on-dark .btn-primary { background: var(--haldi); color: #2A1600; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; cursor: pointer; transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.theme-toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.theme-toggle .ic { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.theme-toggle:hover .ic { transform: rotate(-25deg); }
.ic-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-sun { display: block; } :root:not([data-theme="light"]) .ic-moon { display: none; } }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); cursor: pointer; color: inherit; transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.menu summary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.menu summary::-webkit-details-marker { display: none; }
.menu .ic-close, .menu[open] .ic-menu { display: none; }
.menu[open] .ic-close { display: block; }
.menu-panel {
  position: absolute; right: -8px; top: calc(100% + 14px); width: min(360px, calc(100vw - 24px)); display: grid; gap: 2px; padding: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
}
.menu-panel > a { font-size: 17px; padding: 12px 14px; opacity: 1; }
.menu-panel > a[aria-current="page"] { background: var(--primary-soft); }
.menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.menu-cta .btn-ghost { color: var(--text); border-color: var(--border); }
.site-header.on-dark .menu-cta .btn-primary { background: var(--primary); color: var(--on-primary); }
@media (max-width: 980px) {
  .nav-desktop, .hide-sm { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; }
}

/* ---------- night bands: bottle green lit by an emerald + haldi aurora ---------- */
.night {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(170deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-text);
}
.night::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: clip; }
.aurora i { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; }
.aurora i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(5, 112, 69, .85), transparent); }
.aurora i:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(255, 181, 114, .30), transparent); }
.aurora i:nth-child(3) { left: 20%; bottom: -45vmax; background: radial-gradient(closest-side, rgba(151, 209, 174, .22), transparent); }
.night p, .night .lede { color: var(--night-muted); }
.night a:not(.btn) { color: var(--haldi); }
.hl { color: var(--haldi); }
.deva {
  position: absolute; z-index: -1; right: -3vw; top: 50%; translate: 0 -50%;
  font-family: 'Noto Sans Devanagari', var(--font); font-weight: 600; font-size: clamp(160px, 30vw, 420px); line-height: 1;
  color: rgba(255, 181, 114, .07); white-space: nowrap; pointer-events: none; user-select: none;
}

/* shared headline scale */
.display { font-size: clamp(38px, 6.2vw, 88px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--sunken); }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede, .page-hero .lede { margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 62ch; }
.section-head.center .lede { margin-inline: auto; }
.night .section-head .lede { color: var(--night-muted); }

/* masked headline lines (animated on load in the motion block) */
.rise-title .line { display: block; overflow: clip; padding: .12em .1em .2em; margin: -.12em -.1em -.2em; }
.rise-title .line > span { display: inline-block; }

/* inner page hero */
main > .night:first-child { margin-top: calc(-1 * var(--hdr)); }
.page-hero { padding-block: calc(var(--hdr) + clamp(64px, 11vw, 150px)) clamp(64px, 9vw, 120px); }
.page-hero h1 { font-size: clamp(44px, 7.6vw, 108px); font-weight: 800; letter-spacing: -.04em; line-height: .95; max-width: 15ch; }
.page-hero .lede { color: var(--night-muted); }

/* ---------- home hero ---------- */
.hero { min-height: min(100svh, 1000px); display: grid; align-items: center; padding-block: calc(var(--hdr) + clamp(32px, 6vw, 64px)) clamp(72px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(60px, 8.8vw, 136px); font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.hero h1 .pakka { color: var(--haldi); position: relative; white-space: nowrap; }
.swash { position: absolute; left: 0; right: .2em; bottom: -.06em; width: calc(100% - .2em); height: .16em; }
.hero-lede { margin-top: 40px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 36ch; }
.night .hero-lede strong { color: var(--night-text); font-weight: 650; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { color: var(--haldi); width: 16px; height: 16px; }
/* behind the bill column, never under the copy */
.deva-hero { left: auto; right: -1vw; top: auto; bottom: 0; translate: none; font-size: clamp(110px, 19vw, 300px); color: rgba(255, 181, 114, .06); }
@media (max-width: 900px) { .deva-hero { bottom: -2%; font-size: 30vw; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border-radius: 999px; border: 2px solid rgba(252, 250, 247, .35); transition: border-color var(--dur-2), transform var(--dur-1) var(--ease-out); }
.scroll-cue:hover { border-color: var(--haldi); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--haldi); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .scroll-cue { display: none; } }

/* the bill scene */
.scene { position: relative; display: grid; place-items: center; padding: 48px 0 110px; }
.bill-wrap { position: relative; width: min(100%, 390px); }
.bill {
  position: relative; padding: 22px 22px 18px; border-radius: 20px;
  background: #FFFFFF; color: #1B1814; box-shadow: 0 2px 6px rgba(27, 24, 20, .12), 0 50px 90px -30px rgba(27, 24, 20, .5);
  rotate: -2.5deg; font-size: 14px;
}
.scene .bill { box-shadow: var(--shadow-night); }
.bill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #76716D; }
.bill-shop { margin: 10px 0 2px; font-weight: 750; font-size: 16px; letter-spacing: -.01em; }
.bill-meta { font-size: 12px; color: #76716D; margin-bottom: 12px; }
.bill-row { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.bill-row small { color: #76716D; }
.bill-rule { border-top: 1px dashed #D5CFC8; margin: 8px 0; }
.bill-sub { color: #56524E; font-size: 13px; }
.bill-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.bill-split span { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chip-c { background: #F0F7F3; color: #015D38; }
.chip-s { background: #FEEFE3; color: #7A4502; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 6px; border-top: 2px solid #FFB572; font-weight: 800; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bill-total .num, .bill-total b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.bill-tax { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #F0F7F3; color: #015D38; font-size: 12.5px; font-weight: 650; }
.bill-tax .ic { width: 15px; height: 15px; }
.stamp {
  position: absolute; right: -26px; top: -54px; rotate: -10deg; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 16px; border: 3px solid #057045; border-radius: 12px; outline: 1.5px solid #057045; outline-offset: 3px;
  color: #057045; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  background: rgba(240, 247, 243, .82); mix-blend-mode: multiply;
}
.stamp .ic { width: 24px; height: 24px; stroke-width: 3.2; }
.scene .stamp { background: #F0F7F3; mix-blend-mode: normal; box-shadow: 0 10px 24px -10px rgba(1, 26, 14, .55); }
.seal { position: absolute; z-index: 2; right: -60px; bottom: -104px; width: 136px; height: 136px; rotate: -14deg; filter: drop-shadow(0 18px 30px rgba(1, 26, 14, .5)); }
.float-chip {
  position: absolute; z-index: 2; left: -36px; top: -30px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: rgba(4, 23, 13, .72); border: 1px solid rgba(151, 209, 174, .28);
  color: var(--night-text); font-size: 13px; font-weight: 650; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -12px rgba(1, 26, 14, .7);
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--haldi); box-shadow: 0 0 0 4px rgba(255, 181, 114, .2); }
.replay {
  position: absolute; left: 0; bottom: 8px; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(252, 250, 247, .22); background: rgba(252, 250, 247, .06); color: var(--night-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.replay { transition: background-color var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.replay:hover { color: var(--night-text); background: rgba(252, 250, 247, .12); }
.replay .ic { width: 15px; height: 15px; }
.js .replay { display: inline-flex; }
@media (max-width: 480px) {
  .scene { padding: 64px 0 120px; }
  .seal { width: 84px; height: 84px; right: -4px; bottom: -96px; }
  .float-chip { left: -4px; top: auto; bottom: -58px; }
  .js .replay { top: 8px; bottom: auto; }
  .bill { font-size: 13px; padding: 18px 16px 14px; }
  .stamp { font-size: 18px; right: -6px; top: -44px; }
}

/* ---------- trades: marquee tapes ---------- */
.trades-section { overflow: clip; }
.tapes { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 36px; }
.tape { position: relative; padding-block: 14px; width: 108%; margin-left: -4%; overflow: clip; box-shadow: 0 18px 40px -24px rgba(27, 24, 20, .35); }
.tape-haldi { background: var(--haldi); color: #2A1600; rotate: -1.5deg; z-index: 1; }
.tape-emerald { background: #057045; color: #fff; rotate: 1deg; margin-top: 44px; }
.tape-track { display: flex; }
.tape-list { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.tape-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: clamp(16px, 1.9vw, 22px); letter-spacing: -.02em; white-space: nowrap; }
.tape-list li::after { content: '✦'; margin-left: 24px; font-size: .7em; opacity: .55; }
.tape-list .ic { width: 1.1em; height: 1.1em; }
.tape-dup { display: none; }
.trades-note { margin: 32px auto 0; color: var(--muted); font-size: 16px; text-align: center; max-width: 62ch; }

/* ---------- story: Bill → Sync → Paid → Close ---------- */
.story { padding-block: clamp(80px, 11vw, 150px); }
.story .display .hl { color: var(--haldi); }
.story-stage { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 28px; padding-block: 36px; justify-items: center; }
.step + .step { border-top: 1px solid var(--night-line); }
.step-copy { max-width: 520px; }
.step-k { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--haldi) !important; }
.step-k .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 181, 114, .14); }
.step h3 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 16px; color: var(--night-text); }
.step-copy p:last-child { font-size: clamp(16px, 1.5vw, 19px); }
@media (min-width: 961px) { .step { grid-template-columns: 1fr 1fr; justify-items: start; align-items: center; } .step-screen { justify-self: center; } }

.phone {
  position: relative; width: 300px; max-width: 100%; border-radius: 46px; padding: 10px;
  background: linear-gradient(150deg, #2B3A32, #0A0F0C 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(1, 26, 14, .9);
}
.phone::before { content: ''; position: absolute; left: 50%; top: 20px; z-index: 3; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #0A0F0C; }
.phone-screen { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 36px; overflow: clip; background: #FCFAF7; color: #1B1814; font-size: 13px; line-height: 1.4; min-height: 548px; }
.scr { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; padding: 52px 14px 16px; position: relative; }
.app-bar { display: flex; align-items: center; gap: 8px; }
.app-bar b { font-size: 17px; letter-spacing: -.02em; }
.app-mark { width: 24px; height: 24px; }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: #E1EEDE; color: #24700D; }
.pill-warn { background: #FFF0DF; color: #7F5001; }
.pill-haldi { background: #FEEFE3; color: #965603; }
.app-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #057045; background: #fff; color: #76716D; }
.app-search .ic { color: #057045; }
.app-cust { display: grid; padding: 8px 12px; border-radius: 12px; background: #F6F4F1; }
.app-cust span { font-size: 11.5px; color: #56524E; }
.app-lines { display: grid; gap: 2px; }
.app-line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #E9E4DE; font-variant-numeric: tabular-nums; }
.app-line small { color: #76716D; }
.app-sentence { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #F0F7F3; color: #015D38; font-weight: 600; font-size: 12.5px; }
.app-sentence .ic { width: 16px; height: 16px; }
.app-total, .app-amount { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.app-total b, .app-amount b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.app-total { padding-top: 8px; border-top: 2px solid #FFB572; }
.app-amount { flex-direction: column; align-items: center; padding: 8px 0 4px; }
.app-amount span { font-size: 12px; color: #56524E; }
.app-amount b { font-size: 34px; }
.app-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 999px; background: #057045; color: #fff; font-weight: 700; }
.app-btn-dark { background: #02321C; }
.app-btn .ic { width: 16px; height: 16px; }
.app-banner { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: #FFF0DF; color: #7F5001; }
.app-banner div { display: grid; }
.app-banner span { font-size: 12px; }
.app-queue { display: grid; gap: 8px; }
.q-row { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid #E9E4DE; font-variant-numeric: tabular-nums; font-weight: 600; }
.q-row .ic { color: #76716D; width: 16px; height: 16px; }
.q-st { margin-left: auto; display: grid; font-style: normal; font-size: 11px; font-weight: 700; }
.q-st > span { grid-area: 1 / 1; padding: 2px 8px; border-radius: 999px; text-align: center; }
.q-wait { background: #FFF0DF; color: #7F5001; }
.q-ok { background: #E1EEDE; color: #24700D; }
.q-flip .q-wait { opacity: 0; }
.app-note { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #F0F7F3; color: #015D38; font-weight: 600; font-size: 12.5px; }
.app-modes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.app-modes span { padding: 6px 11px; border-radius: 999px; border: 1px solid #E9E4DE; background: #fff; font-weight: 600; font-size: 12px; }
.app-modes .on { background: #057045; border-color: #057045; color: #fff; }
.app-qr { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #F6F4F1; font-size: 12px; color: #56524E; }
.qr { width: 132px; height: 132px; }
.app-split { display: flex; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; color: #56524E; }
.app-paid { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; background: #E1EEDE; color: #24700D; }
.app-rows { display: grid; gap: 6px; }
.app-rows div { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #E9E4DE; font-variant-numeric: tabular-nums; }
.app-rows span { color: #56524E; }
.app-rows .diff { background: #E1EEDE; border-color: #E1EEDE; }
.app-rows .diff b { color: #24700D; }
.app-chain { display: grid; gap: 4px; justify-items: start; font-size: 11.5px; color: #56524E; }
.app-chain i { width: 2px; height: 10px; margin-left: 20px; background: #FFB572; }
.app-chain code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.app-seal { position: absolute; right: 8px; bottom: 78px; width: 108px; height: 108px; rotate: -12deg; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }

/* ---------- statement + bento ---------- */
.statement { max-width: 1040px; margin-bottom: clamp(48px, 7vw, 96px); }
.lit { margin-top: 28px; font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.14; color: var(--text); text-wrap: pretty; }
.lit-center { max-width: 1040px; margin: 0 auto; text-align: center; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: clip; isolation: isolate; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1);
  transform: perspective(1000px) rotateX(var(--ry)) rotateY(var(--rx));
  transition: transform .5s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
/* grids stagger in by position, capped at the sixth child — the app's rule */
:is(.bento, .plans, .flist, .sec-grid, .principles, .faq, .notlist, .contact-list, .shots-side) > :nth-child(2) { --i: 1; }
:is(.bento, .plans, .flist, .sec-grid, .principles, .faq, .notlist, .contact-list, .shots-side) > :nth-child(3) { --i: 2; }
:is(.bento, .plans, .flist, .sec-grid, .principles, .faq, .notlist, .contact-list, .shots-side) > :nth-child(4) { --i: 3; }
:is(.bento, .plans, .flist, .sec-grid, .principles, .faq, .notlist, .contact-list, .shots-side) > :nth-child(5) { --i: 4; }
:is(.bento, .plans, .flist, .sec-grid, .principles, .faq, .notlist, .contact-list, .shots-side) > :nth-child(n + 6) { --i: 5; }
.card[data-tilt]::before { /* cursor spotlight */
  content: ''; position: absolute; z-index: -1; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--haldi) 26%, transparent), transparent);
  transform: translate(var(--px, 50%), var(--py, 50%)); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card[data-tilt]:hover::before { opacity: 1; }
.card h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 750; letter-spacing: -.025em; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .kicker { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 18px; }
.card .kicker .ic { width: 22px; height: 22px; }
.card-haldi .kicker { background: var(--haldi-soft); color: var(--haldi-text); }
.card-foot { margin-top: 14px; font-size: 14px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-2 { grid-column: span 2; } .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .span-2, .span-3, .span-4 { grid-column: span 1; } .span-6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-6 { grid-column: span 1; } }
.card-chrome { background: linear-gradient(160deg, #03402A, #02321C 60%, #01200F); color: var(--night-text); border-color: transparent; }
.card-chrome p { color: var(--night-muted); }
.card-chrome .kicker { background: rgba(255, 181, 114, .14); color: var(--haldi); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .card-row { grid-template-columns: 1fr; } }
.more-link { margin-top: 36px; }

.mini { margin-top: 22px; border-radius: var(--r-lg); background: var(--sunken); border: 1px solid var(--border); padding: 14px; font-size: 14px; }
.card-chrome .mini { background: rgba(252, 250, 247, .05); border-color: var(--night-line); }
.sentence { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; flex-wrap: wrap; }
.sentence + .sentence { margin-top: 8px; }
.sentence .arrow { color: var(--subtle); }
.sentence .rate { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--primary-text); }
.queue { display: grid; gap: 8px; }
.queue-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.queue-row .ic { color: var(--subtle); }
.queue-row .st { margin-left: auto; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--warning-bg); color: var(--warning-text); }
.queue-row .st.ok { background: var(--success-bg); color: var(--success-text); }
.chain { display: grid; gap: 0; }
.chain-day { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(252, 250, 247, .06); border: 1px solid var(--night-line); font-size: 13px; }
.chain-day code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--night-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-day .ic { color: var(--haldi); }
.chain-link { width: 2px; height: 12px; margin-left: 20px; background: var(--haldi); opacity: .6; }
.ageing { display: grid; gap: 10px; }
.age-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.age-row .bar { height: 10px; border-radius: 999px; background: var(--primary-soft-2); overflow: hidden; }
.age-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transform-origin: left; transform: scaleX(var(--w)); }
.age-row.late .bar i { background: var(--haldi); }
.catalogue-list { display: flex; flex-wrap: wrap; gap: 8px; }
.catalogue-list span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 550; }
.catalogue-list span.cat { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary-text); }

/* ---------- stats ---------- */
.stats-section { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(56px, 7.4vw, 112px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--primary-text);
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ---------- product frames, video ---------- */
.frame { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--sunken); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.frame-bar i:nth-child(1) { background: #FF8A7A; } .frame-bar i:nth-child(2) { background: #FFB572; } .frame-bar i:nth-child(3) { background: #5EB787; }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.shots > * { min-width: 0; }
.shot-main { margin: 0; }
.shots-side { display: grid; gap: 20px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.placeholder {
  display: grid; place-items: center; text-align: center; gap: 8px; aspect-ratio: 16 / 10; padding: 20px;
  border-radius: var(--r-xl); border: 1.5px dashed var(--border-strong); color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--border) 45%, transparent) 14px 15px), var(--surface);
}
.placeholder > .ic { width: 28px; height: 28px; color: var(--subtle); }
.placeholder b { color: var(--text); display: block; }
.demo-section { padding-top: 0; }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-2xl); display: grid; place-items: center; text-align: center; padding: 24px; box-shadow: var(--shadow-3); }
.video .play { width: clamp(64px, 9vw, 112px); height: clamp(64px, 9vw, 112px); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(252, 250, 247, .08); border: 1.5px solid rgba(255, 181, 114, .6); color: var(--haldi); backdrop-filter: blur(6px); }
.video .play .ic { width: 38%; height: 38%; margin-left: 6%; }
.video strong { display: block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 36px); letter-spacing: -.025em; }
.video p { margin-top: 8px; font-size: 15px; }
.video.has-film { padding: 0; overflow: hidden; background: #0b1f16; }
.video.has-film video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video.has-film { position: relative; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 31, 22, .18); border: 0; cursor: pointer; }
.film-play[hidden] { display: none; }
.film-play .play { margin: 0; background: rgba(11, 31, 22, .78); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.film-play:hover .play { transform: scale(1.06); }
.film-play:focus-visible { outline: none; }
.film-play:focus-visible .play { outline: 3px solid var(--haldi); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .film-play .play { transition: none; } }

/* ---------- final CTA ---------- */
.cta-section { padding-top: 0; }
.cta-band {
  border-radius: var(--r-2xl); padding: clamp(48px, 9vw, 120px) clamp(22px, 6vw, 88px);
  display: grid; grid-template-columns: 1.3fr auto; gap: 36px; align-items: end;
}
.cta-band h2 { font-size: clamp(40px, 6.8vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.cta-band h2 span { color: var(--haldi); }
.cta-band p { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; }
.cta-band .hero-cta { margin-top: 0; }
.deva-cta { right: 3%; font-size: clamp(120px, 17vw, 260px); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; align-items: start; } .deva-cta { display: none; } }

/* ---------- features page ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 650; transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.chips a:hover { border-color: var(--primary); transform: translateY(-2px); }
.chips a .ic { color: var(--primary-text); width: 16px; height: 16px; }
.chips-bar { position: sticky; top: var(--hdr); z-index: 40; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.fgroup { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--border); }
.fgroup:first-of-type { border-top: 0; }
.fgroup-head { align-self: start; position: sticky; top: calc(var(--hdr) + 80px); }
.fnum { display: block; font-family: var(--font-display); font-size: clamp(56px, 6vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--haldi-text); margin-bottom: 14px; }
.fgroup-head .kicker { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 16px; }
.fgroup-head .kicker .ic { width: 26px; height: 26px; }
.fgroup-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.045em; }
.fgroup-head p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .fgroup { grid-template-columns: 1fr; } .fgroup-head { position: static; } .fnum { display: none; } }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .flist { grid-template-columns: 1fr; } }
.flist li { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .3s; }
.flist li:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-lift); }
.flist li > .ic { color: var(--success-text); margin-top: 3px; }
.flist li b { display: block; font-weight: 700; margin-bottom: 2px; }
.flist li span.d { color: var(--muted); font-size: 15px; }
.flist li.soon { background: transparent; border-style: dashed; }
.flist li.soon > .ic { color: var(--info-text); }
.flist li.flist-soon-title { display: block; padding: 0; border: 0; background: none; box-shadow: none; grid-column: 1 / -1; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

/* ---------- why page ---------- */
.kaccha-word { position: relative; color: var(--night-muted); }
.kaccha-word::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: .09em; border-radius: 99px; background: var(--haldi); transform-origin: left; }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: clip; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-2); }
.problem + .problem { margin-top: 24px; }
.problem > div { padding: clamp(24px, 4vw, 48px); }
.problem .kaccha { background: var(--sunken); border-right: 1px solid var(--border); }
.problem .label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.problem .kaccha .label { color: var(--subtle); }
.problem .pakka { position: relative; }
.problem .pakka .label { color: var(--primary-text); }
.problem h2, .problem h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 780; letter-spacing: -.04em; margin-bottom: 14px; }
.problem ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.problem li { display: flex; gap: 10px; color: var(--muted); }
.problem .kaccha li span { text-decoration: line-through 1.5px color-mix(in srgb, var(--haldi-text) 55%, transparent); }
.problem .kaccha li .ic { color: var(--subtle); margin-top: 4px; }
.problem .pakka li .ic { color: var(--success-text); margin-top: 4px; }
.problem .pakka li b { color: var(--text); font-weight: 680; }
@media (max-width: 760px) { .problem { grid-template-columns: 1fr; } .problem .kaccha { border-right: 0; border-bottom: 1px solid var(--border); } }
.notlist { display: grid; gap: 0; border-top: 1px solid var(--border); }
.notlist .card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 40px; padding: 28px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; transform: none; }
.notlist .card h3 { margin: 0; }
.notlist .card p { margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .notlist .card { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-lg); background: var(--haldi-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--haldi-text) 35%, transparent); }
.notice > .ic { color: var(--haldi-text); width: 22px; height: 22px; margin-top: 2px; }
.notice b { display: block; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-3); background: linear-gradient(165deg, var(--haldi-soft), var(--surface) 42%); }
.plans-section { padding-top: clamp(24px, 4vw, 40px); }
.plans-note { margin-top: 20px; font-size: 14px; max-width: 65ch; }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h2 { font-size: 26px; font-weight: 780; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .for { color: var(--muted); margin-top: -8px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-block: 10px; border-block: 1px solid var(--border); }
.price b { font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -.03em; color: var(--subtle); font-variant-numeric: tabular-nums; }
.plan-featured .price { border-top: 2px solid var(--haldi); }
.plan-featured .price b { color: var(--text); }
.price span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .ic { color: var(--success-text); margin-top: 3px; }
.plan .btn { width: 100%; }
.plan[data-tilt]::before { display: none; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.faq details:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: var(--shadow-1); }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-radius: inherit; transition: transform var(--dur-1) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); font-size: 20px; font-weight: 500; color: var(--primary-text); line-height: 1; flex: none; transition: transform var(--dur-3) var(--ease-spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }

/* ---------- security / prose ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card h2 { font-size: clamp(21px, 2.3vw, 26px); font-weight: 760; letter-spacing: -.03em; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.sec-card h2 .kicker { margin: 0; width: 42px; height: 42px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.status .ic { width: 14px; height: 14px; }
.status-built { background: var(--success-bg); color: var(--success-text); }
.status-planned { background: var(--info-bg); color: var(--info-text); }
.card ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.card ul.ticks li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.card ul.ticks li .ic { color: var(--success-text); margin-top: 4px; }
.prose { max-width: 65ch; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.draft-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--r-lg); border: 2px dashed var(--haldi-text); background: var(--haldi-soft); }
.draft-banner .ic { color: var(--haldi-text); width: 24px; height: 24px; }
.legal-slot { padding: 14px 18px; border-radius: var(--r-md); background: var(--sunken); border: 1px dashed var(--border-strong); color: var(--muted); font-size: 14px; font-style: italic; }
span.legal-slot { padding: 2px 10px; }

/* ---------- about / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.meaning { margin: 0; font-size: clamp(88px, 14vw, 190px); line-height: 1.15; font-weight: 600; letter-spacing: 0; color: var(--primary-text); }
.meaning-def { font-size: 20px; margin-top: 8px; }
.sub-h { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 22px; }
.principles { display: grid; gap: 14px; counter-reset: p; list-style: none; margin: 0; padding: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .3s; }
.principles li:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-lift); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--haldi-text); font-size: 26px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.principles b { display: block; margin-bottom: 4px; }
.principles span { color: var(--muted); }
form.contact { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 14px; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--canvas); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  min-height: 50px; padding: 10px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 18%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { padding: 12px 16px; border-radius: var(--r-md); background: var(--info-bg); color: var(--info-text); font-size: 15px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.contact-list li > .ic { color: var(--primary-text); width: 22px; height: 22px; }
.contact-list b { min-width: 90px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: clip; border-top: 1px solid var(--border); background: var(--sunken); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.footer-brand p { max-width: 42ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; align-content: start; }
.footer-nav a { color: var(--text); text-decoration: none; font-size: 15px; width: fit-content; padding-block: 2px; transition: color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.footer-nav a:hover { color: var(--primary-text); text-decoration: underline; text-decoration-color: var(--haldi); }
.footer-nav a[data-cta] { font-weight: 650; }
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: var(--primary-text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-brand .brand { color: var(--text); }
.footer-tag { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 6px; text-wrap: balance; }
.footer-word {
  margin: 56px 0 0; text-align: center; white-space: nowrap; font-family: var(--font-display); font-size: clamp(40px, 12vw, 192px); font-weight: 800; letter-spacing: -.045em; line-height: .9;
  color: color-mix(in srgb, var(--text) 9%, transparent); user-select: none;
}
.footer-word span { background: linear-gradient(120deg, var(--primary), var(--haldi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================================
 * INTERACTIVE SECTIONS (Sep 2026): khata → pakka, GST calculator, trade picker, offline demo,
 * receipt progress strip, film grain. Static styles here; their motion is in the last block.
 * ===================================================================================== */
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/kalam-latin-400-subset.woff2) format('woff2'); unicode-range: U+0020-007E, U+00D7, U+2014; }
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/kalam-devanagari-400-subset.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
/* "पक्का" in six more scripts — each file holds only that one word's glyphs */
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-tamil-600-pakka.woff2) format('woff2'); unicode-range: U+0B80-0BFF; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-telugu-600-pakka.woff2) format('woff2'); unicode-range: U+0C00-0C7F; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-malayalam-600-pakka.woff2) format('woff2'); unicode-range: U+0D00-0D7F; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-bengali-600-pakka.woff2) format('woff2'); unicode-range: U+0980-09FF; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-gujarati-600-pakka.woff2) format('woff2'); unicode-range: U+0A80-0AFF; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-kannada-600-pakka.woff2) format('woff2'); unicode-range: U+0C80-0CFF; }
@font-face { font-family: 'Pakka Scripts'; font-weight: 600; font-display: swap; src: url(/assets/fonts/noto-sans-gurmukhi-600-pakka.woff2) format('woff2'); unicode-range: U+0A00-0A7F; }

/* "Har bill pakka." in nine languages (hero + footer): a static wrapping list by default (also what
   reduced-motion users get); the cross-fade is in the motion block. */
.tongues { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 26px; font: 600 clamp(18px, 1.9vw, 24px)/1.7 'Noto Sans Devanagari', 'Pakka Scripts', var(--font); color: var(--haldi); }
.tongues-sm { margin: 0 0 8px; font-size: 17px; color: var(--haldi-text); }

.hl-ink { color: var(--primary-text); }
html:not(.js) [data-wifi], html:not(.js) [data-ring] { display: none; }

/* film grain: one fixed layer, no blending */
body::before {
  content: ''; position: fixed; inset: -64px; z-index: 200; pointer-events: none;
  background-image: var(--grain); background-size: 200px; opacity: .045;
}

/* cursor spotlight on interactive panels (position set by site.js) */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before {
  content: ''; position: absolute; z-index: -1; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--haldi) 20%, transparent), transparent);
  transform: translate(var(--px, -999px), var(--py, -999px)); opacity: 0; transition: opacity .3s; pointer-events: none;
}
[data-spot]:hover::before { opacity: 1; }
.btn { translate: var(--mx, 0) var(--my, 0); }

/* hero: multi-script word, trade picker, one-line bill rows (so swapping trades never reflows) */
.deva-cycle { display: grid; justify-items: end; }
.deva-cycle > span { grid-area: 1 / 1; font-family: 'Noto Sans Devanagari', 'Pakka Scripts', var(--font); }
.deva-cycle > span + span { opacity: 0; }
.trade-pick { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.trade-pick legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.trade-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 36px 8px 4px; margin: -4px 0 0 -4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.trade-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(252, 250, 247, .24); background: rgba(252, 250, 247, .05); color: var(--night-text);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.chip:hover { background: rgba(252, 250, 247, .12); }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip .ic { width: 16px; height: 16px; }
.chip:has(input:checked) { background: var(--haldi); border-color: var(--haldi); color: #2A1600; }
.chip:has(input:focus-visible) { outline: 3px solid var(--haldi); outline-offset: 2px; }
.bill-row > span:first-child, .app-line > span:first-child { display: flex; gap: 6px; min-width: 0; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-row small, .app-line small { flex: none; }
.bill-split span { justify-content: flex-start; }
.bill-split i { font-style: normal; margin: 0 auto 0 -2px; }
.bill-tax span { min-width: 0; }

/* catalogue card: one trade's real categories */
.catalogue-list { display: block; }
.catalogue-list .cat-title { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.catalogue-list .cat-title b { color: var(--text); }
.catalogue-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.catalogue-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.catalogue-list li[hidden] { display: none; }

/* ---------- industry examples ---------- */
.app-frag { display: contents; }
.q-row .q-id { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.q-row .q-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #56524E; font-size: 11.5px; }
.bill-split.one, .kb-split.one { grid-template-columns: 1fr; }
.kb-split.one span:only-child { background: #F0F7F3; color: #015D38; }
.bill-meta { margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-meta + .bill-meta:not(.bill-to) { margin-bottom: 12px; }
.bill-meta b { color: #1B1814; font-weight: 650; }
.bill-meta i { font-style: normal; color: #965603; }
.ind-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ind-tab { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.ind-tab .ic { width: 17px; height: 17px; }
.ind-tab:hover { border-color: var(--primary); color: var(--primary-text); }
.ind-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.age-row span:first-child small { display: block; font-size: 11.5px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age-row { grid-template-columns: minmax(0, 118px) 1fr auto; }

/* ---------- khata → pakka ---------- */
.khata { position: relative; }
.khata-track { padding-block: clamp(72px, 10vw, 140px); }
.khata-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.khata-copy .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 44ch; }
.khata-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.khata-steps li { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.khata-steps .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); }
.khata-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.kpage { position: relative; margin: 0; aspect-ratio: 400 / 520; width: 100%; container-type: inline-size; overflow: clip; box-shadow: var(--shadow-3); }
.kpage-before { background: linear-gradient(135deg, #F8EDCD, #EFDDB0); border-radius: 4px 14px 14px 4px; rotate: -1.5deg; }
.kpage-after { background: #FFFFFF; color: #1B1814; border-radius: 16px; rotate: 1deg; box-shadow: inset 0 0 0 1px rgba(255, 181, 114, .55), var(--shadow-3); } /* the app's sealed-day frame: the bill that adds up carries a haldi hairline */
.kcap { position: absolute; left: 4cqi; bottom: 3.6cqi; padding: .5cqi 2.6cqi; border-radius: 999px; font-size: 3cqi; font-weight: 700; letter-spacing: .02em; }
.kpage-before .kcap { background: rgba(36, 53, 111, .1); color: #24356F; }
.kpage-after .kcap { background: #F0F7F3; color: #015D38; }
.khata-svg { display: block; width: 100%; height: 100%; }
.khata-svg .rules line { stroke: #93AED3; stroke-width: 1; opacity: .75; }
.khata-svg .margin { stroke: #D9776B; stroke-width: 1.6; }
.khata-svg text { font-family: 'Kalam', 'Noto Sans Devanagari', cursive; fill: #24356F; }
.khata-svg .struck { fill: #4A5A93; }
.khata-svg .ink:is(path, ellipse) { fill: none; stroke: #24356F; stroke-width: 2.4; stroke-linecap: round; }
.khata-svg .strike { stroke: #B3261E !important; stroke-width: 3 !important; }
.scan { position: absolute; inset: 0 0 auto; height: 16%; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(255, 181, 114, .6) 60%, rgba(5, 112, 69, .55) 62%, transparent); }
.kbill { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.6cqi; padding: 6.5cqi 7cqi 16cqi; font-size: 3.5cqi; line-height: 1.35; }
.kb-head { display: flex; justify-content: space-between; font-size: 2.8cqi; font-weight: 700; letter-spacing: .12em; color: #76716D; }
.kb-shop { font-weight: 750; font-size: 4.2cqi; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-shop small { font-weight: 550; color: #56524E; font-size: 3.2cqi; }
.kb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kb-table th { font-size: 2.7cqi; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #76716D; text-align: left; padding-bottom: 1cqi; border-bottom: 1px solid #E9E4DE; }
.kb-table td { padding: 1.2cqi 0 .2cqi; }
.kb-gst td { padding: 0 0 1.2cqi; background: linear-gradient(90deg, #E0DAD3 60%, transparent 0) bottom / 6px 1px repeat-x; font-size: 2.8cqi; font-weight: 650; color: #015D38; white-space: nowrap; } /* each line's GST, from the engine */
.kb-table td:nth-child(2) { width: 10cqi; text-align: center; }
.kb-table .r { text-align: right; }
.kb-sub { display: flex; justify-content: space-between; color: #56524E; font-size: 3.2cqi; }
.kb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; }
.kb-split span { display: flex; justify-content: space-between; padding: 1.4cqi 2.4cqi; border-radius: 2.4cqi; font-weight: 650; font-size: 3.1cqi; }
.kb-split span:first-child { background: #F0F7F3; color: #015D38; }
.kb-split span:last-child { background: #FEEFE3; color: #7A4502; }
.kb-total { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.6cqi; font-weight: 800; font-size: 5.4cqi; letter-spacing: -.02em; }
.kb-total::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: #FFB572; transform-origin: left; } /* the haldi rule: money moment */
.kb-total .num, .kb-total b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.kb-pay { display: flex; justify-content: space-between; gap: 2cqi; font-size: 3cqi; color: #56524E; }
.kb-pay b { color: #1B1814; }
.kb-tax { display: flex; align-items: center; gap: 1.6cqi; padding: 1.6cqi 2.4cqi; border-radius: 2.4cqi; background: #F0F7F3; color: #015D38; font-weight: 650; font-size: 3cqi; }
.kb-tax .ic { width: 3.6cqi; height: 3.6cqi; }
.kpage-art { position: absolute; inset: 0; }
.khata-svg .faint { fill: #5B6BA3; }
.kb-gstin { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 2.9cqi; color: #56524E; font-variant-numeric: tabular-nums; }
.kb-shop small { display: inline; }
.kb-table td:first-child { max-width: 0; width: 60%; }
.kb-table td .nm { display: block; }
.kb-stamp { top: auto; bottom: 3.4cqi; right: 5cqi; font-size: 5.6cqi; padding: 1.2cqi 2.8cqi; }
.kb-stamp .ic { width: 5.6cqi; height: 5.6cqi; }
@media (max-width: 860px) { .khata-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .khata-stage { grid-template-columns: 1fr; } }

/* ---------- GST calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.calc > * { min-width: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
.calc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.calc-form .field input, .calc-form .field select { height: 50px; }
.calc-src > span { min-width: 0; overflow-wrap: anywhere; }
.calc-pair > *, .calc-form .field { min-width: 0; }
@media (max-width: 520px) { .calc-pair { grid-template-columns: 1fr; } }
.calc-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; text-overflow: ellipsis; }
.calc-form [aria-invalid="true"] { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194, 65, 12, .18); }
.seg { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.seg legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-weight: 650; font-size: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 650; font-size: 15px; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.seg label:hover span { border-color: var(--primary); }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-hint { display: flex; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); }
.calc-hint .ic { color: var(--haldi-text); margin-top: 3px; }
.calc-hint b { color: var(--text); font-weight: 650; }
.calc-out { border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-3); }
.calc-sentence { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(151, 209, 174, .13); color: var(--night-text) !important; font-weight: 650; }
.calc-sentence .ic { color: var(--haldi); }
.calc-rows { margin: 0; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--night-line); }
.calc-row[hidden] { display: none; }
.calc-row dt { flex: none; color: var(--night-muted); }
.calc-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; font-weight: 650; color: var(--night-text); font-variant-numeric: tabular-nums; }
.calc-total { border-bottom: 0; border-top: 2px solid var(--haldi); margin-top: 6px; padding-top: 14px; }
.calc-total dt { color: var(--night-text); font-weight: 750; font-size: 18px; }
.calc-out { container-type: inline-size; }
.calc-total { flex-wrap: wrap; }
.calc-total dd { margin-left: auto; text-align: right; overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(28px, 10.5cqi, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--night-text); display: inline-block; }
.calc-error { display: none; margin: 0; }
[data-state="error"] .calc-error { display: block; padding: 12px 14px; border-radius: 12px; background: rgba(255, 138, 122, .16); color: #FFE1DB !important; font-weight: 600; }
[data-state="error"] :is(.calc-rows, .calc-meta, .calc-sentence) { opacity: .3; }
.calc-meta { margin-top: auto; font-size: 14px; }
.calc-meta p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
.calc-meta b { color: var(--night-text); }
.calc-src { flex-wrap: nowrap !important; }
.calc-src .ic { color: var(--haldi); margin-top: 3px; }
.calc-foot { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 65ch; }

/* ---------- offline switch demo ---------- */
.offline-section { padding-top: 0; }
.off-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.off-grid > * { min-width: 0; }
@media (max-width: 900px) { .off-grid { grid-template-columns: 1fr; } }
.off-copy .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.off-disclaimer { display: flex; gap: 10px; width: fit-content; margin-top: 22px; padding: 10px 14px; border-radius: 12px; background: var(--warning-bg); color: var(--warning-text); font-size: 14px; font-weight: 600; }
.off-disclaimer .ic { margin-top: 3px; }
.off-panel { padding: 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); transition: background-color .5s, border-color .5s; }
.off-panel[data-online="false"] { background: color-mix(in srgb, var(--warning-bg) 50%, var(--surface)); border-color: color-mix(in srgb, var(--warning-text) 35%, var(--border)); }
.off-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.switch { flex: none; width: 66px; height: 38px; padding: 4px; border: 0; border-radius: 999px; background: var(--primary); cursor: pointer; transition: background-color var(--dur-3), transform var(--dur-1) var(--ease-out); }
.switch:hover { filter: brightness(1.08); }
.switch[aria-checked="false"] { background: var(--border-strong); }
.switch-track { position: relative; display: block; height: 100%; }
.switch-thumb { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFFFFF; color: #057045; box-shadow: 0 2px 6px rgba(27, 24, 20, .25); translate: 28px 0; transition: translate var(--dur-3) var(--ease-spring); }
.switch[aria-checked="false"] .switch-thumb { translate: 0 0; color: #7F5001; }
.switch .ic { width: 16px; height: 16px; }
.switch .ic-off, .switch[aria-checked="false"] .ic-on { display: none; }
.switch[aria-checked="false"] .ic-off { display: block; }
.off-label { font-size: 17px; font-weight: 700; }
.pill-net { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--success-bg); color: var(--success-text); }
.pill-net i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
[data-online="false"] .pill-net { background: var(--warning-bg); color: var(--warning-text); }
.off-queue { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 48px; gap: 8px; height: calc(6 * 48px + 5 * 8px); overflow: hidden; align-content: start; }
.off-bill { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--canvas); font-weight: 650; font-variant-numeric: tabular-nums; }
.off-ic .ic { color: var(--subtle); }
.off-t { color: var(--muted); font-weight: 500; font-size: 14px; }
.off-st { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--warning-bg); color: var(--warning-text); }
.synced .off-st { background: var(--success-bg); color: var(--success-text); }
.syncing .off-st { background: var(--info-bg); color: var(--info-text); }
.off-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.off-count { margin: 0; color: var(--muted); }
.off-count b { font-family: var(--font-display); font-size: 22px; color: var(--text); }

/* ---------- story: dusk sky + shutter (moved by scroll in the motion block) ---------- */
.sky, .sun, .shutter { display: none; }

/* ---------- features hero: the bill card the home bill morphs into ---------- */
.fh-bill { position: relative; margin-top: 40px; width: min(100%, 340px); padding: 18px; border-radius: 18px; background: #FFFFFF; color: #1B1814; rotate: 2.5deg; box-shadow: var(--shadow-night); font-size: 13px; }
.fh-bill .bill-row { padding: 4px 0; }
.fh-bill .stamp { top: auto; bottom: 46px; right: 10px; font-size: 18px; padding: 4px 10px; }
.fh-bill .stamp .ic { width: 18px; height: 18px; }
@media (min-width: 1180px) {
  .page-hero .wrap:has(.fh-bill) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: center; }
  .page-hero .wrap:has(.fh-bill) > :not(.fh-bill) { grid-column: 1; }
  .page-hero .wrap:has(.fh-bill) h1 { font-size: clamp(44px, 6.2vw, 96px); }
  .fh-bill { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* ---------- scroll progress: a slim rail in the right margin (wide screens only, never over content) ---------- */
.progress-rail { display: none; }

/* =====================================================================================
 * MOTION. Nothing below applies when the visitor prefers reduced motion: content is simply
 * visible, the story is stacked steps, tapes wrap instead of scrolling.
 * ===================================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .card { transform: none; }
  .btn-haldi:hover { transform: none; }
  .switch:hover { filter: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* page-to-page transitions (cross-document View Transitions; ignored where unsupported) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }

  /* ambient: aurora drift, scroll cue */
  /* only the first band on a page drifts — one set of big layers, not four */
  main > .night:first-child .aurora i { animation: drift 22s ease-in-out infinite alternate; }
  main > .night:first-child .aurora i:nth-child(2) { animation-duration: 28s; animation-direction: alternate-reverse; }
  main > .night:first-child .aurora i:nth-child(3) { animation-duration: 34s; }
  .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }

  /* load reveals: masked headline lines, then the rest */
  .js .rise-title .line > span { animation: line-up .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .swash path { stroke-dasharray: 320; animation: draw .9s var(--ease) both .75s; }
  .js .kaccha-word::after { animation: strike .6s var(--ease) both .9s; }

  /* hero bill: lines type in, GST splits pop, total counts (site.js), stamp slams */
  .js .bill { animation: bill-in 1s var(--ease) both .3s, thud .45s ease-out 3.95s; }
  .js .bill .ln { animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--t) * 1ms); }
  .js .bill .type::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: right; animation: wipe .5s cubic-bezier(.6, 0, .3, 1) both; animation-delay: calc(var(--t) * 1ms + 60ms); }
  .js .bill .pop span { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--t) * 1ms); }
  .js .bill .pop span + span { animation-delay: calc(var(--t) * 1ms + 140ms); }
  .js .stamp { animation: slam .5s cubic-bezier(.3, 1.5, .5, 1) both 3.7s; }
  .js .float-chip { animation: fade-up .6s var(--ease) both 4.4s, bob 5s ease-in-out 5s infinite; }
  .js .seal { animation: seal-in .8s cubic-bezier(.3, 1.4, .5, 1) both 4.7s; }

  /* marquee tapes */
  .tape-track { width: max-content; animation: marquee 48s linear infinite; }
  .tape-emerald .tape-track { animation-direction: reverse; animation-duration: 56s; }
  .tape:hover .tape-track { animation-play-state: paused; }
  .tape-list { flex-wrap: nowrap; padding-right: 34px; }
  .tape-dup { display: flex; }

  /* story: pinned stage on wide screens */
  @media (min-width: 961px) {
    .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
    .story-stage { display: grid; justify-items: center; align-content: center; position: sticky; top: calc(50vh - 320px + var(--hdr) / 2); height: 640px; order: 2; }
    .story-steps { order: 1; }
    .step { display: flex; align-items: center; min-height: 92vh; padding-block: 0; }
    .step + .step { border-top: 0; }
    .step-screen { display: none; }
    .story .step-copy { animation: none; }
    .js .story .step-copy { opacity: .22; translate: 0 10px; transition: opacity .5s, translate .6s var(--ease); }
    .story[data-active="1"] [data-step="1"] .step-copy, .story[data-active="2"] [data-step="2"] .step-copy,
    .story[data-active="3"] [data-step="3"] .step-copy, .story[data-active="4"] [data-step="4"] .step-copy { opacity: 1; translate: 0 0; }

    .story-stage .phone { grid-area: 1 / 1; transition: rotate .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease); }
    .story[data-active="2"] .story-stage .phone { rotate: -4deg; translate: -14px 6px; }
    .story[data-active="3"] .story-stage .phone { rotate: 3deg; translate: 12px -4px; scale: 1.02; }
    .story[data-active="4"] .story-stage .phone { rotate: 0deg; scale: 1.04; }
    .story-stage .scr { opacity: 0; translate: 0 26px; scale: .96; transition: opacity .45s, translate .7s var(--ease), scale .7s var(--ease); }
    .story[data-active="1"] .scr[data-s="1"], .story[data-active="2"] .scr[data-s="2"],
    .story[data-active="3"] .scr[data-s="3"], .story[data-active="4"] .scr[data-s="4"] { opacity: 1; translate: 0 0; scale: 1; }

    .stage-glow { grid-area: 1 / 1; position: relative; width: 560px; height: 560px; }
    .stage-glow i { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .8s; }
    .stage-glow .g1 { background: radial-gradient(closest-side, rgba(5, 112, 69, .9), transparent); }
    .stage-glow .g2 { background: radial-gradient(closest-side, rgba(255, 181, 114, .45), transparent); }
    .stage-glow .g3 { background: radial-gradient(closest-side, rgba(151, 209, 174, .5), transparent); }
    .stage-glow .g4 { background: radial-gradient(closest-side, rgba(255, 181, 114, .6), rgba(5, 112, 69, .3) 60%, transparent); }
    .story[data-active="1"] .g1, .story[data-active="2"] .g2, .story[data-active="3"] .g3, .story[data-active="4"] .g4 { opacity: 1; }

    .story-rail { position: absolute; left: -12px; top: 50%; translate: 0 -50%; display: grid; gap: 22px; padding-left: 16px; }
    .story-rail b { font-size: 12px; font-weight: 750; color: var(--night-muted); opacity: .45; transition: opacity .3s, scale .3s; }
    .story[data-active="1"] [data-dot="1"], .story[data-active="2"] [data-dot="2"], .story[data-active="3"] [data-dot="3"], .story[data-active="4"] [data-dot="4"] { opacity: 1; color: var(--haldi); scale: 1.25; }
    .rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--haldi); transform-origin: top; transform: scaleY(.25); }
    .rail-fill::before { content: ''; position: absolute; inset: 0; background: var(--night-line); }

    /* per-screen micro-moments, replayed each time a step becomes active */
    .story[data-active="1"] .scr[data-s="1"] .app-line { animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--k) * 160ms + 200ms); }
    .story[data-active="1"] .scr[data-s="1"] .app-sentence { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both .8s; }
    .story[data-active="2"] .scr[data-s="2"] .q-flip .q-wait { animation: hold-out 1.6s both; }
    .story[data-active="2"] .scr[data-s="2"] .q-flip .q-ok { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both 1.5s; }
    .story[data-active="2"] .scr[data-s="2"] .spin { animation: spin 1.4s linear infinite; }
    .story[data-active="3"] .scr[data-s="3"] .app-modes .on { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both .25s; }
    .story[data-active="3"] .scr[data-s="3"] .qr { animation: pop .6s cubic-bezier(.3, 1.4, .5, 1) both .45s; }
    .story[data-active="3"] .scr[data-s="3"] .app-paid { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both 1.1s; }
    .story[data-active="4"] .scr[data-s="4"] .app-rows > div { animation: fade-up .45s var(--ease) both; }
    .story[data-active="4"] .scr[data-s="4"] .app-rows > div:nth-child(2) { animation-delay: .12s; }
    .story[data-active="4"] .scr[data-s="4"] .app-rows > div:nth-child(3) { animation-delay: .24s; }
    .story[data-active="4"] .scr[data-s="4"] .app-rows > div:nth-child(4) { animation-delay: .36s; }
    .story[data-active="4"] .scr[data-s="4"] .app-seal { animation: slam .55s cubic-bezier(.3, 1.5, .5, 1) both .9s; }
  }
  @media (min-width: 961px) and (max-height: 760px) { .story-stage { scale: .82; } }

  /* hover tilt is set by site.js; smooth it */
  .card[data-tilt]:hover { transition: transform .12s linear, box-shadow .3s, border-color .3s; }

  /* scroll-driven: reveals, word light-up, hero exit, media zoom, bars */
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry calc(10px + var(--i, 0) * 50px) entry calc(260px + var(--i, 0) * 50px); }
    .lit .w { animation: lit linear both; animation-timeline: view(); animation-range: cover 12% cover 42%; }
    @media (min-width: 901px) {
      .hero-copy { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
      .scene .bill-wrap { animation: scene-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    }
    .deva-hero { animation: deva-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .zoom-in { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .age-row .bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
    .chain-day { animation: reveal linear both; animation-timeline: view(); animation-range: entry calc(var(--k) * 40px) entry calc(160px + var(--k) * 40px); }
    .footer-word { animation: reveal-big linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .story { timeline-scope: --story; }
    .story-steps { view-timeline: --story block; }
    .rail-fill { animation: fill linear both; animation-timeline: --story; animation-range: contain 0% contain 100%; }
  }
  /* fallback where scroll timelines are missing: IntersectionObserver in site.js adds .in */
  @supports not (animation-timeline: view()) {
    .js [data-reveal] { transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
    .js [data-reveal]:not(.in) { opacity: 0; translate: 0 36px; }
  }

  @keyframes vt-out { to { opacity: 0; transform: translateY(-16px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }
  @keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
  @keyframes line-up { from { transform: translateY(110%) rotate(3deg); } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
  @keyframes strike { from { transform: scaleX(0); } }
  @keyframes bill-in { from { opacity: 0; transform: translateY(60px) rotate(-6deg) scale(.94); } }
  @keyframes thud { 30% { transform: translateY(3px) scale(.99); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
  @keyframes wipe { to { transform: scaleX(0); } }
  @keyframes pop { from { opacity: 0; transform: scale(.6); } }
  @keyframes slam { 0% { opacity: 0; transform: scale(2.6) rotate(8deg); } 60% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes seal-in { from { opacity: 0; transform: scale(.4) rotate(-60deg); } }
  @keyframes bob { 50% { transform: translateY(-6px); } }
  @keyframes marquee { to { transform: translateX(-50%); } }
  @keyframes hold-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes reveal { from { opacity: 0; translate: 0 48px; scale: .97; } }
  @keyframes reveal-big { from { opacity: 0; translate: 0 60%; } }
  @keyframes lit { from { opacity: .16; } }
  @keyframes hero-out { to { opacity: 0; translate: 0 -90px; scale: .96; } }
  @keyframes scene-out { to { opacity: .2; translate: 0 -40px; rotate: 7deg; scale: .88; } }
  @keyframes deva-drift { to { translate: -12vw 0; } }
  @keyframes zoom { from { scale: .84; translate: 0 40px; } }
  @keyframes grow { from { transform: scaleX(0); } }
  @keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* =====================================================================================
 * MOTION for the interactive sections. Same rule as above: nothing here with reduced motion —
 * the khata shows before and after side by side, the word stays in Devanagari, no strip, no
 * shutters, the calculator total simply changes.
 * ===================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* shared element: the home bill becomes the Features hero card; the header is already named */
  .scene .bill, .fh-bill { view-transition-name: pakka-bill; }
  ::view-transition-group(pakka-bill) { animation-duration: .6s; animation-timing-function: var(--ease); }

  /* film grain shimmer: a transform on one layer */
  body::before { animation: grain 1s steps(5) infinite; }
  @keyframes grain { 20% { transform: translate(-18px, 12px); } 40% { transform: translate(14px, -20px); } 60% { transform: translate(-8px, 22px); } 80% { transform: translate(20px, 6px); } }

  /* पक्का through seven scripts */
  .deva-cycle > span { opacity: 0; animation: script 21s linear infinite both; animation-delay: calc(var(--w) * 3s); }
  .deva-cycle > span:first-child { animation-delay: -.6s; }
  @keyframes script { 0% { opacity: 0; transform: translateY(6%); } 3% { opacity: 1; transform: none; } 12% { opacity: 1; transform: none; } 15%, 100% { opacity: 0; transform: translateY(-6%); } }

  /* "Har bill pakka." in nine languages: one slot, stacked, 2.5 s each; the slot's height is fixed so
     a late font swap can never move the page */
  .tongues { display: grid; height: 1.7em; }
  .tongues li { grid-area: 1 / 1; opacity: 0; animation: tongue 22.5s linear infinite both; animation-delay: calc(var(--w) * 2.5s); }
  @keyframes tongue { 0% { opacity: 0; } 4% { opacity: 1; } 9.5% { opacity: 1; } 13.5%, 100% { opacity: 0; } }

  /* trade swap and calculator total */
  .bill.swapped, [data-t-catalogue].swapped { animation: swap .5s var(--ease); }
  .story-stage .phone.swapped .scr { animation: swap .5s var(--ease); }
  .calc-total dd.bump { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes swap { 35% { opacity: .55; scale: .985; } }

  /* magnetic buttons ease back */
  .btn { transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s, translate .3s var(--ease); }

  /* offline demo */
  .off-bill.new { animation: drop .45s var(--ease) both; }
  .off-bill.syncing::after { content: ''; position: absolute; left: 22px; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 30%, transparent); animation: ripple .65s ease-out both; pointer-events: none; }
  .off-bill.synced .off-st { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
  .off-panel[data-online="false"] .pill-net i { animation: blink 1.2s ease-in-out infinite; }
  @keyframes drop { from { opacity: 0; translate: 0 -16px; } }
  @keyframes ripple { from { scale: 0; opacity: .9; } to { scale: 22; opacity: 0; } }
  @keyframes blink { 50% { opacity: .25; } }

  /* ---- khata → pakka: pinned stage, scroll decides the moment (JS only lays it out) ---- */
  .js .khata-track { height: 300vh; padding: 0; view-timeline: --khata block; }
  .js .khata-sticky { position: sticky; top: 0; height: 100svh; padding: calc(var(--hdr) + 20px) 0 28px; display: flex; }
  .js .khata-grid { height: 100%; }
  .js .khata-stage { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; }
  .js .kpage { grid-area: 1 / 1; height: 100%; width: auto; max-width: 100%; }
  @media (max-width: 860px) {
    .js .khata-grid { grid-template-rows: auto minmax(0, 1fr); gap: 18px; align-items: stretch; }
    .js .khata-steps { display: none; }
    .js .khata .display { font-size: clamp(34px, 9vw, 48px); }
    .js .khata-copy .lede { margin-top: 10px; font-size: 16px; }
  }

  @supports (animation-timeline: view()) {
    .js .kpage-before .ink { animation: ink-out linear both; animation-timeline: --khata; animation-range: contain calc(8% + var(--k) * 3%) contain calc(20% + var(--k) * 3%); }
    .js .kpage-before .stain, .js .kpage-before .rules, .js .kpage-before .margin { animation: fade-out linear both; animation-timeline: --khata; animation-range: contain 30% contain 44%; }
    .js .scan { animation: scan linear both; animation-timeline: --khata; animation-range: contain 6% contain 48%; }
    .js .kpage-before { animation: page-out linear both; animation-timeline: --khata; animation-range: contain 38% contain 54%; }
    /* the bill that makes itself: header settles, each line lands and its GST pops beside it, the
       figures count up (site.js reads each [data-tick]'s own progress here), the haldi rule draws
       under the total, the stamp lands. Scroll back and it unmakes itself. */
    .js .kpage-after { animation: page-in linear both; animation-timeline: --khata; animation-range: contain 34% contain 46%; }
    .js :is(.kb-head, .kb-shop, .kb-gstin) { animation: settle var(--ease-out) both; animation-timeline: --khata; animation-range: contain 42% contain 50%; }
    .js .kb-table th { animation: fade-in linear both; animation-timeline: --khata; animation-range: contain 47% contain 51%; }
    .js .kb-line td { animation: row-in var(--ease-out) both; animation-timeline: --khata; animation-range: contain calc(50% + var(--k) * 9%) contain calc(54% + var(--k) * 9%); }
    .js .kb-gst td { animation: settle var(--ease-out) both; animation-timeline: --khata; animation-range: contain calc(53% + var(--k) * 9%) contain calc(56% + var(--k) * 9%); }
    .js .kb-gst [data-tick] { animation: tick linear both; animation-timeline: --khata; animation-range: contain calc(53% + var(--k) * 9%) contain calc(58% + var(--k) * 9%); }
    .js :is(.kb-sub, .kb-split) { animation: pop-in var(--ease-out) both; animation-timeline: --khata; animation-range: contain 77% contain 80%; }
    .js :is(.kb-sub, .kb-split) [data-tick] { animation: tick linear both; animation-timeline: --khata; animation-range: contain 77% contain 86%; }
    .js .kb-total { animation: rise-in var(--ease-out) both; animation-timeline: --khata; animation-range: contain 80% contain 83%; }
    .js .kb-total::before { animation: draw linear both; animation-timeline: --khata; animation-range: contain 80% contain 87%; }
    .js .kb-total [data-tick] { animation: tick linear both; animation-timeline: --khata; animation-range: contain 80% contain 88%; }
    .js :is(.kb-pay, .kb-tax) { animation: rise-in var(--ease-out) both; animation-timeline: --khata; animation-range: contain 86% contain 90%; }
    .js .kb-stamp { animation: slam-in linear both; animation-timeline: --khata; animation-range: contain 90% contain 96%; }
    .js .khata-steps li { animation: step-lit linear both; animation-timeline: --khata; }
    .js .khata-steps li:nth-child(1) { animation-range: contain 10% contain 40%; }
    .js .khata-steps li:nth-child(2) { animation-range: contain 50% contain 76%; }
    .js .khata-steps li:nth-child(3) { animation-range: contain 80% contain 96%; }
  }
  @supports not (animation-timeline: view()) {
    /* site.js adds .k1/.k2/.k3 on the section as the pinned stage is scrolled */
    .js .kpage-before .ink { transition: opacity .5s, translate .5s; transition-delay: calc(var(--k) * 50ms); }
    .js .khata.k1 .kpage-before .ink { opacity: 0; translate: 6px -8px; }
    .js .kpage-before, .js .kpage-after { transition: opacity .6s, scale .6s var(--ease), rotate .6s var(--ease); }
    .js .kpage-after { opacity: 0; scale: .95; }
    .js .khata.k2 .kpage-before { opacity: 0; scale: .95; }
    .js .khata.k2 .kpage-after { opacity: 1; scale: 1; }
    .js .kb-stamp { animation: none; opacity: 0; transform: scale(2.2); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
    .js .khata.k3 .kb-stamp { opacity: 1; transform: none; }
  }
  @keyframes ink-out { to { opacity: 0; translate: 8px -10px; } }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes scan { 0% { opacity: 0; translate: 0 -100%; } 12%, 85% { opacity: 1; } 100% { opacity: 0; translate: 0 620%; } }
  @keyframes page-out { to { opacity: 0; scale: .94; rotate: -6deg; } }
  @keyframes page-in { from { opacity: 0; scale: .94; rotate: 5deg; } }
  @keyframes row-in { from { opacity: 0; translate: -14px 0; } }
  @keyframes pop-in { from { opacity: 0; scale: .8; } }
  @keyframes rise-in { from { opacity: 0; translate: 0 12px; } }
  @keyframes slam-in { 0% { opacity: 0; transform: scale(2.6) rotate(8deg); } 60% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
  @keyframes step-lit { from { opacity: .35; } }
  @keyframes settle { from { opacity: 0; translate: 0 -10px; } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes tick { from { opacity: .45; } }

  @supports (animation-timeline: view()) {
    /* ---- the story's day → night: warm dusk fades out, the sun sets, shutters come down ---- */
    .story .sky { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(175deg, rgba(122, 84, 20, .75) 0%, rgba(70, 72, 26, .55) 40%, transparent 80%); animation: sky linear both; animation-timeline: --story; animation-range: contain 0% contain 85%; }
    .story .sun { display: block; position: absolute; z-index: -1; right: 8%; top: 6%; width: 38vmax; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 196, 120, .32), rgba(255, 150, 60, .1) 55%, transparent); animation: sunset linear both; animation-timeline: --story; animation-range: contain 0% contain 80%; }
    @keyframes sky { 0% { opacity: .95; } 55% { opacity: .5; } 100% { opacity: 0; } }
    @keyframes sunset { to { opacity: 0; translate: -10vw 70vh; scale: .7; } }
    .shutter {
      display: block; position: absolute; z-index: 0; pointer-events: none; border-radius: 10px 10px 4px 4px; translate: 0 -104%;
      background: repeating-linear-gradient(180deg, #4F5A53 0 16px, #3A443E 16px 18px, #5B665F 18px 20px), #48524C;
      box-shadow: inset 0 -14px 0 #2C342F;
    }
    .shutter::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 56px; height: 6px; margin-left: -28px; border-radius: 3px; background: #FFB572; }
    .shutter-box { position: absolute; overflow: clip; pointer-events: none; }
    @media (min-width: 961px) {
      .story-stage .shutter-box { grid-area: 1 / 1; position: relative; width: 480px; height: 560px; }
      .story-stage .shutter { inset: 0; animation: shutter linear both; animation-timeline: --story; animation-range: contain 74% contain 94%; }
    }
    @media (max-width: 960px) {
      .step-screen { position: relative; }
      .step-screen .shutter-box { inset: -20px -40px 40px; z-index: -1; }
      .step-screen .shutter { inset: 0; animation: shutter linear both; animation-timeline: view(); animation-range: cover 15% cover 45%; }
    }
    @keyframes shutter { to { translate: 0 0; } }

    /* ---- scroll progress rail: sits in the page margin, which is at least 52px from 1280px up ---- */
    @media (min-width: 1280px) {
      .progress-rail { display: block; position: fixed; z-index: 45; right: 14px; top: calc(var(--hdr) + 40px); bottom: 40px; width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); pointer-events: none; }
      .progress-rail i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--primary), var(--haldi)); transform-origin: top; animation: rail linear both; animation-timeline: scroll(root); }
      .progress-rail::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; border: 2px solid var(--haldi); background: var(--canvas); }
    }
    @keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}

.sec-card p.tech { font-size: 14px; color: var(--subtle); margin-top: -6px; }
