/* Dokandar product website.
   Colour chapters: every section is one flat field from the Dokandar brand (the mark's navy and green, the
   app's paper frame, the mint of its tints). One typeface, IBM Plex Sans, as in the app; its Bengali
   companion sets Bangla. Interface fragments (data-ui) follow the app's own look. */

:root {
  /* brand fields */
  --navy: #12263a;        /* the mark's first bar */
  --navy-deep: #0c1a28;
  --navy-step: #1b3349;
  --green: #02805e;       /* the mark's second bar, the app's accent */
  --green-deep: #01614a;
  --bright: #34c38f;      /* the mark's green as it sits on navy */
  --mint: #e3f1ec;        /* the app's accent tint */
  --mint-2: #d2e8df;
  --mint-3: #bfdccf;
  --paper: #f5f7f8;       /* the app's frame */
  --white: #ffffff;
  --ink: #131416;

  /* app fragment tokens (from the ERP's globals.css) */
  --ui-line: #e6e8eb;
  --ui-rule: #eff1f2;
  --ui-muted: #5b5e62;
  --ui-raised: #f4f6f8;
  --ok: #1e7b4f; --ok-soft: #dcf5e6;
  --bad: #c4242a; --bad-soft: #ffece9;
  --warn: #92400e; --warn-soft: #fff6e0;
  --info: #2f70bb; --info-soft: #e8f0fb;

  --font: "IBM Plex Sans", "Noto Sans Bengali", ui-sans-serif, system-ui, sans-serif;
  --font-bn: "Noto Sans Bengali", "IBM Plex Sans", sans-serif;

  /* five steps */
  --step-small: 0.9375rem;                                   /* 15 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);     /* 17–20 */
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);    /* 22–30 */
  --step-head: clamp(2.25rem, 0.9rem + 3.3vw, 3.875rem);     /* 36–62 */
  --step-display: clamp(3rem, 0.8rem + 6.6vw, 7rem);         /* 48–112 */

  --margin: clamp(1rem, 3vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --pad: clamp(5rem, 9vw, 9.5rem);
  --radius: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--bright); color: var(--navy); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
