/* =========================================================================
 * LendingNext — Digital Lending Platform landing page.
 * Theme mirrors the BusinessNext / LendingNext look used across the journeys:
 *   warm ivory background, near-black Poppins headings with a deep-teal
 *   italic accent, an orange primary CTA, pink dot-flock logo, pastel tiles.
 * All design tokens live in :root so the whole platform can be re-skinned here
 * and stays in sync with the individual journeys (e.g. auto-loan-diy).
 * ========================================================================= */
:root {
  --teal:      #14463E;
  --teal-600:  #1C5A50;
  --teal-500:  #2C7264;
  --teal-50:   #E9F2EF;
  --orange:    #EF7F1A;
  --orange-600:#DD7012;
  --orange-50: #FDF1E3;
  --pink:      #E0218A;
  --pink-50:   #FCE7F3;
  --ink:       #1A1A1A;
  --ink-2:     #555a5e;
  --muted:     #8a8f93;
  --line:      #ece7dd;
  --bg:        #FBF9F3;
  --white:     #ffffff;
  --green:     #15916a;
  --green-bg:  #e6f5ee;
  --amber:     #e8a13a;
  --amber-bg:  #fbf2df;

  /* link/tag colours — modes + modules */
  --m-diy:       #2C7264;  --m-diy-bg:       #E9F2EF;
  --m-assisted:  #2563eb;  --m-assisted-bg:  #e6efff;
  --m-phygital:  #b8538b;  --m-phygital-bg:  #FCE7F3;
  --m-partner:   #b06d12;  --m-partner-bg:   #FDF1E3;
  --m-kyc:       #7c3aed;  --m-kyc-bg:       #f1eafe;
  --m-documents: #475569;  --m-documents-bg: #eef1f5;
  --m-fi:        #b45309;  --m-fi-bg:        #fbf0df;
  --m-esign:     #0e7490;  --m-esign-bg:     #e2f4f7;
  --m-emandate:  #be123c;  --m-emandate-bg:  #fde8ec;
  --m-disbursal: #15803d;  --m-disbursal-bg: #e6f5ea;

  /* pastel tile backgrounds, cycled across segment cards */
  --tile-lav:  #f3e8fb;
  --tile-blue: #e3effb;
  --tile-peach:#fbf0dc;
  --tile-mint: #e4f5ee;

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 18px 48px rgba(30,30,30,.08);
  --shadow-sm: 0 8px 22px rgba(30,30,30,.06);
  --maxw:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin-bottom: .18em; }
