/* ==========================================================================
   Activ Paisa — design system
   ========================================================================== */

:root {
  /* Brand — the logo's own two inks: deep violet into signal blue */
  --primary: #0060B0;
  --primary-600: #004E90;
  --secondary: #200050;
  --secondary-600: #16003A;
  --grad: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --grad-hover: linear-gradient(135deg, var(--secondary-600) 0%, var(--primary-600) 100%);
  --tint: #E6F0FA;

  /* Surface */
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-alt: #F5F5F7;

  /* Ink — text ramp */
  --ink: #1D1D1F;
  /* Apple's own secondary grey is #86868B, which fails AA for small text.
     These are a shade darker so captions stay legible on white and on
     --surface-alt: 6.2:1 and 4.5:1 respectively. */
  --ink-2: #616166;
  --ink-3: #76767B;

  /* State — hairlines, so a divider reads as a seam and not as a box */
  --line: rgba(0, 0, 0, .10);
  --line-strong: rgba(0, 0, 0, .18);
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-bg: #FEF3C7;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --sh-md: 0 2px 10px rgba(0, 0, 0, .05);
  --sh-lg: 0 10px 34px rgba(0, 0, 0, .07);
  --sh-xl: 0 30px 70px rgba(0, 0, 0, .10);
  /* A primary button carries no shadow. Colour alone says "press me". */
  --sh-cta: none;

  /* Shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 980px;

  /* Screen controls share one vertical rhythm */
  --field-h: 52px;
  --btn-h: 50px;

  /* Type scale -- text runs off the same steps everywhere */
  --text-caption: .8125rem;
  --text-small: .9375rem;
  --text-body: 1.0625rem;
  --text-lead: 1.1875rem;
  --text-h4: 1.1875rem;
  --text-h3: 1.375rem;
  --text-h2: 1.75rem;
  --text-h1: clamp(2.4rem, 5.2vw, 3.75rem);
  --text-display: clamp(3.4rem, 8.4vw, 6rem);

  /* Spacing -- 8px grid */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-18: 72px;
  --sp-20: 80px;

  --ease: cubic-bezier(.28, .11, .32, 1);
  --dur: .3s;
  --dur-slow: .6s;

  --wrap: 1120px;
  /* System first: SF Pro on Apple hardware, Segoe on Windows, Roboto on
     Android. Nothing to download, and it is the face the OS is tuned for. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchored jumps clear of the sticky header */
  scroll-padding-top: 84px;
  /* A grey flash on every tap is the giveaway that a page is a page. */
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--tint); color: var(--secondary); }

