/* ==========================================================================
   1Card website — marketing stylesheet
   Sits on top of Bootstrap 5.3 and tokens.css. Bootstrap supplies the grid,
   collapse, dropdown and tab behaviour; this file supplies the 1Card look.

   Contents
   1. Base and type
   2. Layout: wrap, sections, section heads
   3. Buttons and links
   4. Family colours (t-0 … t-4), tiles, module icons
   5. Header, navigation, mega menu
   6. Hero: mosaic "1", smart card, receipt
   7. Proof strip
   8. Home sections: pains, flow, modules board, roles, platform,
      case study, channels, timeline, FAQ
   9. Call-to-action band
   10. Footer and mobile action bar
   11. Inner pages: page hero, forms, demo, contact, prose, error
   11b. Full-site components: menus, breadcrumbs, module and institution
        pages, diagram, customers, rollout, about, support, FAQ
   12. Motion and accessibility
   13. Language: the switch, and type for the Bengali pages
   ========================================================================== */

/* 1. Base and type --------------------------------------------------------- */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand-soft-2); }
[id] { scroll-margin-top: 92px; }

h1, h2, h3, h4 { color: var(--text); font-weight: 600; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.55rem + 3.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.028em; }
h2 { font-size: clamp(1.875rem, 1.45rem + 1.3vw, 2.375rem); line-height: 1.14; letter-spacing: -.022em; }
h3 { font-size: 1.1875rem; line-height: 1.32; letter-spacing: -.008em; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
.lead { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.3125rem); line-height: 1.5; font-weight: 400; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; }

/* 2. Layout ---------------------------------------------------------------- */
:root { --gutter: 16px; --content: 1200px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4rem, 2.6rem + 4.4vw, 7rem); }
.section.is-mist { background: var(--page); }
.section.is-band { background: var(--band); color: var(--band-text); }
.is-band h2, .is-band h3 { color: var(--band-text); }
.is-band p { color: var(--band-text-2); }
.is-band a:not(.btn) { color: var(--band-text); }

.sec-head { display: grid; gap: .75rem 3rem; margin-bottom: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); }
.sec-head h2, .sec-head p { margin: 0; }
.sec-head p { font-size: 1.125rem; color: var(--text-2); max-width: 52ch; }
.is-band .sec-head p { color: var(--band-text-2); }
@media (min-width: 992px) {
  .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; }
}
.sec-head.is-stacked { display: block; margin-bottom: 0; }
.sec-head.is-stacked p { margin-top: 1rem; }
.sec-head.is-stacked .btn { margin-top: 1.5rem; }

/* 3. Buttons and links ----------------------------------------------------- */
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-padding-y: .625rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--r-btn);
  --bs-btn-focus-box-shadow: var(--focus);
  letter-spacing: -.005em;
}
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .8125rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: var(--r-btn); }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-hover); --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-quiet {
  --bs-btn-color: var(--text); --bs-btn-bg: transparent; --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text); --bs-btn-hover-bg: var(--surface-3); --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--text); --bs-btn-active-bg: var(--surface-3); --bs-btn-active-border-color: var(--border-strong);
}
.btn-light {
  --bs-btn-color: #141b4d; --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #141b4d; --bs-btn-hover-bg: #e9eefc; --bs-btn-hover-border-color: #e9eefc;
  --bs-btn-active-color: #141b4d; --bs-btn-active-bg: #d6e0fa; --bs-btn-active-border-color: #d6e0fa;
}

