/* =====================================================================
   Tabl microsite — Figma "Slide 16:9 - 1" (NRAI, node 136:16)

   Values marked (figma) were read off the file via the MCP server, not
   eyeballed. The design is drawn at a 1920 frame with an 1180 container,
   so type is expressed as clamp(mobile, fluid, <figma value>) — the design
   number is the desktop ceiling.
   ===================================================================== */

:root {
  /* brand (figma) */
  --brand:        #0362dd;
  --brand-deep:   #0247a1;   /* closing-section gradient end */
  --brand-ink:    #024fb8;

  /* secondary (figma: colours/secondary/*) */
  --orange-400:   #fa650f;   /* primary CTA button */
  --orange-300:   #fc7f36;   /* ₹ watermarks */
  --orange-200:   #fc995f;   /* hand-drawn rings + punchline */

  /* neutrals (figma) */
  --ink:      #0a0a0a;
  --ink-soft: #0d0d0d;
  --muted:    #6a707c;
  --tab-idle: #95a0b1;
  --line:     #ebeff4;
  --surface:  #ffffff;
  --canvas:   #ffffff;
  --tile:     #f7f9fb;   /* KPI + panel tiles inside the dashboard card */
  --grey-50:  #f1f4f8;   /* AI Hub card ground */
  --grey-200: #b5bece;   /* AI Hub input borders */

  /* status (figma: colours/status/*) */
  --neg: #e10909;
  --pos: #10b981;

  /* on-blue */
  --on-blue:       #ffffff;
  --on-blue-soft:  rgba(255,255,255,.82);
  --on-blue-line:  rgba(255,255,255,.22);

  /* data viz (figma 136:1435 legend + 136:1385 bars) */
  --c-app1:   #0362dd;
  --c-app2:   #0247a1;
  --c-app3:   #fc7f36;
  --c-direct: #b5bece;

  /* layout (figma: 1180 container inside a 1920 frame) */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius:   16px;
  --radius-sm: 12px;

  /* elevation (figma: drop-shadow 0 24px 30px rgba(2,71,161,.28)) */
  --sh-card: 0 24px 30px rgba(2,71,161,.28);

  /* spring easings sampled from a real spring solution ------------------
     critically damped (ζ=1.0, response 0.4s) — the default for UI        */
  --spring: linear(0, .186, .466, .682, .821, .903, .949, .973, .986, .993, .997, .998, 1);
  /* gentle overshoot (ζ=0.8, response 0.4s) — only after momentum        */
  --spring-bounce: linear(0, .202, .526, .776, .922, .99, 1.013, 1.015, 1.01, 1.006, 1.003, 1.001, 1);
  --spring-dur: 600ms;
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; }

