/* apps.munna.dev — design system. Plain CSS, no build step. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #1b2730;
  --ink-2: #4a5866;
  --line: #e0dbcf;
  --accent: #2f6f6b;
  --accent-ink: #ffffff;
  --accent-soft: #dfeeec;
  --accent-text: #2a6561;
  --gold: #8a5a00;
  --gold-soft: #fbf0d9;
  --gold-f: #d99a26;
  --pos: #1f7a4d;
  --pos-f: #2f9a64;
  --pos-soft: #e1f2e8;
  --neg: #b4382f;
  --neg-f: #d0564c;
  --neg-soft: #fbe6e3;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 39, 48, .05), 0 10px 30px rgba(27, 39, 48, .07);
  --wrap: 1160px;
  --font-bn: "Noto Sans Bengali", "Inter", system-ui, sans-serif;
  --font-en: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161b; --surface: #19212a; --surface-2: #212b35; --ink: #e8ecef; --ink-2: #a9b4be; --line: #2e3945;
    --accent: #8bcbc5; --accent-ink: #0b2b29; --accent-soft: #1b3533; --accent-text: #8bcbc5;
    --gold: #f2b84b; --gold-soft: #33291a; --gold-f: #e0a63a;
    --pos: #6fcf9a; --pos-f: #4fb47f; --pos-soft: #193326; --neg: #f0877e; --neg-f: #e0675d; --neg-soft: #3a1f1d;
    --shadow: none; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 66px) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-en); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; }
html[lang="bn"] body, [lang="bn"] { font-family: var(--font-bn); }
html[lang="bn"] body { line-height: 1.8; }
[lang="en"] { font-family: var(--font-en); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-f); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .55em; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
em { font-style: normal; color: var(--accent-text); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.center { text-align: center; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; text-transform: uppercase; margin-bottom: .6em; }
html[lang="bn"] .eyebrow { text-transform: none; letter-spacing: 0; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 48rem; margin-bottom: 36px; }

/* ------------------------------------------------ header / footer */
/* One row: brand · nav · tools. site.js adds .is-compact (menu button) as soon
   as the row would not fit, measured in the page's own language. Without JS
   the nav simply wraps to its own line. */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 8px 28px; min-height: 64px; flex-wrap: wrap; }