/* 4. Family colours -------------------------------------------------------- */
.t-0 { --c: var(--tile-0); --c-soft: var(--tile-0-soft); --c-ink: var(--tile-0-ink); --c-on: #fff; }
.t-1 { --c: var(--tile-1); --c-soft: var(--tile-1-soft); --c-ink: var(--tile-1-ink); --c-on: #fff; }
.t-2 { --c: var(--tile-2); --c-soft: var(--tile-2-soft); --c-ink: var(--tile-2-ink); --c-on: var(--on-tile); }
.t-3 { --c: var(--tile-3); --c-soft: var(--tile-3-soft); --c-ink: var(--tile-3-ink); --c-on: var(--on-tile); }
.t-4 { --c: var(--tile-4); --c-soft: var(--tile-4-soft); --c-ink: var(--tile-4-ink); --c-on: var(--on-tile); }
[data-bs-theme="dark"] .t-0 { --c: #4b56b8; }

.tile { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.mod-icon {
  flex: none; width: 36px; height: 36px; border-radius: var(--r-sm);
  display: inline-grid; place-items: center;
  background: var(--c-soft); color: var(--c-ink); font-size: 1.125rem;
}
.mosaic-mini { --m: 6px; display: inline-grid; grid-template-columns: repeat(2, var(--m)); gap: 2px; flex: none; }
.mosaic-mini i { width: var(--m); height: var(--m); border-radius: 1.5px; display: block; }
.mosaic-mini i:nth-child(1) { background: #3987e5; }
.mosaic-mini i:nth-child(2) { background: #eb6834; }
.mosaic-mini i:nth-child(3) { background: #1baf7a; }
.mosaic-mini i:nth-child(4) { background: #eda100; }

/* 5. Header ---------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--border); }
.site-header .navbar { padding: 0; min-height: 72px; }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.brand { display: inline-flex; align-items: center; padding-block: 14px; }
.brand img { height: 44px; width: auto; }
[data-bs-theme="dark"] .brand img { background: #fff; border-radius: 8px; padding: 3px 5px; height: 44px; }

.navbar-toggler {
  margin-left: auto; border: 1px solid var(--border-strong); border-radius: var(--r-btn);
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 1.5rem; color: var(--text);
}
.navbar-toggler:focus { box-shadow: var(--focus); }

.site-header .nav-link {
  font-weight: 500; font-size: 1rem; color: var(--text-2);
  padding: .5rem .75rem; border-radius: var(--r-sm); background: none; border: 0;
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.show { color: var(--text); background: var(--surface-3); }
.site-header .nav-link[aria-current="page"] { color: var(--text); }
.site-header .dropdown-toggle::after { border: 0; width: .5em; height: .5em; margin-left: .45em; vertical-align: .18em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-phone i { color: var(--brand); }
.nav-phone:hover { color: var(--brand); }

@media (min-width: 992px) {
  .navbar-collapse { justify-content: space-between; }
  .navbar-nav { gap: 2px; }
  .has-mega { position: static; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0 !important;
    border: 0; border-top: 1px solid var(--border); border-radius: 0;
    padding: 1.75rem 0 0; background: var(--surface); box-shadow: var(--shadow-pop);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-phone { display: none; } }

.mega-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col { display: grid; gap: 1.25rem; align-content: start; }
.mega-family { display: flex; align-items: center; gap: .5rem; margin: 0 0 .375rem; font-size: .8125rem; font-weight: 600; color: var(--text-3); }
.mega-link { display: flex; align-items: center; gap: .75rem; padding: .375rem .5rem; margin-inline: -.5rem; border-radius: var(--r-btn); color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.mega-link .mod-icon { width: 30px; height: 30px; font-size: 1rem; }
.mega-link:hover, .mega-link:focus-visible { background: var(--surface-2); color: var(--text); }
.mega-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text-2); }
.mega-foot p { margin: 0; }
.mega-all { font-weight: 600; text-decoration: none; }

@media (max-width: 991.98px) {
  /* The open menu scrolls inside the screen: the header is sticky, so a menu taller than the
     screen would otherwise hide its last items. */
  .navbar-collapse { flex-basis: 100%; max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  @supports (height: 100dvh) { .navbar-collapse { max-height: calc(100dvh - 72px); } }
  body.menu-open .mbar { display: none; }
  .navbar-collapse > .navbar-nav { padding: .5rem 0 1rem; border-top: 1px solid var(--border); }
  .site-header .nav-link { padding: .75rem .5rem; font-size: 1.0625rem; }
  .mega { border: 0; box-shadow: none; padding: 0 0 .5rem; background: none; position: static; }
  .mega .wrap { padding: 0 .5rem; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .mega-foot { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem 0 1.25rem; border-top: 1px solid var(--border); }
  .nav-actions .btn { width: 100%; }
}
@media (max-width: 575.98px) { .mega-grid { grid-template-columns: 1fr; } }

/* 6. Hero ------------------------------------------------------------------ */
.hero { padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 3vw, 5rem); overflow-x: hidden; overflow-x: clip; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 2.5rem; } }
.hero-copy h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero-copy .lead { max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-call { margin: 1.5rem 0 0; color: var(--text-2); font-size: .9375rem; }
.hero-call a { font-weight: 600; white-space: nowrap; }

/* The whole composition is sized from one width, --hv, set per screen size below,
   so it scales as one piece in every browser (no container queries needed).
   --u is 1% of that width. */
.hero-visual { --hv: calc(100vw - 2 * var(--gutter)); --u: calc(var(--hv) / 100); position: relative; width: var(--hv); max-width: 100%; justify-self: center; }
@media (min-width: 576px) { .hero-visual { --hv: 520px; } }
@media (min-width: 992px) { .hero-visual { --hv: 450px; } }
@media (min-width: 1200px) { .hero-visual { --hv: 540px; } }
@media (min-width: 1280px) { .hero-visual { --hv: 580px; } }
.hero-stage { position: relative; height: calc(87 * var(--u)); }

.mosaic {
  position: absolute; left: 0; top: 0; width: calc(52 * var(--u)); height: calc(78.8 * var(--u));
  display: grid; gap: calc(1.4 * var(--u));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "flag flag fees    fees"
    "flag flag wallet  id"
    ".    qr   canteen canteen"
    ".    .    print   lockers"
    ".    .    bus     bus"
    ".    .    gate    gym";
}
.mt {
  position: relative; min-width: 0;
  border-radius: var(--r-tile);
  background: var(--c); color: var(--c-on);
  padding: calc(1.5 * var(--u)) calc(1.7 * var(--u));
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: max(11px, calc(2.25 * var(--u))); font-weight: 600; line-height: 1.1;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mt i { font-size: max(15px, calc(3.4 * var(--u))); line-height: 1; }
.mt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-flag { grid-area: flag; background: var(--flag); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }
.a-fees { grid-area: fees; } .a-wallet { grid-area: wallet; } .a-id { grid-area: id; } .a-qr { grid-area: qr; }
.a-canteen { grid-area: canteen; } .a-print { grid-area: print; } .a-lockers { grid-area: lockers; }
.a-bus { grid-area: bus; } .a-gate { grid-area: gate; } .a-gym { grid-area: gym; }
.mt.is-tap { transform: translateY(calc(-.6 * var(--u))); box-shadow: 0 0 0 calc(.6 * var(--u)) var(--surface), 0 0 0 calc(1.1 * var(--u)) var(--c), 0 calc(2.4 * var(--u)) calc(3.6 * var(--u)) calc(-1.8 * var(--u)) rgba(20, 27, 77, .5); z-index: 2; }
.mt.is-tap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: tap-ring 1s ease-out; }
@keyframes tap-ring {
  from { box-shadow: 0 0 0 0 var(--c); opacity: .7; }
  to { box-shadow: 0 0 0 calc(4 * var(--u)) transparent; opacity: 0; }
}
/* Small phones: icons only, and a slightly larger card */
@media (max-width: 491.98px) { .mt span { display: none; } .mt { justify-content: center; align-items: center; } }

/* Smart card: ISO/IEC 7810 ID-1 proportions, same component as the admin console. */
.smartcard {
  --w: 340px;
  position: relative; isolation: isolate;
  width: var(--w); max-width: 100%; aspect-ratio: 85.6 / 53.98;
  border-radius: calc(var(--w) * .045);
  padding: calc(var(--w) * .055);
  color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(42, 120, 214, .55), transparent 60%),
    linear-gradient(135deg, #1b2a8a 0%, #141b4d 55%, #0e1338 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 18px 40px -12px rgba(20, 27, 77, .55);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: calc(var(--w) * .05);
  font-size: calc(var(--w) * .036); line-height: 1.3;
}
.smartcard::after {
  content: ""; position: absolute; z-index: -1; right: -18%; bottom: -38%; width: 85%; height: 95%;
  border-radius: 50% 0 0 0; background: linear-gradient(160deg, rgba(0, 80, 160, .55), rgba(31, 79, 191, .1));
  transform: rotate(-8deg);
}
.sc-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.sc-org { display: flex; align-items: center; gap: .6em; font-weight: 600; letter-spacing: .01em; }
.sc-org .mosaic-mini { --m: calc(var(--w) * .024); gap: calc(var(--w) * .006); }
.sc-org small { display: block; font-weight: 400; opacity: .75; font-size: .82em; }
.sc-type { font-size: .8em; font-weight: 600; padding: .2em .7em; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sc-contactless { width: calc(var(--w) * .075); height: auto; color: rgba(255, 255, 255, .85); }
.sc-photo {
  grid-row: 2 / 4; align-self: end;
  width: calc(var(--w) * .21); aspect-ratio: 3 / 4; border-radius: calc(var(--w) * .018);
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center; font-weight: 600; font-size: 1.4em;
}
.sc-chip {
  align-self: center; justify-self: end;
  width: calc(var(--w) * .12); aspect-ratio: 1.3; border-radius: calc(var(--w) * .014);
  background: linear-gradient(135deg, #f4d58a, #c9a246 55%, #e9c66f);
  box-shadow: inset 0 0 0 1px rgba(80, 55, 0, .35);
  position: relative;
}
.sc-chip::before { content: ""; position: absolute; inset: 22% 30%; border: 1px solid rgba(80, 55, 0, .4); border-radius: 2px; }
.sc-meta { align-self: end; min-width: 0; }
.sc-name { font-size: 1.32em; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-role { opacity: .78; margin-top: .15em; }
.sc-number { margin-top: .6em; font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 500; font-size: 1.05em; }
.smartcard.is-staff { background: radial-gradient(120% 90% at 100% 0%, rgba(27, 175, 122, .45), transparent 60%), linear-gradient(135deg, #12515a 0%, #0f2f45 55%, #0b1c30 100%); }
.smartcard.is-alumni { background: radial-gradient(120% 90% at 100% 0%, rgba(235, 104, 52, .45), transparent 60%), linear-gradient(135deg, #5a2a1e 0%, #3a1a22 55%, #22101a 100%); }

.hero-card { --w: calc(44 * var(--u)); position: absolute; left: calc(55 * var(--u)); top: calc(35 * var(--u)); transform: rotate(-6deg); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, var(--shadow-lift); }
@media (max-width: 491.98px) { .hero-card { --w: calc(47 * var(--u)); left: calc(52 * var(--u)); top: calc(33 * var(--u)); } }

.receipt {
  position: absolute; left: calc(54 * var(--u)); top: calc(68 * var(--u)); width: calc(46 * var(--u));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .25rem .75rem;
  padding: .875rem 1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  font-size: .875rem; line-height: 1.35;
}
.receipt p { margin: 0; }
.receipt .mod-icon { width: 34px; height: 34px; }
.receipt-main { min-width: 0; }
.receipt-where { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-sub { color: var(--text-2); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-bal { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: .5rem; margin-top: .375rem !important; border-top: 1px dashed var(--border-strong); color: var(--text-3); font-size: .8125rem; }
.receipt-bal span { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt.is-swap .receipt-main, .receipt.is-swap .receipt-amt, .receipt.is-swap .mod-icon { animation: receipt-in .4s ease both; }
@keyframes receipt-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
/* When the composition is narrower than 520px the receipt sits below it instead of beside the card */
@media (max-width: 551.98px), (min-width: 992px) and (max-width: 1199.98px) {
  .hero-stage { height: calc(80 * var(--u)); }
  .receipt { position: relative; left: auto; top: auto; width: 100%; margin-top: .75rem; }
}

/* 7. Proof strip ----------------------------------------------------------- */
.proof { border-block: 1px solid var(--border); }
.proof-grid { display: grid; gap: 1.75rem 3rem; padding-block: 2rem; }
@media (min-width: 992px) { .proof-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; } }
.proof-title { font-size: .875rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin: 0 0 .625rem; }
.proof-names { display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 1rem; color: var(--text-2); }
.proof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat dt { margin-top: .375rem; font-size: .8125rem; line-height: 1.4; font-weight: 400; color: var(--text-2); }

/* 8. Home sections --------------------------------------------------------- */
/* Pains */
.pains { display: grid; margin: 0; border-top: 1px solid var(--border); }
.pains li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.pains i { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-2); font-size: 1.25rem; }
.pains h3 { margin: .5rem 0 .375rem; }
.pains p { margin: 0; color: var(--text-2); max-width: 48ch; }
@media (min-width: 768px) {
  .pains { grid-template-columns: 1fr 1fr; }
  .pains li:nth-child(odd) { padding-right: 2.5rem; }
  .pains li:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid var(--border); }
}

/* Flow: how it works */
.flow { display: grid; gap: 2.5rem 2rem; margin: 0; }
@media (min-width: 768px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { position: relative; }
.flow-n {
  position: relative; z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.25rem;
  border-radius: var(--r-tile); background: var(--c); color: var(--c-on); font-weight: 700; font-size: 1.125rem;
}
.flow li.t-0 .flow-n { background: #fff; color: #141b4d; }
.flow h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.flow p { margin: 0; max-width: 34ch; }
@media (min-width: 1200px) {
  .flow li:not(:last-child)::before {
    content: ""; position: absolute; top: 23px; left: 64px; right: 0; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 6px, transparent 6px 12px);
  }
}

/* Modules board */
.board { display: grid; gap: 2rem 2rem; align-items: start; }
@media (min-width: 768px) { .board { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.board-col { display: grid; gap: 2rem; align-content: start; }
.board-family { border-top: 4px solid var(--c); padding-top: .875rem; }
.board-head { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .25rem; font-size: 1rem; }
.board-count { margin-left: auto; font-weight: 500; font-size: .875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.board-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .875rem; padding: 1rem 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
a.board-item:hover .board-name { color: var(--brand); }
.board-name { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.board-desc { display: block; margin-top: .25rem; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.board-family li:target .board-item { background: var(--c-soft); margin-inline: -.75rem; padding-inline: .75rem; border-radius: var(--r-sm); }
.board-note { margin: 2.5rem 0 0; color: var(--text-2); }
.board-note a { font-weight: 600; }

/* Roles */
.roles { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .roles { grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; } }
.roles-tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.roles-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .roles-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; } }
.role-tab {
  display: flex; align-items: center; gap: .625rem; flex: none;
  padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 1rem; text-align: left; white-space: nowrap;
}
.role-tab i { font-size: 1.0625rem; }
.role-tab:hover { color: var(--text); border-color: var(--border-strong); }
.role-tab.active { background: var(--band); border-color: var(--band); color: #fff; }
.role-tab:focus-visible { outline: none; box-shadow: var(--focus); }
[data-bs-theme="dark"] .role-tab.active, [data-bs-theme="dark"] .pill input:checked + span { background: var(--brand); border-color: var(--brand); }
.roles-panes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); min-height: 100%; }
.roles-panes h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); line-height: 1.2; letter-spacing: -.018em; margin-bottom: 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checks li { position: relative; padding-left: 2.125rem; font-size: 1.0625rem; max-width: 60ch; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Platform */
.platform { overflow-x: hidden; overflow-x: clip; }
.platform-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .platform-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; } }
.platform-copy p { color: var(--text-2); font-size: 1.125rem; max-width: 44ch; }
.feature-list { margin: 1.75rem 0 0; border-top: 1px solid var(--border); }
.feature-list li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.feature-list i { color: var(--brand); font-size: 1.125rem; line-height: 1.5; }
.screen { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); }
.screen-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption { padding: .5rem .875rem; font-size: .8125rem; color: var(--text-3); border-top: 1px solid var(--border); background: var(--surface-2); }
@media (min-width: 992px) {
  .screen { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--content)) / 2)); border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
}

/* Case study */
.case-head { margin-bottom: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); }
.case-head p { color: var(--text-2); margin: 0; }
.case-head .case-more { margin-top: 1rem; font-size: 1rem; color: var(--text-3); }
.count-cards { display: grid; gap: 1.25rem; margin: 0; }
@media (min-width: 768px) { .count-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* --w only drives the type and spacing inside the card; the card itself fills its column */
.count-cards > li { min-width: 0; }
.count-card { --w: min(calc(100vw - 2 * var(--gutter)), 440px); width: 100%; max-width: 440px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .count-card { --w: calc((min(calc(100vw - 2 * var(--gutter)), 1200px) - 2.5rem) / 3); width: 100%; } }
.count-card .sc-top { flex: none; }
.cc-num { margin: auto 0 0; font-size: calc(var(--w) * .15); line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.cc-label { margin: .4em 0 0; font-size: calc(var(--w) * .05); color: rgba(255, 255, 255, .8); }
.count-card .sc-org { font-size: calc(var(--w) * .045); }

/* Channels */
.channels { margin: 0; border-top: 1px solid var(--border); }
.channels > div { display: grid; gap: .625rem 2rem; padding: 1.125rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .channels > div { grid-template-columns: 240px minmax(0, 1fr); align-items: center; } }
.channels dt { font-weight: 600; }
.channels dd { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.channels span { display: inline-flex; padding: .375rem .875rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .9375rem; font-weight: 500; }

/* Rollout timeline */
.rollout-grid, .faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 992px) {
  .rollout-grid, .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; }
  .rollout-grid .sec-head, .faq-grid .sec-head { position: sticky; top: 112px; align-self: start; }
}
.timeline { margin: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--border-strong); }
.timeline li:last-child { padding-bottom: 0; }
.tl-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 1.0625rem; }
.timeline h3 { margin: .625rem 0 .375rem; }
.timeline p { margin: 0; color: var(--text-2); max-width: 56ch; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: 1.125rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.faq-a p { margin: 0 0 1.25rem; color: var(--text-2); max-width: 62ch; }

/* 9. Call-to-action band --------------------------------------------------- */
.cta-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .cta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.cta-copy p { font-size: 1.125rem; max-width: 42ch; }
.cta-copy .cta-call { font-size: 1rem; margin: 0; }
.cta-call a { font-weight: 600; white-space: nowrap; }
.cta-form {
  display: grid; gap: 1rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg);
}
@media (min-width: 768px) { .cta-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cta-form .btn { grid-column: 1 / -1; justify-self: start; } }
.cta-form .field > label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; color: var(--band-text-2); }
.cta-form .form-control { background: #fff; color: #151a30; border-color: transparent; }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { background: var(--page); border-top: 1px solid var(--border); padding: 4rem 0 1.5rem; font-size: .9375rem; color: var(--text-2); }
.foot-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .foot-grid { grid-template-columns: 1.1fr 2fr 1fr 1fr 1fr; } }
.foot-brand p { margin: 1rem 0 0; max-width: 36ch; }
.foot-brand .foot-contact { font-weight: 600; }
.foot-title { font-size: .875rem; font-weight: 600; margin: 0 0 .75rem; color: var(--text); letter-spacing: 0; }
.foot-col ul { margin: 0; }
.foot-col li { padding: .25rem 0; }
.foot-col a, .foot-brand a, .office a { color: var(--text-2); text-decoration: none; }
.foot-col a:hover, .foot-brand a:hover, .office a:hover { color: var(--text); text-decoration: underline; }
.foot-mods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.foot-offices { display: grid; gap: 1.5rem 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .foot-offices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.office-label { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; color: var(--text); }
.office-addr { margin: 0; line-height: 1.55; }
.office-org { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-3); }
.foot-base p { margin: 0; }
.foot-base a { color: var(--text-2); }

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  display: flex; gap: .5rem; padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 24px -14px rgba(20, 27, 77, .3);
}
.mbar-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 46px;
  border: 1px solid var(--border-strong); border-radius: var(--r-btn);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.mbar-btn.is-primary { flex: 1.6; background: var(--brand); border-color: var(--brand); color: #fff; }
.mbar-btn:hover { color: var(--text); background: var(--surface-3); }
.mbar-btn.is-primary:hover { color: #fff; background: var(--brand-hover); }
body.has-mbar { padding-bottom: 72px; }
@media (min-width: 992px) { .mbar { display: none; } body.has-mbar { padding-bottom: 0; } }

/* 11. Inner pages ---------------------------------------------------------- */
.page-hero { padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); max-width: 18ch; margin-bottom: 1rem; }
.page-hero .lead { max-width: 40em; margin: 0; }
.page-body { padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }

/* Forms */
.field { min-width: 0; }
.field > label, .field-label { display: block; margin-bottom: .375rem; font-weight: 600; font-size: .9375rem; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-3); }
.form-control, .form-select {
  border-radius: var(--r-sm); border-color: var(--border-strong);
  padding: .6875rem .875rem; font-size: 1rem; line-height: 1.4;
  background-color: var(--surface); color: var(--text);
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: var(--focus); background-color: var(--surface); color: var(--text); }
textarea.form-control { min-height: 120px; }
.field-hint { margin: .375rem 0 0; font-size: .875rem; color: var(--text-3); }
.field-error { display: none; margin: .375rem 0 0; font-size: .875rem; font-weight: 500; color: var(--bad); }
.field.is-invalid .form-control, .field.is-invalid .form-select { border-color: var(--bad); }
.field.is-invalid .field-error, .check-group.is-invalid .field-error { display: block; }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .span-2 { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border-radius: var(--r-md); background: var(--info-bg); color: var(--text); font-size: .9375rem; }
.notice i { color: var(--info); font-size: 1.125rem; line-height: 1.4; }
.notice.is-bad { background: var(--bad-bg); }
.notice.is-bad i { color: var(--bad); }
.notice.is-good { background: var(--good-bg); }
.notice.is-good i { color: var(--good); }
.notice p { margin: 0; }
.notice p + p { margin-top: .375rem; }

/* Demo form */
.demo-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) { .demo-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3.5rem; } .demo-aside { position: sticky; top: 104px; } }
.form-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.25rem, .75rem + 2.5vw, 2.5rem); box-shadow: var(--shadow-pop); }

.stepper { display: flex; gap: .5rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--text-3); }
.stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--border); }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current::before, .stepper li.is-done::before { background: var(--brand); }
.stepper .s-n { font-weight: 500; color: var(--text-3); }
@media (max-width: 575.98px) {
  /* Phones: three bars, then one line under them, e.g. "Step 1 of 3: Your institution". */
  .stepper { position: relative; padding-bottom: 1.75rem; counter-reset: step; }
  .stepper li { counter-increment: step; }
  .stepper li:not(.is-current) .s-t { display: none; }
  .stepper li.is-current .s-t { position: absolute; left: 0; bottom: 0; white-space: nowrap; }
  .stepper li.is-current .s-t::before { content: "Step " counter(step) " of 3: "; font-weight: 500; color: var(--text-3); }
}

.step[hidden] { display: none !important; }
.step-title { font-size: 1.5rem; letter-spacing: -.015em; margin-bottom: .375rem; }
.step-intro { color: var(--text-2); margin-bottom: 1.75rem; }
.step:focus { outline: none; }

.check-family { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.check-family legend { float: none; width: auto; display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; padding: 0; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.check-grid { display: grid; gap: .5rem; }
@media (min-width: 576px) { .check-grid { grid-template-columns: 1fr 1fr; } }
/* Check tiles and pills: the native input stays first, so its state styles the face beside it
   (input:checked + .ct-face) without :has(), which older browsers lack. */
.check-tile { position: relative; display: block; min-width: 0; cursor: pointer; }
.check-tile input, .pill input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ct-face {
  display: flex; align-items: center; gap: .75rem; height: 100%;
  padding: .625rem .75rem; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); font-weight: 500; font-size: .9375rem; line-height: 1.3;
}
.ct-face .mod-icon { width: 32px; height: 32px; font-size: 1rem; }
.ct-face::after {
  content: ""; flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
}
.check-tile:hover .ct-face { border-color: var(--text-3); }
.check-tile input:checked + .ct-face { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.check-tile input:checked + .ct-face::after {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-tile input:focus-visible + .ct-face { box-shadow: var(--focus); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; display: inline-flex; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; padding: .625rem 1.125rem; border: 1px solid var(--border-strong); border-radius: 999px; font-weight: 600; font-size: .9375rem; background: var(--surface); }
.pill:hover span { border-color: var(--text-3); }
.pill input:checked + span { background: var(--band); border-color: var(--band); color: #fff; }
.pill input:focus-visible + span { box-shadow: var(--focus); }

.form-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-nav .btn-next, .form-nav .btn-send { margin-left: auto; }
.form-privacy { margin: 1rem 0 0; font-size: .875rem; color: var(--text-3); }
.form-status:empty { display: none; }
.form-status { margin-top: 1.25rem; }

.aside-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; background: var(--surface-2); }
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h2 { font-size: 1.125rem; letter-spacing: -.01em; margin-bottom: 1rem; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .75rem; padding: .5rem 0; font-size: .9375rem; color: var(--text-2); }
.next-steps li::before { counter-increment: n; content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .875rem; display: grid; place-items: center; }
.next-steps strong { display: block; color: var(--text); font-weight: 600; }
.aside-call { font-size: 1.25rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.aside-card .small-note { margin: .25rem 0 0; font-size: .875rem; color: var(--text-3); }
.aside-clients { margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--text-2); }
.aside-clients li { padding: .25rem 0; }

/* Thank-you */
.done-mark { width: 56px; height: 56px; border-radius: var(--r-tile); display: grid; place-items: center; background: var(--tile-3); color: var(--on-tile); font-size: 1.75rem; margin-bottom: 1.5rem; }
.next-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: n; border-top: 1px solid var(--border); max-width: 760px; }
.next-big li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.next-big li::before { counter-increment: n; content: counter(n); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.next-big h2 { font-size: 1.1875rem; margin: .5rem 0 .25rem; letter-spacing: -.008em; }
.next-big p { margin: 0; color: var(--text-2); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; } }
.contact-block { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.contact-block:first-child { padding-top: 0; }
.contact-block h2 { font-size: 1.25rem; letter-spacing: -.012em; margin-bottom: .5rem; }
.contact-block p { color: var(--text-2); margin-bottom: .75rem; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contact-lines li { display: flex; align-items: center; gap: .75rem; }
.contact-lines i { color: var(--brand); font-size: 1.125rem; width: 1.25rem; }
.contact-lines a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-offices { display: grid; gap: 1.25rem; }
.contact-offices .office-label { color: var(--text-3); font-weight: 500; }
.contact-offices .office-addr { color: var(--text-2); }
.contact-offices .office a { color: var(--brand); font-weight: 600; }
.contact-offices .office a:hover { color: var(--brand-hover); }

/* Prose (policies) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; letter-spacing: -.012em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.25rem; }
.prose .meta { color: var(--text-3); font-size: .9375rem; }

/* Error page */
.err { padding: clamp(4rem, 3rem + 5vw, 8rem) 0; }
.err .mosaic-mini { --m: 14px; gap: 4px; margin-bottom: 2rem; }
.err h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.err p { color: var(--text-2); max-width: 46ch; }
.err-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* 11b. Full-site components ------------------------------------------------ */
/* Navigation dropdowns and active section */
.site-header .nav-link.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.nav-drop { min-width: 290px; padding: .5rem; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-pop); background: var(--surface); }
.nd-link { display: flex; flex-direction: column; gap: .125rem; padding: .625rem .75rem; border-radius: var(--r-btn); color: var(--text); text-decoration: none; }
.nd-link:hover, .nd-link:focus-visible { background: var(--surface-2); color: var(--text); }
.nd-link[aria-current="page"] .nd-title { color: var(--brand); }
.nd-title { font-weight: 600; font-size: .9375rem; }
.nd-desc { font-size: .8125rem; line-height: 1.4; color: var(--text-3); }
@media (min-width: 992px) and (max-width: 1199.98px) { .site-header .nav-link { padding-inline: .5rem; } .nav-wrap { gap: 0 1rem; } }
@media (max-width: 991.98px) { .nav-drop { border: 0; box-shadow: none; padding: 0 0 .5rem .5rem; background: none; } .site-header .nav-link.is-active { box-shadow: inset 2px 0 0 var(--brand); } }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--border-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Module and institution heroes */
.mod-hero { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.mod-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 992px) { .mod-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; } }
.mod-hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.375rem); max-width: 18ch; margin-bottom: 1.25rem; }
.mod-hero .lead, .page-hero .mod-hero-copy .lead { max-width: 40em; margin-bottom: 2rem; }
.page-hero .hero-actions { margin-top: 2rem; }
.page-hero .mod-hero-copy .hero-actions { margin-top: 0; }
.mod-name { display: inline-flex; align-items: center; gap: .625rem; margin: 0 0 1.25rem; font-weight: 600; color: var(--text-2); }
.glance { padding: 1.5rem; border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-pop); }
.glance-title { margin: 0 0 .5rem; font-size: .875rem; font-weight: 600; color: var(--text-3); }
.glance-list { margin: 0; }
.glance-list div { padding: .75rem 0; border-top: 1px solid var(--border); }
.glance-list dt { font-size: .8125rem; font-weight: 500; color: var(--text-3); }
.glance-list dd { margin: .125rem 0 0; font-weight: 600; line-height: 1.4; }
.glance-family { display: flex; align-items: center; gap: .5rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-2); }

