/* ==========================================================================
   TrackMyBill (BPDB) — marketing site
   A product of Pxelo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #f4f6f0;
  --surface-2: #eef1e8;
  --ink: #1a1a1a;
  --ink-2: #6b7280;
  --ink-3: #9aa1ad;

  --teal: #1a5e6c;
  --teal-700: #14505c;
  --teal-deep: #0f3f49;
  --teal-ink: #0b2f37;
  --lime: #d8e449;
  --lime-soft: #eaf0b4;
  --lime-tint: #f3f7d8;

  --success: #34a853;
  --warning: #e0de49;
  --error: #e04040;

  --line: rgba(26, 94, 108, 0.12);
  --line-soft: rgba(26, 26, 26, 0.07);
  --line-solid: #e5e7eb; /* opaque — for separators over coloured backgrounds */

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --sh-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --sh-xl: 0 30px 70px -20px rgba(13, 63, 73, 0.35);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 40px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

/* --------------------------------------------------------------------------
   Bengali Font (Purno)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Purno';
  src: url('../font-bengali/Purno%20Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Purno';
  src: url('../font-bengali/Purno%20Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Purno';
  src: url('../font-bengali/Purno%20Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Purno';
  src: url('../font-bengali/Purno%20Bold-Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: "Plus Jakarta Sans", "Purno", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="bn"] {
  --bn-bump: 3px;
}

html[lang="bn"],
html[lang="bn"] body,
html[lang="bn"] button,
html[lang="bn"] input,
html[lang="bn"] select,
html[lang="bn"] textarea,
[lang="bn"] {
  font-family: "Purno", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Comprehensive +3px font-size bump for Bengali across all text elements */