body {
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.52;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* 600, never 800. Weight is the loudest thing on a page and display sizes
   are already loud enough. */
/* balance: the browser evens out the lines of a headline instead of leaving
   one word stranded on the last one. pretty: same idea for body orphans. */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
h4, h5, h6 { letter-spacing: -.01em; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--surface); color: var(--ink);
  padding: 10px 18px; border-radius: var(--r-sm); box-shadow: var(--sh-lg);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

:where(a, button, input, select, [tabindex]):focus-visible {
  /* 2px still clears WCAG's focus-appearance bar at this contrast, and reads
     as a ring rather than a slab drawn round the control. */
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Live figures — a slider that reflows its own digits reads as unsteady.
   Monospaced numerals hold the width while the value changes. */
.hero-amount, .calc-emi, .cmp-emi-value,
.cp-result-value, .cp-amount-field input, .cs-score, .cs-weights dd,
.stat-bar strong {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--btn-h);
  padding: var(--sp-4) var(--sp-7);
  border-radius: var(--r-pill);
  font-weight: 500; font-size: var(--text-small); line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), opacity var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { opacity: .82; }

.btn-primary {
  background: var(--primary); color: #fff;
}
@media (hover: hover) {
  .btn-primary:hover { background: var(--primary-600); }
}

.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
@media (hover: hover) {
  .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
}

.btn-sm { min-height: 40px; padding: var(--sp-2) var(--sp-5); font-size: var(--text-small); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }

/* Oversized hero CTA. No shine sweep — a moving highlight on a button reads
   as a banner ad, and the page is quieter without it. */
.btn-hero {
  min-height: 58px; padding: var(--sp-5) var(--sp-12); font-size: var(--text-lead);
  border-radius: var(--r-pill);
}

.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-cancel { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-cancel:hover { border-color: var(--primary); color: var(--primary); }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::before, .btn-cancel.is-loading::before {
  border-color: rgba(15, 23, 42, .25); border-top-color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

.linklike {
  color: var(--primary); font-weight: 600; font-size: inherit;
  padding: 0; text-decoration: underline; text-underline-offset: 2px;
}
.linklike[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 58px; }

/* Present at every width: it opens the drawer, which reaches the whole site,
   not just the products the top nav has room for. */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 30px; height: 30px; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: width var(--dur) var(--ease);
}
.hamburger span:nth-child(1) { width: 26px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger:hover span { width: 26px; }
/* 30px of glyph, but a finger needs 44. Pad outward without moving the bars. */
@media (pointer: coarse) {
  .hamburger { width: 44px; height: 44px; margin-left: -7px; align-items: flex-start; padding-left: 7px; }
}

.brand { flex-shrink: 0; }
.brand-logo { width: auto; height: 32px; }

/* ==========================================================================
   Menu drawer — built by core.js from the header nav, so it stays in step
   with whatever a page lists rather than being repeated as markup.
   ========================================================================== */
.nav-drawer { position: fixed; inset: 0; z-index: 200; }
.nav-drawer::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.nav-drawer.is-open::before { opacity: 1; }

.nav-drawer-panel {
  position: absolute; inset: 0 auto 0 0;
  width: min(420px, 100%);
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
}
.nav-drawer.is-open .nav-drawer-panel { transform: none; }

.nav-drawer-head {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; flex-shrink: 0;
}
.nav-drawer-close {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--ink); cursor: pointer;
}
.nav-drawer-close:hover { background: var(--surface-alt); }
.nav-drawer-brand img { height: 30px; width: auto; }

.nav-drawer-body { padding-bottom: 40px; }
.nav-drawer-link {
  display: block; padding: 18px 24px;
  font-size: 1.18rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-drawer-link:first-of-type { border-top: 1px solid var(--line); }
.nav-drawer-link:hover { background: var(--surface-alt); color: var(--primary); text-decoration: none; }
.nav-drawer-link[aria-current="page"] { color: var(--primary); }

.nav-drawer-group { background: var(--surface-alt); padding: 22px 24px 26px; }
.nav-drawer-group + .nav-drawer-group { border-top: 1px solid var(--line); }
.nav-drawer-group h2 { font-size: 1.08rem; margin: 0 0 6px; color: var(--ink); }
.nav-drawer-group ul { list-style: none; }
.nav-drawer-group li { position: relative; padding-left: 20px; }
.nav-drawer-group li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
}
.nav-drawer-group a {
  display: block; padding: 13px 0;
  font-size: 1.02rem; color: var(--ink-2);
}
.nav-drawer-group a:hover { color: var(--primary); }

/* The drawer scrolls on its own; the page behind it must not. */
body.has-drawer { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer::before, .nav-drawer-panel { transition: none; }
}

.header-cta { flex-shrink: 0; margin-left: auto; }
.header-login { flex-shrink: 0; margin-left: auto; }
.header-login + .header-cta { margin-left: 0; }

/* ---------- signed-in account (replaces .header-login) ---------- */
.header-account { position: relative; flex-shrink: 0; margin-left: auto; }
.header-account-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface, #fff); font: inherit; cursor: pointer;
}
.header-account-btn:hover { border-color: var(--line-strong); }
.header-account-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .72rem; letter-spacing: .01em;
}
.header-account-name {
  font-weight: 700; font-size: .86rem; color: var(--ink);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-account-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: min(340px, calc(100vw - 32px));
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .16), 0 4px 12px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.header-account-loading { padding: 22px; text-align: center; color: var(--ink-3); font-size: .86rem; }
.header-account-head {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  background: var(--surface-alt); border-bottom: 1px solid var(--line);
}
.header-account-head .header-account-avatar { width: 46px; height: 46px; font-size: .95rem; }
.header-account-who { min-width: 0; }
.header-account-who strong { display: block; font-size: 1rem; }
.header-account-who span { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.header-account-edit {
  margin-left: auto; flex-shrink: 0; font-size: .8rem; font-weight: 700; color: var(--primary);
}
.header-account-body { padding: 16px; }
.header-account-score {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.header-account-score-left { min-width: 0; }
.header-account-score-label { color: var(--ink-3); font-size: .8rem; margin: 0 0 4px; }
.header-account-score-band { font-weight: 800; font-size: 1.05rem; margin: 0 0 12px; }
.header-account-score-band.is-good { color: var(--success); }
.header-account-score-band.is-fair { color: var(--warning); }
.header-account-score-band.is-poor { color: var(--danger); }
.header-account-view {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--primary); color: var(--primary); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .8rem;
}
.header-account-view:hover { background: var(--primary); color: #fff; text-decoration: none; }
.header-account-gauge { position: relative; flex-shrink: 0; width: 72px; height: 72px; }
.header-account-gauge-mid {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: var(--ink);
}
.header-account-nocredit {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  font-size: .84rem; color: var(--ink-2); line-height: 1.5;
}
.header-account-logout {
  width: 100%; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; background: var(--surface, #fff); color: var(--danger);
  font-weight: 700; font-size: .88rem; cursor: pointer;
}
.header-account-logout:hover { background: var(--danger-bg); border-color: var(--danger); }

/* ---------- about page ---------- */
.about-copy { padding: 56px 0 64px; }
.about-copy h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); letter-spacing: -.01em; margin-bottom: 28px; }
.about-copy p { max-width: 62rem; line-height: 1.75; }
.about-copy p + p { margin-top: 22px; }
.about-statutory { background: var(--surface-alt); padding: 56px 0 64px; border-top: 1px solid var(--line); }
.about-stat-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about-entity .lead { color: var(--ink-2); }
.about-entity h2 { font-size: 1.2rem; letter-spacing: .01em; margin-top: 18px; }
.about-entity address { font-style: normal; line-height: 1.7; margin-top: 8px; color: var(--ink-2); }
.about-reg { margin-top: 18px; }
.about-reg div { display: flex; gap: 6px; flex-wrap: wrap; }
.about-reg dt { font-weight: 700; }
.about-reg dd { margin: 0; color: var(--ink-2); }
.about-officer { margin-top: 18px; }
.about-officer h3 { font-size: .95rem; }
.about-officer p { color: var(--ink-2); line-height: 1.7; margin-top: 4px; }
.about-col h2 { font-size: 1.2rem; margin-bottom: 14px; }
.about-col .about-col-second { margin-top: 32px; }
.about-col ul { list-style: disc; padding-left: 20px; display: grid; gap: 10px; }
.about-col a { color: inherit; }
.about-col a:hover { color: var(--primary); }
@media (max-width: 860px) {
  .about-copy { padding: 40px 0 44px; }
  .about-stat-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 56px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 780px; height: 620px; top: -120px; left: -220px;
  background: radial-gradient(ellipse at center, var(--tint), transparent 68%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

.tagline {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 1.25rem; font-weight: 500;
  letter-spacing: -.02em;
}
.tagline svg { fill: var(--primary); flex-shrink: 0; }

.hero-heading {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  margin: 18px 0 6px;
}

/* Intro paragraph on the product pages, which have no hero-amount */
.hero-lede {
  font-size: var(--text-lead);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 42ch;
  margin: 18px 0 30px;
}

.hero-amount {
  display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 800; line-height: 1;
  color: var(--secondary); letter-spacing: -.04em;
  margin-bottom: 34px;
}
.hero-amount .rupee { font-size: .62em; color: var(--primary); }
.hero-amount .lakhs { margin-left: 2px; }

/* Rolling-digit odometer */
.odometer { display: inline-flex; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-list {
  display: flex; flex-direction: column;
  transition: transform 1.5s cubic-bezier(.22, 1, .36, 1);
}
.odo-d { height: 1em; line-height: 1; }

.highlights { display: grid; gap: 16px; margin-bottom: 30px; }
.highlights li { display: flex; align-items: center; gap: 14px; }
.hl-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--tint); color: var(--primary);
  font-size: .95rem; font-weight: 700;
}
.hl-label { color: var(--ink-2); font-size: 1rem; }
.hl-value { font-weight: 700; font-size: 1rem; }

/* Reassurances directly under the hero CTA — one card, hairline-divided */
.trust-row {
  /* content-width cells, not four equal ones: equal columns squeezed the
     longest label onto a third line */
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  margin-top: 26px; padding: 14px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.trust-row li {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 9px;
  border-left: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; line-height: 1.25;
  color: var(--ink);
}
.trust-row li:first-child { border-left: 0; }
.trust-row svg {
  flex-shrink: 0; width: 19px; height: 19px;
  fill: none; stroke: var(--primary);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.trust-row .tr-tick, .trust-row .tr-open { stroke-width: 2; }

/* Headline numbers spanning the full width below the hero */
.stat-bar {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px; padding: 22px 8px;
  background: var(--tint);
  border-radius: var(--r-lg);
}
.stat-bar li {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 2px 18px;
  border-left: 1px solid rgba(0, 96, 176, .16);
}
.stat-bar li:first-child { border-left: 0; }
.stat-bar svg {
  flex-shrink: 0; fill: none; stroke: var(--primary);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.stat-bar div { display: grid; }
.stat-bar strong {
  font-size: 1.3rem; font-weight: 800; color: var(--secondary);
  letter-spacing: -.02em; line-height: 1.15;
}
.stat-bar span { font-size: .9rem; color: var(--ink-2); }

/* Supporting visual, not the main event: the left column stays the focus, so
   the artwork is capped well below its column width. One clamp covers the
   desktop steps — ~340px at 1024, ~410px at 1280, 460px from 1440 up. */
.hero-art {
  width: clamp(340px, 32vw, 460px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
}
.hero-art picture { display: block; width: 100%; }
.hero-art img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ==========================================================================
   Card primitive — every raised surface on the site inherits this, so
   radius, border and lift track the tokens instead of each card deciding.
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.section { padding: 120px 0; }
.section-alt { background: var(--bg); }
/* The hero's own bottom padding + stat-bar margin already separate it from
   what follows, so the partners section doesn't need its own 120px on top. */
#partners { padding-top: 40px; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center; margin-bottom: var(--sp-12);
  letter-spacing: -.03em; font-weight: 600;
}

/* Centred heading flanked by dotted rules */
.rule-title {
  display: flex; align-items: center; gap: 22px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-bottom: 36px; white-space: nowrap;
}
.rule-title::before, .rule-title::after {
  content: ""; flex: 1; height: 1px;
  background-image: linear-gradient(90deg, var(--line) 55%, transparent 55%);
  background-size: 9px 1px;
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.carousel { position: relative; }

.car-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.car-pause {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  color: var(--ink-2); fill: currentColor;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.car-pause:hover { background: var(--surface-alt); color: var(--ink); }
.car-pause .ic-play { display: none; }
.carousel.is-paused .car-pause .ic-pause { display: none; }
.carousel.is-paused .car-pause .ic-play { display: block; }

.car-track {
  display: flex; gap: 0;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 0; margin: 0;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 clamp(240px, 25%, 300px); }


.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 0, 0, .04); color: var(--ink-2);
  border: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.car-btn:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.car-btn[disabled] { opacity: .3; }
.car-btn.prev { left: -23px; }
.car-btn.next { right: -23px; }

/* ==========================================================================
   Partner / DLA cards — divided columns, no card chrome (matches reference)
   ========================================================================== */
.partner-card, .dla-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 30px 22px 26px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.car-track > .partner-card:last-child { border-right: 0; }

/* logo slot — landscape, unboxed. The supplied files carry their own white
   canvas, so a bordered tile would shrink the mark to nothing. */
.p-logo {
  width: 136px; height: 48px; margin-bottom: 18px;
  display: grid; place-items: center;
  /* Pin the track to the box. Left implicit, the row auto-sizes to the image,
     so the image's own height: 100% resolves against the overflow rather than
     the slot and a tall logo escapes the tile. */
  grid-template-columns: 100%;
  grid-template-rows: 100%;
}
/* The helper stamps square width/height attributes, so the browser infers a
   1:1 ratio and a tall logo overshoots the box. Percentage max-height does not
   bind reliably against the grid area either, so give the image the box's own
   dimensions and let object-fit letterbox it inside. */
.p-logo img {
  width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: contain; object-position: center;
}

/* stand-in until the lender supplies its own file — deliberately neutral so it
   is not mistaken for their mark */
.p-logo.is-initials {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--surface-alt);
  color: var(--ink-3); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}



.avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-name { font-size: .98rem; margin-bottom: 14px; min-height: 2.6em; display: flex; align-items: center; }
.p-tag {
  display: inline-block; font-size: .76rem; font-weight: 500;
  color: var(--secondary); background: var(--tint);
  padding: 5px 14px; border-radius: 6px; margin-bottom: 18px;
}
.p-grievance {
  display: inline-block; margin-top: 10px;
  font-size: .84rem; text-decoration: underline; text-underline-offset: 3px;
}
.p-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 0; margin-top: 16px;
}
.p-links a {
  font-size: .84rem; text-decoration: underline; text-underline-offset: 3px;
  padding: 0 12px; border-left: 1px solid var(--line); line-height: 1.1;
}
.p-links a:first-child { border-left: 0; }

.dla-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 270px));
  gap: 0; justify-content: center;
}
.dla-card { border-right: 1px solid var(--line); }
.dla-card:last-child { border-right: 0; }

/* links bar beneath the partner carousel */
.grievance-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 0;
  background: var(--bg); border-radius: var(--r-sm);
  padding: 16px 20px; margin-top: 26px;
}
.grievance-bar a {
  font-size: .9rem; padding: 0 24px; line-height: 1.3;
  border-left: 1px solid var(--line);
}
.grievance-bar a:first-child { border-left: 0; }

