/*
  nirnoyrx.com
  ------------
  One stylesheet. Tokens first, then the handful of pieces every page is built
  from. Two languages share it: Bangla and English set different faces and a
  different line height, because Bangla's ascenders and matras need the room —
  everything else is the same, so a page cannot drift between languages.
*/

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;

  --ink:      #0A1020;
  --ink-2:    #39435C;
  --ink-3:    #545F75;
  --bg:       #FFFFFF;
  --bg-2:     #F3F6FB;
  --bg-3:     #E8EEF7;
  --line:     #DCE3EF;
  --line-2:   #C2CDE0;

  /* The logo's navy carries text and buttons: 15.9:1 on white. The logo's teal
     is a graphic colour only — at 2.4:1 it cannot hold text on white, so
     --accent-ink is the darkened teal used wherever teal has to be read. */
  --brand:      #011866;
  --brand-deep: #010F42;
  --brand-lift: #16309B;
  --brand-soft: #E7EBF7;

  --accent:      #00BCBA;
  --accent-ink:  #076F6D;
  --accent-soft: #DFF6F6;

  /* Text that sits on a --brand fill, and the deep band that is dark in both
     schemes. Tokens rather than per-rule overrides: a dark-mode override
     written as a bare rule also matches in light mode, which is how the buy
     button ended up navy-on-navy. */
  --on-brand: #FFFFFF;
  --band:     #011866;

  --gold:      #855A10;
  --gold-soft: #FAF0DC;
  --danger:    #A52218;
  --danger-soft:#FBEBE9;

  --radius:    14px;
  --radius-lg: 24px;
  --radius-sm: 9px;

  --shadow-1: 0 1px 2px rgb(10 26 22 / .05), 0 10px 30px -18px rgb(10 26 22 / .28);
  --shadow-2: 0 2px 4px rgb(10 26 22 / .05), 0 26px 60px -30px rgb(10 26 22 / .35);

  --wrap: 1140px;
  --gutter: 20px;

  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --font-display-en: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-display-bn: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:   #E7ECF7;
    --ink-2: #B6C0D6;
    --ink-3: #8D99B3;
    --bg:    #060B1F;
    --bg-2:  #0C1330;
    --bg-3:  #141C3E;
    --line:  #1E2748;
    --line-2:#2C3760;

    /* Navy disappears on a navy-black page, so at night the brand is carried by
       a light indigo and the teal brightens to match. */
    --brand:      #8CA3FF;
    --brand-deep: #C9D6FF;
    --brand-lift: #A9BCFF;
    --brand-soft: #131C42;

    --accent:      #2FD4D1;
    --accent-ink:  #8FEDEB;
    --accent-soft: #0A2A2E;

    --on-brand: #060B1F;
    --band:     #010F42;

    --gold:      #E2B361;
    --gold-soft: #2A2113;
    --danger:    #F19A92;
    --danger-soft:#2B1512;

    --shadow-1: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px -18px rgb(0 0 0 / .8);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .5), 0 26px 60px -30px rgb(0 0 0 / .9);
  }
}
:root[data-theme="dark"] {
  --ink:   #E7ECF7;
  --ink-2: #B6C0D6;
  --ink-3: #8D99B3;
  --bg:    #060B1F;
  --bg-2:  #0C1330;
  --bg-3:  #141C3E;
  --line:  #1E2748;
  --line-2:#2C3760;
  --brand:      #8CA3FF;
  --brand-deep: #C9D6FF;
  --brand-lift: #A9BCFF;
  --brand-soft: #131C42;
  --accent:      #2FD4D1;
  --accent-ink:  #8FEDEB;
  --accent-soft: #0A2A2E;
  --on-brand: #060B1F;
  --band:     #010F42;
  --gold:      #E2B361;
  --gold-soft: #2A2113;
  --danger:    #F19A92;
  --danger-soft:#2B1512;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px -18px rgb(0 0 0 / .8);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .5), 0 26px 60px -30px rgb(0 0 0 / .9);
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="bn"] body { font-family: var(--font-bn); line-height: 1.85; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(h1,h2,h3,h4) { margin: 0 0 .5em; line-height: 1.18; font-weight: 700; letter-spacing: -.015em; }
html[lang="bn"] :where(h1,h2,h3,h4) { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-tinted { background: var(--bg-2); }
/* A page that opens with a title and a sentence needs air above it and not
   much below, or the first real section starts a screen too late. */
.section-hero { padding-block: clamp(44px, 6vw, 86px) clamp(18px, 2.5vw, 30px); }
/* A band that is dark in both schemes, so the colour on it is stated once
   rather than flipped: white-on-deep-green reads the same at night. */
.section-ink { background: var(--band); color: #FFFFFF; }
.section-ink .eyebrow { color: #5FE4E2; }
.section-ink .lede, .section-ink .muted { color: #C9D6FF; }

/* --------------------------------------------------------------- type bits */
.display {
  font-family: var(--font-display-en);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  letter-spacing: -.03em;
  line-height: 1.08;
}
html[lang="bn"] .display { font-family: var(--font-display-bn); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.h2 {
  font-family: var(--font-display-en);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.55rem);
  letter-spacing: -.02em;
}
html[lang="bn"] .h2 { font-family: var(--font-display-bn); font-weight: 700; letter-spacing: 0; }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .9em;
}
html[lang="bn"] .eyebrow { letter-spacing: .04em; text-transform: none; font-size: .88rem; }
.lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.tiny  { font-size: .8rem; }
.mono  { font-family: var(--font-mono); font-size: .88em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-on-ink { background: #fff; color: #011866; }
.btn-on-ink:hover { background: #E7EBF7; }
.btn-ink-ghost { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .42); }
.btn-ink-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-1);
}
.card-flat { box-shadow: none; }
.card-tinted { background: var(--bg-2); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .3em .85em; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-deep);
}
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }

/* ------------------------------------------------------- screenshot frames */
.shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); box-shadow: var(--shadow-2);
}
.shot img { width: 100%; }
.shot-chrome { padding: 9px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot-label { margin-left: auto; font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
.shot-phone {
  max-width: 260px; border-radius: 26px; border: 8px solid var(--ink); background: var(--ink);
  overflow: hidden; box-shadow: var(--shadow-2);
}
.shot-phone img { border-radius: 18px; }
figcaption { font-size: .86rem; color: var(--ink-3); margin-top: .7em; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand svg { flex: none; }
/* Poppins is the face the logo was set in; the wordmark here is live text so it
   can take the page's colours and stay crisp at any zoom. */
.brand-word { font-family: 'Poppins', var(--font-en); font-weight: 700; letter-spacing: -.03em; color: var(--brand); }
.brand-word i { font-style: normal; color: var(--accent-ink); margin-left: .18em; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a { text-decoration: none; padding: .5em .8em; border-radius: 9px; font-size: .96rem; font-weight: 550; color: var(--ink-2); }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.head-actions { display: flex; align-items: center; gap: .5rem; margin-left: .4rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: .3em .75em; font-size: .84rem; text-decoration: none; color: var(--ink-3); font-weight: 600; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: .45em .6em; cursor: pointer; }

/* The buy button appears once in the header on a wide screen and once inside
   the menu on a narrow one, because three controls plus the brand do not fit
   across a phone without the row wrapping — and a wrapped row would put the
   dropdown in the wrong place. */
.nav-buy { display: none; }

@media (max-width: 940px) {
  .site-head { position: sticky; }
  .menu-btn { display: block; order: 3; }
  .nav {
    /* Hung from the header itself, so it lands correctly whatever the header's
       height turns out to be. */
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1.1rem;
    box-shadow: var(--shadow-2); display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .75em .6em; font-size: 1.02rem; }
  .nav-buy { display: inline-flex; margin-top: .7rem; }
  .head-actions { margin-left: auto; order: 2; }
  .head-actions .btn { display: none; }
}

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 68px) 28px; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-grid h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9em; }
html[lang="bn"] .foot-grid h4 { text-transform: none; letter-spacing: .03em; font-size: .92rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45em; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.foot-grid a:hover { color: var(--brand); text-decoration: underline; }
.foot-base { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; font-size: .87rem; color: var(--ink-3); }
.pay-marks { display: flex; gap: .6rem; align-items: center; margin-left: auto; }
.pay-mark { height: 26px; width: auto; border-radius: 5px; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(30px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-glow { position: absolute; inset: auto; pointer-events: none; z-index: -1; }

/* --------------------------------------------------------------- features */
.feature-row { display: grid; gap: clamp(26px, 4.5vw, 62px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature-row + .feature-row { margin-top: clamp(46px, 7vw, 92px); }
.feature-row.flip > :first-child { order: 2; }
@media (max-width: 760px) { .feature-row.flip > :first-child { order: 0; } }
.feature-list { list-style: none; margin: 1.2em 0 0; padding: 0; }
.feature-list li { position: relative; padding-left: 1.85em; margin-bottom: .7em; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 1.05em; height: 1.05em;
  border-radius: 50%; background: var(--brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.feature-list li::after {
  content: ""; position: absolute; left: .31em; top: .76em; width: .42em; height: .22em;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
html[lang="bn"] .feature-list li::before { top: .62em; }
html[lang="bn"] .feature-list li::after { top: .86em; }

.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 1rem; }
.icon-tile.gold { background: var(--gold-soft); color: var(--gold); }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------- comparison */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .95rem; }
table.compare th, table.compare td { padding: .85em 1em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { position: sticky; top: 0; background: var(--bg-2); font-size: .86rem; letter-spacing: .02em; z-index: 1; }
table.compare tbody th { font-weight: 600; color: var(--ink-2); }
table.compare .ours { background: var(--brand-soft); }
table.compare thead .ours { background: var(--brand); color: var(--on-brand); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; }
.yes { color: var(--brand); } .no { color: var(--ink-3); } .part { color: var(--gold); }
.source-note { font-size: .82rem; color: var(--ink-3); margin-top: .9rem; }

/* ----------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); align-items: start; }
.price-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-2); }
.price-card.featured::before {
  content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand); font-size: .78rem; font-weight: 700; padding: .3em 1em; border-radius: 999px; white-space: nowrap;
}
.price-amount { font-family: var(--font-display-en); font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
html[lang="bn"] .price-amount { font-family: var(--font-display-bn); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 1.2rem 0; padding: 0; flex: 1; }
.price-card li { position: relative; padding-left: 1.6em; margin-bottom: .55em; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price-card li.off { color: var(--ink-3); }
.price-card li.off::before { content: "–"; color: var(--ink-3); }

/* --------------------------------------------------------------------- faq */
details.faq { border-bottom: 1px solid var(--line); padding: .3em 0; }
details.faq summary { cursor: pointer; padding: 1em 2.2em 1em 0; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: .35em; top: 1.5em; width: .6em; height: .6em;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { details.faq summary::after { transition: none; } }
details.faq .faq-body { padding-bottom: 1.1em; color: var(--ink-2); max-width: 70ch; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35em; }
.field .hint { font-size: .84rem; color: var(--ink-3); margin-top: .3em; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .72em .9em; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field :is(input,select,textarea):focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.bad :is(input,select,textarea) { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .86rem; margin-top: .3em; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 1.05rem; }
legend { font-weight: 650; font-size: .92rem; padding-inline: .4em; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .8em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: .6em; }
.choice:hover { border-color: var(--line-2); }
.choice input { margin-top: .35em; flex: none; width: auto; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.notice { padding: .9em 1.1em; border-radius: var(--radius-sm); border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--ink); }
.notice.warn { border-color: var(--gold); background: var(--gold-soft); }
.notice.bad  { border-color: var(--danger); background: var(--danger-soft); }

/* -------------------------------------------------------------------- docs */
.doc-layout { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-nav { position: sticky; top: 86px; font-size: .94rem; }
@media (max-width: 860px) { .doc-nav { position: static; } }
.doc-nav h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 1.4em 0 .55em; }
html[lang="bn"] .doc-nav h4 { text-transform: none; letter-spacing: .03em; font-size: .9rem; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav a { display: block; padding: .38em .7em; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.doc-nav a:hover { background: var(--bg-2); }
.doc-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.doc-body { max-width: 74ch; }
.doc-body h2 { margin-top: 1.9em; }
.doc-body h3 { margin-top: 1.5em; }
.doc-body ol, .doc-body ul { padding-left: 1.4em; }
.doc-body li { margin-bottom: .45em; }
.doc-body code { background: var(--bg-2); padding: .15em .4em; border-radius: 5px; font-family: var(--font-mono); font-size: .88em; }
.doc-body figure { margin: 1.6em 0; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.doc-body th, .doc-body td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6em; margin-bottom: 1.1em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.05em;
  width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: .82em; font-weight: 700;
}

/* ------------------------------------------------------------------ status */
.status { display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 999px; font-size: .82rem; font-weight: 650; }
.status-open    { background: var(--gold-soft); color: var(--gold); }
.status-answered{ background: var(--brand-soft); color: var(--brand-deep); }
.status-closed  { background: var(--bg-3); color: var(--ink-3); }
.thread { border-left: 3px solid var(--line); padding-left: 1.1rem; margin-bottom: 1.4rem; }
.thread.them { border-color: var(--brand); }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------------- misc */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--on-brand);
  padding: .7em 1.2em; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }
:target { scroll-margin-top: 92px; }
[id] { scroll-margin-top: 92px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(34px, 5vw, 60px) 0; }
.kicker-num { font-family: var(--font-display-en); font-size: 2.4rem; font-weight: 650; color: var(--brand); line-height: 1; }
html[lang="bn"] .kicker-num { font-family: var(--font-display-bn); }

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

/* ------------------------------------------------- the phone slider */
/* One frame, the screens turning over inside it. Sized by its first slide so
   the page does not jump as the pictures change. */
.phones { max-width: 268px; margin-inline: auto; }
.ph-frame {
  position: relative; border-radius: 28px; border: 9px solid var(--ink);
  background: var(--ink); overflow: hidden; box-shadow: var(--shadow-2);
  aspect-ratio: 420 / 880;
}
.ph-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .55s ease; }
.ph-slide.on { opacity: 1; }
.ph-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 19px; }
@media (prefers-reduced-motion: reduce) { .ph-slide { transition: none; } }
.ph-caption { margin: .9rem 0 .5rem; text-align: center; min-height: 1.4em; }
.ph-dots { display: flex; gap: .45rem; justify-content: center; }
.ph-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--line-2); transition: background .2s ease, transform .2s ease;
}
.ph-dot.on { background: var(--brand); transform: scale(1.25); }
.ph-dot:hover { background: var(--brand); }

/* ---------------------------------------------------------- the assistant */
/* Full screen on a phone, a floating panel on a laptop — the same shape as the
   SiteQis widget, because it is a shape people have already learned. */
.nrx-chat { position: fixed; inset: auto 20px 20px auto; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.nrx-launch {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .72em 1.15em; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-weight: 650; font-size: .95rem;
  box-shadow: 0 6px 24px -8px rgb(1 24 102 / .55), 0 2px 6px rgb(1 24 102 / .22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.nrx-launch:hover { transform: translateY(-2px); }
.nrx-chat.on .nrx-launch { display: none; }
@media (prefers-reduced-motion: reduce) { .nrx-launch { transition: none; } .nrx-launch:hover { transform: none; } }

.nrx-panel {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(92vw, 430px); height: min(72vh, 600px);
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 70px -28px rgb(1 24 102 / .5), 0 4px 14px rgb(10 16 32 / .1);
}
@media (min-width: 1200px) { .nrx-panel { width: min(92vw, 520px); height: min(78vh, 660px); } }
@media (max-width: 640px) {
  .nrx-chat { inset: 0 auto auto 0; width: 100%; gap: 0; }
  .nrx-chat:not(.on) { inset: auto 16px 16px auto; width: auto; }
  .nrx-panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

.nrx-head { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.nrx-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.nrx-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nrx-who strong { font-size: .95rem; }
.nrx-sub { font-size: .78rem; color: var(--ink-3); }
.nrx-icon { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: .4em; border-radius: 9px; display: grid; place-items: center; }
.nrx-icon + .nrx-icon { margin-left: 0; }
.nrx-icon:hover { background: var(--bg-3); color: var(--ink); }
.nrx-icon.on { color: var(--brand); background: var(--brand-soft); }

.nrx-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .nrx-log { scroll-behavior: auto; } }
.nrx-row { display: flex; flex-direction: column; max-width: 86%; }
.nrx-row.nrx-you { align-self: flex-end; align-items: flex-end; }
.nrx-bubble { padding: .6em .9em; border-radius: 16px; font-size: .93rem; line-height: 1.6; white-space: pre-line; }
.nrx-assistant .nrx-bubble { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.nrx-you .nrx-bubble { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; }

.nrx-thinking .nrx-bubble { display: flex; gap: 4px; align-items: center; padding: .85em .9em; }
.nrx-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; animation: nrxdot 1.2s infinite; }
.nrx-thinking span:nth-child(2) { animation-delay: .15s; }
.nrx-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes nrxdot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nrx-thinking span { animation: none; } }

.nrx-pay { margin-top: .55rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.nrx-paybtn {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  background: var(--brand); color: var(--on-brand); font-weight: 650; font-size: .9rem;
  padding: .6em 1.1em; border-radius: 999px;
}
.nrx-paybtn:hover { background: var(--brand-deep); color: var(--bg); }
.nrx-payno { font-size: .76rem; color: var(--ink-3); }

.nrx-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.nrx-chip {
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: .42em .9em; font-size: .84rem; cursor: pointer; text-align: start;
}
.nrx-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.nrx-ask { display: flex; align-items: center; gap: .45rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--bg); }
.nrx-input { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 999px; padding: .6em 1em; background: var(--bg); font-size: .92rem; }
.nrx-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.nrx-mic, .nrx-send {
  width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.nrx-send { background: var(--brand); color: var(--on-brand); }
.nrx-mic:hover { background: var(--brand); color: var(--on-brand); }
.nrx-mic.on { background: var(--danger); color: #fff; animation: nrxpulse 1.3s infinite; }
@keyframes nrxpulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(165 34 24 / .45); } 50% { box-shadow: 0 0 0 7px rgb(165 34 24 / 0); } }
@media (prefers-reduced-motion: reduce) { .nrx-mic.on { animation: none; } }
.nrx-voicelang {
  flex: none; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-3);
  border-radius: 999px; padding: .3em .6em; font-size: .74rem; cursor: pointer; font-weight: 600;
}
.nrx-voicelang:hover { border-color: var(--brand); color: var(--brand); }

/* A `display` of our own beats the browser's rule for [hidden], which is why
   the chips stayed on screen after the first question. Said once, for every
   part of the widget that is shown and hidden. */
.nrx-chat [hidden], .nrx-chat[hidden] { display: none; }

/* ------------------------------------------------------- back to top */
/* Sits above the assistant's launcher rather than beside it, and below it in
   stacking order — the conversation is the thing in front. */
.to-top {
  position: fixed; right: 20px; bottom: 82px; z-index: 9990;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 14px -6px rgb(10 16 32 / .3);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.to-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } .to-top:hover { transform: none; } }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 74px; } }