html[lang="bn"] body { font-size: calc(16px + var(--bn-bump)); }
html[lang="bn"] .h1, html[lang="bn"] .pagehead h1 { font-size: calc(clamp(38px, 6.4vw, 66px) + var(--bn-bump)); }
html[lang="bn"] .h2 { font-size: calc(clamp(29px, 4.1vw, 44px) + var(--bn-bump)); }
html[lang="bn"] .h3 { font-size: calc(clamp(20px, 2.2vw, 25px) + var(--bn-bump)); }
html[lang="bn"] .lede { font-size: calc(clamp(16px, 1.55vw, 19px) + var(--bn-bump)); }
html[lang="bn"] .eyebrow, html[lang="bn"] .footer h4, html[lang="bn"] .toc h4 { font-size: calc(11px + var(--bn-bump)); }
html[lang="bn"] .btn { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .btn--sm { font-size: calc(14px + var(--bn-bump)); }
html[lang="bn"] .btn--play .play-top { font-size: calc(10px + var(--bn-bump)); }
html[lang="bn"] .btn--play .play-big { font-size: calc(18px + var(--bn-bump)); }
html[lang="bn"] .hero__trust { font-size: calc(13.5px + var(--bn-bump)); }
html[lang="bn"] .float-card b { font-size: calc(14px + var(--bn-bump)); }
html[lang="bn"] .float-card span { font-size: calc(11.5px + var(--bn-bump)); }
html[lang="bn"] .stat b { font-size: calc(clamp(26px, 3.4vw, 38px) + var(--bn-bump)); }
html[lang="bn"] .stat span { font-size: calc(13px + var(--bn-bump)); }
html[lang="bn"] .card h3 { font-size: calc(17.5px + var(--bn-bump)); }
html[lang="bn"] .card p { font-size: calc(14.5px + var(--bn-bump)); }
html[lang="bn"] .feat-item h3 { font-size: calc(16.5px + var(--bn-bump)); }
html[lang="bn"] .feat-item p { font-size: calc(13.5px + var(--bn-bump)); }
html[lang="bn"] .step h3 { font-size: calc(19px + var(--bn-bump)); }
html[lang="bn"] .step p { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .ticks li { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .ticks p { font-size: calc(14.5px + var(--bn-bump)); }
html[lang="bn"] .chart__head b { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .chart__head span { font-size: calc(12px + var(--bn-bump)); }
html[lang="bn"] .notif b { font-size: calc(14px + var(--bn-bump)); }
html[lang="bn"] .notif p { font-size: calc(13px + var(--bn-bump)); }
html[lang="bn"] .faq summary { font-size: calc(16px + var(--bn-bump)); }
html[lang="bn"] .faq p { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .footer { font-size: calc(14.5px + var(--bn-bump)); }
html[lang="bn"] .footer__about { font-size: calc(14px + var(--bn-bump)); }
html[lang="bn"] .footer__bottom { font-size: calc(13px + var(--bn-bump)); }
html[lang="bn"] .toc a { font-size: calc(14px + var(--bn-bump)); }
html[lang="bn"] .prose h2 { font-size: calc(clamp(21px, 2.6vw, 27px) + var(--bn-bump)); }
html[lang="bn"] .prose h3 { font-size: calc(18px + var(--bn-bump)); }
html[lang="bn"] .prose p, html[lang="bn"] .prose li { font-size: calc(16px + var(--bn-bump)); }
html[lang="bn"] .chapter b { font-size: calc(15px + var(--bn-bump)); }
html[lang="bn"] .chapter p { font-size: calc(13.5px + var(--bn-bump)); }
html[lang="bn"] .video-placeholder b { font-size: calc(18px + var(--bn-bump)); }
html[lang="bn"] .video-placeholder span { font-size: calc(13.5px + var(--bn-bump)); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--teal-ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% -200%;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  transition: translate 0.2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--surface { background: var(--surface); }

.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}
.sec-head--center .eyebrow::before { display: none; }
.sec-head--center .eyebrow {
  background: var(--lime-tint);
  padding: 7px 14px;
  border-radius: var(--r-full);
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.h1, h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  letter-spacing: -0.03em;
  /* even line lengths instead of a long-long-short rag, and no single
     word stranded on the last line */
  text-wrap: balance;
}
.h2 { font-size: clamp(29px, 4.1vw, 44px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.015em; }

.lede {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
  margin-top: 18px;
}

.muted { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(26, 94, 108, 0.8);
}
.btn--primary:hover { background: var(--teal-700); box-shadow: 0 16px 32px -12px rgba(26, 94, 108, 0.85); }

.btn--lime {
  background: var(--lime);
  color: var(--teal-ink);
  box-shadow: 0 10px 26px -12px rgba(151, 163, 20, 0.9);
}
.btn--lime:hover { background: #cfdc36; }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover { border-color: var(--teal); background: #fff; }

.btn--on-dark {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

.btn--sm { height: 44px; padding-inline: 20px; font-size: 14px; }
.btn--wide { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Google Play badge-style button */
.btn--play {
  height: 58px;
  padding: 0 28px 0 22px;
  gap: 13px;
  text-align: left;
}
.btn--play .play-mark { width: 24px; height: 26px; }
.btn--play span { display: block; line-height: 1.15; }
.btn--play .play-top {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.78;
}
.btn--play .play-big { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
}
.nav.is-hidden {
  transform: translate3d(0, -100%, 0);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 20px rgba(13, 63, 73, 0.06);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: var(--sh-sm);
}
.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav--dark .brand__name { color: #fff; }
.nav--dark .brand__tag { color: rgba(255, 255, 255, 0.55); }
.nav--dark.is-stuck .brand__name { color: var(--ink); }
.nav--dark.is-stuck .brand__tag { color: var(--ink-3); }
.nav--dark .nav__links a { color: rgba(255, 255, 255, 0.82); }
.nav--dark .nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav--dark .nav__links a[aria-current="page"] { color: var(--lime); }

/* Site Top Nav Language Switcher */
.site-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.site-lang-switch button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-lang-switch button:hover {
  color: #fff;
}

.site-lang-switch button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--teal-darker);
  font-weight: 700;
  box-shadow: var(--sh-sm);
}

.nav.is-stuck .site-lang-switch {
  background: rgba(13, 63, 73, 0.06);
  border-color: rgba(13, 63, 73, 0.14);
}

.nav.is-stuck .site-lang-switch button {
  color: var(--ink-2);
}

.nav.is-stuck .site-lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}
.nav--dark .nav__burger { border-color: rgba(255, 255, 255, 0.3); }
.nav--dark .nav__burger span, .nav--dark .nav__burger span::before, .nav--dark .nav__burger span::after { background: #fff; }
.nav--dark.is-stuck .nav__links a { color: var(--ink-2); }
.nav--dark.is-stuck .nav__links a:hover { color: var(--teal); background: var(--surface); }
.nav--dark.is-stuck .nav__links a[aria-current="page"] { color: var(--teal); }
.nav--dark.is-stuck .nav__burger { border-color: var(--line); }
.nav--dark.is-stuck .nav__burger span,
.nav--dark.is-stuck .nav__burger span::before,
.nav--dark.is-stuck .nav__burger span::after { background: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--teal); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav__links .btn { display: none; } /* duplicate CTA — mobile menu only */

.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .nav.is-stuck,
  .nav.is-open {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 1px 20px rgba(13, 63, 73, 0.06);
  }
  .nav--dark.is-stuck .brand__name,
  .nav--dark.is-open .brand__name { color: var(--ink); }
  .nav--dark.is-stuck .brand__tag,
  .nav--dark.is-open .brand__tag { color: var(--ink-3); }
  .nav--dark.is-stuck .nav__links a,
  .nav--dark.is-open .nav__links a { color: var(--ink-2); }
  .nav--dark.is-stuck .nav__links a:hover,
  .nav--dark.is-open .nav__links a:hover { color: var(--teal); background: var(--surface); }
  .nav--dark.is-stuck .nav__links a[aria-current="page"],
  .nav--dark.is-open .nav__links a[aria-current="page"] { color: var(--teal); }
  .nav--dark.is-stuck .nav__burger,
  .nav--dark.is-open .nav__burger { border-color: var(--line); }
  .nav--dark.is-stuck .nav__burger span,
  .nav--dark.is-stuck .nav__burger span::before,
  .nav--dark.is-stuck .nav__burger span::after,
  .nav--dark.is-open .nav__burger span::before,
  .nav--dark.is-open .nav__burger span::after { background: var(--ink); }
  /* The middle bar must stay hidden while open, or the two rotated bars plus
     this one render an asterisk instead of a cross. Needs to out-specify the
     .is-stuck rule above, which also matches when the menu is open. */
  .nav--dark.is-open .nav__burger span,
  .nav--dark.is-stuck.is-open .nav__burger span { background: transparent; }
  .nav--dark.is-stuck .site-lang-switch,
  .nav--dark.is-open .site-lang-switch {
    background: rgba(13, 63, 73, 0.06);
    border-color: rgba(13, 63, 73, 0.14);
  }
  .nav--dark.is-stuck .site-lang-switch button,
  .nav--dark.is-open .site-lang-switch button {
    color: var(--ink-2);
  }
  .nav--dark.is-stuck .site-lang-switch button[aria-pressed="true"],
  .nav--dark.is-open .site-lang-switch button[aria-pressed="true"] {
    background: var(--teal);
    color: #fff;
  }
  .nav--dark .nav__links .btn { color: var(--teal-ink); }
  .nav__burger { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gut) 26px;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--sh-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 13px 12px; font-size: 16px; border-radius: var(--r-md); }
  .nav__links .btn { display: inline-flex; margin-top: 12px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 84px));
  padding-bottom: clamp(72px, 10vw, 128px);
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(216, 228, 73, 0.16), transparent 62%),
    radial-gradient(760px 620px at 8% 96%, rgba(255, 255, 255, 0.09), transparent 60%),
    linear-gradient(160deg, #1c6474 0%, #14505d 46%, #0d3b46 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__arcs {
  position: absolute;
  top: -14%;
  right: -18%;
  width: min(880px, 88vw);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* The phone is the tallest item, so centring the row leaves the text block
   sitting ~90px below the device's top edge and it reads as sagging. Lift it
   optically on two-column layouts only. A transform, not a margin, so the
   hero's height and the phone's position are untouched. */
@media (min-width: 981px) {
  .hero__grid > div:first-child { transform: translateY(-42px); }
}

.hero h1 { margin-top: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { color: rgba(255, 255, 255, 0.78); text-wrap: pretty; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}
.hero__trust li { display: inline-flex; align-items: center; }
/* Dot separator between the items. A pseudo-element rather than markup,
   because the language switch replaces each <li>'s innerHTML — anything
   authored inside them (the old tick SVGs, for one) is discarded on switch. */
.hero__trust li + li::before {
  content: "·";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------------------------------
   Device mockup — Pixel 10 Pro proportions, composed in 3D
   Flat display, thin uniform bezels, centred punch-hole camera, polished
   aluminium rail with the power key above the volume rocker on the right.
   The rail is a real rotated plane, so the phone has actual thickness rather
   than a painted-on edge. Rotation is negative on Y, which turns the right
   rail toward the viewer — hence buttons on that side.
   -------------------------------------------------------------------------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1500px;
  perspective-origin: 62% 38%;
}

.phone {
  /* thickness is to scale: 8.6mm of a 72mm-wide body ≈ 12% of the width */
  --tilt: -13deg;
  --thick: 34px;
  position: relative;
  width: min(316px, 78vw);
  transform-style: preserve-3d;
  transform: rotateY(var(--tilt)) rotateX(2.5deg);
  will-change: transform;
}

/* Ambient bloom behind the device */
.phone::before {
  content: "";
  position: absolute;
  inset: -12% -20% -16%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 228, 73, 0.22), rgba(216, 228, 73, 0) 72%);
  filter: blur(26px);
}

/* Contact shadow on the ground */
.phone__ground {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -6%;
  height: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4, 24, 29, 0.6), rgba(4, 24, 29, 0) 74%);
  filter: blur(12px);
}

/* The right-hand rail: a plane rotated 90° so it reads as the body's depth */
.phone__rail {
  position: absolute;
  /* Held clear of the corners: the rail is a flat plane and cannot follow the
     44px corner radius, so it only spans the straight run of the side. */
  top: 7.5%;
  bottom: 7.5%;
  left: 100%; /* start at the body's right edge, then fold backwards */
  width: var(--thick);
  border-radius: 3px;
  transform-origin: left center;
  transform: rotateY(90deg);
  background: linear-gradient(
    180deg,
    #7c8687 0%, #4d5657 12%, #97a1a1 26%,
    #444d4e 48%, #8f9998 70%, #3f4849 88%, #6c7576 100%
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.phone__rail span {
  position: absolute;
  left: 1px;
  right: 1px;
  border-radius: 2px;
  background: linear-gradient(180deg, #cfd6d5, #838d8c 40%, #4f5859);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.phone__rail span:nth-child(1) { top: 25%; height: 7.5%; }   /* power */
.phone__rail span:nth-child(2) { top: 35.5%; height: 13%; }  /* volume rocker */

/* Body: polished aluminium, chamfered at the glass edge */
.phone__frame {
  position: relative;
  /* matches the screenshot, so the UI is never cropped */
  aspect-ratio: 1264 / 2736;
  border-radius: 44px;
  padding: 6px;
  background:
    linear-gradient(115deg,
      #d6dcda 0%, #6a7475 7%, #a9b3b2 13%, #3b4445 25%,
      #869090 39%, #2e3738 53%, #7b8584 67%, #2a3334 81%,
      #939d9c 92%, #c4cbc9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 26px 50px -16px rgba(6, 30, 36, 0.55),
    0 60px 80px -44px rgba(6, 30, 36, 0.7);
}

/* Glass sits slightly proud of the frame */
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0e0f;
  /* the black bezel ring — the glass sits inside it, not flush to the metal */
  box-shadow:
    inset 0 0 0 4px #05080a,
    inset 0 0 12px rgba(0, 0, 0, 0.55);
}
.phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill; /* frame ratio equals the image ratio, so no distortion */
}

/* Centred punch-hole selfie camera */
.phone__cam {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #33404b 0 30%, #0b1013 62%, #000 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 0 5px rgba(0, 0, 0, 0.5),
    inset 0 0 3px rgba(130, 170, 210, 0.4);
}

/* Specular sweep across the glass */
.phone__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Kept deliberately faint: the app UI underneath is light, so anything
     stronger than this reads as a milky haze rather than glass. */
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 7%,
    rgba(255, 255, 255, 0) 17%,
    rgba(255, 255, 255, 0) 76%,
    rgba(255, 255, 255, 0.06) 85%,
    rgba(255, 255, 255, 0) 95%
  );
}

.hero .phone { animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(var(--tilt)) rotateX(2.5deg); }
  50% { transform: translateY(-14px) rotateY(var(--tilt)) rotateX(2.5deg); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-lg);
  color: var(--ink);
  animation: float-card-anim 6s ease-in-out infinite;
}
.float-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lime-tint);
  color: var(--teal);
  flex: none;
}
.float-card__icon svg { width: 19px; height: 19px; }
.float-card b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.float-card span { font-size: 11.5px; color: var(--ink-2); }

.float-card--a { top: 13%; left: -6%; animation: float-card-anim 6s ease-in-out infinite; animation-delay: -1.2s; }
.float-card--b { bottom: 17%; right: -8%; animation: float-card-anim 6.5s ease-in-out infinite; animation-delay: -3.8s; }

@keyframes float-card-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 br { display: none; }
  .hero .lede, .hero__trust { margin-inline: auto; }
  .hero__trust { justify-content: center; }
  .hero .btn-row { justify-content: center; }
  .hero__visual { margin-top: 12px; }
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; }
}
@media (max-width: 620px) {
  .float-card {
    padding: 8px 12px;
    gap: 9px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
  }
  .float-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .float-card__icon svg { width: 16px; height: 16px; }
  .float-card b { font-size: 12.5px; }
  .float-card span { font-size: 10.5px; }

  .float-card--a { left: -10px; top: 8%; }
  .float-card--b { right: -10px; bottom: 8%; }
}
@media (max-width: 440px) {
  .float-card--a { left: -12px; top: 6%; scale: 0.88; transform-origin: left center; }
  .float-card--b { right: -12px; bottom: 6%; scale: 0.88; transform-origin: right center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone, .float-card { animation: none; }
  .hero .phone { transform: rotateY(var(--tilt)) rotateX(2.5deg); }
}

/* --------------------------------------------------------------------------
   7. Stat strip
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -5vw, -40px);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  /* opaque, so the teal hero behind cannot show through the separators */
  background: var(--line-solid);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.stat { background: #fff; padding: clamp(22px, 3vw, 32px) clamp(16px, 2.4vw, 28px); text-align: center; }
.stat b {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
}
.stat span { font-size: 13px; color: var(--ink-2); }

@media (max-width: 760px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   8. Feature grid
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 28px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--line);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--teal);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card--accent .card__icon { background: var(--lime); color: var(--teal-ink); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   8b. Interactive Feature Showcase (3-Column Standing Phone Layout)
   -------------------------------------------------------------------------- */
.feat-showcase {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  margin-top: clamp(28px, 3.5vw, 48px);
}

.feat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  user-select: none;
}

.feat-item:hover {
  background: #ffffff;
  border-color: rgba(26, 94, 108, 0.15);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.feat-item.is-active {
  background: #ffffff;
  border-color: rgba(26, 94, 108, 0.2);
  box-shadow: 0 8px 25px -6px rgba(15, 63, 73, 0.12);
  transform: translateY(-2px);
}

.feat-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface);
  color: var(--teal);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.feat-item__icon svg {
  width: 22px;
  height: 22px;
}

.feat-item:hover .feat-item__icon {
  background: var(--lime-tint);
  color: var(--teal);
}

.feat-item.is-active .feat-item__icon {
  background: var(--lime);
  color: var(--teal-ink);
  transform: scale(1.08);
}

.feat-item__text { flex: 1; }
.feat-item h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.feat-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* Center Standing Hero-Style Phone Device Mockup */
.feat-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feat-center .phone {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
  --tilt: 0deg;
  transform: rotateY(0deg) rotateX(2.5deg);
}

/* Light placeholder: the shared .phone__screen is near-black, which is right
   behind the hero shot but reads as a dead screen here while the feature image
   is still arriving. */
.feat-center .phone__screen { background: var(--surface); }

.feat-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  z-index: 1;
}