.lead-disclaimer {
  font-size: .86rem; color: var(--ink-2); line-height: 1.7;
  margin: 26px auto 0; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.lead-disclaimer strong { color: var(--ink); }

.apr-note {
  margin-top: 24px;
  display: grid; gap: 16px;
  font-size: .86rem; color: var(--ink-2); line-height: 1.85;
}
.apr-note strong { color: var(--ink); }

/* ==========================================================================
   Reviews — quote glyph and rule sit above the card, as in the reference
   ========================================================================== */
.carousel-cards .car-track { gap: 26px; padding: 34px 2px 6px; }
.carousel-cards .car-track > * { flex: 0 0 clamp(280px, 44%, 480px); }

.review-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 30px 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.quote-rule {
  position: absolute; top: -30px; left: 26px; right: 26px;
  display: flex; align-items: flex-start; gap: 14px;
  pointer-events: none;
}
.quote-rule::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem; line-height: .72;
  color: var(--primary);
}
/* sits against the glyph's optical middle — centring would drop it onto the card border */
.quote-rule::after { content: ""; flex: 1; height: 1px; margin-top: 20px; background: #CBD5E1; }

.review-card blockquote { font-size: .95rem; color: var(--ink-2); flex: 1; line-height: 1.75; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar { width: 44px; height: 44px; }
.review-author strong { display: block; font-size: .95rem; color: var(--ink); }
.review-author span { font-size: .8rem; color: var(--ink-3); }

/* ==========================================================================
   App download
   ========================================================================== */
.app-section { background: var(--bg); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Three stacked lines, middle one carrying the weight, as in the reference */
.app-copy { text-align: center; }
.app-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; letter-spacing: -.01em; }
.app-title span { display: block; font-weight: 500; }
.app-title strong { display: block; font-weight: 600; letter-spacing: -.02em; }

.app-arrow { max-width: 340px; height: auto; margin: 4px auto 10px; opacity: .8; }

.store-list { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; justify-content: center; }

/* Store-shaped badges, dark like the real ones — but honest about the state */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px;
  background: #0B0F17; color: #fff;
  border: 1px solid #0B0F17; border-radius: 12px;
}
.store-badge svg { flex-shrink: 0; color: #fff; }
.store-badge span { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.store-badge small {
  font-size: .62rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #CBD5E1;
}

/* The artwork ships on a flat white ground and this section is grey, which
   drew a white box round it. Multiply drops that ground into the section
   background without needing the white keyed out of the file. */
.app-art img {
  width: 100%; max-width: 420px; height: auto; margin-inline: auto;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   Support
   ========================================================================== */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.support-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 34px;
}
.support-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.support-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tint); color: var(--secondary);
}
.support-card h3 { font-size: 1.25rem; }
.support-card p { font-size: .92rem; color: var(--ink-2); }
.support-link { display: inline-block; margin: 16px 0 8px; font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
  /* the email address is one unbreakable word wider than a 320px card */
  overflow-wrap: anywhere; }
.support-link:hover { color: var(--primary); text-decoration: none; }
.muted { font-size: .82rem; color: var(--ink-3); }

.support-talk-btn { margin-top: 8px; }

/* ---------- "Talk to us" inline trigger (footer, statutory blocks) ---------- */
.entity-address .link-btn, .about-entity .link-btn {
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: var(--primary); cursor: pointer; text-underline-offset: 2px;
}
.entity-address .link-btn:hover, .about-entity .link-btn:hover { text-decoration: underline; }

/* ---------- "Talk to us" modal ---------- */
html.enq-modal-lock, body.enq-modal-lock { overflow: hidden; }
.enq-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s var(--ease, ease);
}
.enq-modal-backdrop.is-open { opacity: 1; }
.enq-modal {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px);
  overflow-y: auto; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg, 0 24px 48px rgba(15, 23, 42, .2));
  padding: 34px 32px 30px;
  transform: translateY(14px) scale(.98); transition: transform .22s var(--ease, ease);
}
.enq-modal-backdrop.is-open .enq-modal { transform: translateY(0) scale(1); }
.enq-modal-close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; color: var(--ink-2);
}
.enq-modal-close:hover { background: var(--surface-alt); color: var(--ink); }
.enq-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.enq-modal-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tint); color: var(--secondary);
}
.enq-modal-head h2 { font-size: 1.25rem; margin: 0; }
.enq-modal-sub { font-size: .92rem; color: var(--ink-2); margin: 8px 0 22px; }
.enq-modal-form .field { margin-bottom: var(--sp-3); }
.enq-modal-form textarea {
  width: 100%; min-height: 84px; padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--ink); resize: vertical;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.enq-modal-form textarea:hover:not(:focus) { border-color: var(--line-strong); }
