/* ============================================================================
   SuryaSetu — Design System
   Style: "Trust & Authority" (badges, credentials, real metrics, no playfulness).
   Chosen because legitimacy doubt is this product's biggest risk: a real prospect
   assumed the outreach was fraudulent. The UI's first job is to look credible.

   COLOUR CONTRACT — do not break:
     • red / amber / green are RESERVED for lead-status semantics. They appear ONLY
       inside .pill badges. The brand may never use them, or the one signal staff
       scan all day stops being a signal.
     • --sun-* (amber) is used ONLY on money figures, always as large tabular
       numerals, never inside a pill. Different form factor = no confusion with
       status amber.
     • saffron + white + green together is FORBIDDEN: it reads as government
       affiliation, which is the exact misrepresentation risk we must avoid.

   Brand: deep navy (institutional trust) + azure (electricity, action).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  /* --- brand: navy ------------------------------------------------------ */
  --ink-950: #060f1a;
  --ink-900: #0b1524;
  --ink-800: #101f33;
  --ink-700: #1e3a5f;
  --navy-900: #0b1524;
  --navy-800: #12233a;
  --navy-700: #1a3350;
  --navy-600: #22416a;

  /* --- brand: azure (action / CTA) ------------------------------------- */
  --azure-700: #075985;
  --azure-600: #0369a1;
  --azure-500: #0284c7;
  --azure-400: #0ea5e9;
  --azure-100: #e0f2fe;
  --azure-050: #f0f9ff;

  /* --- money only ------------------------------------------------------ */
  --sun-700: #92500a;
  --sun-600: #b45309;
  --sun-500: #e8940c;
  --sun-400: #fbbf24;
  --sun-050: #fffbeb;

  /* --- RESERVED status semantics (pills only) -------------------------- */
  --ok-600: #15803d;
  --ok-050: #ecfdf5;
  --ok-200: #a7f3d0;
  --warn-600: #a35a00;
  --warn-050: #fffbeb;
  --warn-200: #fde68a;
  --bad-600: #b42318;
  --bad-050: #fef2f2;
  --bad-200: #fecaca;

  /* --- neutrals -------------------------------------------------------- */
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --canvas: #f5f8fa;

  /* --- geometry & depth ----------------------------------------------- */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(11, 21, 36, .05), 0 1px 3px rgba(11, 21, 36, .08);
  --sh-2: 0 4px 12px rgba(11, 21, 36, .07), 0 2px 4px rgba(11, 21, 36, .05);
  --sh-3: 0 14px 40px rgba(11, 21, 36, .12), 0 4px 10px rgba(11, 21, 36, .06);
  --sh-glow: 0 8px 30px rgba(3, 105, 161, .22);

  /* --- motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 140ms;
  --t: 220ms;
  --t-slow: 420ms;

  /* --- type ------------------------------------------------------------ */
  --font-latin: 'Plus Jakarta Sans', -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-deva: 'Noto Sans Devanagari', 'Plus Jakarta Sans', "Nirmala UI", system-ui, sans-serif;
  --font-num: 'Plus Jakarta Sans', ui-monospace, "Segoe UI", system-ui, sans-serif;

  --z-nav: 40;
  --z-toast: 60;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------------------
   INLINE ICON SAFETY NET — do not remove.

   Every icon in _icons.html carries a viewBox but NO width/height, by design, so
   that size comes from CSS. The failure mode of that design is brutal and silent:
   an <svg> with no intrinsic size and no CSS rule expands to fill its container,
   so a 18px icon dropped into a context nobody wrote a rule for renders as a
   1000px graphic that swallows the entire page. That is exactly what happened on
   the vendor dashboard on 2026-08-02 — a map-pin inside `<p class="note">` filled
   the viewport, because `.note svg` did not exist.

   This default makes forgetting a rule harmless. Every specific rule below
   (.btn svg, .empty svg, .brand-mark svg …) has higher specificity and still
   wins, so nothing that already looked right changes.
   --------------------------------------------------------------------------- */