.feat-screen-img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Mobile Feature Carousel Navigation */
.feat-mobile-nav {
  display: none;
}

.feat-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--teal);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: background-color 0.2s var(--ease), border-color 0.2s, transform 0.2s;
}

.feat-nav-btn:hover,
.feat-nav-btn:active {
  background: var(--lime-tint);
  border-color: var(--teal);
  transform: scale(1.06);
}

.feat-nav-btn svg {
  width: 20px;
  height: 20px;
}

.feat-nav-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--line-soft);
  cursor: pointer;
  /* transform, not width: animating width on a flex child reflows every
     sibling, which reads as the row blinking on each change */
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.feat-dot.is-active {
  background: var(--teal);
  transform: scale(1.45);
}

@media (max-width: 1024px) {
  .feat-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin-inline: auto;
    gap: 20px;
  }
  .feat-center {
    order: 1;
    width: 100%;
  }
  .feat-center .phone {
    max-width: 260px;
  }
  .feat-col {
    display: contents;
  }
  .feat-item {
    display: none;
    order: 2;
    width: 100%;
  }
  .feat-item.is-active {
    display: flex;
  }
  .feat-mobile-nav {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
  }
}

/* --------------------------------------------------------------------------
   9. Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  text-align: center;
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 0 8px rgba(26, 94, 108, 0.08);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  width: calc(100% - 68px + clamp(24px, 4vw, 48px));
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 1;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; max-width: 300px; margin-inline: auto; }
@media (max-width: 820px) {
  .steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
  }
  .step__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
  .step h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 4px;
    font-size: 18px;
    align-self: center;
  }
  .step p {
    grid-column: 2;
    grid-row: 2;
    font-size: 14.5px;
    max-width: none;
  }
  .step:not(:last-child)::before {
    display: block;
    top: 60px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    bottom: -20px;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
  }
}

/* --------------------------------------------------------------------------
   10. Split / spotlight sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  /* min(320px, 100%) so the track can shrink below its ideal width. A bare
     minmax(320px, 1fr) never goes under 320px, which overflowed the narrower
     containers (e.g. inside .panel, where padding leaves ~275px at 375px wide)
     and got clipped by their overflow: hidden. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 820px) {
  .split--reverse .split__media { order: 0; }
}

.ticks { margin-top: 26px; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ticks svg { width: 21px; height: 21px; flex: none; margin-top: 1px; color: var(--teal); }
.ticks b { font-weight: 600; }
.ticks p { color: var(--ink-2); font-size: 14.5px; }

.panel {
  border-radius: var(--r-2xl);
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(216, 228, 73, 0.16), transparent 60%),
    linear-gradient(155deg, #1c6474, #0f434e);
  color: #fff;
  overflow: hidden;
}
.panel h2, .panel h3 { color: #fff; }
.panel .lede, .panel p { color: rgba(255, 255, 255, 0.76); }
.panel .eyebrow { color: var(--lime); }
.panel .ticks svg { color: var(--lime); }
.panel .ticks p { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   11. App-UI mockups (hand-built)
   -------------------------------------------------------------------------- */