/* Three-up variants of pains and flow */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* tablets: three problems stack rather than leaving one alone on a second row */
  .pains.n-3 { grid-template-columns: 1fr; }
  .pains.n-3 li:nth-child(odd), .pains.n-3 li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (min-width: 768px) { .flow.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .pains.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pains.n-3 li, .pains.n-3 li:nth-child(odd), .pains.n-3 li:nth-child(even) { padding: 1.75rem 2rem; border-left: 1px solid var(--border); }
  .pains.n-3 li:first-child { padding-left: 0; border-left: 0; }
  .pains.n-3 li:last-child { padding-right: 0; }
  .flow.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Feature grid */
.feats { display: grid; margin: 0; border-top: 1px solid var(--border); }
.feats li { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.feats .mod-icon { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: 1rem; }
.feats h3 { margin-bottom: .375rem; }
.feats p { margin: 0; color: var(--text-2); max-width: 42ch; }
@media (min-width: 768px) { .feats { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1200px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; } .feats.n-4 { grid-template-columns: 1fr 1fr; } }

.proof-note { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--c, var(--brand)); border-radius: var(--r-sm); background: var(--page); }
.proof-note .mosaic-mini { margin-top: .4rem; }
.proof-note p { margin: 0; font-size: 1.0625rem; max-width: 70ch; }

/* Screenshot sections */
.screen-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .screen-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; } }
.screen-copy p { color: var(--text-2); font-size: 1.125rem; max-width: 40ch; margin: 0; }
.screen.is-inline { margin-right: 0; border-right: 1px solid var(--border-strong); border-radius: var(--r-lg); }

