/* ProcureBest — design system
   Monochrome, editorial, generous whitespace. System font stack (SF Pro on Apple
   devices, Segoe UI on Windows, Roboto on Android) with Noto Sans Bengali. */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --surface: #efeff1;
  --bg: #f8f8f8;
  --white: #fff;
  --ok: #1a7f37;
  --ok-bg: #edf7ef;
  --err: #b42318;
  --err-bg: #fdf0ef;
  --warn: #8a5a00;
  --warn-bg: #fff7e6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 24px 48px rgba(0,0,0,.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Hind Siliguri", "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", "Vrinda", sans-serif;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* Bengali: its own typeface, a little larger, more line spacing, lighter headings */
html[lang="bn"] body { font-family: var(--font-bn); font-size: 17.5px; line-height: 1.75; letter-spacing: 0; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 { letter-spacing: 0; line-height: 1.32; font-weight: 600; }
html[lang="bn"] h1 { font-weight: 700; line-height: 1.25; }
html[lang="bn"] .lead { line-height: 1.6; letter-spacing: 0; }
html[lang="bn"] .btn, html[lang="bn"] .tag, html[lang="bn"] .chip, html[lang="bn"] label, html[lang="bn"] .label { letter-spacing: 0; }
html[lang="bn"] .btn { font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
html[lang="bn"] .card p, html[lang="bn"] .help, html[lang="bn"] .small { line-height: 1.65; }
html[lang="bn"] .stat, html[lang="bn"] .result-card .big { letter-spacing: 0; }
html[lang="bn"] input, html[lang="bn"] select, html[lang="bn"] textarea { font-family: var(--font-bn); }
img, svg { max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--black); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); line-height: 1.45; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; margin-bottom: 10px; display: block; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 32px 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--white); }
.section.dark { background: #000; color: #f5f5f7; }
.section.dark h2, .section.dark h3, .section.dark h1 { color: #fff; }
.section.dark .muted, .section.dark .lead { color: #a1a1a6; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* ---------------------------------------------------------------- navigation */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(248,248,248,.86);
       backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 22px; max-width: 1280px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; height: 100%; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a { font-size: 13.5px; color: var(--ink); text-decoration: none; opacity: .86; transition: opacity .2s, background .2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px; border-radius: 9px; }
.nav-links > li > a:hover { background: rgba(0,0,0,.05); }
.nav-links .caret { opacity: .55; transition: transform .2s; }
.nav-links > li:hover .caret, .nav-links > li:focus-within .caret { transform: rotate(180deg); }
html[lang="bn"] .nav-links > li > a { font-size: 15px; }
.nav-links .sub { position: absolute; top: calc(100% - 6px); left: 50%; transform: translate(-50%, 6px); min-width: 230px; padding-top: 6px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.nav-links .sub ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); }
.nav-links .sub a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links .sub a:hover, .nav-links .sub a:focus-visible { background: var(--surface); }
.nav-links .sub li:last-child a { color: var(--muted); }
.nav-links > li:hover .sub, .nav-links > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.free-blink { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  padding: 3px 6px; border-radius: 6px; background: #000; color: #fff; animation: blink 1.6s ease-in-out infinite; }
html[lang="bn"] .free-blink { font-size: 11px; text-transform: none; letter-spacing: 0; padding: 3px 6px 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--white); }
.lang-switch a, .lang-switch button { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted);
       border: 0; background: none; cursor: pointer; line-height: 1.4; }
.lang-switch .on { background: #000; color: #fff; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink);
            text-decoration: none; border: 0; background: none; cursor: pointer; }
.nav-icon:hover { background: var(--surface); }
.menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav .wrap { justify-content: space-between; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); z-index: 49;
                 padding: 24px 28px; overflow-y: auto; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; text-decoration: none; color: var(--ink); }
  .mobile-menu .lang-switch { margin-top: 24px; }
  .mobile-menu .m-group summary { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
  .mobile-menu .m-group summary::-webkit-details-marker { display: none; }
  .mobile-menu .m-group summary::after { content: "+"; font-weight: 300; margin-left: auto; color: var(--muted); }
  .mobile-menu .m-group[open] summary::after { content: "−"; }
  .mobile-menu .m-group > div { padding: 0 0 8px 14px; border-left: 2px solid var(--line-2); margin-bottom: 6px; }
  .mobile-menu .m-group > div a { font-size: 18px; font-weight: 500; padding: 7px 0; color: var(--ink-2); }
  html[lang="bn"] .mobile-menu a, html[lang="bn"] .mobile-menu .m-group summary { letter-spacing: 0; }
  .mobile-menu .lang-switch a { font-size: 15px; padding: 8px 18px; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500;
       letter-spacing: -0.01em; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
       text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; line-height: 1.2; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #2d2d30; }
.btn-secondary { background: transparent; color: #000; border-color: #000; }
.btn-secondary:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e8e8ed; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: #000; }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--ink); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link svg { transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 120px 0 88px; text-align: center; position: relative; overflow: hidden; }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
html[lang="bn"] .hero h1 { max-width: 18ch; }
.hero .lead { max-width: 640px; margin: 0 auto 36px; }
.hero .row { justify-content: center; }
.hero-art { margin: 64px auto 0; max-width: 1000px; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
/* hero animation: inputs flow as chains into the engine, which returns rotating results */
.ha .ha-rail { stroke: #d2d2d7; stroke-width: 1.2; }
.ha .ha-chain { stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 7 9; animation: chainflow 1.1s linear infinite; }
.ha .ha-out { stroke-width: 3; }
@keyframes chainflow { to { stroke-dashoffset: -32; } }
.ha .ha-pill { fill: #fff; stroke: #d2d2d7; }
.ha .ha-dot { fill: #000; }
.ha .ha-node { animation: nodeglow 2.4s ease-in-out infinite; }
@keyframes nodeglow { 0%, 100% { opacity: .55; } 40% { opacity: 1; } }
.ha .ha-t { font-family: var(--font); fill: #1d1d1f; font-size: 13px; }
html[lang="bn"] .ha .ha-t { font-family: var(--font-bn); }
.ha .ha-ring { fill: none; stroke: #000; stroke-width: 1.2; stroke-dasharray: 2 6; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.ha .ha-gear { transform-box: fill-box; transform-origin: center; animation: spin 3.5s linear infinite; }
.ha .ha-card { fill: #fff; stroke: #e8e8ed; filter: drop-shadow(0 10px 24px rgba(0,0,0,.08)); }
.ha .ha-label { fill: #6e6e73; font-size: 13px; }
.ha .ha-value { fill: #000; font-size: 27px; font-weight: 700; }
.ha .ha-note { fill: #86868b; font-size: 12px; }
.ha .ha-res { opacity: 0; animation: rescycle 9s ease-in-out infinite; }
@keyframes rescycle { 0% { opacity: 0; transform: translateY(6px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ha .ha-res:first-of-type { opacity: 1; } }
@media (max-width: 640px) { .hero { padding: 72px 0 56px; } }

/* ---------------------------------------------------------------- cards */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; position: relative;
        transition: box-shadow .25s, transform .25s, border-color .25s; }
.card.surface { background: var(--surface); border-color: transparent; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .card-foot { margin-top: 22px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #000; }
.card.dark { background: #1d1d1f; color: #f5f5f7; border-color: #1d1d1f; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #a1a1a6; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--ink-2); line-height: 1.5; }
.tag.dark { background: #000; color: #fff; }
.tag.outline { background: transparent; border: 1px solid var(--line); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.err { background: var(--err-bg); color: var(--err); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.badge-demo { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px;
              border-radius: 6px; border: 1px dashed var(--muted-2); color: var(--muted); }
.card .tag-row { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; }

/* ---------------------------------------------------------------- page header */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); max-width: 20ch; }
.page-head .lead { max-width: 720px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- directory */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.search input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: 16px; background: var(--white); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: #000; }
.chip.on { background: #000; color: #fff; border-color: #000; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; }
.field { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.third { grid-column: span 2; }
@media (max-width: 720px) { .field, .field.third { grid-column: 1 / -1; } }
label, .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.help { font-size: 13px; color: var(--muted); line-height: 1.45; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], input[type=tel], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; min-height: 46px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
         background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #000; flex-shrink: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.err-text { color: var(--err); font-size: 13px; }
.form-section { border-top: 1px solid var(--line-2); padding-top: 26px; margin-top: 30px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > h3 { font-size: 17px; margin-bottom: 4px; }
.form-section > .help { margin-bottom: 18px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.panel { background: var(--white); border: 1px solid var(--line-2); border-radius: 22px; padding: 32px; }
@media (max-width: 640px) { .panel { padding: 22px 18px; border-radius: 18px; } }
.auth-box { max-width: 440px; margin: 0 auto; }

/* ---------------------------------------------------------------- repeatable groups */
.group-item { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 14px; background: var(--surface); }
.group-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.group-item-head strong { font-size: 15px; }
.group-item .form-grid { gap: 14px 16px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-flex; font: inherit; font-size: 13px; gap: 4px; align-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }

/* ---------------------------------------------------------------- calculator layout */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
.calc-layout .results-col { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 1040px) { .calc-layout { grid-template-columns: 1fr; } .calc-layout .results-col { position: static; } }
.result-empty { border: 1px dashed var(--line); border-radius: 22px; padding: 48px 28px; text-align: center; color: var(--muted); }
.result-card { border-radius: 22px; background: #000; color: #fff; padding: 30px; }
.result-card .label { color: #a1a1a6; font-size: 13px; font-weight: 500; }
.result-card .big { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 2px; word-break: break-word; }
.result-card .note { color: #a1a1a6; font-size: 13px; }
.result-card .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #333; }
.result-card .kpis .val { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }
.result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.result-actions .btn { width: 100%; }
.result-actions .wa { grid-column: 1 / -1; }
.details-list { margin: 22px 0 0; padding: 0; list-style: none; }
.details-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.details-list li span:first-child { color: var(--ink-2); }
.details-list li span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.details-list li.hl span:last-child { font-size: 17px; }
.details-list li small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-ok { background: var(--ok-bg); color: #0f5323; }
.alert-err { background: var(--err-bg); color: #7a1a12; }
.alert-warn { background: var(--warn-bg); color: #5c3c00; }
.alert-info { background: var(--surface); color: var(--ink-2); }
.flash-stack { position: relative; z-index: 2; }
.flash-stack .alert { margin-top: 16px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; background: var(--surface); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.hl td { background: #f0f0f2; font-weight: 600; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
.bar-chart { margin-top: 18px; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.bar-row .bar { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: #000; border-radius: 99px; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }

/* ---------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 22px; max-width: 480px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.seg input { accent-color: #000; }
.seg label:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }

/* ---------------------------------------------------------------- whatsapp */
.wa-btn { background: #fff; color: #000; border: 1px solid var(--line); }
.wa-btn:hover { border-color: #000; background: #fff; }
.wa-btn svg { color: #25d366; }
.wa-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------------------------------------------------------------- exam */
.exam-bar { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.exam-bar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.timer { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 0; padding: 6px 14px; border-radius: 10px; background: var(--surface); }
.timer.low { background: var(--err-bg); color: var(--err); }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; flex: 1; max-width: 360px; }
.progress i { display: block; height: 100%; background: #000; transition: width .3s; }
.q-card { border: 1px solid var(--line-2); border-radius: 22px; padding: 32px; }
.q-card h2 { font-size: 24px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
.options { display: grid; gap: 10px; margin-top: 22px; }
.option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; font-size: 16px; }
.option:hover { border-color: #000; }
.option input { margin-top: 3px; accent-color: #000; width: 18px; height: 18px; flex-shrink: 0; }
.option:has(input:checked) { border-color: #000; background: var(--surface); box-shadow: inset 0 0 0 1px #000; }
.q-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.q-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.q-nav button.answered { background: #000; color: #fff; border-color: #000; }
.q-nav button.current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.review-opt { padding: 10px 14px; border-radius: 10px; margin-top: 6px; font-size: 15px; border: 1px solid var(--line-2); }
.review-opt.correct { background: var(--ok-bg); border-color: #b7dfc1; }
.review-opt.wrong { background: var(--err-bg); border-color: #f2c4c0; }
.score-ring { width: 160px; height: 160px; }

/* ---------------------------------------------------------------- article */
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
html[lang="bn"] .prose { line-height: 1.85; }
.prose h2 { font-size: 30px; margin: 1.6em 0 .5em; color: var(--black); }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; color: var(--black); }
.prose a { color: var(--black); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { font-size: 15px; margin: 1.2em 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid #000; color: var(--ink); }
.prose code { font-family: var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.footer { background: #efeff1; color: var(--muted); font-size: 13px; padding: 56px 0 36px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }
.footer h4 { font-size: 13px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .policy-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer .policy-links a { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- misc */
.stat { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--black); }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { flex-shrink: 0; margin-top: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.newsletter { max-width: 560px; margin: 0 auto; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1; min-width: 220px; border-radius: 999px; }
.kbd { font-family: var(--mono); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.level-card { display: flex; flex-direction: column; }
.level-card .meta { display: flex; gap: 18px; margin: 18px 0 22px; flex-wrap: wrap; }
.level-card .meta div { font-size: 13px; color: var(--muted); }
.level-card .meta strong { display: block; font-size: 22px; color: var(--black); letter-spacing: -0.02em; }
.card.dark .meta strong { color: #fff; }
.level-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cert-preview { border: 1px solid var(--line-2); border-radius: 18px; padding: 40px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: #000; font-weight: 600; }
.method-list { padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.method-list li { margin: 8px 0; }
details.disclosure { border-top: 1px solid var(--line-2); padding: 16px 0; }
details.disclosure summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "+"; font-size: 22px; font-weight: 300; }
details.disclosure[open] summary::after { content: "−"; }
details.disclosure > div { padding-top: 12px; }
.demo-ribbon { background: #000; color: #fff; font-size: 12px; text-align: center; padding: 6px 12px; }
.demo-ribbon a { color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .nav, .footer, .result-actions, .no-print, .demo-ribbon, .mobile-menu { display: none !important; }
  .calc-layout { grid-template-columns: 1fr; }
  .result-card { background: #fff; color: #000; border: 1px solid #000; }
}

[data-form-error] + .form-section { border-top: 0; padding-top: 0; margin-top: 0; }

/* ---------------------------------------------------------------- Cloudflare edition additions */
.item-cover { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 18px; display: block; }
.gloss-term { padding: 16px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--nav-h) + 16px); }
.gloss-term h3 { font-size: 19px; margin-bottom: 6px; }
.gloss-term .prose p:last-child { margin-bottom: 0; }
.gloss-term:target { background: var(--surface); border-radius: 12px; padding: 16px; }
.exam-grid { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .exam-grid { grid-template-columns: 1fr; } }

/* comparative statement matrix */
.cs-table table { min-width: 560px; }
.cs-table th[scope="row"] { background: var(--white); color: var(--ink-2); font-weight: 500; font-size: 13px; }
.cs-table td { padding: 6px 8px; vertical-align: top; }
.cs-table input[type=text] { min-height: 38px; padding: 7px 10px; font-size: 14px; border-radius: 9px; }
.cs-table .input-unit input { padding-right: 34px; }
.cs-table .input-unit span { right: 10px; font-size: 13px; }
.cs-table td.invalid input { border-color: var(--err); }
.cs-table .err-text { display: block; margin-top: 4px; font-size: 12px; }
.cs-table .icon-btn { padding: 4px; }

/* manual payment */
.order-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px; border-radius: 14px; background: #000; color: #fff; }
.order-amount .label { color: #a1a1a6; }
.order-amount .stat { color: #fff; font-size: 34px; }
.pay-card .pay-number { font-size: 24px; font-weight: 700; letter-spacing: .02em; margin: 10px 0 6px; color: var(--black); }
.pay-card p { margin: 0; }
.step-no { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; font-size: 14px; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 2px; }

/* calculator print report (PDF via the browser's "Save as PDF") */
#print-report { display: none; }
.pr-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 18px; }
.pr-meta { font-size: 12px; color: var(--muted); }
.pr-title { font-size: 26px; margin: 0 0 16px; }
@media print {
  body.printing > *:not(#print-report) { display: none !important; }
  body.printing #print-report { display: block !important; padding: 0 4mm; }
  body.printing .result-card { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  body.printing .result-card .label, body.printing .result-card .note { color: #444 !important; }
  body.printing .table-wrap { overflow: visible; border: 0; }
  body.printing table { font-size: 9.5px; table-layout: auto; }
  body.printing th, body.printing td { padding: 5px 6px; }
  body.printing th, body.printing td:not(.num) { white-space: normal !important; }
  body.printing th[style] { min-width: 0 !important; }
  body.printing .result-card .big { font-size: 30px; }
  body.printing .details-list li { padding: 6px 0; font-size: 12px; }
  body.printing th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing .bar-row .bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 12mm; }
}

/* search fields keep room for the magnifier icon (must come after the generic input rule) */
.search input { padding-left: 44px; border-radius: 999px; }

/* ---------------------------------------------------------------- v4 additions */
.post-card .post-cover, .course-card .course-thumb { display: block; width: calc(100% + 56px); margin: -28px -28px 18px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.course-card .course-thumb { margin-bottom: 0; }
.course-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.course-hero, .exam-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.exam-hero { margin: 6px 0 22px; max-height: 360px; }
.exam-thumb { width: calc(100% + 56px); margin: -28px -28px 18px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
a.level-card { color: inherit; text-decoration: none; }
.free-tag { background: #fff; color: #000; }
.article-cover { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; margin: 4px 0 8px; box-shadow: var(--shadow); }
.prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 1em 0; display: block; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pdf-preview { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; height: min(78vh, 760px); }
.pdf-preview iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .pdf-preview { height: 60vh; } }
/* reviews */
.review-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.review-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.stars { color: #000; letter-spacing: 2px; font-size: 16px; }
.stars .off { color: #d2d2d7; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { font-size: 30px; line-height: 1; color: #d2d2d7; cursor: pointer; transition: color .15s; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: #000; }
.rate-input input:focus-visible + label { outline: 3px solid #0071e3; border-radius: 6px; }
/* founder */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: 22px; margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.founder-photo { width: 200px; height: 200px; border-radius: 18px; object-fit: cover; background: var(--surface); }
.founder-photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.prose .founder h2 { margin-top: 0; }
.founder-exp ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid #000; }
.founder-exp li { position: relative; padding: 4px 0 14px 22px; margin: 0; }
.founder-exp li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #000; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; padding: 20px; } .founder-photo { width: 140px; height: 140px; } }
/* career roadmap */
.rm-steps { list-style: none; padding: 0; margin: 16px 0 0; position: relative; }
.rm-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.rm-steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.rm-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #000; background: #fff; margin-top: 2px; position: relative; z-index: 1; }
.rm-dot.on { background: #000; box-shadow: inset 0 0 0 4px #fff; }
.rm-creds td, .rm-creds th { vertical-align: middle; }
.rm-creds input { width: 18px; height: 18px; accent-color: #000; }
/* sharing */
.share-box { margin: 26px auto 0; max-width: 560px; padding: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); }
/* admin thumbnails */
.adm-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.md-image { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .free-blink { animation: none; } }
.sub-inline { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.sub-inline input { width: auto; min-width: 240px; flex: 1; max-width: 320px; border-radius: 999px; }
.sub-inline .err-text { flex-basis: 100%; text-align: center; }