/* the "Tabl"/"Quantifai" wordmark face (figma: Anta Regular) */
.anta { font-family: "Anta", var(--brand-font, sans-serif); font-weight: 400; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top 180ms var(--ease-out);
}
.skip-link:focus-visible { top: 16px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .footer :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section[id], main > span[id] { scroll-margin-top: 88px; }
.ta-c { text-align: center; }
.ta-r { text-align: right; }

/* a designed line break that collapses to a plain space when space is tight */
.lb { display: block; }
@media (max-width: 680px) { .lb { display: inline; } }

/* ---------- type scale (figma: h2 56px / lede 20px, both Satoshi) ---------- */
.h2 {
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.lede {
  margin-top: 20px;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.44;
  font-weight: 500;
  color: var(--on-blue);
  max-width: 27.5em;
}
.lede--wide   { max-width: 52em; }
.lede--center { margin-inline: auto; text-align: center; max-width: 32em; }

/* ---------- logo ---------- */
.logo { width: 132px; height: auto; }
.logo__mark { fill: var(--brand); }
.logo__word { fill: var(--ink-soft); }
.logo--xl   { width: min(420px, 62vw); }
.logo--invert .logo__mark,
.logo--invert .logo__word { fill: #fff; }

/* =====================================================================
   NAV — translucent chrome, content scrolls under
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 260ms var(--ease-out);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__logo { display: block; flex: 0 0 auto; transition: transform 200ms var(--spring); }
.nav__logo .logo { width: 104px; }
.nav__logo:active { transform: scale(.96); }

.nav__links {
  position: relative;
  margin-inline: auto;
  display: flex; gap: clamp(14px, 2.2vw, 34px);
  font-size: .9375rem; font-weight: 500;
}
.nav__links a {
  position: relative; z-index: 1;
  padding: 8px 2px;
  color: var(--muted); text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--brand); }

/* positioned by JS with a spring, so it can be re-targeted mid-flight */
.nav__indicator {
  position: absolute; left: 0; bottom: 2px;
  height: 2px; width: 0; border-radius: 2px;
  background: var(--brand); opacity: 0;
  will-change: transform, width;
}
.nav__cta { flex: 0 0 auto; }

/* scroll edge: a soft fade where content meets floating chrome */
.nav__edge {
  position: absolute; inset: 100% 0 auto 0; height: 18px;
  background: linear-gradient(rgba(16,24,40,.07), rgba(16,24,40,0));
  opacity: 0; transition: opacity 300ms var(--ease-out); pointer-events: none;
}
.nav.is-stuck { background: rgba(255,255,255,.86); }
.nav.is-stuck .nav__edge { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: .9375rem;
  text-decoration: none; white-space: nowrap;
  transform: translate3d(0,0,0);
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out),
              box-shadow 220ms var(--ease-out);
}
.btn--blue   { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(3,98,221,.6); }
.btn--blue:hover  { background: var(--brand-ink); }
/* figma: orange-400 #fa650f, radius 8, padding 16, 20px bold, tracking 1px */
.btn--orange { background: var(--orange-400); color: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }
.btn--orange:hover { background: #e4570a; }
.btn--lg { padding: 16px 32px; font-size: clamp(1rem, 1.35vw, 1.25rem); letter-spacing: .05em; }
/* Hover states stay still — the button is a target, and a target that moves
   toward the cursor is harder to hit, not more alive. All the feedback is on
   the press, which is where the user is actually asking for it. */
.btn:hover { box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }

/* =====================================================================
   HERO (figma 136:1018 — bg white, pt120 pb96)
   ===================================================================== */
.hero { position: relative; padding: clamp(56px, 6.25vw, 120px) 0 clamp(56px, 5vw, 96px); overflow: hidden; }
.hero__inner { position: relative; text-align: center; isolation: isolate; }
.hero__inner > * { position: relative; z-index: 1; }

/* Figma sizes the orb at 1210.5px against an 893px laptop — 135.5% — and
   centres the two, so the laptop masks the saturated core and only the halo
   reads. Keeping the ratio makes that hold at every width. */
.hero__stage { margin: clamp(24px, 2.6vw, 50px) auto 0; max-width: 893px; z-index: 0; }
.hero__glow {
  position: absolute; left: 50%; top: 50%;
  width: 135.5%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none; isolation: isolate;
  /* stops sampled at 5% radius intervals off Figma's render of node 136:1103 */
  background:
    radial-gradient(circle closest-side,
      rgba(16,101,210,.992)   0%, rgba(16,101,210,.992)  25%,
      rgba(30,110,211,.992)  35%, rgba(46,120,214,.993)  40%,
      rgba(65,133,216,.993)  45%, rgba(90,147,219,.989)  50%,
      rgba(114,162,221,.972) 55%, rgba(137,177,225,.918) 60%,
      rgba(158,190,229,.821) 65%, rgba(174,200,231,.682) 70%,
      rgba(185,207,232,.505) 75%, rgba(197,214,235,.319) 80%,
      rgba(206,221,236,.170) 85%, rgba(217,227,241,.070) 90%,
      rgba(210,222,238,.016) 95%, rgba(210,222,238,0)   100%);
}
/* the film grain Figma layers over the orb, clipped to the same falloff */
.hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: overlay;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0 62%, transparent 92%);
          mask-image: radial-gradient(circle closest-side, #000 0 62%, transparent 92%);
}
.hero__stage > .hero__shot { position: relative; z-index: 1; margin: 0; max-width: 893px; will-change: transform; }

.hero__eyebrow {
  font-size: clamp(.8125rem, 1.05vw, 1.25rem); font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: #000;
}
.hero__lockup { margin: 18px auto 0; display: flex; justify-content: center; }
.hero__tagline {
  margin-top: 26px; font-weight: 700; font-size: clamp(.9375rem, .94vw, 1.125rem);
  letter-spacing: .05em; color: var(--ink-soft);
}
.hero__title {   /* figma: 64px Bold, leading-none */
  margin-top: clamp(28px, 3vw, 56px);
  font-size: clamp(2rem, 4.45vw, 4rem);
  font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink);
}
.hero__sub {     /* figma: 20px Medium #6a707c */
  margin-top: 24px; color: var(--muted); font-weight: 500;
  font-size: clamp(.9375rem, 1.05vw, 1.25rem);
}

/* =====================================================================
   BLUE SECTIONS
   figma: the middle sections are flat #0362dd; only the closing section
   (136:1577) is a gradient down to #0247a1, which the footer continues.
   ===================================================================== */
.blue-run { background: var(--brand); color: var(--on-blue); }
.closing  { background: linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.band { position: relative; padding: clamp(64px, 7.5vw, 120px) 0; overflow: hidden; }
.band--tight { padding-top: clamp(32px, 3vw, 56px); }

/* section content always sits above the ₹ watermark layer */
.band > .container { position: relative; z-index: 1; }

/* ₹ watermarks (figma: Satoshi Bold, #fc7f36 @ 50%, 22–44px) */
.rupees { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rupees span {
  position: absolute; color: var(--orange-300); opacity: .5;
  font-weight: 700; line-height: 1; will-change: transform;
}

/* figma: two equal 562px columns with a 56px gutter */
.problem__grid {
  display: grid; gap: clamp(32px, 4.75vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

.leaks { display: grid; }                        /* figma: 16px Medium white */
.leaks li {
  padding: 22px 0; font-size: clamp(.9375rem, 1.1vw, 1rem); line-height: 1.5;
  font-weight: 500; color: var(--on-blue);
  border-top: 1px solid var(--on-blue-line);
}
.leaks li:nth-child(3) { border-bottom: 1px solid var(--on-blue-line); }
/* figma: no rule, 26px of air, 20px Bold in orange-200 */
.leaks__punch {
  border: 0 !important; padding-bottom: 0;
  color: var(--orange-200); font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

/* figma: 112px between the two blocks of this section */
.problem__grid { margin-bottom: clamp(56px, 9.5vw, 112px); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--sh-card);
  padding: clamp(16px, 2vw, 24px);
}
.card--pad-top { padding-top: clamp(24px, 3.6vw, 43px); }
.card.chat { background: var(--grey-50); }   /* figma: AI Hub card ground */

/* ---- tabs with a spring-driven indicator (figma: 14px, gap 24) ---- */
.tabs {
  position: relative; display: flex; gap: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative; flex: 0 0 auto; white-space: nowrap; padding: 2px 2px 14px;
  font-size: .875rem; font-weight: 500; color: var(--tab-idle);
  transition: color 200ms var(--ease-out), transform 120ms var(--ease-out);
}
.tabs__btn:hover { color: var(--muted); }
.tabs__btn:active { transform: scale(.97); }
.tabs__btn.is-active { color: var(--brand); font-weight: 700; }
.tabs__ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--brand); border-radius: 2px; will-change: transform, width;
}

/* ---- filter chips (figma: 12px Bold, tracking .72px, radius 999) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.chip {
  padding: 9px 15px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out),
              border-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.chip:hover { border-color: #d6dde8; color: var(--ink); }
.chip:active { transform: scale(.95); transition-duration: 90ms; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- table (figma: 1.5fr 1.5fr 1fr .9fr 1fr, rows 55px) ---- */
.table-wrap { overflow-x: auto; margin-top: 10px; }
.table { width: 100%; min-width: 720px; }
.table th {
  text-align: left; padding: 4px 8px 11px;
  font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.table td {
  padding: 15px 8px 14px; font-size: .875rem; color: var(--muted); font-weight: 400;
  border-top: 1px solid var(--line);
}
.table td:first-child { color: var(--ink); font-weight: 500; }
/* figma column proportions — desktop only; the phone layout below turns each
   row into a card, where any fixed column width would fight it */
@media (min-width: 701px) {
  .table thead th:nth-child(1), .table td:nth-child(1) { width: 25%; }
  .table thead th:nth-child(2), .table td:nth-child(2) { width: 25%; }
  .table thead th:nth-child(4), .table td:nth-child(4) { width: 15%; }
}
.table tbody tr { transition: background 160ms var(--ease-out); }
.table tbody tr:hover { background: #f8fafd; }
.table .neg  { color: var(--neg); font-weight: 700; }
.table .zero { color: var(--muted); font-weight: 700; }

/* figma: solid status fills with white text */
.pill {
  display: inline-block; padding: 5px 12px 6px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: #fff;
}
.pill--bad  { background: var(--neg); }
.pill--good { background: var(--pos); }

.table tbody tr[data-enter] { animation: rowIn var(--spring-dur) var(--spring) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   HOW IT WORKS (figma 136:1244 — 3 cols, gap 64, word 28px Bold Italic)
   ===================================================================== */
.steps {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; gap: clamp(36px, 5.4vw, 64px);
  grid-template-columns: repeat(3, minmax(0,1fr));
  text-align: center; justify-items: center;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step p {
  margin-top: 25px; color: var(--on-blue); font-weight: 500;
  font-size: clamp(.9375rem, 1.35vw, 1.25rem); line-height: 1.44;
  max-width: 24em;
}

/* hand-drawn ring — the exported Figma asset, stretched to the label box
   exactly as the design does (its own SVG is preserveAspectRatio="none") */
.scribble { position: relative; display: inline-block; padding: 14px 34px; }
.scribble__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; pointer-events: none;
  clip-path: inset(0 100% 0 0);
}
.scribble.is-drawn .scribble__ring {
  animation: ringDraw 820ms var(--ease-out) forwards;
}
@keyframes ringDraw { to { clip-path: inset(0 -4% 0 0); } }
.scribble > span {
  position: relative; z-index: 1; display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.2;
  white-space: nowrap;
}
.scribble--italic > span { font-style: italic; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
/* figma: four separate #f7f9fb tiles, radius 12, p-18, gap 12 — not a
   single bordered strip with dividers */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.kpi {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--tile); border-radius: var(--radius-sm); padding: 18px;
}
.kpi__label {
  display: block; font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.kpi__val {              /* figma: 34px Bold, tracking -0.68px */
  display: block; margin-top: auto;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.kpi--sm { background: none; padding: 0; gap: 6px; }
.kpi--sm .kpi__val { font-size: clamp(1.375rem, 1.8vw, 1.625rem); }   /* figma: 26px */

.dash__grid { margin-top: 12px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .dash__grid { grid-template-columns: 1fr; } }
.panel { background: var(--tile); border-radius: var(--radius-sm); padding: 20px; }
.panel__title { font-size: .875rem; font-weight: 700; color: var(--ink); }
.panel__sub { margin-top: 3px; font-size: .75rem; color: var(--muted); }

.bars { margin-top: 16px; display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bars__k { font-size: .8125rem; font-weight: 500; color: var(--ink); }
.bars__v { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* figma: the Net Value row is bold ink, not blue */
.bars__k--strong, .bars__v--strong { color: var(--ink); font-weight: 700; }
.bars__track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bars__fill {
  display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand);
  transition: width 900ms var(--spring);
}
.bars__fill--warn { background: var(--orange-300); }
.bars__fill--net  { background: var(--brand-deep); }

/* charts are drawn to their host's real pixel box (see main.js), so nothing
   stretches — the host just needs a height to measure */
.chart { margin-top: 16px; }
.chart--stack { height: clamp(150px, 24vw, 190px); }
.chart--line  { height: clamp(140px, 26vw, 200px); }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart__label { font-size: 11px; fill: var(--muted); font-weight: 500; }

/* figma: 9px square swatches with a 2px radius, 12px Regular */
.legend {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .75rem; color: var(--muted); font-weight: 400;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: 0 0 auto; }
.legend b { color: var(--muted); font-weight: 400; }

.dash__foot {
  display: flex; gap: clamp(24px, 4.7vw, 56px);
  margin-top: 8px; padding-top: 21px; border-top: 1px solid var(--line);
}

/* =====================================================================
   AI HUB
   ===================================================================== */
/* figma 136:1467 — the AI Hub card sits on grey-50, and the messages are
   white inputs with grey-200 borders rather than tinted chat bubbles */
.chat { display: grid; gap: 24px; background: var(--grey-50); }
.chat__row { display: flex; gap: 15px; align-items: flex-start; }
.chat__row--user { justify-content: flex-end; align-items: center; }
.avatar {
  flex: 0 0 auto; width: clamp(34px, 3vw, 44px); aspect-ratio: 1; border-radius: 999px;
  display: grid; place-items: center; color: #fff;
}
.avatar svg { width: 50%; height: 50%; }
.avatar--user { background: var(--brand); }
/* figma: orange-400 → blue-300 gradient */
.avatar--ai { background: linear-gradient(90deg, var(--orange-400) 42.65%, #4a97fc 88.85%); }
.bubble {
  padding: 16px; border-radius: 8px;
  background: #fff; border: 1px solid var(--grey-200);
  font-size: clamp(.9375rem, 1.5vw, 1.5rem); font-weight: 400; line-height: 1.4;
}
.bubble--user { border-radius: 10px; color: #000; }
.bubble--ai   { color: #111827; flex: 1 1 auto; min-width: 0; }

.chat__chart {
  margin: 8px 0 0 calc(clamp(34px, 3vw, 44px) + 15px); padding: 24px;
  border: 1px solid var(--grey-200); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 12px rgba(0,0,0,.02);
}
.chat__chart figcaption {
  font-size: clamp(1rem, 1.5vw, 1.5rem); font-weight: 700; color: #111827;
}
.chart__axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: clamp(.75rem, 1.25vw, 1.25rem); font-weight: 500;
  color: #111827; font-variant-numeric: tabular-nums;
}
[data-chat-step] { opacity: 0; transform: translateY(14px); }
[data-chat-step].is-in {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform var(--spring-dur) var(--spring);
}

/* =====================================================================
   REPORTS
   ===================================================================== */
.reports__fan { margin: clamp(24px, 4vw, 48px) auto 0; max-width: 1080px; will-change: transform; }
.reports__fan img { transition: transform 700ms var(--spring); }
.reports__fan:hover img { transform: scale(1.018); }

/* =====================================================================
   ROLLOUT (figma 136:1577 — 900px flow block, words 28px Bold)
   ===================================================================== */
.rollout .h2 { text-align: center; }
.flow {
  margin: clamp(28px, 3.4vw, 32px) auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 1.6vw, 20px); flex-wrap: nowrap;
  max-width: 900px;
}
.flow__arrow { flex: 0 0 auto; display: grid; place-items: center; }
.flow__arrow span {
  display: block; width: clamp(24px, 4vw, 62px); height: 2px;
  background: var(--orange-200); position: relative;
}
.flow__arrow span::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--orange-200); border-right: 2px solid var(--orange-200);
  transform: translateY(-50%) rotate(45deg);
}
/* figma: "It's that simple!" 24px Medium */
.rollout__kicker {
  margin-top: 26px; text-align: center; font-weight: 500;
  font-size: clamp(1.0625rem, 1.6vw, 1.5rem);
}

/* =====================================================================
   CTA + FOOTER (figma 136:1577)
   ===================================================================== */
.cta { padding-top: clamp(56px, 7.2vw, 87px); padding-bottom: clamp(56px, 7.3vw, 88px); }
.cta__title {   /* figma: 76px Bold, tracking -2.66px */
  font-size: clamp(2.125rem, 5.5vw, 4.75rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -.035em;
}
.cta__sub {     /* figma: 19px Regular rgba(255,255,255,.82) */
  margin-top: 26px; color: var(--on-blue-soft); font-weight: 400;
  font-size: clamp(.9375rem, 1.25vw, 1.1875rem); line-height: 1.6;
  max-width: 34em; margin-inline: auto;
}
.cta .btn { margin-top: 28px; }

.footer {
  background: var(--brand-deep); color: #fff;
  padding: clamp(28px, 2.8vw, 33px) 0 clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--on-blue-line);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand .logo { width: clamp(132px, 14vw, 168px); }
.footer__by { margin-top: 8px; font-size: .75rem; letter-spacing: .02em; color: #fff; }
.footer__links { display: flex; gap: 28px; font-size: .875rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: #fff; opacity: .9; transition: opacity 180ms var(--ease-out); }
.footer__links a:hover { opacity: 1; text-decoration: underline; }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 460ms var(--ease-out), transform var(--spring-dur) var(--spring);
  transition-delay: var(--d, 0ms);
}

/* =====================================================================
   RESPONSIVE — the design is desktop-only, so these are decisions, not
   translations. Priority is that dense content stays readable at 375px.
   ===================================================================== */

/* --- tablet --- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* --- the flow stacks before it can crush --- */
@media (max-width: 720px) {
  .flow { flex-direction: column; gap: 4px; }
  .flow__arrow span { width: 2px; height: 26px; }
  .flow__arrow span::after {
    right: 50%; top: auto; bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }
}

/* --- phone --- */
@media (max-width: 700px) {
  /* The 5-column table cannot be read at 375px, and a horizontal scroll
     hides half the row. Below this width each row becomes its own card
     with the column name as an inline label. */
  .table-wrap { overflow: visible; margin-top: 4px; }
  .table { min-width: 0; display: block; }
  .table thead { display: none; }
  .table tbody, .table tr, .table td { display: block; width: auto; }
  .table tbody tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 6px 14px 10px; margin-top: 10px;
  }
  .table tbody tr:hover { background: none; }
  .table td {
    /* the desktop column percentages must not survive into the card layout */
    width: auto; border: 0; padding: 7px 0; text-align: right !important;
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    font-size: .875rem;
    /* keep "−₹2,499" and the pills from breaking mid-value */
    white-space: nowrap;
  }
  .table td:nth-child(2) { white-space: normal; }   /* outlet names may wrap */
  .table td > span { margin-left: auto; text-align: right; }
  .table td::before {
    content: attr(data-label);
    flex: 0 0 auto; text-align: left;
    font-size: .625rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
  }
  .table td:first-child {
    border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 2px;
    font-size: .9375rem; font-weight: 700;
  }
  .table td:nth-child(n+2) { color: var(--ink); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .band { padding: 56px 0; }
  .band--tight { padding-top: 32px; }
  .nav__cta { padding: 10px 16px; font-size: .875rem; }
  .dash__foot { flex-direction: column; gap: 16px; }
  .footer__inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer__links { gap: 8px 22px; }
  .chat__chart { margin-left: 0; padding: 14px; }
  .bubble { max-width: none; font-size: .875rem; }
  .chat__row--user .bubble { margin-left: 8px; }
  .card { padding: 14px; }
  .panel { padding: 14px; }
  /* single-column KPIs read better than two cramped ones */
  .kpis { grid-template-columns: 1fr; }
  .kpi { flex-direction: row; align-items: baseline; justify-content: space-between;
         gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .kpi:last-child { border-bottom: 0; }
  .kpi__val { margin-top: 0; padding-top: 0; text-align: right; }
  .kpi__label { max-width: 55%; }
  .legend { font-size: .6875rem; gap: 6px 12px; }
  .steps { gap: 32px; }
  .scribble { padding: 12px 26px; }
}

/* =====================================================================
   ACCESSIBILITY PREFERENCES
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 180ms !important;
  }
  [data-reveal], [data-chat-step] { transform: none !important; }
  [data-reveal].is-in, [data-chat-step].is-in { transition: opacity 200ms linear; }
  .scribble__ring { clip-path: none !important; animation: none !important; }
  .reports__fan:hover img { transform: none; }
  .hero__shot, .reports__fan, .rupees span { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__glow::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --on-blue-soft: #fff; --muted: #4a5262; --line: #b9c0cc; --tab-idle: #4a5262; }
  .nav { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
  .card, .panel { border: 1px solid var(--muted); }
}