svg { width: 18px; height: 18px; flex: none; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 16px;             /* never below 16 on mobile */
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Devanagari needs a taller line box and its own family. */
html[lang="hi"] body,
html[lang="hi"] input,
html[lang="hi"] select,
html[lang="hi"] textarea,
html[lang="hi"] button { font-family: var(--font-deva); }
html[lang="hi"] body { line-height: 1.75; }

h1, h2, h3, h4 {
  font-family: inherit;
  line-height: 1.22;
  letter-spacing: -.018em;
  margin: 0 0 .5rem;
  color: var(--ink-900);
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 .85rem; max-width: 68ch; }   /* 65-75ch line length */

a { color: var(--azure-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--azure-700); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--azure-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================ background treatment ======================= */
/* A layered mesh + faint grid. Fixed and pointer-events-none so it never
   interferes with scroll performance or hit-testing. */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(3, 105, 161, .10), transparent 60%),
    radial-gradient(48rem 34rem at 92% 4%, rgba(232, 148, 12, .09), transparent 62%),
    radial-gradient(40rem 30rem at 50% 108%, rgba(14, 165, 233, .07), transparent 60%);
}
.bg-decor::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ================================ top nav =============================== */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(11, 21, 36, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.topbar-in {
  max-width: 1240px; margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: #fff;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(140deg, var(--sun-500), var(--sun-600));
  box-shadow: 0 3px 12px rgba(232, 148, 12, .38);
}
.brand-mark svg { width: 19px; height: 19px; display: block; }
.brand em { font-style: normal; color: var(--sun-400); }
.brand-sub {
  font-size: .72rem; font-weight: 500; color: rgba(255, 255, 255, .55);
  letter-spacing: .01em; display: block; margin-top: -3px;
}

.nav { display: flex; gap: .15rem; flex-wrap: wrap; }
.nav a {
  color: rgba(255, 255, 255, .74); padding: .45rem .8rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .9rem; position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.nav a.on { background: var(--azure-600); color: #fff; box-shadow: var(--sh-glow); }
.spacer { margin-left: auto; }
.who {
  font-size: .82rem; color: rgba(255, 255, 255, .62);
  display: flex; flex-direction: column; line-height: 1.25; text-align: right;
}
.who strong { color: #fff; font-weight: 600; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: .34rem .72rem; color: rgba(255, 255, 255, .88);
  font-size: .82rem; font-weight: 600; cursor: pointer; background: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.lang:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; text-decoration: none; }
.lang svg { width: 14px; height: 14px; }
.lang--light { border-color: var(--line); color: var(--text-soft); }
.lang--light:hover { background: var(--surface-2); color: var(--text); border-color: var(--azure-400); }

/* ================================ layout =============================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 980px; }

.grid { display: grid; gap: 1rem; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: flex-end; }
.between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ================================= cards =============================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 1.15rem 1.25rem;
}
.card--pad { padding: 1.6rem 1.5rem; }
.card-h {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .9rem;
}
.card-h h2, .card-h h3 { margin: 0; font-size: 1.02rem; color: var(--ink-900); }
.card-h .hint { font-size: .82rem; color: var(--text-mute); font-weight: 500; }
.help { font-size: .86rem; color: var(--text-soft); margin: -.35rem 0 .9rem; max-width: 72ch; }

/* Interactive card — lift only, never scale (scale shifts layout). */
.card--link { cursor: pointer; transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--azure-100); }

/* ================================= stats =============================== */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--azure-400), var(--azure-600));
  opacity: .85;
}
.stat--money::before { background: linear-gradient(180deg, var(--sun-400), var(--sun-600)); }
.stat .k {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-mute); font-weight: 700;
}
.stat .v {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: .1rem; color: var(--ink-900);
  line-height: 1.15;
}
.stat .v--money { color: var(--sun-600); }
.stat .s { font-size: .8rem; color: var(--text-mute); margin-top: .1rem; }
.stat--hero .v { font-size: clamp(1.9rem, 5vw, 2.6rem); }