[lang="bn"], .bn { font-family: var(--font-bn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
.wrap { padding-inline: var(--margin); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--radius); background: var(--green); color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--green-deep); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- chapters ---------- */
.chapter { position: relative; min-height: 90svh; }

/* =================================================================
   HERO: a dark field, the title, and a stack of folders
   ================================================================= */
.hero { background: var(--navy); color: var(--white); padding-top: 1.25rem; overflow: clip; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 3rem; font-size: var(--step-small); }
.bar__links { justify-self: start; }
.bar__signin { justify-self: end; font-weight: 600; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 1.75rem; height: 1.75rem; }
.mark__a { fill: #e4ebf1; }
.mark__b { fill: var(--bright); }

.hero__words { text-align: center; padding-top: clamp(1.5rem, 4vh, 3.5rem); }
.hero__title { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.04em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.hero__lead { max-width: 52ch; text-wrap: balance; margin: 1.25rem auto 0; font-size: var(--step-body); line-height: 1.5; color: #e4ebf1; }

.folders { --off: 26px; --tab: 40px; display: flow-root; position: relative; width: 86vw; margin: calc(1.75rem + var(--tab)) auto 0; }
.folder { position: absolute; inset: calc(var(--n) * var(--off)) 0 auto 0; height: 600px; border-radius: 0 var(--radius) 0 0; text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.folder__tab { position: absolute; bottom: 100%; height: var(--tab); display: flex; align-items: center; padding: 0 2.25rem 0 1.4rem; background: inherit; color: inherit; font-size: var(--step-small); font-weight: 600; white-space: nowrap;
  clip-path: polygon(0 100%, 0 0, calc(100% - 26px) 0, 100% 100%); border-radius: var(--radius) 0 0 0; }
.folder--1 { background: var(--white); color: var(--navy); }
.folder--1 .folder__tab { left: 0; }
.folder--2 { background: var(--green); color: var(--white); }
.folder--2 .folder__tab { left: 21%; }
.folder--3 { background: var(--mint); color: var(--navy); }
.folder--3 .folder__tab { left: 42%; }
.folder--4 { background: var(--bright); color: var(--navy); }
.folder--4 .folder__tab { left: 63%; }
.folder--front { position: relative; inset: auto; height: auto; margin-top: calc(4 * var(--off)); background: var(--paper); color: var(--navy); padding: 0.5rem 0.5rem 0; border-radius: 0; }
.folder--front .folder__tab { left: 0; }
.folder__act { position: absolute; right: 0; bottom: 100%; }
.folder__act .button { height: var(--tab); min-height: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--green); clip-path: polygon(0 100%, 18px 0, 100% 0, 100% 100%); padding-left: 2rem; }
.folder__shot { overflow: clip; }
.folder__shot img { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  a.folder:hover { transform: translateY(-6px); }
  .folder__act .button:hover { background: var(--green-deep); }
}

/* =================================================================
   1. FIVE TOOLS: staircase statement
   ================================================================= */
.tools { background: var(--paper); color: var(--navy); min-height: 100svh; display: flex; align-items: center; padding-block: var(--pad); }
.tools__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); width: 100%; align-items: start; }
.tools__text { grid-column: 1 / span 9; }
.stair { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: var(--step-head); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.stair li:nth-child(1) { padding-left: 0; }
.stair li:nth-child(2) { padding-left: 4vw; color: var(--green); }
.stair li:nth-child(3) { padding-left: 8vw; }
.stair li:nth-child(4) { padding-left: 12vw; color: var(--green); }
.stair li:nth-child(5) { padding-left: 16vw; }
.tools__note { max-width: 44ch; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tools__pics { grid-column: 10 / span 3; display: grid; gap: 1rem; padding-top: 0.5rem; }
.pic { margin: 0; }
.pic img, .pic video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--mint-3); }
.pic figcaption { margin-top: 0.5rem; font-size: var(--step-small); color: #33475a; }

/* =================================================================
   2. THE COUNTER: input half, output half
   ================================================================= */
.counter { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.counter__in, .counter__out { position: relative; padding: clamp(2.5rem, 7svh, 5rem) var(--margin) 7.5rem; }
.counter__in { background: var(--navy-deep); color: var(--white); }
.counter__out { background: var(--white); color: var(--navy); display: flex; flex-direction: column; align-items: center; }
.counter__inbox { max-width: 36ch; margin-left: calc((100% - 0px) / 12); }
.counter__label { display: block; font-size: var(--step-small); font-weight: 600; color: #c5d3df; margin-bottom: 0.6rem; }
.counter__order { display: block; width: 100%; min-height: 10.5em; resize: vertical; padding: 1rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--navy-step); color: var(--white); font-size: var(--step-body); line-height: 1.55; caret-color: var(--bright); }
.counter__order:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.counter__help { margin-top: 0.75rem; font-size: var(--step-small); color: #c5d3df; }
.counter__try { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: var(--step-small); color: #c5d3df; }
.counter__try button { color: var(--bright); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.counter__points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; max-width: 40rem; margin: 2rem 0 0 calc(100% / 12); font-size: var(--step-small); color: #dce5ec; }
.counter__points b { display: block; color: var(--white); font-weight: 600; }
.counter__head { position: absolute; bottom: 2rem; margin: 0; }
.counter__head--a { left: var(--margin); }
.counter__head--b { right: var(--margin); font-weight: 700; }
.counter__head-b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.counter__lang { display: flex; align-items: center; gap: 0.25rem; width: min(100%, 32.5rem); margin-bottom: 0.75rem; font-size: var(--step-small); }
.counter__lang span { margin-right: 0.5rem; color: var(--ui-muted); }
.seg { min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius); background: var(--paper); color: var(--navy); font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg[data-lang="bn"] { font-family: var(--font-bn); }
.seg[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg:active { transform: scale(0.97); }

/* the invoice, as Dokandar prints it (an app fragment: its own lines and sizes) */
.inv { width: min(100%, 32.5rem); background: var(--white); border: 1px solid var(--ui-line); border-radius: 8px; padding: 1.75rem 1.75rem 1.5rem; font-size: 13px; line-height: 1.45; color: var(--ink); font-variant-numeric: tabular-nums; } /* taste-skill-ignore: the app's printed invoice */
.inv[lang="bn"] { font-family: var(--font-bn); }
.inv__top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--navy); }
.inv__co b { display: block; font-size: 16px; }
.inv__co span { display: block; color: var(--ui-muted); font-size: 12px; }
.inv__no { text-align: right; }
.inv__no b { display: block; font-size: 20px; letter-spacing: 0.02em; }
.inv__no span { display: block; font-size: 12px; color: var(--ui-muted); }
.inv__no strong { display: block; font-size: 12.5px; }
.inv__to { display: flex; justify-content: space-between; gap: 1rem; margin: 0.9rem 0; font-size: 12.5px; }
.inv__to b { display: block; font-size: 14px; }
.inv__to span { color: var(--ui-muted); }
.inv table { width: 100%; border-collapse: collapse; }
.inv th { font-weight: 600; text-align: left; font-size: 12px; padding: 0.45rem 0.35rem; background: var(--ui-raised); border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); }
.inv td { padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--ui-rule); vertical-align: top; }
.inv td small { display: block; color: var(--ui-muted); font-size: 11.5px; }
.inv .r { text-align: right; white-space: nowrap; }
.inv__miss td { color: var(--warn); background: var(--warn-soft); }
.inv__sum { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: 0.9rem; }
.inv__words { font-size: 12px; }
.inv__words b { display: block; }
.inv__words i { font-style: italic; }
.inv__tot { min-width: 13rem; }
.inv__tot div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.15rem 0; }
.inv__tot .grand { margin: 0.35rem 0; padding: 0.4rem 0.5rem; background: var(--navy); color: var(--white); font-weight: 700; font-size: 14px; border-radius: 3px; }
.inv__tot .due { font-weight: 700; }
.inv__tot .due.is-due { color: var(--bad); }
.inv__pay { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid var(--ui-rule); font-size: 12px; color: var(--ui-muted); } /* taste-skill-ignore: invoice rule */
.inv__foot { margin-top: 0.9rem; text-align: center; font-size: 11.5px; color: var(--ui-muted); }

/* =================================================================
   3. THE SHELF: four cards dealt into a fan
   ================================================================= */
.shelf { background: var(--green); color: var(--white); }
.shelf__intro { position: relative; z-index: 2; padding-top: clamp(4rem, 10svh, 7rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.shelf__intro h2 { grid-column: 1 / span 7; }
.shelf__intro p { grid-column: 1 / span 5; margin-top: 1rem; max-width: 42ch; }
.fan { position: relative; height: 470px; margin: 3rem auto 0; width: min(1090px, 100% - 2 * var(--margin)); }
.card { position: absolute; top: 0; left: calc(var(--k) * 250px); width: 340px; min-height: 440px; padding: 28px; border-radius: 20px; transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%; }
.card > * { max-width: 212px; }
.card h3 { font-size: var(--step-lead); line-height: 1.08; letter-spacing: -0.02em; min-height: 2.2em; }
.card img { width: 212px; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; margin: 1.25rem 0; border-radius: 4px; background: var(--white); }
.card p { font-size: var(--step-small); line-height: 1.45; }
.card--1 { --r: -3deg; background: var(--white); color: var(--navy); }
.card--2 { --r: -1deg; background: var(--mint-3); color: var(--navy); }
.card--3 { --r: 1.5deg; background: var(--navy); color: var(--white); }
.card--4 { --r: 3.5deg; background: var(--bright); color: var(--navy); }
.shelf { padding-bottom: 5rem; }
/* pinned and dealt (set by site.js when motion is welcome and the screen is wide) */
.shelf.is-pinned { height: 200svh; padding-bottom: 0; }
.shelf.is-pinned .shelf__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.shelf.is-pinned .fan { margin-top: 2.5rem; }

/* =================================================================
   4. THE BACK OFFICE: index with preview
   ================================================================= */
.office { background: var(--mint); color: var(--navy); padding-block: var(--pad); }
.office__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.office__top h2 { grid-column: 1 / span 7; }
.office__top p { grid-column: 8 / span 5; max-width: 44ch; }
.index { position: relative; }
.index__row { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 0; text-decoration: none; transition: opacity var(--t-hover) ease; }
.index__name { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.index__text { max-width: 58ch; }
.index__thumb { order: -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: var(--radius); margin-bottom: 0.75rem; }
.index__frame { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .index__list { max-width: 50%; }
  .index__thumb { display: none; }
  .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.4; }
  .index__frame { display: block; position: absolute; top: 0; right: 0; width: 46%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper); pointer-events: none; clip-path: inset(0 0 0 0); transition: transform 360ms var(--ease-out); }
  .index__frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: opacity var(--t-ui) ease; }
  .index__frame img.is-swapping { opacity: 0; }
}

/* =================================================================
   5. SEARCH: the headline you can type
   ================================================================= */
.search { background: var(--navy); color: var(--white); padding-block: var(--pad); }
.search__below { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 3rem; align-items: start; }
.search__below .search__answer { grid-column: 1 / span 6; margin-top: 0; }
.search__side { grid-column: 8 / span 5; }
.search__side .search__try { margin-top: 0; }
.search__box { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.search__input { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--white); font-size: clamp(3rem, 1rem + 7vw, 8.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; caret-color: transparent; -webkit-appearance: none; appearance: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:focus-visible { outline: 2px solid var(--bright); outline-offset: 6px; border-radius: 4px; }
.search__caret { position: absolute; top: 0.12em; left: 0; width: 0.08em; height: 0.92em; background: var(--bright); font-size: clamp(3rem, 1rem + 7vw, 8.25rem); pointer-events: none; animation: caret 1.05s steps(1) infinite; }
.search__measure { position: absolute; visibility: hidden; white-space: pre; font-size: clamp(3rem, 1rem + 7vw, 8.25rem); font-weight: 700; letter-spacing: -0.04em; }
@keyframes caret { 50% { opacity: 0; } }
.search__answer { width: 100%; min-height: 12rem; }
.pal { background: var(--white); color: var(--ink); border-radius: 8px; padding: 0.5rem; font-size: 15px; line-height: 1.4; }
.pal__group { padding: 0.5rem 0.75rem 0.25rem; font-size: 12px; font-weight: 600; color: var(--ui-muted); }
.pal__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.55rem 0.75rem; border-radius: 6px; }
.pal__row:first-of-type { background: var(--ui-raised); }
.pal__row b { display: block; font-weight: 600; }
.pal__row span { color: var(--ui-muted); font-size: 12.5px; }
.pal__row em { font-style: normal; font-weight: 600; white-space: nowrap; text-align: right; }
.pal__row em small { display: block; font-weight: 400; color: var(--ui-muted); font-size: 12px; }
.pal__row mark { background: #fff0b8; color: inherit; border-radius: 2px; }
.pal__none { padding: 1rem 0.75rem; color: var(--ui-muted); }
.chip { display: inline-block; padding: 0.1em 0.5em; border-radius: 4px; font-size: 12px; font-weight: 600; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--info { background: var(--info-soft); color: var(--info); }
.search__try { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.5rem; margin-top: 2.5rem; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.search__try span { flex-basis: 100%; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; }
.search__try span { color: #c5d3df; }
.search__try button { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--bright); text-underline-offset: 0.25em; text-decoration-thickness: 2px; transition: color var(--t-hover) ease; }
.search__note { margin-top: 2rem; max-width: 44ch; color: #dce5ec; }
@media (hover: hover) and (pointer: fine) { .search__try button:hover { color: var(--bright); } }

/* =================================================================
   6. MADE FOR BANGLADESH: close-ups on a board
   ================================================================= */
.local { background: var(--bright); color: var(--navy); padding: var(--pad) var(--margin); }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.tile__cap { position: relative; z-index: 1; padding: 0 20px 18px; font-size: var(--step-small); line-height: 1.4; max-width: 34ch; }
.tile__cap b { display: block; font-size: var(--step-body); font-weight: 600; }
.zoom { position: absolute; inset: 0; pointer-events: none; }
.tile--head { grid-column: span 6; grid-row: span 2; background: var(--navy); color: var(--white); justify-content: flex-start; padding: 20px 24px; }
.tile--sms { grid-column: span 6; grid-row: span 2; background: var(--white); }
.tile--bangla { grid-column: span 6; grid-row: span 4; background: var(--paper); }
.tile--taka { grid-column: span 3; grid-row: span 4; background: var(--green); color: var(--white); }
.tile--zk { grid-column: span 3; grid-row: span 4; background: var(--mint); }
.tile--wallet { grid-column: span 3; grid-row: span 2; background: var(--navy); color: var(--white); }
.tile--courier { grid-column: span 3; grid-row: span 2; background: var(--white); }
.tile--words { grid-column: span 6; grid-row: span 2; background: var(--green-deep); color: var(--white); }
.tile--bangla img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; }
.tile--bangla .tile__cap { padding-top: 14px; }
/* enlarged pieces of the interface, pushed off-centre and cropped by the tile */
.bubble { position: absolute; top: 18px; left: 46%; width: 34em; padding: 0.9em 1.1em; border-radius: 1em 1em 1em 0.2em; background: var(--mint); color: var(--navy); font-size: 22px; line-height: 1.45; font-family: var(--font-bn); }
.fig { position: absolute; top: 30px; left: 20px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.punch { position: absolute; top: 18px; left: 22px; font-size: 104px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile--zk .chip { position: absolute; top: 140px; left: 26px; font-size: 34px; padding: 0.15em 0.55em; border-radius: 8px; }
.pay { position: absolute; left: 20px; display: flex; gap: 0.6em; align-items: baseline; font-size: 30px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay:nth-child(1) { top: 14px; }
.pay:nth-child(2) { top: 58px; left: 60px; opacity: 0.85; }
.pay i { font-style: normal; padding: 0.05em 0.45em; border-radius: 6px; background: #e2136e; color: var(--white); font-size: 0.8em; }
.pay:nth-child(2) i { background: #f6921e; color: var(--navy); }
.tile--courier .chip { position: absolute; font-size: 28px; padding: 0.15em 0.5em; border-radius: 8px; }
.tile--courier .chip--info { top: 16px; left: 20px; }
.tile--courier .chip--ok { top: 16px; left: 210px; }
.words { position: absolute; top: 18px; left: 24px; right: 24px; font-size: 40px; line-height: 1.2; font-weight: 600; color: var(--bright); }

/* =================================================================
   7. CONTROL: inset panel, shaped picture
   ================================================================= */
.control { background: var(--paper); padding: 20px; }
.panel { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M20 945 315 512 565 396 358 945Z'/%3E%3Cpath d='M407 945 733 168 980 54 805 945Z'/%3E%3C/svg%3E"); position: relative; display: grid; grid-template-columns: 58% 1fr; min-height: calc(96svh - 40px); border-radius: var(--radius); overflow: hidden; background: var(--green-deep); color: #e9f5f0; }
.panel__left { position: relative; padding: 56px; padding-bottom: 0; display: flex; flex-direction: column; }
.panel__left h2 { max-width: 12ch; color: var(--white); }
.panel__pic { margin: auto 0 -7vw -1vw; width: min(46vw, 680px); aspect-ratio: 1; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.panel__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.panel__right { padding: 56px 56px 56px 0; display: flex; flex-direction: column; gap: 3.5rem; align-items: flex-start; max-width: 26rem; }
.panel__right h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; color: var(--white); margin-bottom: 0.6rem; }
.panel .button { background: var(--bright); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .panel .button:hover { background: #5ad6a8; } }

/* =================================================================
   8. THE GUIDE: cards that fold into spines
   ================================================================= */
.guide { background: var(--green); color: var(--white); padding-block: var(--pad); }
.guide__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.guide__top h2 { grid-column: 1 / span 7; }
.guide__top p { grid-column: 8 / span 5; max-width: 44ch; }
.deck { display: grid; gap: 12px; margin-top: 3rem; }
.spine { position: relative; border-radius: var(--radius); color: var(--navy); background: var(--mint); overflow: hidden; }
.spine[style*="--t:1"] { background: var(--mint-2); }
.spine[style*="--t:2"] { background: var(--mint-3); }
.spine__btn { display: none; }
.spine__body { padding: 32px; display: flex; flex-direction: column; height: 100%; }
.spine h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; }
.spine__body > p:not(.spine__foot) { margin-top: 0.9rem; max-width: 40ch; }
.spine__foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; font-weight: 600; }
.guide__more { margin-top: 2.5rem; max-width: 70ch; }
/* wide screens: one open card among book spines (set by site.js) */
.deck.is-spines { display: flex; gap: 8px; height: 380px; }
.deck.is-spines .spine { flex: 0 0 96px; }
.deck.is-spines .spine.is-open { flex: 1 1 auto; }
.deck.is-spines .spine__btn { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding: 24px 0; color: var(--navy); font-weight: 700; transition: background-color var(--t-hover) ease; }
.deck.is-spines .spine.is-open .spine__btn { display: none; }
.deck.is-spines .spine:not(.is-open) .spine__body { display: none; }
.deck.is-spines .spine.is-open .spine__body { animation: rise 420ms var(--ease-out) both; }
.spine__title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--step-body); line-height: 1.15; max-height: 290px; text-align: left; }
.spine__min { font-size: var(--step-small); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .deck.is-spines .spine__btn:hover { background: var(--white); } }
@media (prefers-reduced-motion: reduce) { .deck.is-spines .spine.is-open .spine__body { animation: none; } }

/* =================================================================
   9. HOW IT STARTS: stages as one bar
   ================================================================= */
.steps { background: var(--white); color: var(--navy); padding-block: var(--pad); min-height: auto; }
.steps__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 4rem; }
.steps__top h2 { grid-column: 1 / span 7; }
.steps__top p { grid-column: 8 / span 5; max-width: 44ch; }
.bar-steps { display: flex; gap: 6px; }
.bar-steps li { flex: var(--g) 1 0; min-width: 15%; }
.bar-steps b { display: block; height: 22vh; min-height: 9rem; padding: 20px; border-radius: var(--radius); font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.bar-steps span { display: block; max-width: 24ch; margin-top: 1rem; padding-right: 0.5rem; }
.seg-1 b { background: var(--navy); color: var(--white); }
.seg-2 b { background: var(--green); color: var(--white); }
.seg-3 b { background: var(--bright); color: var(--navy); }
.seg-4 b { background: var(--mint); color: var(--navy); }

/* =================================================================
   10. PRICE: the ticket
   ================================================================= */
.price { background: var(--navy); color: var(--white); padding-block: var(--pad); }
.ticket { position: relative; display: grid; grid-template-columns: 7fr 3fr; width: min(64vw, 1000px); min-width: min(100%, 860px); aspect-ratio: 2.3; margin: 0 auto; border-radius: var(--radius); background: var(--mint); color: var(--navy); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 70%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--navy); }
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket__main { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.ticket__title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.ticket__lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.5rem; }
.ticket__stub { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.25rem; padding: 32px 24px; text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16'%3E%3Ccircle cx='3' cy='8' r='3' fill='%2312263a'/%3E%3C/svg%3E"); background-size: 6px 16px; background-repeat: repeat-y; background-position: -3px top; }
.ticket__price { display: flex; flex-direction: column; align-items: center; }
.ticket__amount { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket__per { font-size: var(--step-small); font-weight: 600; margin-top: 0.4rem; }
.ticket__words { min-height: 2.8em; font-size: var(--step-small); line-height: 1.4; }
.ticket__words span { display: block; font-family: var(--font-bn); }
.ticket__go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 1rem; border-radius: var(--radius); background: var(--green); color: var(--white); font-weight: 600; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ticket__go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ticket__go:hover { background: var(--green-deep); } }
.addons { width: min(64vw, 1000px); min-width: min(100%, 860px); margin: 4.5rem auto 0; }
.addons__head { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.5rem; }
.addons__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.addon { position: relative; display: flex; flex-direction: column; gap: 0.4rem; width: 100%; height: 100%; min-height: 9rem; padding: 18px 18px 18px; text-align: left; border-radius: var(--radius); background: var(--navy-step); color: var(--white); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.addon b { font-size: var(--step-body); font-weight: 600; padding-right: 1.75rem; }
.addon span { font-size: var(--step-small); line-height: 1.4; color: #c5d3df; }
.addon::after { content: "+"; position: absolute; top: 14px; right: 16px; font-size: 1.375rem; line-height: 1; font-weight: 600; color: var(--bright); }
.addon[aria-pressed="true"] { background: var(--bright); color: var(--navy); }
.addon[aria-pressed="true"] span { color: var(--navy); }
.addon[aria-pressed="true"]::after { content: "−"; color: var(--navy); }
.addon:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .addon[aria-pressed="false"]:hover { background: #24405a; } }
.addons__note { margin-top: 1.5rem; color: #c5d3df; font-size: var(--step-small); }

/* =================================================================
   11. QUESTIONS: accordion of filled tiles
   ================================================================= */
.faq { background: var(--paper); color: var(--navy); padding-block: var(--pad); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq__title { grid-column: 1 / span 4; position: sticky; top: 96px; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { border-radius: var(--radius); background: var(--white); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 18px 64px 18px 24px; font-size: var(--step-body); font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--green); color: var(--white); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 52ch; padding: 0 24px 24px; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { background: var(--mint); border-radius: var(--radius); } }

/* =================================================================
   12. JOIN: a sentence with a blank
   ================================================================= */
.join { background: var(--green); color: var(--white); display: flex; align-items: center; padding-block: var(--pad); min-height: 80svh; }
.join__form { width: 100%; }
.join__sentence { font-size: var(--step-display); line-height: 1.15; letter-spacing: -0.04em; font-weight: 700; max-width: 11.5em; }
.join__field { display: inline-block; width: 6.5em; height: 1.08em; padding: 0 0.2em; margin: 0 0.05em; vertical-align: -0.16em; border: 0; border-radius: var(--radius); background: var(--green-deep); color: var(--white); font: inherit; letter-spacing: -0.03em; }
.join__field::placeholder { color: #8fcbb6; opacity: 1; }
.join__field:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
.join__go { display: inline-block; height: 1.08em; padding: 0 0.25em; vertical-align: -0.16em; border-radius: var(--radius); background: var(--bright); color: var(--navy); font: inherit; letter-spacing: -0.03em; line-height: 1.08; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.join__go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .join__go:hover { background: #5ad6a8; } }
.join__after { margin-top: 2rem; max-width: 52ch; color: #e1f3ec; }

/* =================================================================
   FOOTER: the name first
   ================================================================= */
.foot { background: var(--navy); color: var(--white); padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.foot__name { padding-inline: var(--margin); font-size: 21.5vw; font-weight: 700; letter-spacing: -0.055em; line-height: 0.82; color: var(--white); white-space: nowrap; }
.foot__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 72px; }
.foot__places { grid-column: 1 / span 5; display: grid; gap: 0.4rem; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; color: var(--bright); }
.foot__cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); font-size: var(--step-small); }
.foot__cols h3 { font-size: var(--step-small); font-weight: 600; color: #9fb3c5; margin-bottom: 0.6rem; }
.foot__cols li + li { margin-top: 0.35rem; }
.foot__credits { margin-top: 72px; }
.foot__credits p { max-width: 72ch; font-size: var(--step-small); color: #b8c7d4; }
.foot__legal { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2.5rem; font-size: var(--step-small); color: #b8c7d4; }

/* =================================================================
   PHONE AND TABLET
   ================================================================= */
@media (max-width: 1100px) {
  .ticket, .addons { width: 100%; min-width: 0; }
  .addons__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr; }
  .panel__right { padding: 2.5rem 56px 56px; max-width: 40rem; }
  .panel__pic { order: 3; margin: 2rem auto -10vw; width: min(70vw, 520px); }
  .panel__left { display: contents; }
  .panel__left h2 { padding: 56px 56px 0; max-width: none; }
}
@media (max-width: 900px) {
  .counter { grid-template-columns: 1fr; }
  .counter__in { padding: 3.5rem var(--margin) 7rem; }
  .counter__out { padding: 7rem var(--margin) 3.5rem; }
  .counter__inbox, .counter__points { margin-left: 0; }
  .counter__head--a { left: var(--margin); bottom: 1.25rem; }
  .counter__head--b { position: absolute; top: 1.25rem; bottom: auto; left: var(--margin); right: auto; }
  .tools__text, .tools__pics { grid-column: 1 / -1; }
  .tools__pics { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .office__top h2, .office__top p { grid-column: 1 / -1; }
  .office__top p { margin-top: 1rem; }
  .faq__title { grid-column: 1 / -1; position: static; margin-bottom: 2rem; }
  .faq__list { grid-column: 1 / -1; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 28vw; gap: 6px; }
  .tile--head { grid-column: span 2; grid-row: span 2; }
  .tile--bangla, .tile--sms, .tile--words { grid-column: span 2; grid-row: span 3; }
  .tile--taka, .tile--zk, .tile--wallet, .tile--courier { grid-column: span 1; grid-row: span 2; }
  .tile--sms, .tile--words { grid-row: span 2; }
  .fig { font-size: 30px; }
  .words { font-size: 28px; }
  .fan { height: auto; width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.5rem var(--margin) 0; }
  .card { position: relative; left: auto; width: auto; min-height: 0; transform: none; }
  .card > * { max-width: none; }
  .card img { width: 100%; }
  .shelf__intro h2, .shelf__intro p { grid-column: 1 / -1; }
  .punch { font-size: 72px; }
  .tile--zk .chip { top: 100px; font-size: 24px; }
  .tile--courier .chip--ok { top: 64px; left: 20px; }
  .foot__places, .foot__cols { grid-column: 1 / -1; }
  .foot__cols { margin-top: 2.5rem; }
}
@media (max-width: 640px) {
  :root { --radius: 6px; }
  .bar { grid-template-columns: auto 1fr auto; }
  .bar__links { display: none; }
  .wordmark { justify-self: start; }
  .hero__words { text-align: left; padding-top: 2.5rem; }
  .hero__title { font-size: var(--step-display); }
  .hero__lead { margin-left: 0; }
  .folders { --off: 34px; --tab: 34px; width: 100%; margin-top: calc(2rem + var(--tab)); }
  .folder__tab { font-size: 0.9375rem; padding: 0 1.6rem 0 1.25rem; clip-path: polygon(0 100%, 0 0, calc(100% - 18px) 0, 100% 100%); }
  .folder--1 .folder__tab { left: 0; }
  .folder--2 .folder__tab { left: auto; right: 0; }
  .folder--3 .folder__tab { left: 0; }
  .folder--4 .folder__tab { left: auto; right: 0; }
  .folder--front .folder__tab { display: none; }
  .folder--front { padding: 0.75rem 0.75rem 0; }
  .folder__act { position: static; margin-bottom: 0.75rem; }
  .folder__act .button { width: 100%; height: 3.25rem; clip-path: none; padding-left: 1.5rem; border-radius: var(--radius); }
  .folder__shot img { aspect-ratio: 780 / 1300; object-fit: cover; object-position: top; }
  .stair { font-size: var(--step-lead); }
  .counter__points { grid-template-columns: 1fr; }
  .inv { padding: 1.1rem; font-size: 12px; }
  .inv__sum { grid-template-columns: 1fr; }
  .fan { grid-template-columns: 1fr; }
  .search__below .search__answer, .search__side { grid-column: 1 / -1; }
  .search__side { margin-top: 2rem; }
  .search__input, .search__caret, .search__measure { font-size: var(--step-display); }
  .search__try { gap: 8px; }
  .search__try span { flex-basis: 100%; }
  .search__try button { min-height: 44px; padding: 0 0.9rem; border-radius: var(--radius); background: var(--navy-step); text-decoration: none; }
  .control { padding: 10px; }
  .panel__left h2, .panel__right { padding-inline: 24px; }
  .panel__left h2 { padding-top: 40px; }
  .panel__pic { width: 86vw; }
  .bar-steps { flex-direction: column; }
  .bar-steps li { min-width: 0; }
  .bar-steps b { height: auto; min-height: calc(var(--g) * 0.5svh + 72px); font-size: 1.375rem; }
  .bar-steps span { max-width: none; margin-top: 0.5rem; }
  .steps__top, .guide__top { display: block; margin-bottom: 2.5rem; }
  .steps__top p, .guide__top p { margin-top: 1rem; }
  .ticket { display: flex; flex-direction: column; aspect-ratio: auto; }
  .ticket__stub, .ticket__main { display: contents; }
  .ticket__title { order: 1; padding: 32px 24px 0; text-align: center; }
  .ticket__price { order: 2; padding: 16px 24px 0; }
  .ticket__words { order: 3; padding: 0.5rem 24px 28px; text-align: center; }
  .ticket__lines { order: 4; padding: 28px 24px 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Ccircle cx='8' cy='3' r='3' fill='%2312263a'/%3E%3C/svg%3E") left -3px / 16px 6px repeat-x; }
  .ticket__go { order: 5; width: auto; margin: 0 24px 24px; }
  .ticket::before, .ticket::after { top: auto; bottom: auto; left: auto; margin: 0; }
  .ticket::before { left: -14px; top: calc(var(--main-h, 60%) - 14px); }
  .ticket::after { right: -14px; top: calc(var(--main-h, 60%) - 14px); }

  .ticket__lines { grid-template-columns: 1fr; }
  .ticket__amount { font-size: var(--step-display); }
  .addons__list { grid-template-columns: 1fr; }
  .addon { min-height: 0; }
  .join__sentence { font-size: var(--step-head); }
  .join__field { display: block; width: 100%; height: 1.2em; margin: 0.1em 0; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: row; }
}

/* =================================================================
   MOTION (content stays visible without JavaScript and under reduced motion)
   ================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: rise-line 900ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero .folder { animation: deal-in 900ms var(--ease-expo) both; animation-delay: calc(260ms + var(--n) * 80ms); }
  .js .hero [data-open] { clip-path: inset(0 0 100% 0); animation: open 1100ms var(--ease-in-out) 520ms forwards; }
  .js .hero [data-open] img { transform: scale(1.06); transform-origin: 50% 0; animation: settle 1400ms var(--ease-expo) 480ms forwards; }

  /* parts rise into place; on wide screens they also fade in (on phones a fast flick must never meet blank space) */
  .js [data-reveal] { transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  @media (min-width: 1100px) { .js [data-reveal]:not(.ticket):not(.is-in) { opacity: 0; } }
  .js .ticket[data-reveal] { opacity: 1; transform: translateY(48px) rotate(-1.5deg); transition: transform 1000ms var(--ease-expo); }
  .js .ticket[data-reveal].is-in { transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .shutter[data-reveal] img, .js .shutter[data-reveal] video { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  @media (min-width: 1100px) { .js .shutter[data-reveal]:not(.is-in) { clip-path: inset(0 0 100% 0); } }
  .js .shutter[data-reveal].is-in img, .js .shutter[data-reveal].is-in video { transform: none; }

  .tile--sms .bubble { animation: drift 14s var(--ease-soft) infinite alternate; }
  .pal__row { animation: rise 320ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 40ms); }
  .inv tbody tr { animation: rise 280ms var(--ease-out) both; }
}
@keyframes rise-line { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes deal-in { from { transform: translateY(70px); } to { transform: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-9%); } }
@media (prefers-reduced-motion: reduce) {
  .search__caret { animation: none; }
  .index__frame, .index__frame img { transition: none !important; }
}