/* Who it helps */
.role-cols { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
@media (min-width: 768px) { .role-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-col { padding-top: 1rem; border-top: 2px solid var(--text); }
.role-col dt { font-size: 1.1875rem; font-weight: 600; margin-bottom: .375rem; }
.role-col dd { margin: 0; color: var(--text-2); }

/* Module cards */
.mod-cards { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 576px) { .mod-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .mod-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mod-card {
  position: relative; display: flex; flex-direction: column; gap: .375rem; height: 100%;
  padding: 1.375rem 1.25rem 1.125rem; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: inherit; text-decoration: none; overflow: hidden;
}
.mod-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.mod-card:hover { border-color: var(--border-strong); color: inherit; }
.mod-card:hover .mc-name { color: var(--brand); }
.mc-name { margin-top: .5rem; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.mc-desc { flex: 1; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.mc-family { margin-top: .375rem; font-size: .8125rem; color: var(--text-3); }

/* Modules index: family name and description beside its module cards */
.mod-family { display: grid; gap: 1.25rem 3rem; padding-block: 2.75rem; border-top: 1px solid var(--border); }
.mod-family:first-child { padding-top: 1rem; border-top: 0; }
.mod-family-head { display: grid; gap: .75rem; }
@media (min-width: 992px) {
  .mod-family { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .mod-family .mod-cards { grid-template-columns: 1fr 1fr; }
  .mod-family-head { position: sticky; top: 104px; }
}
.mod-family-head h2 { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.mod-family-head h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.mod-family-head p { margin: 0; color: var(--text-2); }

/* Cashless campus: compare table */
.compare { border-top: 1px solid var(--border); }
.compare-row { display: grid; gap: .25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.compare-row > span:first-child { font-weight: 600; }
.compare-row > span:nth-child(2) { color: var(--text-3); }
.compare-head { padding-block: .625rem; }
.compare-head > span, .compare-head > span:first-child, .compare-head > span:nth-child(2) { font-size: .8125rem; font-weight: 600; color: var(--text-3); }
@media (min-width: 768px) { .compare-row { grid-template-columns: 1fr 1.25fr 1.6fr; align-items: baseline; } }
@media (max-width: 767.98px) {
  .compare-head { display: none; }
  .compare-row > span:nth-child(2)::before { content: "Today: "; }
  .compare-row > span:nth-child(3)::before { content: "With 1Card: "; font-weight: 600; }
}

/* Cashless campus: architecture diagram */
.arch { display: grid; gap: 1.75rem; margin: 0; }
@media (min-width: 992px) { .arch { grid-template-columns: 1fr 1fr 1.15fr 1fr; gap: 2.5rem; } }
.arch-lane { position: relative; padding: 1.5rem; border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--r-md); background: var(--surface); }
.arch-lane h3 { display: flex; align-items: center; gap: .625rem; font-size: 1.0625rem; margin-bottom: .75rem; }
.arch-lane h3 i { color: var(--c-ink); font-size: 1.125rem; }
.arch-lane ul { margin: 0; }
.arch-lane li { padding: .4rem 0; border-bottom: 1px dashed var(--border); font-size: .9375rem; }
.arch-lane li:last-child { border-bottom: 0; }
.arch-note { margin: .875rem 0 0; font-size: .8125rem; color: var(--text-3); }
.arch-lane.is-core { background: var(--band); border-color: var(--band); color: var(--band-text); box-shadow: var(--shadow-lift); }
.arch-lane.is-core h3 { color: var(--band-text); }
.arch-lane.is-core .mosaic-mini { --m: 7px; }
.arch-lane.is-core li { border-color: rgba(255, 255, 255, .16); }
.arch-lane.is-core .arch-note { color: var(--band-text-2); }
/* two-way connectors between lanes */
.arch-lane:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -1.75rem; width: 14px; height: 1.75rem; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 28'%3E%3Cpath d='M7 3v22M2.5 7.5 7 3l4.5 4.5M2.5 20.5 7 25l4.5-4.5' fill='none' stroke='%238a91a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 992px) {
  .arch-lane:not(:last-child)::after {
    left: auto; right: -2.5rem; bottom: auto; top: 50%; width: 2.5rem; height: 14px; transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M5 7h30M9.5 2.5 5 7l4.5 4.5M30.5 2.5 35 7l-4.5 4.5' fill='none' stroke='%238a91a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* Cashless campus: money flows */
.flows { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .flows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.money-flow { padding: 1.5rem; border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--r-md); background: var(--surface); }
.money-flow h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.money-flow > p { color: var(--text-2); margin-bottom: 1.25rem; }
.chain { margin: 0; counter-reset: c; }
.chain li { position: relative; padding: 0 0 1.25rem 2.5rem; counter-increment: c; font-size: .9375rem; }
.chain li:last-child { padding-bottom: 0; }
.chain li::before { content: counter(c); position: absolute; left: 0; top: -.1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c-ink); font-weight: 700; font-size: .8125rem; }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: calc(.875rem - 1px); top: 1.85rem; bottom: .2rem; width: 2px; background: var(--c-soft); }

/* Cashless campus: families */
.families { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 768px) { .families { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .families { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.families a { display: flex; flex-direction: column; gap: .375rem; height: 100%; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: inherit; text-decoration: none; }
.families a::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--c); margin-bottom: .5rem; }
.families a:hover { border-color: var(--border-strong); color: inherit; }
.families a:hover .fam-name { color: var(--brand); }
.fam-name { font-weight: 600; }
.fam-desc { font-size: .9375rem; color: var(--text-2); }

/* Split, figures, gallery, app, devices */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: center; } }
.split-lead { font-size: 1.125rem; color: var(--text-2); max-width: 46ch; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; margin: 0; }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 1rem; border-top: 2px solid var(--text); }
.figures dd { margin: 0; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figures dt { margin-top: .5rem; font-size: .9375rem; font-weight: 400; color: var(--text-2); }
.gallery { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figcaption { font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.gallery figcaption strong { color: var(--text); }
.app-feats { display: grid; gap: 1.75rem 2rem; margin: 0; }
@media (min-width: 576px) { .app-feats { grid-template-columns: 1fr 1fr; } }
.app-feats i { font-size: 1.5rem; color: var(--brand); }
.app-feats h3 { margin: .5rem 0 .25rem; }
.app-feats p { margin: 0; color: var(--text-2); }
.app-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.muted-note { margin: .25rem 0 0; font-size: .875rem; color: var(--text-3); }
.devices { display: grid; gap: 2.25rem 2rem; margin: 0; }
@media (min-width: 768px) { .devices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.devices .flow-n { font-size: 1.25rem; margin-bottom: 1rem; }
.devices li.t-0 .flow-n { background: #fff; color: #141b4d; }
.devices h3 { margin-bottom: .375rem; }
.devices p { margin: 0; max-width: 34ch; }
.sec-list li { align-content: start; }

/* Customers */
.clients { margin: 0; border-top: 1px solid var(--border); }
.client-row { display: grid; gap: .75rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .client-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.client-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; font-weight: 600; font-size: 1.0625rem; }
.client-short { display: inline-grid; place-items: center; min-width: 3.25rem; height: 2rem; padding: 0 .5rem; border-radius: var(--r-sm); background: var(--band); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.client-type { font-size: .875rem; font-weight: 400; color: var(--text-3); }
.client-uses { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.client-uses li { padding: .3rem .75rem; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; color: var(--text-2); background: var(--surface); }

/* How we work */
.stages { margin: 1.5rem 0 0; }
.stage { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 3rem; }
.stage:last-child { padding-bottom: 0; }
.stage:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--border-strong); }
.stage-body h2 { margin: .375rem 0; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.stage-lead { margin-bottom: 1.25rem; font-size: 1.125rem; color: var(--text-2); }
.stage-split { display: grid; gap: 1rem; }
@media (min-width: 768px) { .stage-split { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.stage-split > div { padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--page); }
.stage-split h3 { margin-bottom: .75rem; font-size: .9375rem; color: var(--text-3); }
.stage-split .checks { gap: .625rem; }
.stage-split .checks li { font-size: 1rem; }

/* About */
.mission { max-width: 920px; }
.mission-text { margin: 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.5; }
.is-band .mission-text { color: var(--band-text); }
.prose-lg p { font-size: 1.125rem; color: var(--text-2); max-width: 60ch; }
.values { display: grid; gap: 1.75rem 2rem; margin: 0; }
@media (min-width: 768px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .values { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.values li { padding-top: 1rem; border-top: 4px solid var(--c); }
.values h3 { font-size: 1.125rem; }
.values p { margin: 0; font-size: .9375rem; color: var(--text-2); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem 1.5rem; margin: 0; }
.person { display: flex; flex-direction: column; gap: .125rem; }
.avatar { width: 64px; height: 64px; margin-bottom: .875rem; border-radius: var(--r-tile); display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; }
.avatar.c1 { background: var(--tile-1); color: #fff; }
.avatar.c2 { background: var(--tile-2); color: var(--on-tile); }
.avatar.c3 { background: var(--tile-3); color: var(--on-tile); }
.avatar.c4 { background: var(--tile-4); color: var(--on-tile); }
.person-name { font-weight: 600; }
.person-role { font-size: .9375rem; color: var(--text-2); }
.office-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.office-grid .office { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-md); }
.office-grid .office-label { color: var(--text-3); font-weight: 500; }
.office-grid .office-addr { color: var(--text-2); }
.office-grid .office a { color: var(--brand); font-weight: 600; }

/* Support */
.help-grid { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 768px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .help-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.help-grid > li { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.help-grid h2 { margin: .5rem 0 0; font-size: 1.125rem; letter-spacing: -.008em; }
.help-grid p { margin: 0; font-size: .9375rem; color: var(--text-2); }
.help-grid .btn { margin-top: .5rem; }
.support-contact { display: grid; gap: 1.5rem; margin-top: 3rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); background: var(--page); }
@media (min-width: 992px) { .support-contact { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.support-contact h2 { font-size: 1.5rem; }
.support-contact p { margin: 0; color: var(--text-2); }

/* FAQ page */
.faq-page { display: grid; gap: 2rem; }
@media (min-width: 992px) { .faq-page { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; } .faq-toc { position: sticky; top: 104px; align-self: start; } }
.faq-toc-title { margin-bottom: .5rem; font-size: .875rem; font-weight: 600; color: var(--text-3); }
.faq-toc a { display: block; padding: .375rem 0; color: var(--text-2); font-weight: 500; text-decoration: none; }
.faq-toc a:hover { color: var(--brand); }
@media (max-width: 991.98px) {
  .faq-toc ul { display: flex; flex-wrap: wrap; gap: .5rem; }
  .faq-toc a { padding: .375rem .875rem; border: 1px solid var(--border); border-radius: 999px; font-size: .9375rem; }
}
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { margin-bottom: 1rem; font-size: 1.5rem; }

/* 12. Motion and accessibility --------------------------------------------- */
:focus-visible { outline: 3px solid var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: none; }

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

@media print {
  .site-header, .mbar, .cta-band, .hero-visual { display: none !important; }
  body { padding: 0 !important; }
}


/* 13. Language -------------------------------------------------------------
   The switch in the header and footer, and type settings for the Bengali pages (/bn/). */
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9375rem; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.lang-switch i { color: var(--brand); }
.lang-switch:hover { color: var(--brand); }
.foot-base .lang-switch { font-size: inherit; font-weight: 500; }
/* Phones and tablets: the switch sits beside the menu button, not inside the closed menu. */
.lang-switch-bar { margin-left: auto; min-height: 44px; }
.lang-switch-bar + .navbar-toggler { margin-left: 0; }
@media (min-width: 992px) { .lang-switch-bar { display: none; } }
@media (max-width: 991.98px) { .nav-actions .lang-switch { display: none; } }

/* Bengali letters carry marks above and below the line: more leading, no tightened tracking. */
html:lang(bn) body { line-height: 1.75; }
html:lang(bn) :is(h1, h2, h3, h4, .lead, .btn, .nav-link) { letter-spacing: 0; }
html:lang(bn) h1 { font-size: clamp(2.125rem, 1.4rem + 2.9vw, 3.25rem); line-height: 1.28; }
html:lang(bn) h2 { line-height: 1.32; }
html:lang(bn) h3 { line-height: 1.45; }
/* Step numbers and the "Step 1 of 3" label are written by CSS, so they are translated here. */
html:lang(bn) .next-steps li::before, html:lang(bn) .next-big li::before { content: counter(n, bengali); }
html:lang(bn) .chain li::before { content: counter(c, bengali); }
@media (max-width: 575.98px) { html:lang(bn) .stepper li.is-current .s-t::before { content: "ধাপ " counter(step, bengali) ", মোট ৩: "; } }