h1 em { color: var(--teal); font-style: italic; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- Header ---------------- */
.hd { background: rgba(251,249,243,.86); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hd__wrap { max-width: var(--maxw); margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__flock { flex-shrink: 0; }
.brand__word { display: flex; flex-direction: column; line-height: .95; }
.brand__word b { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.brand__word span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.hd__nav { display: flex; gap: 4px; margin-left: auto; }
.hd__nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 9px; transition: .15s; }
.hd__nav a:hover { color: var(--teal); background: var(--teal-50); }
.hd__cta { margin-left: 6px; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 12px; padding: 13px 26px; transition: .15s; text-decoration: none; white-space: nowrap; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(239,127,26,.28); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--teal); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--teal-50); border-color: var(--teal-500); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(680px 320px at 88% -8%, var(--pink-50), transparent 60%),
  radial-gradient(620px 360px at 6% 12%, var(--teal-50), transparent 62%); z-index: 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 22px 56px; max-width: var(--maxw); margin: 0 auto; }
.hero__text { max-width: 620px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.hero__text p.lead { color: var(--ink-2); font-size: 17px; max-width: 52ch; margin-bottom: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.stat b { display: block; font-family: "Poppins", sans-serif; font-size: 26px; font-weight: 800; color: var(--teal); line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* hero side visual: floating mini journey tiles */
.hero__viz { position: relative; min-height: 300px; }
.viz-card { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; align-items: center; gap: 12px; min-width: 190px; }
.viz-card .ic { font-size: 24px; }
.viz-card b { display: block; font-family: "Poppins", sans-serif; font-size: 14px; }
.viz-card small { color: var(--muted); font-size: 12px; font-weight: 600; }
.viz-card:nth-child(1) { top: 6%;  right: 4%;  animation: float 6s ease-in-out infinite; }
.viz-card:nth-child(2) { top: 40%; left: 0;    animation: float 6s ease-in-out infinite .8s; }
.viz-card:nth-child(3) { bottom: 4%; right: 12%; animation: float 6s ease-in-out infinite 1.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Section scaffolding ---------------- */
.section { padding: 50px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.section__head p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------------- Modes strip ---------------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.mode-card .tag { margin-bottom: 12px; }
.mode-card h3 { margin-bottom: 6px; }
.mode-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------------- Filter bar ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip { font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); padding: 9px 16px; border-radius: 999px; transition: .15s; }
.chip:hover { border-color: var(--teal-500); color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip .count { opacity: .6; font-weight: 700; margin-left: 4px; }

/* ---------------- Segment blocks ---------------- */
.segment { margin-bottom: 44px; scroll-margin-top: 84px; }
.segment.is-hidden { display: none; }
.segment__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.segment__head h2 { font-size: 23px; margin: 0; }
.segment__head .seg-ic { font-size: 22px; }
.segment__head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.segment__count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------------- Journey grid + cards (boxes) ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.jcard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.jcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-500); }
.jcard.is-hidden { display: none; }
.jcard__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; background: var(--tile-blue); }
.jcard:nth-child(4n+1) .jcard__ic { background: var(--tile-blue); }
.jcard:nth-child(4n+2) .jcard__ic { background: var(--tile-lav); }
.jcard:nth-child(4n+3) .jcard__ic { background: var(--tile-peach); }
.jcard:nth-child(4n+4) .jcard__ic { background: var(--tile-mint); }
.jcard h3 { margin-bottom: 5px; font-size: 16.5px; }
.jcard p { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.jcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.jcard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--teal); }
.jcard:hover .jcard__go { gap: 9px; color: var(--orange); }

/* status corner badge */
.jcard__status { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.jcard__status.is-live { background: var(--green-bg); color: var(--green); }
.jcard__status.is-soon { background: var(--amber-bg); color: var(--amber); }
.jcard.is-soon { opacity: .92; }
.jcard.is-soon .jcard__go { color: var(--muted); }

/* ---------------- Mode tags ---------------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag--diy       { background: var(--m-diy-bg);       color: var(--m-diy); }
.tag--assisted  { background: var(--m-assisted-bg);  color: var(--m-assisted); }
.tag--phygital  { background: var(--m-phygital-bg);  color: var(--m-phygital); }
.tag--partner   { background: var(--m-partner-bg);   color: var(--m-partner); }
.tag--kyc       { background: var(--m-kyc-bg);       color: var(--m-kyc); }
.tag--documents { background: var(--m-documents-bg); color: var(--m-documents); }
.tag--fi        { background: var(--m-fi-bg);        color: var(--m-fi); }
.tag--esign     { background: var(--m-esign-bg);     color: var(--m-esign); }
.tag--emandate  { background: var(--m-emandate-bg);  color: var(--m-emandate); }
.tag--disbursal { background: var(--m-disbursal-bg); color: var(--m-disbursal); }

/* ---------------- Link boxes (DIY / Assisted / KYC / ... per card) ---------------- */
.lboxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.lboxes__empty { font-size: 12.5px; color: var(--muted); font-weight: 600; font-style: italic; }
.lbox { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 11px; border: 1.5px solid transparent; transition: .14s; }
.lbox__go { font-weight: 800; opacity: .55; transition: .14s; }
.lbox:hover { transform: translateY(-2px); }
.lbox:hover .lbox__go { opacity: 1; transform: translateX(2px); }
.lbox--diy       { background: var(--m-diy-bg);       color: var(--m-diy); }
.lbox--assisted  { background: var(--m-assisted-bg);  color: var(--m-assisted); }
.lbox--phygital  { background: var(--m-phygital-bg);  color: var(--m-phygital); }
.lbox--partner   { background: var(--m-partner-bg);   color: var(--m-partner); }
.lbox--kyc       { background: var(--m-kyc-bg);       color: var(--m-kyc); }
.lbox--documents { background: var(--m-documents-bg); color: var(--m-documents); }
.lbox--fi        { background: var(--m-fi-bg);        color: var(--m-fi); }
.lbox--esign     { background: var(--m-esign-bg);     color: var(--m-esign); }
.lbox--emandate  { background: var(--m-emandate-bg);  color: var(--m-emandate); }
.lbox--disbursal { background: var(--m-disbursal-bg); color: var(--m-disbursal); }

/* ---------------- CTA band ---------------- */
.band { background: var(--teal); color: #fff; border-radius: 24px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow); }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }
.band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.band .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------------- Footer ---------------- */
.ft { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 60px; }
.ft__wrap { max-width: var(--maxw); margin: 0 auto; padding: 46px 22px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.ft__brand b { display: block; font-family: "Poppins", sans-serif; color: #fff; font-size: 18px; margin-bottom: 8px; }
.ft__brand p { font-size: 13px; line-height: 1.6; max-width: 36ch; }
.ft__col h4 { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.ft__col a { display: block; color: rgba(255,255,255,.66); text-decoration: none; font-size: 14px; padding: 5px 0; }
.ft__col a:hover { color: #fff; }
.ft__bar { border-top: 1px solid rgba(255,255,255,.12); }
.ft__bar p { max-width: var(--maxw); margin: 0 auto; padding: 16px 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 22px 40px; }
  .hero__viz { display: none; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .ft__wrap { grid-template-columns: 1fr 1fr; }
  .hd__nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .ft__wrap { grid-template-columns: 1fr; }
  .band { padding: 30px; }
  .segment__head { flex-wrap: wrap; }
}

/* ---------------- Placeholder / journey blueprint page ---------------- */
.ph { max-width: 820px; margin: 0 auto; padding: 48px 22px 80px; }
.crumb { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.crumb a { color: var(--teal); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.ph__hero { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.ph__ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; background: var(--tile-blue); margin-bottom: 16px; }
.ph__hero .tags { display: flex; gap: 7px; margin: 14px 0 0; flex-wrap: wrap; }
.ph__note { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; margin-top: 18px; }
.blueprint { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.blueprint h3 { margin-bottom: 18px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps b { font-family: "Poppins", sans-serif; font-size: 15px; }
.steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