.enq-modal-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 96, 176, .14); }
.enq-modal-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.enq-modal-status { font-size: .84rem; margin-top: 12px; min-height: 1.2em; }
.enq-modal-status.is-error { color: var(--danger); }
.enq-modal-status.is-ok { color: var(--success); }

@media (prefers-reduced-motion: reduce) {
  .enq-modal-backdrop, .enq-modal { transition: none; }
}

/* ==========================================================================
   Application view (full page)
   ========================================================================== */
.apply-view { min-height: 100vh; background: var(--surface); }

.apply-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.apply-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.apply-exit {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.apply-exit:hover { background: var(--surface-alt); color: var(--ink); }

.apply-body { padding: 34px 24px 72px; max-width: 900px; }

.step { animation: stepIn .32s var(--ease); }
.step-narrow { max-width: 520px; margin-inline: auto; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Stepper ---------- */
.stepper-shell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 32px 20px;
  margin-bottom: 36px;
}
.stepper { display: flex; }
.stepper li {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink-3);
  text-align: center;
}
/* connector runs from this node's dot to the next one */
.stepper li:not(:last-child)::after {
  content: ""; position: absolute; top: 11px; left: 50%; right: -50%;
  height: 2px; background: var(--line);
  transition: background var(--dur) var(--ease);
}
.stepper li.is-done::after { background: var(--primary); }