/* ================================= tables ============================== */
.t-scroll { overflow-x: auto; margin: 0 -.35rem; padding: 0 .35rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
th, td { text-align: left; padding: .68rem .7rem; border-bottom: 1px solid var(--line-soft); }
th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-mute); font-weight: 700; white-space: nowrap;
  background: var(--surface-2); position: sticky; top: 0;
}
th:first-child { border-top-left-radius: var(--r-sm); }
th:last-child { border-top-right-radius: var(--r-sm); }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--azure-050); }
tbody tr:last-child td { border-bottom: none; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.money { color: var(--sun-600); font-weight: 700; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ============================ pills (STATUS ONLY) ====================== */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent; line-height: 1.5;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.pill.green { background: var(--ok-050);   color: var(--ok-600);   border-color: var(--ok-200); }
.pill.amber { background: var(--warn-050); color: var(--warn-600); border-color: var(--warn-200); }
.pill.red   { background: var(--bad-050);  color: var(--bad-600);  border-color: var(--bad-200); }
.pill.info  { background: var(--azure-050); color: var(--azure-700); border-color: var(--azure-100); }
.pill.neutral, .pill.muted {
  background: var(--surface-2); color: var(--text-soft); border-color: var(--line);
}
.pill.muted { color: var(--text-mute); }

/* verified tick — the trust signal; deliberately looks like a platform badge */
.tick {
  display: inline-flex; align-items: center; gap: .28rem;
  color: var(--azure-600); font-weight: 700; font-size: .8rem;
}
.tick svg { width: 15px; height: 15px; flex: none; }

/* ================================ buttons ============================== */
.btn {
  --btn-bg: var(--azure-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .68rem 1.15rem;
  border: 1px solid transparent; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; font-size: .94rem;
  cursor: pointer; text-decoration: none; -webkit-user-select: none; user-select: none;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast), background-color var(--t-fast),
              border-color var(--t-fast), filter var(--t-fast);
}
.btn:hover { filter: brightness(1.07); box-shadow: var(--sh-2); text-decoration: none; color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: var(--sh-1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.btn--primary { --btn-bg: var(--azure-600); box-shadow: var(--sh-glow); }
.btn--dark    { --btn-bg: var(--navy-900); }
.btn--sun     { --btn-bg: var(--sun-500); --btn-fg: #26160a; box-shadow: 0 6px 22px rgba(232,148,12,.32); }
.btn--ok      { --btn-bg: var(--ok-600); }
.btn--warn    { --btn-bg: var(--warn-600); }
.btn--bad     { --btn-bg: var(--bad-600); }
.btn--ghost   { --btn-bg: var(--surface); --btn-fg: var(--text-soft); border-color: var(--line); }
.btn--ghost:hover { --btn-fg: var(--azure-700); border-color: var(--azure-400); filter: none; background: var(--azure-050); }
/* Dense tables can't fit 44px, but 40px + generous row padding keeps small
   buttons genuinely tappable on a phone. Primary actions stay at 46px. */
.btn--sm { min-height: 40px; padding: .42rem .72rem; font-size: .82rem; border-radius: var(--r-sm); }
.btn--wide { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ============================== filter chips =========================== */
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-soft); font-weight: 600; font-size: .87rem;
  min-height: 40px; transition: all var(--t-fast);
}
.chip { cursor: pointer; }
.chip:hover { border-color: var(--azure-400); color: var(--azure-700); text-decoration: none; }
.chip.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .c { opacity: .65; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.on .c { opacity: .8; }

/* ================================= forms =============================== */
label { display: block; font-size: .84rem; font-weight: 700; color: var(--text-soft); margin-bottom: .3rem; }
.field { margin-bottom: .9rem; }
/* `.note` was only ever defined as `.field .note`, so every standalone
   `<p class="note">` across the vendor, advisor and public pages rendered as
   unstyled 16px body copy. Defined as a real utility here; the `.field` variant
   below keeps its tighter spacing inside forms. */
.note {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-mute);
  margin: .6rem 0 0;
  font-weight: 400;
}
.note svg { width: 15px; height: 15px; flex: none; margin-top: .17rem; color: var(--text-mute); }
.field .note { display: block; font-size: .8rem; color: var(--text-mute); margin: .35rem 0 0; font-weight: 400; }

input[type=text], input[type=password], input[type=search], input[type=email],
input[type=tel], select, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 46px;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--azure-500);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .16);
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
select {
  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='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 17px;
  padding-right: 2.3rem;
}
.check {
  display: flex; gap: .6rem; align-items: flex-start;
  font-weight: 400; font-size: .88rem; color: var(--text-soft);
  cursor: pointer; line-height: 1.55;
}
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .18rem; accent-color: var(--azure-600); cursor: pointer; }
.inline-field { display: inline-flex; align-items: center; gap: .4rem; }
.inline-field input { width: auto; }
.hidden { display: none; }

.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 .3rem; border-radius: 999px;
  background: var(--bad-600); color: #fff; font-size: .7rem; font-weight: 700;
  line-height: 1;
}

