/* TaxKhata - marketing site
   Layout and motion follow the Ameliyia site (quiet single column, one living dot field in the hero and the closing
   call to action, the product shown working in between). Colours, type and radius come from the TaxKhata app
   (extension/src/styles/tokens.css): one brand blue, grey neutrals, Inter for text, Montserrat for titles.
   No gradients: every fill is a flat token. Fades at the edges of the dot field and the marquee are masks only. */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); 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"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); 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"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); 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"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); 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"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- tokens (values from the app's tokens.css) ---------- */
:root {
  color-scheme: light;
  --bg: #fdfdfe;
  --bg-2: #f5f5f9;
  --surface: #ffffff;
  --surface-2: #f5f5f9;
  --surface-3: #f1f5f9;
  --ink: #333333;
  --ink-strong: #1f1f1f;
  --ink-2: color-mix(in srgb, #727272 30%, #333333);
  --muted: color-mix(in srgb, #727272 70%, #333333);
  --faint: color-mix(in srgb, #727272 90%, #333333);
  --line: #eaeaea;
  --line-2: #dfdfdf;
  --accent: #008de1;
  --accent-strong: #004aad;
  --accent-text: #004aad;
  --accent-soft: #eaf2ff;
  --on-accent: #ffffff;
  --ok: #22c55e;
  --ok-soft: color-mix(in srgb, #22c55e 12%, #ffffff);
  --ok-text: color-mix(in srgb, #22c55e 55%, #000000);
  --warn: #f59e0b;
  --warn-soft: color-mix(in srgb, #f59e0b 14%, #ffffff);
  --warn-text: color-mix(in srgb, #f59e0b 55%, #000000);
  --bad: #f6616c;
  --bad-soft: color-mix(in srgb, #f6616c 12%, #ffffff);
  --bad-text: color-mix(in srgb, #f6616c 70%, #000000);
  --btn-bg: #1f1f1f;
  --btn-fg: #ffffff;
  --inv-bg: #1f1f1f;
  --inv-fg: #ffffff;
  --dot: 51, 51, 51;          /* rgb triplets for the canvas dots */
  --dot-hot: 0, 141, 225;
  --shadow: 0 3px 10px rgb(156 156 156 / .1), 0 1px 2px rgb(0 0 0 / .04);
  --shadow-lg: 0 10px 30px rgb(0 0 0 / .12), 0 2px 4px rgb(0 0 0 / .04);

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Montserrat", var(--f-sans);
  --f-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.04rem);
  --step-1: clamp(1.1rem, 1.04rem + .3vw, 1.28rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.3rem);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 640px) { :root { --gutter-l: max(24px, env(safe-area-inset-left, 0px)); --gutter-r: max(24px, env(safe-area-inset-right, 0px)); } }

/* dark: the app's dark values (built from #1f1f1f, #333333, #727272, #9ca3af, #eaeaea) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: color-mix(in srgb, #1f1f1f 80%, #000000);
    --bg-2: color-mix(in srgb, #333333 40%, #1f1f1f);
    --surface: #1f1f1f;
    --surface-2: color-mix(in srgb, #333333 40%, #1f1f1f);
    --surface-3: color-mix(in srgb, #333333 70%, #1f1f1f);
    --ink: #eaeaea; --ink-strong: #ffffff; --ink-2: #d4d4d4;
    --muted: #9ca3af; --faint: color-mix(in srgb, #9ca3af 70%, #727272);
    --line: #333333; --line-2: color-mix(in srgb, #727272 45%, #333333);
    --accent-text: color-mix(in srgb, #008de1 55%, #ffffff);
    --accent-soft: color-mix(in srgb, #008de1 18%, #1f1f1f);
    --ok-soft: color-mix(in srgb, #22c55e 14%, #1f1f1f); --ok-text: color-mix(in srgb, #22c55e 70%, #ffffff);
    --warn-soft: color-mix(in srgb, #f59e0b 16%, #1f1f1f); --warn-text: color-mix(in srgb, #f59e0b 70%, #ffffff);
    --bad-soft: color-mix(in srgb, #f6616c 14%, #1f1f1f); --bad-text: color-mix(in srgb, #f6616c 65%, #ffffff);
    --btn-bg: #eaeaea; --btn-fg: #1f1f1f;
    --inv-bg: color-mix(in srgb, #333333 55%, #1f1f1f); --inv-fg: #eaeaea;
    --dot: 234, 234, 234; --dot-hot: 51, 170, 240;
    --shadow: 0 3px 10px rgb(0 0 0 / .3);
    --shadow-lg: 0 10px 30px rgb(0 0 0 / .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: color-mix(in srgb, #1f1f1f 80%, #000000);
  --bg-2: color-mix(in srgb, #333333 40%, #1f1f1f);
  --surface: #1f1f1f;
  --surface-2: color-mix(in srgb, #333333 40%, #1f1f1f);
  --surface-3: color-mix(in srgb, #333333 70%, #1f1f1f);
  --ink: #eaeaea; --ink-strong: #ffffff; --ink-2: #d4d4d4;
  --muted: #9ca3af; --faint: color-mix(in srgb, #9ca3af 70%, #727272);
  --line: #333333; --line-2: color-mix(in srgb, #727272 45%, #333333);
  --accent-text: color-mix(in srgb, #008de1 55%, #ffffff);
  --accent-soft: color-mix(in srgb, #008de1 18%, #1f1f1f);
  --ok-soft: color-mix(in srgb, #22c55e 14%, #1f1f1f); --ok-text: color-mix(in srgb, #22c55e 70%, #ffffff);
  --warn-soft: color-mix(in srgb, #f59e0b 16%, #1f1f1f); --warn-text: color-mix(in srgb, #f59e0b 70%, #ffffff);
  --bad-soft: color-mix(in srgb, #f6616c 14%, #1f1f1f); --bad-text: color-mix(in srgb, #f6616c 65%, #ffffff);
  --btn-bg: #eaeaea; --btn-fg: #1f1f1f;
  --inv-bg: color-mix(in srgb, #333333 55%, #1f1f1f); --inv-fg: #eaeaea;
  --dot: 234, 234, 234; --dot-hot: 51, 170, 240;
  --shadow: 0 3px 10px rgb(0 0 0 / .3);
  --shadow-lg: 0 10px 30px rgb(0 0 0 / .5);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; color: var(--ink-strong); }
h1, .h2, .final h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.accent-text { color: var(--accent); }
.sec-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sec-head.flush { margin-bottom: 0; }
.section.no-top { padding-top: 0; }
.center-text { text-align: center; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-strong); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand .name span { color: var(--accent-text); }
.mark-bg { fill: var(--accent); }
.mark-page { fill: #ffffff; }
.mark-margin { fill: var(--accent); opacity: .35; }
.mark-line { fill: var(--accent-strong); }
.mark-line.short { fill: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; letter-spacing: -0.01em; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-blue { background: var(--accent); color: var(--on-accent); }
.btn-blue:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9rem; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink-strong); background: var(--surface-3); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: .92rem; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav-login:hover { color: var(--ink-strong); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter-r) 32px var(--gutter-l);
  display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.sheet a.big { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-strong); }
.sheet .btn { margin-top: 24px; }
.sheet .btn + .btn { margin-top: 10px; }
.menu-open .sheet { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .35s var(--ease); }
.menu-open { overflow: hidden; }
@media (max-width: 920px) {
  .nav-links, .nav-right .btn-join, .nav-login { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(124px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.dots-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  touch-action: pan-y;
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; max-width: 100%;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill b { flex: none; font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { margin-inline: auto; text-align: center; }
.say { font-family: var(--f-mono); font-size: .88rem; color: var(--muted); min-height: 1.6em; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.say .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.say .ic svg { width: 14px; height: 14px; }
.say .txt { min-width: 0; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.say .caret { width: 1.5px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; font-size: .85rem; color: var(--faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- demo window ---------- */
.demo-stage { margin-top: clamp(40px, 5vw, 64px); perspective: 1600px; }
.demo {
  --rx: 0deg; --ry: 0deg;
  position: relative; max-width: 1000px; margin-inline: auto; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s; overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.demo-bar .lights { display: flex; gap: 6px; }
.demo-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-bar .addr { flex: 1; min-width: 0; text-align: center; font-size: .78rem; color: var(--faint); font-family: var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar .live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ok-text); font-weight: 500; }
.demo-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.demo-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 480px; }
.demo-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.demo-side .label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 4px 10px 8px; font-weight: 600; }
.tab {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); border: 0; background: transparent; text-align: left;
  font-size: .88rem; color: var(--muted); position: relative; overflow: hidden; transition: background-color .25s, color .25s;
}
.tab > span:nth-child(2) { flex: 1; min-width: 0; }
.tab .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; color: var(--muted); transition: color .25s, border-color .25s; }
.tab .ic svg { width: 15px; height: 15px; }
.tab small { display: block; font-size: .72rem; color: var(--faint); margin-top: 1px; }
.tab:hover { color: var(--ink-strong); }
.tab.active { background: var(--surface); color: var(--ink-strong); box-shadow: var(--shadow); }
.tab.active .ic { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tab .prog { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; overflow: hidden; }
.tab.active .prog { background: var(--line); }
.tab .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.stage { position: relative; padding: 22px clamp(16px, 3vw, 30px); min-width: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.stage.chatmode { padding-bottom: 86px; }
.fade-in { animation: fin .55s var(--ease) both; }
@keyframes fin { from { opacity: 0; transform: translateY(10px); } }

/* chat scene */
.msg { max-width: 86%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 11px 15px; border-radius: 18px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.me .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; border-radius: 10px; }
.file-chip svg { width: 14px; height: 14px; color: var(--bad); }
.file-chip small { color: var(--faint); font-family: var(--f-mono); }
.ai { align-self: flex-start; }
.ai-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--faint); }
.ai-head svg { width: 18px; height: 18px; }
.answer { font-size: .92rem; color: var(--ink); display: grid; gap: 10px; max-width: 560px; }
.answer h4 { font-size: .92rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-strong); }
.answer ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.answer .due { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--warn-text); background: var(--warn-soft); padding: 5px 10px; border-radius: 8px; width: fit-content; }
.answer .due svg { width: 14px; height: 14px; }
.answer .note { font-size: .76rem; color: var(--faint); }
.reading { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--faint); font-family: var(--f-mono); }
.reading i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer {
  position: absolute; left: clamp(16px, 3vw, 30px); right: clamp(16px, 3vw, 30px); bottom: 18px;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .86rem; color: var(--faint);
}
.composer span:first-child { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer .clip { color: var(--muted); display: grid; place-items: center; }
.composer .clip svg { width: 17px; height: 17px; }
.composer .send { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); flex: none; }
.composer .send svg { width: 15px; height: 15px; }

/* shared scene parts */
.scene-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scene-head h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.scene-head p { font-size: .8rem; color: var(--faint); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--ok-soft); color: var(--ok-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.bad { background: var(--bad-soft); color: var(--bad-text); }
.badge.mute { background: var(--surface-3); color: var(--muted); }

/* 2B matching scene */
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.count { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--surface); min-width: 0; }
.count b { display: block; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink-strong); line-height: 1.2; }
.count span { font-size: .72rem; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count.ok b { color: var(--ok-text); }
.count.warn b { color: var(--warn-text); }
.count.bad b { color: var(--bad-text); }
.rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .8rem; }
.rows .r { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .8fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rows .r:last-child { border-bottom: 0; }
.rows .r.h { background: var(--surface-2); color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rows .r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r small { display: block; color: var(--faint); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.rows .r .amt { text-align: right; }
.scene-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scene-foot .file-chip svg { color: var(--ok); }

/* tracker scene */
.trk { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .82rem; }
.trk .r { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(70px, .7fr)); gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.trk .r:last-child { border-bottom: 0; }
.trk .r.h { background: var(--surface-2); color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.trk .r > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); font-weight: 500; }
.trk .r > span:first-child small { display: block; color: var(--faint); font-weight: 400; font-size: .72rem; }
.trk .badge { transition: background-color .3s, color .3s; justify-self: start; }
.rows .r > .badge, .dueviz .badge { justify-self: end; }
.trk .flip { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }

/* late fee scene */
.fee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fee-in, .fee-out { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fee-in .kv { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.fee-in .kv b { color: var(--ink-strong); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fee-out { background: var(--surface-2); }
.fee-out .kv { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fee-out .kv small { display: block; color: var(--faint); font-size: .72rem; }
.fee-out .tot { border-top: 1px solid var(--line-2); padding-top: 10px; font-weight: 600; color: var(--ink-strong); font-size: 1rem; }
.copy-msg { font-size: .8rem; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }

@media (max-width: 480px) { .pill { font-size: .78rem; gap: 8px; } .pill b { font-size: .62rem; padding: 3px 7px; } }
@media (max-width: 780px) {
  .demo-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .demo-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; gap: 6px; scrollbar-width: none; }
  .demo-side::-webkit-scrollbar { display: none; }
  .demo-side .label { display: none; }
  .tab { flex: none; padding: 8px 12px 10px 8px; }
  .tab small { display: none; }
  .stage { min-height: 540px; }
  .msg { max-width: 96%; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows .r { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto; }
  .rows .r > span:nth-child(2) { display: none; }
  .trk .r { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(56px, .7fr)); font-size: .76rem; gap: 6px; padding: 9px 10px; }
  .trk .badge { font-size: .62rem; padding: 2px 6px; }
  .fee { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-wrap { border-block: 1px solid var(--line); }
.marquee-wrap .marquee { border: 0; }
.track { display: flex; gap: 14px; width: max-content; animation: mq 64s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.track span em { font-style: normal; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; color: var(--accent-text); text-transform: uppercase; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  --px: 50%; --py: 50%;
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(22px, 2.6vw, 30px); overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: border-color .3s, background-color .4s, box-shadow .3s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card h3 { font-size: var(--step-1); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { color: var(--muted); font-size: .94rem; max-width: 48ch; }
.card .viz { margin-top: auto; padding-top: 18px; min-width: 0; }
.c-clients { grid-column: span 4; }
.c-track { grid-column: span 2; }
.c-recon, .c-notice, .c-pdf { grid-column: span 2; }
.c-it, .c-fees { grid-column: span 3; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-clients, .c-it, .c-fees { grid-column: span 2; }
  .c-track, .c-recon, .c-notice, .c-pdf { grid-column: span 1; }
}
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > .card { grid-column: auto; } }

/* viz: GSTIN */
.gstviz { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.gst-in { display: grid; gap: 8px; min-width: 0; }
.gst-in label { font-size: .76rem; color: var(--muted); font-weight: 500; }
.gst-field { height: 44px; border-radius: 10px; border: 1px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--surface); display: flex; align-items: center; padding: 0 12px; font-family: var(--f-mono); font-size: .92rem; letter-spacing: .06em; color: var(--ink-strong); min-width: 0; overflow: hidden; }
.gst-field .caret { width: 1.5px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; flex: none; }
.gst-ok { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--ok-text); font-weight: 500; opacity: 0; transition: opacity .3s; }
.gst-ok svg { width: 14px; height: 14px; }
.gstviz.done .gst-ok { opacity: 1; }
.gst-out { display: grid; gap: 6px; min-width: 0; }
.gst-out div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: .8rem; color: var(--muted); opacity: .35; transition: opacity .4s, background-color .4s; }
.gst-out div b { color: var(--ink-strong); font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gstviz.done .gst-out div { opacity: 1; }
.gstviz.done .gst-out div:nth-child(2) { transition-delay: .1s; }
.gstviz.done .gst-out div:nth-child(3) { transition-delay: .2s; }
.gstviz.done .gst-out div:nth-child(4) { transition-delay: .3s; }

/* viz: tracker list */
.dueviz { display: grid; gap: 6px; font-size: .8rem; }
.dueviz div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); min-width: 0; }
.dueviz div > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dueviz small { color: var(--faint); font-family: var(--f-mono); font-size: .7rem; }

/* viz: recon bars */
.reconviz { display: grid; gap: 8px; font-size: .78rem; }
.reconviz .b { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; gap: 8px; align-items: center; color: var(--muted); }
.reconviz .b i { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.reconviz .b i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, var(--accent)); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.reconviz.on .b i::after { transform: scaleX(1); }
.reconviz .b b { text-align: right; color: var(--ink-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.reconviz .b.ok { --c: var(--ok); }
.reconviz .b.warn { --c: var(--warn); }
.reconviz .b.bad { --c: var(--bad); }
.reconviz .b.mute { --c: var(--muted); }

/* viz: notices */
.noticeviz { display: grid; gap: 8px; }
.noticeviz div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .8rem; }
.noticeviz b { font-weight: 600; color: var(--ink-strong); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noticeviz small { color: var(--faint); grid-column: 1; font-size: .74rem; }
.noticeviz .badge { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* viz: pdf chips */
.pdfviz { display: flex; flex-wrap: wrap; gap: 6px; }
.pdfviz span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: .78rem; color: var(--ink-2); transition: transform .4s var(--ease), border-color .3s; }
.pdfviz span svg { width: 13px; height: 13px; color: var(--accent); }
.card:hover .pdfviz span:nth-child(odd) { transform: translateY(-2px); border-color: var(--line-2); }
.pdfviz .local { flex-basis: 100%; background: transparent; border: 0; padding: 4px 0 0; color: var(--ok-text); font-weight: 500; }
.pdfviz .local svg { color: var(--ok); }

/* viz: regime compare */
.regviz { display: grid; gap: 10px; font-size: .82rem; }
.regviz .row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 90px; gap: 10px; align-items: center; color: var(--muted); }
.regviz .row i { display: block; height: 26px; border-radius: 6px; background: var(--surface-3); position: relative; overflow: hidden; }
.regviz .row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--line-2)); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.regviz.on .row i::after { transform: scaleX(1); }
.regviz .row b { text-align: right; color: var(--ink-strong); font-variant-numeric: tabular-nums; font-weight: 600; }
.regviz .row.win { --c: var(--accent); }
.regviz .row.win span { color: var(--ink-strong); font-weight: 600; }
.regviz .save { font-size: .78rem; color: var(--ok-text); display: inline-flex; align-items: center; gap: 6px; }
.regviz .save svg { width: 14px; height: 14px; }
.regviz .small { font-size: .72rem; color: var(--faint); }

/* viz: fees */
.feesviz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: end; }
.feesviz .sum { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.feesviz .sum span { font-size: .74rem; color: var(--muted); }
.feesviz .sum b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.feesviz .sum small { font-size: .74rem; color: var(--warn-text); }
.wa { border-radius: 14px 14px 14px 4px; background: var(--ok-soft); color: var(--ink); padding: 10px 12px; font-size: .8rem; line-height: 1.5; position: relative; }
.wa small { display: block; text-align: right; color: var(--faint); font-size: .68rem; margin-top: 2px; }
@media (max-width: 520px) { .gstviz, .feesviz { grid-template-columns: minmax(0, 1fr); } }

/* ---------- beside the portal (sticky steps) ---------- */
.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-visual { position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); }
.panel {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg);
  height: 450px; overflow: hidden; max-width: 520px; margin-inline: auto;
}
.layer { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.layer.on { opacity: 1; transform: none; }
.layer .cap { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
/* layer 0: portal + side panel */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 300px; font-size: .74rem; }
.portal { background: var(--surface-2); display: flex; flex-direction: column; min-width: 0; }
.portal .pb { padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .66rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal .pc { padding: 12px; display: grid; gap: 8px; }
.portal .pc b { font-size: .8rem; color: var(--ink-strong); font-weight: 600; }
.portal .pc i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.portal .pc i.s { width: 60%; }
.portal .pc .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.portal .pc .grid span { border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--surface); color: var(--muted); font-size: .66rem; }
.sidep { border-left: 1px solid var(--line); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sidep .brand svg { width: 20px; height: 20px; }
.sidep .brand .name { font-size: .86rem; }
.sidep .q { align-self: flex-end; background: var(--accent); color: var(--on-accent); padding: 6px 9px; border-radius: 10px 10px 3px 10px; font-size: .7rem; max-width: 95%; }
.sidep .a { color: var(--ink-2); font-size: .7rem; line-height: 1.45; }
.sidep .chip { display: inline-flex; gap: 5px; align-items: center; font-size: .66rem; color: var(--accent-text); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; width: fit-content; }
.sidep .chip svg { width: 11px; height: 11px; }
.sidep .box { margin-top: auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--faint); font-size: .66rem; }
/* layer 1: page read */
.readcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.readcard .chip { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--accent-text); background: var(--accent-soft); padding: 5px 10px; border-radius: 8px; width: fit-content; font-weight: 500; }
.readcard .chip svg { width: 14px; height: 14px; }
.readcard .kv { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.readcard .kv:last-of-type { border-bottom: 0; }
.readcard .kv b { color: var(--ink-strong); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.never { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.never svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
/* layer 2: answer */
.anscard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; font-size: .9rem; }
.anscard .calcrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.anscard .calcrow b { color: var(--ink-strong); font-weight: 600; }
.anscard .calcrow.tot { background: var(--accent-soft); color: var(--ink-strong); }
.anscard .src { font-size: .74rem; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.anscard .src svg { width: 13px; height: 13px; color: var(--accent); }
/* layer 3: kept with the client */
.clientcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.clientcard .top { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; flex: none; }
.clientcard .top b { display: block; font-weight: 600; color: var(--ink-strong); }
.clientcard .top small { color: var(--faint); font-family: var(--f-mono); font-size: .72rem; }
.clientcard ul { list-style: none; margin: 0; padding: 8px 16px 14px; display: grid; gap: 2px; }
.clientcard li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.clientcard li:last-child { border-bottom: 0; }
.clientcard li > span:first-child { display: inline-flex; gap: 8px; align-items: center; min-width: 0; }
.clientcard li svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.how-steps { display: grid; }
.how-step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 32px; opacity: .35; transition: opacity .5s var(--ease); }
.how-step.on { opacity: 1; }
.how-step .num { font-family: var(--f-mono); font-size: .78rem; color: var(--accent-text); letter-spacing: .08em; }
.how-step h3 { font-size: var(--step-2); }
.how-step p { color: var(--muted); max-width: 46ch; }
@media (max-width: 880px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-visual { top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 2; }
  .panel { height: 330px; }
  .layer { padding: 16px; gap: 10px; }
  .split { height: 240px; }
  .readcard, .anscard { padding: 12px; gap: 8px; }
  .readcard .kv, .anscard .calcrow, .clientcard li { font-size: .78rem; padding-block: 5px; }
  .clientcard .top { padding: 10px 12px; }
  .clientcard ul { padding: 4px 12px 8px; }
  .how-step { min-height: 0; padding-block: 44px; }
  .how-steps { padding-top: 24px; }
}

/* ---------- privacy ---------- */
.safe-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.safe-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.safe-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.safe-list li:last-child { border-bottom: 0; }
.safe-list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.safe-list b { font-weight: 600; display: block; letter-spacing: -0.01em; color: var(--ink-strong); }
.safe-list span { color: var(--muted); font-size: .92rem; }
.where { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; max-width: 520px; width: 100%; justify-self: center; }
.where h3 { font-size: 1.02rem; }
.where .col { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.where .col.home { background: var(--surface-2); }
.where .col-h { display: flex; gap: 10px; align-items: center; }
.where .col-h .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.where .col-h .ic svg { width: 17px; height: 17px; }
.where .col-h b { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-strong); }
.where .col-h small { color: var(--muted); font-size: .78rem; }
.where .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.where .tags span { font-size: .76rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.where .foot { font-size: .78rem; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.where .foot svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
@media (max-width: 880px) { .safe-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- live calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.calc-in, .calc-out { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.calc-out { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); width: 100%; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; font-size: .86rem; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; min-width: 0; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink-strong); box-shadow: var(--shadow); }
.field-row { display: grid; gap: 10px; }
.field-row label, .field-row .lbl { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); gap: 12px; }
.field-row output { white-space: nowrap; font-family: var(--f-mono); color: var(--ink-strong); font-weight: 500; font-variant-numeric: tabular-nums; }
.money { display: flex; align-items: center; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.money span { padding: 0 12px; color: var(--muted); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; background: var(--surface-2); }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink-strong); font: inherit; font-size: 16px; padding: 0 12px; font-variant-numeric: tabular-nums; }
select.inp { height: 48px; width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background-color: var(--surface); color: var(--ink-strong); padding: 0 36px 0 12px; font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
select.inp:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--line) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); margin-top: -9px; box-shadow: var(--shadow); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-note { font-size: .78rem; color: var(--faint); }
.calc-out > p { opacity: .75; font-size: .94rem; }
.calc-out .big { font-family: var(--f-display); font-size: clamp(2.8rem, 2rem + 3.6vw, 4.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vs div { border-radius: 14px; padding: 14px 16px; background: color-mix(in srgb, var(--inv-fg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--inv-fg) 14%, transparent); min-width: 0; }
.vs b { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vs span { font-size: .78rem; opacity: .72; }
.working { font-family: var(--f-mono); font-size: .78rem; opacity: .7; line-height: 1.7; }
.calc-out .btn { justify-self: start; background: var(--inv-fg); color: var(--inv-bg); }
.calc-out .btn:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 880px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.pop { border: 1.5px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .flag { position: absolute; top: -12px; left: 28px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--on-accent); background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.plan .for { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--f-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink-strong); }
.price span { color: var(--muted); font-size: .9rem; }
.price-total { font-size: .84rem; color: var(--muted); margin-top: -12px; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .92rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.plan li.hl { color: var(--ink-strong); font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-sep { height: 1px; background: var(--line); }
.price-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.price-note { margin-top: 20px; font-size: .82rem; color: var(--faint); text-align: center; max-width: 70ch; margin-inline: auto; }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background-color .3s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--surface); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding-bottom: 22px; color: var(--muted); max-width: 64ch; }
.copyable { font-family: var(--f-mono); font-size: .9em; color: var(--ink-2); background: none; border: 0; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.copyable svg { width: 13px; height: 13px; color: var(--faint); }
.copyable:hover { color: var(--accent-text); }
@media (max-width: 880px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final .dots-canvas { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); }
.final-in { display: grid; justify-items: center; gap: 26px; }
.write-on { display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 18px); }
.write-on svg { width: clamp(52px, 8vw, 84px); height: auto; }
.write-on .name { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink-strong); }
.write-on .name span { color: var(--accent-text); }
.write-on .name {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.write-on svg { opacity: 0; transform: scale(.8); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.write-on.go svg { opacity: 1; transform: none; }
.write-on.go .name { animation: write 2s .2s var(--ease) forwards; }
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.final h2 { font-size: var(--step-3); max-width: 20ch; }
.final .hero-ctas { margin-top: 4px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 52px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.foot-grid ul a { color: var(--muted); transition: color .2s; }
.foot-grid ul a:hover { color: var(--ink-strong); }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; margin-top: 14px; }
.foot-brand address { font-style: normal; color: var(--faint); font-size: .84rem; margin-top: 14px; line-height: 1.6; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--ink-strong); border-color: var(--line-2); }
.socials svg { width: 16px; height: 16px; }
.foot-officer { margin-top: 18px; font-size: .84rem; color: var(--faint); line-height: 1.8; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .write-on .name { -webkit-mask-position: 0 0; mask-position: 0 0; }
  .write-on svg { opacity: 1; transform: none; }
  .how-step { opacity: 1; }
  .reconviz .b i::after, .regviz .row i::after { transform: scaleX(1); }
}

/* ---------- legal pages (generated: scripts/build-legal.mjs) ---------- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-top: calc(108px + env(safe-area-inset-top, 0px)); padding-bottom: 72px; align-items: start; }
.legal-nav { position: sticky; top: 96px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .9rem; color: var(--muted); }
.legal-nav a:hover { color: var(--ink-strong); background: var(--surface-3); }
.legal-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.legal-doc { max-width: 760px; min-width: 0; }
.legal-doc h1 { font-size: var(--step-3); }
.legal-updated { color: var(--faint); font-size: .86rem; margin: 10px 0 32px; }
.legal-doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-doc h2 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: .97rem; line-height: 1.7; overflow-wrap: anywhere; }
.legal-doc p + p { margin-top: 10px; }
.legal-doc ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-doc a, .legal-foot a { color: var(--accent-text); }
.legal-foot { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { border: 1px solid var(--line); padding: 6px 10px; font-size: .82rem; }
}