.stepper .node {
  position: relative; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.stepper .node svg { width: 13px; height: 13px; opacity: 0; }

.stepper li.is-current { color: var(--ink); font-weight: 600; }
.stepper li.is-current .node { border-color: var(--primary); }
.stepper li.is-current .node::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
}

.stepper li.is-done { color: var(--primary); font-weight: 600; }
.stepper li.is-done .node { background: var(--primary); border-color: var(--primary); }
.stepper li.is-done .node svg { opacity: 1; }

/* ---------- Mobile / OTP capture card ---------- */
.capture-card {
  background: var(--surface-alt);
  border-radius: var(--r-xl);
  padding: 34px 30px;
}
.capture-title { font-size: var(--text-h3); text-align: center; margin-bottom: 22px; }
.capture-sub { font-size: .9rem; color: var(--ink-2); text-align: center; margin: -12px 0 22px; }
.capture-card input[type="tel"],
.capture-card input[type="text"] { background: var(--surface); }
.capture-card .field { margin-bottom: 16px; }
/* the consent row sits below the tinted panel but stays inside the form */
.capture-card { padding-bottom: 22px; }
.capture-card .consent-row { margin: 20px 0 0; }
.capture-card .consent-row > label { color: var(--ink-2); }

/* ---------- Section headings inside the flow ---------- */
.form-title { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin-bottom: 8px; }
.form-sub { font-size: .92rem; color: var(--ink-2); margin-bottom: 24px; }
.step > .form-title { margin-bottom: 26px; }
.step-success > .form-title { margin-bottom: 8px; }