/* Password field + show/hide eye button (register, forgot-password). */
.input-with-btn { position: relative; }
.input-with-btn input { padding-right: 2.6rem; }
.pw-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: var(--r); color: var(--text-mute);
  cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-2, var(--surface)); color: var(--text-soft); }
.pw-toggle svg { width: 18px; height: 18px; }
.field .note.error { color: var(--bad-600); }

/* ================================ alerts =============================== */
.alert {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .8rem 1rem; border-radius: var(--r); margin-bottom: 1rem;
  font-weight: 500; font-size: .92rem; border: 1px solid transparent;
  animation: fadeUp var(--t-slow) var(--ease-out) both;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
.alert.error   { background: var(--bad-050);  color: var(--bad-600);  border-color: var(--bad-200); }
.alert.success { background: var(--ok-050);   color: var(--ok-600);   border-color: var(--ok-200); }
.alert.warn    { background: var(--warn-050); color: var(--warn-600); border-color: var(--warn-200); }
.alert.info    { background: var(--azure-050); color: var(--azure-700); border-color: var(--azure-100); }

/* ================================= hero =============================== */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .8rem .32rem .5rem; border-radius: 999px;
  background: var(--azure-050); border: 1px solid var(--azure-100);
  color: var(--azure-700); font-size: .8rem; font-weight: 700;
  letter-spacing: .01em; margin-bottom: 1.1rem;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { max-width: 21ch; white-space: pre-line; }
.hero .lede { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--text-soft); max-width: 56ch; }
.trust-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
}
.trust-item svg { width: 18px; height: 18px; color: var(--ok-600); flex: none; }
/* Vertical checklist — same visual language as the trust row, stacked. */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; font-weight: 500; color: var(--text-soft); }
.checklist svg { width: 18px; height: 18px; color: var(--ok-600); flex: none; margin-top: .17rem; }

/* step cards */
.step { position: relative; padding-top: .4rem; }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: .95rem;
  margin-bottom: .7rem; box-shadow: var(--sh-2);
}
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .92rem; color: var(--text-soft); margin: 0; }

.feature-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--azure-050); border: 1px solid var(--azure-100); margin-bottom: .75rem;
}
.feature-ico svg { width: 21px; height: 21px; color: var(--azure-600); }
.feature-ico--ok { background: var(--ok-050); border-color: var(--ok-200); }
.feature-ico--ok svg { color: var(--ok-600); }

/* ============================== auth screen ============================ */
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 1.25rem;
  background:
    radial-gradient(40rem 30rem at 20% 0%, rgba(3, 105, 161, .5), transparent 60%),
    radial-gradient(36rem 26rem at 85% 100%, rgba(232, 148, 12, .28), transparent 60%),
    var(--navy-900);
}
.auth-card {
  width: min(420px, 100%); background: var(--surface);
  border-radius: var(--r-xl); padding: 2.1rem 1.9rem;
  box-shadow: 0 24px 70px rgba(6, 15, 26, .45);
  animation: scaleIn var(--t-slow) var(--ease-out) both;
}
.auth-card .brand { color: var(--ink-900); margin-bottom: .2rem; }
.auth-card .brand em { color: var(--sun-600); }

/* =============================== footer =============================== */
.foot {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.6rem 0 2.5rem;
  color: var(--text-mute); font-size: .84rem;
}
.foot p { max-width: 80ch; margin: 0; }

/* =============================== timeline ============================== */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: .6rem 0 .6rem 1.15rem;
  border-bottom: 1px dashed var(--line-soft); font-size: .88rem;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure-400); box-shadow: 0 0 0 3px var(--azure-050);
}
.timeline li:last-child { border-bottom: none; }
.timeline .meta { color: var(--text-mute); font-size: .8rem; }