.mock {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-md);
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.mock--onpanel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.mock__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.mock--onpanel .mock__label { color: rgba(255, 255, 255, 0.55); }

/* Chart mockup */
.chart {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px 18px 14px;
}
.chart__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.chart__head b { font-size: 15px; }
.chart__head span { font-size: 12px; color: var(--ink-2); }
.chart__plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 148px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.bar {
  position: relative;
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #2b7c8d, var(--teal));
  height: var(--h, 40%);
  transform-origin: bottom;
  animation: grow 0.9s var(--ease) both;
}
.bar--peak { background: linear-gradient(180deg, #e2ec6b, var(--lime)); }
.bar::after {
  content: attr(data-m);
  position: absolute;
  bottom: -21px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
}
@keyframes grow { from { transform: scaleY(0.02); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.chart__avg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(22px + var(--avg, 55%));
  border-top: 2px dashed rgba(224, 64, 64, 0.55);
}
.chart__avg span {
  position: absolute;
  right: 0;
  top: -12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--error);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Family code mockup */
.codebox {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 16px;
}
.codebox span {
  flex: 1;
  max-width: 96px;
  text-align: center;
  padding: 13px 6px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(13px, 2.4vw, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lime);
}
.codebox__dash {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
  user-select: none;
}
.devices { display: grid; gap: 9px; }
.device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
}
.device__dot {
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: rgba(216, 228, 73, 0.18); color: var(--lime); flex: none;
}
.device__dot svg { width: 17px; height: 17px; }
.device b { font-size: 14px; font-weight: 600; }
.device small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
.device__live {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex; align-items: center; gap: 6px;
}
.device__live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 0 rgba(216, 228, 73, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(216, 228, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 228, 73, 0); }
}

/* Alert / notification mockup */
.notif {
  display: flex;
  gap: 13px;
  padding: 15px 17px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  align-items: flex-start;
}
.notif + .notif { margin-top: 10px; }
.notif__icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: var(--lime);
}
.notif__icon svg { width: 18px; height: 18px; }
.notif b { font-size: 14px; display: block; }
.notif p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.notif time { font-size: 11px; color: var(--ink-3); margin-left: auto; flex: none; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 4px 22px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq details[open] { border-color: var(--line); box-shadow: var(--sh-sm); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.28s var(--ease), translate 0.28s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.faq p { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; max-width: 68ch; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  border-radius: var(--r-2xl);
  padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(135deg, var(--lime), #c6d63f);
  color: var(--teal-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.cta > * { position: relative; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { color: rgba(11, 47, 55, 0.75); margin-top: 16px; max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn { height: 58px; }
.cta .btn--primary { box-shadow: 0 14px 30px -12px rgba(11, 47, 55, 0.6); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--teal-ink);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(48px, 6vw, 72px) 34px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer li + li { margin-top: 10px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255, 255, 255, 0.45); }
.footer__about { max-width: 34ch; margin-top: 16px; font-size: 14px; }
.footer__note {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}
.footer__bottom b { color: #fff; font-weight: 600; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   15. Sub-pages (privacy, tutorial)
   -------------------------------------------------------------------------- */
.pagehead {
  padding-top: calc(var(--nav-h) + clamp(38px, 6vw, 68px));
  padding-bottom: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(680px 340px at 85% 0%, rgba(216, 228, 73, 0.15), transparent 62%),
    linear-gradient(150deg, #1c6474, #0f434e);
  color: #fff;
}
.pagehead h1 { font-size: clamp(32px, 5vw, 52px); color: #fff; }
.pagehead .lede { color: rgba(255, 255, 255, 0.76); max-width: 60ch; }
.pagehead .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 26px;
  font-size: 13px;
}
.pagehead .meta span {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.toc h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.toc li + li { margin-top: 4px; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.toc a:hover, .toc a.is-active { background: #fff; color: var(--teal); font-weight: 600; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  margin-top: 52px;
  padding-top: 4px;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 30px; }
.prose p, .prose li { color: #35393f; font-size: 16px; line-height: 1.72; }
.prose p { margin-top: 16px; }
.prose ul { margin-top: 16px; display: grid; gap: 11px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 228, 73, 0.25);
}
.prose a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--lime); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--teal);
}
.callout {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--lime-tint);
  border-left: 4px solid var(--lime);
}
.callout p:first-child { margin-top: 0; }

/* Video */
.video-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0d3b46;
  box-shadow: var(--sh-lg);
  aspect-ratio: 16 / 9;
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(216, 228, 73, 0.16), transparent 65%),
    linear-gradient(150deg, #1c6474, #0d3b46);
}
.video-placeholder__play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--teal-ink);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}
.video-placeholder__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-placeholder b { color: #fff; font-size: 18px; }
.video-placeholder span { font-size: 13.5px; }

/* The homepage teaser is cramped on phones — drop its subtitle line and keep
   the play button and title. Scoped to .mock so the Guides page's own
   placeholder, which uses the same component outside a mock, is unaffected. */
@media (max-width: 620px) {
  .mock .video-placeholder > span:not([class]) { display: none; }
}

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar { animation: none; }
}

/* --------------------------------------------------------------------------
   17. Motion hand-off
   js/motion.js sets .has-motion on <html>. From that point Motion owns these
   elements' transforms, so the CSS transition/keyframe versions must stand
   down — a running CSS animation outranks inline styles and would fight it.
   -------------------------------------------------------------------------- */
.has-motion .reveal { transition: none; }
.has-motion .hero .phone { animation: none; }
.has-motion .bar { animation: none; }
.has-motion .device__live::before { animation: pulse 2s infinite; }

/* --------------------------------------------------------------------------
   Bilingual screen stack
   Two overlapping cards, each a miniature of the app's home screen — one in
   English, one in Bangla. Their text is intentionally hard-coded (no
   data-en/data-bn): the point of the pair is that both languages are visible
   at once, so they must not follow the page's language switch.
   -------------------------------------------------------------------------- */
.screen-stack {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 30px 0 38px;
}
.screen-stack > * { grid-area: 1 / 1; }

.app-card {
  position: relative;
  width: min(258px, 74vw);
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.app-card--bn { transform: translate(-84px, -26px) rotate(-6deg); z-index: 1; }
.app-card--en { transform: translate(84px, 26px) rotate(5deg); z-index: 2; }

/* fan the pair apart on hover so both stay readable */
.screen-stack:hover .app-card--bn { transform: translate(-96px, -32px) rotate(-8deg); }
.screen-stack:hover .app-card--en { transform: translate(96px, 32px) rotate(7deg); }

.app-card__flag {
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--lime);
  color: var(--teal-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
}
.app-card--bn .app-card__flag { background: var(--teal); color: #fff; letter-spacing: 0; }

.app-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 2px 12px;
}
.app-card__top img { width: 26px; height: 26px; border-radius: 8px; }
.app-card__top b { display: block; font-size: 13px; letter-spacing: -0.01em; }
.app-card__top small { display: block; font-size: 10px; color: var(--ink-3); }

.app-card__hero {
  position: relative;
  border-radius: 16px;
  padding: 13px 14px 15px;
  background: linear-gradient(150deg, #24707f, #14505c);
  color: #fff;
}
.app-card__hero-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.app-card__rate {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
}
.app-card__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.app-card__amount span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
}

.app-card__insight {
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--lime-tint);
  border-left: 3px solid var(--lime);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-ink);
}

.app-card__rows { margin-top: 9px; display: grid; gap: 2px; }
.app-card__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.app-card__rows li:first-child { border-top: 0; }
.app-card__rows small { display: block; font-size: 9.5px; color: var(--ink-3); }
.app-card__rows b { color: var(--teal); font-size: 12.5px; }

@media (max-width: 620px) {
  .app-card { width: min(250px, 78vw); }
  .app-card--bn { transform: translate(-30px, -16px) rotate(-5deg); }
  .app-card--en { transform: translate(30px, 16px) rotate(4deg); }
  .screen-stack:hover .app-card--bn { transform: translate(-34px, -18px) rotate(-6deg); }
  .screen-stack:hover .app-card--en { transform: translate(34px, 18px) rotate(5deg); }
}