/* ---------- Two-column form grid ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-8); align-items: start; }
.span-2-left { grid-column: 1; }
/* fields the product config marks span:2 fill the row */
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- Outlined field with the label sat on the border ---------- */
.field.outlined { position: relative; margin-bottom: 0; }
.field.outlined > label {
  position: absolute; top: -9px; left: 12px; z-index: 1;
  background: var(--surface); padding: 0 6px;
  font-size: var(--text-caption); font-weight: 400; color: var(--ink-2);
  margin: 0; pointer-events: none;
  transition: color var(--dur) var(--ease);
}
.field.outlined input, .field.outlined select { height: var(--field-h); padding: 0 var(--sp-4); }
.field.outlined:focus-within > label { color: var(--primary); }
.field.outlined.has-error > label { color: var(--danger); }

.field.has-rupee input { padding-left: 38px; }
.rupee-prefix {
  position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%);
  color: var(--ink); font-weight: 500; pointer-events: none;
}

/* ---------- Choice cards (gender, employment, household) ----------
   Auto-fit keeps a two- or three-option group evenly spaced. */
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
.choice { display: block; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.choice-face {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: var(--field-h);
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.choice-face:hover { border-color: var(--line-strong); }
.choice-label { font-size: var(--text-small); color: var(--ink-2); }
.choice-dot {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.choice input:checked + .choice-face {
  background: var(--tint); border-color: var(--tint);
}
.choice input:checked + .choice-face .choice-label { color: var(--ink); font-weight: 700; }
.choice input:checked + .choice-face .choice-dot { border-color: var(--primary); }
.choice input:checked + .choice-face .choice-dot::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--primary);
}
.choice input:focus-visible + .choice-face { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Consent rows with a circular tick ---------- */
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.consent-row > label {
  font-size: var(--text-small); font-weight: 400; color: var(--ink-2);
  line-height: 1.6; margin: 0;
}
.consent-row .error { grid-column: 2; }

.tick-box {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  border: 2px solid var(--ink-3); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tick-box::after {
  content: ""; width: 5px; height: 9px;
  border: solid var(--surface); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tick-box:checked { background: var(--success); border-color: var(--success); }
.tick-box:checked::after { opacity: 1; }
.field.has-error .tick-box { border-color: var(--danger); }

/* ---------- Notes, actions, declarations ---------- */
.verify-note {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  font-size: var(--text-small); color: var(--ink-2); margin: var(--sp-8) 0 var(--sp-5);
}
.note-icon {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-alt); color: var(--ink-2);
  font-size: .82rem; font-weight: 700;
}

.actions-center { justify-content: center; }
.btn-wide { min-width: 280px; }
.btn-lg { min-height: 58px; padding: var(--sp-5) var(--sp-8); font-size: var(--text-lead); }

.declarations { display: grid; gap: var(--sp-4); margin-top: var(--sp-7); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: var(--sp-4); }
.field > label, .field > legend {
  display: block; font-size: var(--text-small); font-weight: 600;
  color: var(--ink-2); margin-bottom: var(--sp-2); padding: 0;
}
fieldset { border: 0; padding: 0; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* All text controls share one height, radius, border and focus treatment so a
   mixed step (text + select + date) still reads as a single piece of UI. */
input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], input[type="password"], select {
  width: 100%; height: var(--field-h);
  padding: 0 var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  cursor: pointer;
}
input::placeholder { color: var(--ink-3); }
input:hover:not(:focus), select:hover:not(:focus) { border-color: var(--line-strong); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 96, 176, .14); }
input:disabled, select:disabled {
  background: var(--surface-alt); border-color: var(--line);
  color: var(--ink-3); cursor: not-allowed;
}

.input-wrap { position: relative; }
.input-wrap.has-prefix .prefix {
  position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%);
  color: var(--ink-2); font-weight: 600; pointer-events: none;
  padding-right: var(--sp-3); border-right: 1.5px solid var(--line);
}
.input-wrap.has-prefix input { padding-left: 66px; }

.field.has-error input, .field.has-error select, .field.has-error .segmented {
  border-color: var(--danger); background: var(--danger-bg);
}
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }

/* Messages always occupy their slot, so an error appearing never shifts the
   fields above or below it. */
.error {
  font-size: var(--text-caption); color: var(--danger); font-weight: 500;
  margin-top: var(--sp-1); line-height: 1.2; min-height: 1.2em;
  display: block; opacity: 0; visibility: hidden;
  transition: opacity .15s var(--ease);
}
.field.has-error .error { opacity: 1; visibility: visible; animation: shake .34s var(--ease); }
/* A field's standing note — the pincode's resolved location, say — shares the
   message line the error already reserves, so it appears without moving
   anything below it. A real error hides it until the error is resolved. */