/* ============================= empty states ============================ */
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--text-mute); }
.empty svg { width: 40px; height: 40px; color: #cbd5e1; margin-bottom: .7rem; }
.empty p { margin: 0 auto; max-width: 46ch; font-size: .92rem; }

/* ============================== utilities ============================== */
/* A deliberately small utility layer. Templates should reach for these instead of
   inline style="" — keeps every spacing decision in one file. */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.gap-lg { gap: 2.5rem; }
.gap-sm { gap: .35rem; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.mx-auto { margin-inline: auto; }
.flex-1 { flex: 1 1 200px; }
.flex-2 { flex: 2 1 240px; }
.w-sm { width: 90px; }
.w-xs { width: 78px; }
.pb-0 { padding-bottom: 0; }
.inline-form { display: inline-block; }
.section { margin-top: 2.6rem; }
.lede-center { max-width: 58ch; margin-inline: auto; }

.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.sm { font-size: .84rem; }
.xs { font-size: .78rem; }
.b { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hr { border: none; border-top: 1px solid var(--line-soft); margin: 1rem 0; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.consent-warn {
  display: flex; gap: .65rem; align-items: flex-start;
  background: var(--bad-050); border: 1px solid var(--bad-200); color: var(--bad-600);
  padding: .85rem 1rem; border-radius: var(--r); font-weight: 600; font-size: .9rem;
}
.consent-warn svg { width: 20px; height: 20px; flex: none; margin-top: .1rem; }

/* =============================== motion =============================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Staggered entrance. Delay comes from an explicit class rather than an inline
   custom property, so stagger works with zero JS and templates stay style-free.
   Stagger stays at 70ms — larger gaps read as sluggish. */
.in { animation: fadeUp var(--t-slow) var(--ease-out) both; }
.d1 { animation-delay: 70ms; }
.d2 { animation-delay: 140ms; }
.d3 { animation-delay: 210ms; }
.d4 { animation-delay: 280ms; }
.d5 { animation-delay: 350ms; }

/* Scroll reveal — JS adds .seen via IntersectionObserver.
   Scoped to `.js` (set inline in <head>, see base.html) so the hidden state is
   opt-IN. If app.js never loads, `.js` is still present but `.seen` is never
   added — so the rule below would still hide the content. The no-JS guarantee
   therefore comes from the `.js` class being set by the SAME inline script that
   is guaranteed to run with the HTML, while the ANIMATION depends on app.js.
   Belt and braces: the html:not(.js) rule restores visibility when scripting is
   disabled entirely, and app.js reveals everything if IntersectionObserver is
   missing. Fixed 2026-08-05 — this previously read `.reveal { opacity: 0 }`
   unconditionally while its own comment claimed the opposite. */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.js .reveal.seen { opacity: 1; transform: none; }

/* Group caption that LOOKS like a <label> but is not one. A checkbox group has
   no single control to point `for` at — each chip carries its own label — so
   using a real <label> here would be a dangling association for a screen reader. */
.lbl { display: block; font-size: .84rem; font-weight: 700; color: var(--text-soft); margin-bottom: .3rem; }

/* Optional/advanced form section. The pincode box lives in one of these: it is
   the fallback for states without a district list, and the common case should
   not have to read past it. */
details.field > summary {
  cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--azure-700);
  padding: .55rem 0; list-style: none; min-height: 44px; display: flex; align-items: center; gap: .4rem;
}
details.field > summary::-webkit-details-marker { display: none; }
details.field > summary::before { content: "+"; font-size: 1.05rem; line-height: 1; }
details.field[open] > summary::before { content: "\2212"; }  /* minus */
details.field > summary:focus-visible { outline: 2px solid var(--azure-600); outline-offset: 2px; }

/* District chooser — checkbox chips (2026-08-05).
   Replaces a native <select multiple>, which needs ctrl-click on desktop and
   renders ~20px rows on a phone. This audience is on ₹10k Androids, so coverage
   is picked with 44px tap targets and 8px spacing instead.
   Azure = chosen, because azure is the brand ACTION colour. Deliberately NOT
   red/amber/green: those are reserved for lead-status pills (RUNBOOK §1b), and
   reusing them here would blunt the signal staff scan all day. */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: .95rem;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.chip:hover { border-color: var(--azure-500); }
.chip input { width: 1.05rem; height: 1.05rem; margin: 0; cursor: pointer; accent-color: var(--azure-600); }
/* The native tick is always visible, so selection is never conveyed by colour
   alone. `:has()` is progressive enhancement — on a browser without it the chip
   simply stays white and the checkbox still tells the truth. */
.chip:has(input:checked) { background: var(--azure-050); border-color: var(--azure-500); }
.chip input:checked ~ span { font-weight: 600; color: var(--azure-700); }
.chip:focus-within { outline: 2px solid var(--azure-600); outline-offset: 2px; }
.chips-empty { color: var(--muted, #64748b); font-size: .9rem; margin-top: .45rem; }

/* The HTML `hidden` attribute must beat any layout class. Author-origin rules
   like `.row { display: flex }` (line ~246) outrank the UA stylesheet's
   `[hidden] { display: none }`, which made every `class="row" hidden` element
   render anyway — including the "Delete and re-record" control on all three
   voice-note widgets, shown before anything had been recorded. */
[hidden] { display: none !important; }

.spinner {
  width: 17px; height: 17px; border: 2px solid currentColor;
  border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
.skeleton {
  background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 50%, #eef2f6 75%);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
  border-radius: 6px;
}

/* MANDATORY: motion sensitivity. Also kills the reveal offset so nothing hides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =============================== responsive ============================ */
@media (max-width: 760px) {
  .wrap { padding: 1rem .9rem 3rem; }
  .topbar-in { padding: .55rem .9rem; gap: .6rem; }
  .brand-sub { display: none; }
  .who { display: none; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: .15rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .stat .v { font-size: 1.5rem; }
  th { position: static; }
  .card { padding: 1rem; border-radius: var(--r); }
}
@media (max-width: 380px) {
  body { font-size: 15.5px; }
  .btn { padding: .62rem .9rem; }
}

/* Print — vendors and staff do print lead lists. */
@media print {
  .topbar, .bg-decor, .btn, .chips { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ======================================================================
   2026-07-31 — status stepper, UPI pay, voice feedback, invite codes
   ====================================================================== */

/* --- funnel stepper -----------------------------------------------------
   Answers "where is this lead" before the vendor reads a single word. The
   dots are large because this is tapped outdoors on a roof, in sunlight. */
.steps {
  display: flex; align-items: flex-start; gap: .25rem;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
}
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: .35rem; position: relative; text-align: center;
}
.step + .step::before {
  content: ""; position: absolute; top: 14px; right: 50%; left: -50%;
  height: 2px; background: var(--line); z-index: 0;
}
.step.done + .step::before, .step.done::before { background: var(--ok-600); }
.step-dot {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
  background: var(--surface); color: var(--text-mute);
  border: 2px solid var(--line);
}
.step.done .step-dot { background: var(--ok-600); border-color: var(--ok-600); color: #fff; }
.step.now .step-dot { box-shadow: 0 0 0 4px var(--ok-050); }
.step-label { font-size: .72rem; color: var(--text-mute); line-height: 1.2; }
.step.done .step-label, .step.now .step-label { color: var(--text); font-weight: 600; }

/* --- progressive disclosure for the "it didn't work out" path ----------
   Marking a lead lost is a real outcome, but it must not sit next to the
   happy path competing for the same tap. */
.disclose { border-top: 1px solid var(--line); padding-top: .8rem; }
.disclose > summary {
  cursor: pointer; font-size: .9rem; color: var(--text-soft);
  font-weight: 600; list-style: none; padding: .3rem 0;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: "▸ "; color: var(--text-mute); }
.disclose[open] > summary::before { content: "▾ "; }

/* --- UPI pay screen ---------------------------------------------------- */
.qr-wrap { display: grid; place-items: center; margin: .6rem 0; }
.qr {
  width: min(260px, 70vw); height: auto; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; padding: .5rem;
}
.v--xl { font-size: 2.15rem; }

/* --- voice recorder ---------------------------------------------------- */
.rec { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.rec-time { font-size: 1.05rem; font-weight: 700; color: var(--bad-600); }
.label-like {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-soft); margin-bottom: .4rem;
}
.fb-msg { white-space: pre-wrap; margin: .2rem 0 .8rem; }

/* --- invite code ------------------------------------------------------- */
.field--accent {
  background: var(--sun-050); border: 1px solid var(--sun-400);
  border-radius: var(--r); padding: .85rem .9rem; margin-bottom: 1.1rem;
}
.code-input { letter-spacing: .22em; font-size: 1.1rem; text-transform: uppercase; }
.code-cell { letter-spacing: .12em; }
.req { color: var(--bad-600); }

/* --- small utilities used by the new templates ------------------------- */
.mb-1 { margin-bottom: .5rem; }
.mt-0 { margin-top: 0; }
.flex-2 { flex: 2 1 0; }

@media (max-width: 520px) {
  .step-label { font-size: .66rem; }
  .v--xl { font-size: 1.8rem; }
}