.js .header-row { flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; font-size: 1.08rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand b { line-height: 1.2; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px 22px; font-size: .97rem; white-space: nowrap; }
.main-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 2px; font-size: .86rem; }
.lang-switch a { min-width: 40px; min-height: 40px; padding: 0 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lang-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.lang-switch span { color: var(--ink-2); opacity: .45; font-size: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .m-close { display: none; }
.nav-toggle[aria-expanded="true"] .m-open { display: none; }
.nav-toggle[aria-expanded="true"] .m-close { display: inline; }
/* Compact: brand · language · menu button in one row; the menu opens below. */
.js .site-header.is-compact .nav-toggle { display: inline-flex; }
.js .site-header.is-compact .main-nav { display: none; }
.js .site-header.is-compact .main-nav.open {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 16px 14px; max-height: calc(100vh - 80px); overflow-y: auto;
}
.js .site-header.is-compact .main-nav.open a { padding: 12px 4px; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.js .site-header.is-compact .main-nav.open a:last-child { border-bottom: 0; }
.js .site-header.is-compact .main-nav.open a[aria-current] { color: var(--accent-text); border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
/* Before site.js has measured: assume compact on narrow screens (no flash). */
@media (max-width: 760px) {
  .js .site-header:not(.is-measured) .main-nav { display: none; }
  .js .site-header:not(.is-measured) .nav-toggle { display: inline-flex; }
}

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 44px 28px; color: var(--ink-2); font-size: .95rem; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 10px; }
.site-footer h2 { font-size: .95rem; color: var(--ink); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.copy { border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 18px; font-size: .88rem; }

/* ------------------------------------------------ buttons, badges */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 650; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-store, .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 2px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status { margin-top: 14px; color: var(--ink-2); font-size: .93rem; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico.big { width: 56px; height: 56px; border-radius: 16px; }
.ico.big svg { width: 28px; height: 28px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.more-link .arr, .path-list .arr { width: 18px; height: 18px; display: inline-block; }
.more-link:hover { text-decoration: underline; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: .9rem; font-weight: 500; }
.pill-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links li { margin: 0; }
.pill-links a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.pill-links a:hover { border-color: var(--accent); }
.pill-links a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checks, .warn-list, .cross { list-style: none; padding: 0; }
.checks li, .warn-list li, .cross li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--pos); border-bottom: 2.5px solid var(--pos); transform: rotate(-45deg); }
.warn-list li::before { content: "!"; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: .75rem; display: grid; place-items: center; line-height: 1; }
.cross li::before { content: "–"; position: absolute; left: 6px; color: var(--ink-2); font-weight: 700; }

/* ------------------------------------------------ illustrations (inline SVG) */
.ill { width: 100%; height: auto; font-family: inherit; }
.s-soft { fill: var(--accent-soft); }
.s-card { fill: var(--surface); stroke: var(--line); }
.s-shadow { filter: drop-shadow(0 6px 12px rgba(0,0,0,.10)); }
.s-phone { fill: #1b2730; }
.s-screen { fill: var(--bg); }
.s-book { fill: var(--accent); }
.s-page { fill: var(--surface); }
.s-line, .s-grid-line { stroke: var(--line); stroke-width: 6; stroke-linecap: round; fill: none; }
.s-grid-line { stroke-width: 1.5; stroke-dasharray: 4 6; }
.s-grid path { stroke: var(--line); stroke-width: 1; opacity: .7; fill: none; }
.s-accent-f { fill: var(--accent); }
.s-accent-soft-f { fill: var(--accent-soft); }
.s-on-accent { fill: var(--accent-ink); }
.s-ink { fill: var(--ink); }
.s-ink-f { fill: var(--ink); }
.s-on-ink { fill: var(--bg); }
.s-ink-stroke { stroke: var(--ink-2); }
.s-muted { fill: var(--ink-2); }
.s-pos { fill: var(--pos); } .s-pos-f { fill: var(--pos-f); } .s-pos-stroke { stroke: var(--pos-f); }
.s-neg { fill: var(--neg); } .s-neg-f { fill: var(--neg-f); } .s-neg-stroke { stroke: var(--neg-f); }
.s-warn { fill: var(--gold); } .s-warn-f { fill: var(--gold-f); } .s-warn-stroke { stroke: var(--gold-f); } .s-warn-soft { fill: var(--gold-soft); }
.s-ended { fill: var(--surface-2); stroke: var(--line); stroke-dasharray: 5 4; }
.s-tag { fill: var(--ink); } .s-tag-t { fill: var(--bg); }
.s-cng { fill: #2f9a64; } .s-cng-dark { fill: #1f7a4d; } .s-glass { fill: #cfe8f2; } .s-wheel { fill: #1b2730; } .s-hub { fill: #c9d1d6; }
.s-icon { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s-arrow { fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.art-fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.art-fig.wide { margin-bottom: 28px; }

/* ------------------------------------------------ heroes */
.hub-hero, .app-hero { padding-block: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-art { max-width: 540px; width: 100%; margin-inline: auto; }
.hero-art figcaption { text-align: center; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-id img { width: 64px; height: 64px; border-radius: 16px; }
.app-id b { display: block; font-size: 1.15rem; }
.app-id small { color: var(--ink-2); font-size: .88rem; }
.hero-aud { color: var(--ink-2); font-size: .98rem; max-width: 40rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ill { animation: rise .7s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------ hub */
.feature-panel { display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
@media (min-width: 920px) { .feature-panel { grid-template-columns: 1.3fr 1fr; } }
.fp-id { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.fp-id img { width: 88px; height: 88px; border-radius: 22px; }
.fp-id h3 { font-size: 1.6rem; margin: 0; }
.fp-id .en { color: var(--ink-2); font-weight: 500; font-size: 1.05rem; }
.tagline { color: var(--accent-text); font-weight: 650; margin: 2px 0 0; }
.meta-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 20px 0; }
.meta-grid div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; }
.meta-grid dt { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.meta-grid dd { margin: 2px 0 0; }
.fact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact-list li { margin: 0; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; }
.fact-list b { display: block; font-size: 1.8rem; color: var(--accent-text); line-height: 1.1; }
.fact-list span { font-size: .88rem; color: var(--ink-2); }
.fp-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fp-benefits li { display: flex; gap: 12px; margin: 0; }
.fp-benefits b { display: block; }
.fp-benefits span { color: var(--ink-2); font-size: .95rem; }
.dev-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .dev-grid { grid-template-columns: 1.5fr 1fr; } }
.role { color: var(--ink-2); font-weight: 500; }
.dev-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.facts li { margin: 0; }
.facts b { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.link-list a { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.link-list svg { width: 16px; height: 16px; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.contact-band > div { flex: 1 1 280px; }
.contact-band h2 { margin-bottom: .2em; }
.contact-band p { margin: 0; color: var(--ink-2); }
/* Hub only: apps + games portal, games gateway, Games nav link, featured-app shots. */
.main-nav .nav-ext { display: inline-flex; align-items: center; gap: 3px; }
.main-nav .nav-ext svg { width: 13px; height: 13px; opacity: .7; }
.btn-games { background: var(--gold-soft); color: var(--ink); border-color: color-mix(in srgb, var(--gold-f) 55%, transparent); }
.btn-games:hover { border-color: var(--gold-f); }
.btn-games svg { color: var(--gold); }
.portal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 540px; width: 100%; margin-inline: auto; }
.portal-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.portal-card:hover { transform: translateY(-3px); }
.pc-apps { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.pc-apps:hover { border-color: var(--accent); }
.pc-games { background: linear-gradient(160deg, var(--gold-soft), var(--surface) 70%); transform: translateY(22px); }
.pc-games:hover { border-color: var(--gold-f); transform: translateY(19px); }
.pc-svg { width: 100%; height: auto; }
.pc-bars { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; fill: none; }
.pc-bricks rect:nth-child(odd) { fill: var(--accent); } .pc-bricks rect:nth-child(even) { fill: var(--gold-f); }
.pc-ball { fill: var(--ink); }
.pc-pad { fill: var(--ink); }
.pc-dpad { stroke: var(--bg); stroke-width: 6; stroke-linecap: round; }
.pc-b1 { fill: var(--gold-f); } .pc-b2 { fill: var(--neg-f); } .pc-b3 { fill: var(--accent); }
.pc-text b { display: block; font-size: 1.2rem; line-height: 1.3; }
.pc-text span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.pc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 650; color: var(--accent-text); }
.pc-games .pc-go { color: var(--gold); }
.pc-go svg { width: 15px; height: 15px; }
@media (max-width: 919px) { .pc-games, .pc-games:hover { transform: none; } .portal-card:hover { transform: none; } }
@media (max-width: 400px) { .portal { gap: 10px; } .portal-card { padding: 14px 12px 12px; border-radius: 18px; } .pc-text b { font-size: 1.05rem; } .pc-text span { font-size: .85rem; } }
.games-band { display: grid; gap: 18px 24px; align-items: center; grid-template-columns: auto 1fr; padding: clamp(20px, 4vw, 32px); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--gold-f) 35%, var(--line)); background: linear-gradient(120deg, var(--gold-soft), var(--surface) 65%); }
.games-band h2 { margin-bottom: .3em; }
.games-band p:last-child { margin: 0; color: var(--ink-2); max-width: 40rem; }
.games-band .eyebrow { color: var(--gold); margin-bottom: .2em; }
.gb-ico { background: var(--surface); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold-f) 40%, transparent); align-self: start; }
.games-band .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 860px) { .games-band { grid-template-columns: auto 1fr auto; } .games-band .btn { grid-column: auto; } .gb-ico { align-self: center; } }
.fp-shots { align-self: center; max-width: 460px; }

/* ------------------------------------------------ app landing */
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.benefit-list li { display: flex; gap: 14px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.benefit-list h3 { font-size: 1.05rem; margin-bottom: .2em; }
.benefit-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.split-head { display: grid; gap: 4px 32px; align-items: end; margin-bottom: 20px; }
@media (min-width: 820px) { .split-head { grid-template-columns: auto 1fr; } .split-head p { margin: 0 0 .55em; } }
.vehicle-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 380px) { .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.vehicle-grid li { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; min-height: 152px; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.vicon { width: 60px; height: 60px; color: var(--accent-text); }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); counter-reset: f; }
.flow li { margin: 0; counter-increment: f; position: relative; }
.flow a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.flow a:hover { border-color: var(--accent); transform: translateY(-2px); }
.flow a::before { content: counter(f); position: absolute; top: 12px; right: 14px; font-weight: 800; color: var(--line); font-size: 1.6rem; }
html[lang="bn"] .flow a::before { content: counter(f, bengali); }
.flow-ico { color: var(--accent-text); }
.flow-ico svg { width: 28px; height: 28px; }
.flow span:last-child { color: var(--ink-2); font-size: .92rem; }
.feature-row { display: grid; gap: 28px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; } .feature-row.flip .feature-copy { order: 2; } }
.feature-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.feature-art { min-width: 0; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mini .ico { width: 36px; height: 36px; }
.mini span:last-child { color: var(--ink-2); font-size: .88rem; }
.feature-art > .ill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.mini-ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ml-entry { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.ml-entry b { font-size: 1.3rem; }
.ml-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; margin: 14px 0 10px; background: var(--surface-2); }
.ml-got { background: var(--accent); }
.ml-due { background: repeating-linear-gradient(-45deg, var(--gold-f) 0 8px, color-mix(in srgb, var(--gold-f) 70%, white) 8px 16px); }
.ml-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .92rem; }
.ml-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.k-got::before { background: var(--accent); } .k-due::before { background: var(--gold-f); }
.ml-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ml-methods span { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.who-pays { display: grid; gap: 12px; }
@media (min-width: 560px) { .who-pays { grid-template-columns: 1fr 1fr; } }
.wp-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.wp-col h4 { font-size: 1rem; color: var(--accent-text); }
.wp-col p { font-size: .95rem; margin-bottom: .6em; }

/* accounting story */
.story { display: grid; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3.5vw, 32px); }
@media (min-width: 960px) { .story { grid-template-columns: 1.35fr 1fr; } .story-tag { grid-column: 1 / -1; } }
.story-tag { display: inline-block; justify-self: start; background: var(--ink); color: var(--bg); font-weight: 650; font-size: .82rem; padding: 3px 12px; border-radius: 999px; margin: 0; }
.story-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.story-steps li { display: flex; gap: 14px; margin: 0; }
.st-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.st-result .st-n { background: var(--pos-f); color: #fff; }
.st-body { flex: 1; min-width: 0; }
.st-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-note { font-size: .9rem; color: var(--ink-2); margin: 4px 0 0; }
.bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin: 6px 0; }
.bar i { display: block; height: 100%; width: var(--w); transform-origin: left; }
.b-earn { background: var(--pos-f); } .b-got { background: var(--accent); }
.b-due { background: repeating-linear-gradient(-45deg, var(--gold-f) 0 8px, color-mix(in srgb, var(--gold-f) 70%, white) 8px 16px); }
.b-exp { background: var(--neg-f); } .b-profit { background: var(--pos); }
.anim .story[data-animate]:not(.in-view) .bar i { transform: scaleX(0); }
.anim .story[data-animate] .bar i { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.anim .story.in-view .story-steps li:nth-child(2) .bar i { transition-delay: .35s; }
.anim .story.in-view .story-steps li:nth-child(3) .bar i { transition-delay: .7s; }
.anim .story.in-view .story-steps li:nth-child(4) .bar i { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) { .anim .story[data-animate]:not(.in-view) .bar i { transform: none; } }
.cash-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.cash-box h3 { font-size: 1.05rem; }
.cash-box table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.cash-box th, .cash-box td { padding: 7px 4px; border-bottom: 1px dashed var(--line); text-align: right; vertical-align: top; }
.cash-box th[scope="row"], .cash-box thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.cash-box thead th { font-size: .82rem; color: var(--ink-2); font-weight: 650; }
.cash-box .tot th, .cash-box .tot td { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.concepts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 28px 0; }
.concept { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.concept dt { font-weight: 700; }
.concept dd { margin: 2px 0 0; color: var(--ink-2); font-size: .93rem; }
.c-earn, .c-profit { border-left-color: var(--pos-f); } .c-due { border-left-color: var(--gold-f); } .c-exp, .c-pay { border-left-color: var(--neg-f); } .c-cash { border-left-color: var(--ink-2); } .c-adj { border-left-style: dashed; }
.adj-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: 24px; }
.adj { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.kv { list-style: none; padding: 0; margin: 0 0 14px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.kv b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.bk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 20px; }
.bk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.bk-card.warn { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-f) 45%, var(--line)); }
.bk-card h3 { font-size: 1.08rem; }
.bk-card ul { margin: 0; }
.pv-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .pv-grid { grid-template-columns: 1fr 1fr; } }
.pv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pv-list li { display: flex; gap: 14px; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pv-list svg { width: 26px; height: 26px; flex: none; color: var(--accent-text); margin-top: 2px; }
.pv-list b { display: block; }
.pv-list span { color: var(--ink-2); font-size: .93rem; }
.gt-box, .cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
.gt-box > div { flex: 1 1 300px; }
.gt-box p { margin: 0; opacity: .92; }
.gt-box .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-box { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cta-box img { width: 88px; height: 88px; border-radius: 22px; }
.cta-box > div { flex: 1 1 300px; }
.cta-box .pill-links { margin-top: 12px; }
.faq-wrap { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--accent-text); font-size: 1.2rem; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 14px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ------------------------------------------------ guide */
.page-head { padding-bottom: 8px; }
.breadcrumb { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }
.guide-index { display: grid; gap: 34px; }
.g-group h2 { font-size: 1.25rem; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.topic-list li { margin: 0; }
.topic-list a { display: flex; gap: 14px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.topic-list a:hover { border-color: var(--accent); }
.topic-list b { display: block; margin-bottom: 2px; }
.topic-list a > span:last-child > span { display: block; color: var(--ink-2); font-size: .93rem; }
.not-available { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; }
.topic-title { display: flex; gap: 16px; align-items: center; }
.topic-title h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.guide-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .guide-layout { grid-template-columns: 230px 1fr; } .toc { position: sticky; top: 130px; align-self: start; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .93rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.guide-body { min-width: 0; max-width: 820px; }
.gt-sec { margin-bottom: 34px; }
.gt-sec h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.path-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.path-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.path-list .arr { color: var(--accent-text); margin-top: .35em; flex: none; }
.num-steps { list-style: none; padding: 0; counter-reset: s; margin: 0 0 20px; }
.num-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.num-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
html[lang="bn"] .num-steps li::before { content: counter(s, bengali); }
.result-box { background: var(--pos-soft); border-radius: 14px; padding: 16px 18px; }
.fx-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fx-head { font-weight: 700; color: var(--ink); font-size: 1rem; margin: 0 0 10px; }
.fx-tag { display: inline-block; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.fx dl { margin: 0; }
.fx-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.fx-row dt { color: var(--ink-2); }
.fx-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.fx-row .op { color: var(--ink-2); font-weight: 800; }
.fx-row.is-result dt { color: var(--ink); font-weight: 650; }
.tone-pos dd { color: var(--pos); } .tone-neg dd { color: var(--neg); } .tone-warn dd { color: var(--gold); } .tone-accent dd { color: var(--accent-text); }
.fx-note { font-size: .9rem; color: var(--ink-2); margin: 10px 0 0; }
.prev-next { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pn small { display: block; color: var(--ink-2); font-weight: 500; }
.pn.next { text-align: right; }
.pn:hover { border-color: var(--accent); }
@media (max-width: 520px) { .prev-next { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

/* ------------------------------------------------ legal / contact */
.prose { max-width: 50rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.9em; }
.draft-banner { background: var(--gold-soft); border: 1px solid var(--gold-f); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.draft-banner b { color: var(--gold); }
.todo { background: var(--gold-soft); color: var(--gold); padding: 1px 7px; border-radius: 5px; font-weight: 700; font-size: .85em; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 28px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.15rem; margin-top: 10px; }
.card.warn { background: var(--gold-soft); box-shadow: none; }
.email-link { font-size: 1.2rem; font-weight: 700; word-break: break-all; }
.help-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.nf-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .nf-grid { grid-template-columns: 1fr 1fr; } }
.nf-h { font-size: clamp(2rem, 4.8vw, 3.2rem); }

/* ------------------------------------------------ real app screenshots */
/* Genuine captures, shown together (no carousel). Aspect ratio comes from the
   width/height attributes; frames never crop the image. */
.shot { display: block; width: 100%; height: auto; border-radius: 22px; border: 5px solid #1d2a33; background: #1d2a33; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 18px 40px rgba(27,39,48,.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot { border-color: #33414e; box-shadow: 0 18px 40px rgba(0,0,0,.45); } }
.hero-shots { margin: 0; width: 100%; max-width: 560px; margin-inline: auto; }
.shots-fan { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; padding-block: 8px; }
.shots-fan .shot { position: relative; }
.shots-fan .s-left { margin-right: -14%; transform: translateY(18px); z-index: 1; }
.shots-fan .s-center { z-index: 2; }
.shots-fan .s-right { margin-left: -14%; transform: translateY(18px); z-index: 1; }
.hero-shots figcaption, .showcase figcaption { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 14px; }
@media (max-width: 520px) {
  .shots-fan { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shots-fan .s-left { display: none; }
  .shots-fan .s-center, .shots-fan .s-right { margin: 0; transform: none; }
}
.showcase-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: 1fr; max-width: 1040px; margin-inline: auto; }
@media (min-width: 400px) { .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.showcase-grid li { margin: 0; }
.showcase-grid figure { margin: 0; max-width: 300px; margin-inline: auto; }
.showcase-grid figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.showcase-note { text-align: center; max-width: 44rem; margin: 28px auto 0; }

/* Very narrow phones: keep brand · language · menu on one row without overflow. */
@media (max-width: 380px) {
  .header-row { column-gap: 10px; }
  .brand { gap: 8px; font-size: 1rem; }
  .header-tools { gap: 4px; }
  .lang-switch a { padding: 0 6px; }
}