.field.has-note .error { opacity: 1; visibility: visible; font-weight: 500; color: var(--ink-2); }
.field.has-note[data-note-tone="warn"] .error { color: var(--warning); }
.field.is-locating:not(.has-error) .error {
  opacity: 1; visibility: visible; color: var(--ink-3); font-weight: 500;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.segmented {
  display: flex; gap: var(--sp-2); padding: var(--sp-1);
  background: var(--surface-alt);
  border: 1.5px solid transparent; border-radius: var(--r-md);
}
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented span {
  display: block; text-align: center;
  padding: var(--sp-3) var(--sp-2); border-radius: var(--r-sm);
  font-size: var(--text-small); font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.segmented span:hover { color: var(--primary); }
.segmented input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--sh-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.consent label { font-size: var(--text-caption); color: var(--ink-2); line-height: 1.5; font-weight: 400; margin: 0; }
.consent .error { grid-column: 1 / -1; }

.actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.fineprint { font-size: var(--text-caption); color: var(--ink-3); text-align: center; margin-top: var(--sp-3); }

/* minmax(0,…): a bare 1fr bottoms out at the input's intrinsic width, and six
   of those overflow a 320px phone */
.otp-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); }
.otp-inputs input {
  width: 100%; min-height: 48px; aspect-ratio: 1 / 1.05; padding: 0;
  text-align: center; font-size: 1.3rem; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(12, 110, 110, .14); }
.field.has-error .otp-inputs input { border-color: var(--danger); background: var(--danger-bg); }
.resend { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-caption); color: var(--ink-2); margin: var(--sp-4) 0 var(--sp-5); }

/* ==========================================================================
   Offers
   ========================================================================== */
.offers { display: grid; gap: 14px; }

.offer {
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  animation: stepIn .34s var(--ease) backwards;
}
.offer:hover { border-color: var(--primary); box-shadow: var(--sh-md); transform: translateY(-2px); }
.offer:nth-child(2) { animation-delay: .07s; }
.offer:nth-child(3) { animation-delay: .14s; }

.offer-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.offer-head > div { flex: 1; min-width: 0; }
.offer-badge {
  width: 44px; height: 44px; flex-shrink: 0; padding: 7px;
  border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.offer-badge img { width: 100%; height: 100%; object-fit: contain; }
.offer-name { font-size: .98rem; font-weight: 700; }
.offer-tag { font-size: .76rem; color: var(--ink-3); }
.offer-pill {
  margin-left: auto; font-size: .7rem; font-weight: 700;
  color: var(--success); background: var(--success-bg);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}

.offer-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.offer-figures div { background: var(--surface-alt); border-radius: var(--r-sm); padding: 10px 12px; }
.offer-figures dt { font-size: .7rem; color: var(--ink-2); margin-bottom: 3px; }
.offer-figures dd { font-size: .96rem; font-weight: 700; }

.skeleton { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--surface); }
.sk-line {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, #EEF2F7 25%, #E2E8F0 37%, #EEF2F7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s var(--ease) infinite;
}
.sk-line.w-60 { width: 60%; }
.sk-line.w-40 { width: 40%; }
.sk-line.tall { height: 46px; border-radius: var(--r-sm); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.step-success { text-align: center; padding: 12px 0; }
.success-mark {
  position: relative;
  width: 76px; height: 76px; margin: 0 auto 22px;
}
/* soft tinted ground so the drawn ring does not float bare on white */
.success-mark::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%; background: var(--tint); opacity: .55;
}
.success-mark svg { position: relative; }
.success-mark svg { width: 100%; height: 100%; }
.success-mark circle {
  fill: none; stroke: var(--success); stroke-width: 2;
  stroke-dasharray: 152; stroke-dashoffset: 152;
  animation: draw .6s var(--ease) forwards;
}
.success-mark path {
  fill: none; stroke: var(--success); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .4s var(--ease) .5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { font-size: .88rem; color: var(--ink-2); }

/* The wordmark's own colours. The whole system now runs on them, so these
   alias the brand tokens rather than carrying a second copy of the values. */
.site-footer {
  --mark-purple: var(--secondary);
  --mark-blue: var(--primary);
}

.footer-main {
  position: relative;
  background:
    radial-gradient(620px 300px at 4% -10%, rgba(32, 0, 80, .07), transparent 60%),
    radial-gradient(560px 280px at 34% -20%, rgba(0, 96, 176, .07), transparent 62%),
    radial-gradient(700px 320px at 92% 0%, var(--tint), transparent 66%),
    var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 52px;
}
/* Reads left to right the way the wordmark does — purple into blue. */
.footer-main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg,
    var(--mark-purple) 0%, var(--mark-blue) 46%, var(--tint) 100%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }

/* Full colour, with a soft bloom of its own two inks behind it so it sits
   deliberately rather than looking dropped in. */
.footer-brandmark { position: relative; display: inline-block; margin-bottom: 20px; }
.footer-brandmark::before {
  content: ""; position: absolute; inset: -30px -40px;
  /* closest-side, or the gradient is sized to the farthest corner and is
     still opaque where it meets the top and bottom edges — which showed as
     a hard rectangle behind the mark. */
  background:
    radial-gradient(closest-side ellipse at 28% 50%, rgba(32, 0, 80, .16), transparent 100%),
    radial-gradient(closest-side ellipse at 74% 50%, rgba(0, 96, 176, .16), transparent 100%);
  pointer-events: none;
}
.footer-logo { position: relative; width: auto; height: 34px; display: block; }

.entity-lead { max-width: 460px; line-height: 1.7; }
.entity-name {
  font-size: 1.05rem; margin: 26px 0 10px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 800;
  background: linear-gradient(90deg, var(--mark-purple), var(--mark-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.entity-lead strong { color: var(--mark-purple); }
.entity-address { font-style: normal; line-height: 1.8; }
.entity-facts { margin-top: 18px; line-height: 1.8; }
.entity-facts div { display: flex; gap: 6px; flex-wrap: wrap; }
.entity-facts dt { font-weight: 700; color: var(--ink); }

.officer {
  position: relative; overflow: hidden;
  margin-top: 22px; padding: 16px 18px; line-height: 1.75;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.officer::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--mark-purple), var(--mark-blue));
}
.officer h4 { font-size: .82rem; font-weight: 800; color: var(--ink);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }

/* Column headings carry a short brand underline */
.footer-col h3 {
  position: relative; font-size: 1.02rem; color: var(--ink);
  margin-bottom: 20px; padding-bottom: 10px;
}
.footer-col h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; border-radius: 2px; background: var(--primary);
}
.footer-col li { margin-bottom: 11px; padding-left: 16px; position: relative; }
.footer-col li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-col li:hover::before { background: var(--primary); transform: scale(1.4); }
.footer-col a {
  color: var(--ink-2);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--primary); padding-left: 3px; text-decoration: none; }

/* Contact links read as links without shouting */
.entity-address a, .officer a {
  color: var(--primary); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(0, 96, 176, .35);
  transition: text-decoration-color var(--dur) var(--ease);
}
.entity-address a:hover, .officer a:hover { text-decoration-color: var(--primary); }

.footer-legal { background: var(--surface); padding: 28px 0 34px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: .8rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 12px; }
.footer-legal strong { color: var(--ink); }
.copyright {
  text-align: center; color: var(--ink-3) !important;
  margin: 20px 0 0 !important; padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo, .footer-col a, .footer-col li::before { transition: none; }
}

/* ==========================================================================
   Toasts
   ========================================================================== */
.toasts {
  position: fixed; z-index: 300; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--primary); border-radius: var(--r-md);
  padding: 13px 16px; box-shadow: var(--sh-lg);
  font-size: .88rem; font-weight: 500;
  animation: toastIn .3s var(--ease);
}
.toast.is-out { animation: toastOut .25s var(--ease) forwards; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .car-btn.prev { left: 4px; }
  .car-btn.next { right: 4px; }
}

@media (max-width: 980px) {
  .hero { padding: 40px 0 60px; }
  .app-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .app-art { order: -1; }
  .app-arrow { display: none; }
  .store-list { justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  /* stacked: content first, artwork under the CTA and trust strip */
  .hero-art { width: min(100%, 320px); margin-inline: auto; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 4px 0; }
  .trust-row li:nth-child(odd) { border-left: 0; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat-bar li:nth-child(odd) { border-left: 0; }
  .car-track > * { flex-basis: min(270px, 78vw); }
  .carousel-cards .car-track > * { flex-basis: min(360px, 84vw); }
  .car-btn.prev { left: -8px; }
  .car-btn.next { right: -8px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
  .support-grid { grid-template-columns: 1fr; }
  .dla-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .span-2-left { grid-column: 1; }
  .declarations { grid-template-columns: 1fr; }
  .stepper-shell { padding: 22px 16px 16px; }
  .stepper li { font-size: .78rem; }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  /* The desktop clamp floors read oversized on a phone; step the hero down
     to the reference's proportions. */
  .hero { padding: 32px 0 56px; }
  .tagline { font-size: 1.25rem; }
  .hero-heading { font-size: 1.5rem; margin: 10px 0 2px; }
  .hero-amount { font-size: 2.75rem; margin-bottom: 24px; }
  .highlights { gap: 12px; margin-bottom: 24px; }
  .hl-label, .hl-value { font-size: .95rem; }
  .hero-art { width: min(100%, 288px); margin-block: 4px 8px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li { border-left: 0; padding: 6px 14px; }
  .stat-bar { grid-template-columns: 1fr; padding: 18px 8px; }
  .stat-bar li { justify-content: flex-start; border-left: 0; }
  .apply-header-inner { height: 64px; }
  .actions-center { flex-direction: column-reverse; }
  .actions-center .btn { width: 100%; min-width: 0; }
  .capture-card { padding: 24px 20px; }
  .rule-title { gap: 12px; white-space: normal; text-align: center; }
  .dla-grid { grid-template-columns: 1fr; max-width: 300px; }
  .dla-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .dla-card:last-child { border-bottom: 0; }
  .grievance-bar a { border-left: 0; padding: 0 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .btn-hero { width: 100%; padding: 20px 32px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .offer-figures { grid-template-columns: 1fr; }
  .offer-figures div { display: flex; justify-content: space-between; align-items: center; }
  .offer-figures dt { margin: 0; }
}

@media (max-width: 460px) {
  .container { padding-inline: 16px; }
  .header-inner { gap: 12px; height: 64px; }
  .header-cta { display: none; }
  .brand-logo { height: 26px; }
  .row { grid-template-columns: 1fr; }
  .otp-inputs { gap: 6px; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
  .offer-pill { flex-basis: 100%; margin-left: 0; text-align: center; }
  .apply-body { padding: 24px 16px 56px; }
  .support-card { padding: 24px; }
}

/* ==========================================================================
   Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car-track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .toasts, .apply-view, .btn-hero, .skip-link, .car-btn { display: none; }
}
