/* X-Firm store. Plain CSS, no build step.
   Quiet by design: one accent colour, thin lines, real screenshots, numbers that come from the shop itself. */
:root {
  --ink: #1f1a2e; --text: #3a3247; --body: #5e566c; --faint: #8b8299;
  --accent: #6a25e8; --accent-d: #5316c4; --accent-soft: #f3edfd; --eyebrow: #7444c4;
  --line: #ebe6f1; --line-2: #ddd5e8; --chip: #f4f1f8; --tint: #f9f8fc; --band: #faf8fe; --night: #1b1626;
  --ok: #17734a; --ok-bg: #e7f5ee; --warn: #8a5300; --warn-bg: #fff3df; --bad: #b3261e; --bad-bg: #fdeceb;
  --surface: #fff; --bg: #fff;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow: 0 18px 40px -30px rgba(40, 20, 80, .38);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  /* kept for older templates */
  --muted: var(--body); --brand: var(--accent); --brand-ink: #fff; --brand-soft: var(--accent-soft); --radius: var(--r-lg);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: #fff; }
.badge-count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

main { padding: 32px 0 0; }
main.home { padding-top: 0; }

/* type helpers */
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 14px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 560px; }
.muted { color: var(--body); }
.faint { color: var(--faint); }
.pu { color: var(--accent); }

/* home: hero */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; margin: 0 0 18px; font-weight: 800; letter-spacing: -.035em; }
.hero p { margin: 0; }
.search { margin-top: 28px; display: flex; gap: 8px; max-width: 520px; }
.search input { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 15px; }
.search .btn { height: 48px; padding: 0 22px; }
.cats { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.cats a { font-size: 13px; color: var(--text); text-decoration: none; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }
.cats a:hover, .cats a.on { border-color: var(--accent); color: var(--accent); }
.hero-shots { position: relative; min-height: 340px; }
.hero-shots figure { position: absolute; margin: 0; border-radius: var(--r); padding: 14px 14px 0; box-shadow: var(--shadow); overflow: hidden; }
.hero-shots figure img { display: block; border-radius: 5px 5px 0 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.hero-shots figure figcaption { font-size: 12.5px; padding: 8px 2px 10px; color: var(--text); font-weight: 600; }
.hero-shots .a { width: 78%; top: 0; right: 0; }
.hero-shots .b { width: 56%; bottom: -10px; left: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } .hero-shots { min-height: 260px; } }

/* home: facts strip (real numbers only) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; color: var(--ink); font-size: 15px; }
.facts span { font-size: 13.5px; color: var(--body); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* home: shelves of products */
.shelf { margin-top: 56px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shelf-head h2 { font-size: 22px; margin: 0; }
.shelf-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.cards { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.pcard { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.22, .7, .3, 1), box-shadow .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .shot { display: block; padding: 16px 13px 0; text-decoration: none; }
.pcard .shot img, .pcard .shot .ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left;
  border-radius: 4px 4px 0 0; box-shadow: 0 10px 24px -16px rgba(40, 20, 80, .35); background: #fff; }
.pcard .shot .ph { display: grid; place-items: center; font: 600 22px/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.pcard .body { padding: 18px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard .cat { font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); margin: 0; }
.pcard h3 { margin: 12px 0 0; font-size: 17px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { color: var(--accent); }
.pcard .line { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.chips { margin-top: 16px; display: flex; gap: 5px; flex-wrap: wrap; }
.chips span { height: 22px; padding: 0 8px; border-radius: 4px; background: var(--chip); display: inline-flex; align-items: center; font-size: 12.5px; color: #6c6280; white-space: nowrap; }
.pcard .buy { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard .price { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pcard .sold { font-size: 12.5px; color: var(--faint); }

/* home: how it works, FAQ, closing band */
.band { margin-top: 72px; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.band h2, .section-title { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 8px; }
.steps { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { list-style: none; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 600 12px var(--mono); color: var(--eyebrow); letter-spacing: .1em; }
.steps h3 { font-size: 16px; margin: 8px 0 6px; }
.steps p { margin: 0; font-size: 14px; color: var(--body); }
.steps { padding: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
.faq { margin-top: 72px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 18px/1 var(--mono); color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--body); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; gap: 16px; } }
.closing { margin-top: 80px; background: var(--night); color: #d9d3e4; border-radius: var(--r-lg); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { color: #fff; margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 32px); }
.closing p { margin: 0; }
.closing .btn { background: #fff; color: var(--night); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px; color: var(--body); text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 28px; color: var(--body); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 13px; margin: 0 0 10px; color: var(--ink); }
.site-footer a { color: var(--text); text-decoration: none; display: block; margin: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* product page */
.crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--body); text-decoration: none; }
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.split > aside { position: sticky; top: 84px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > aside { position: static; } }
.prose { overflow-wrap: anywhere; color: var(--text); }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; margin: 1.5em 0 .5em; }
.prose h2 { font-size: 20px; }
.prose pre { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow-x: auto; }

/* shared building blocks (cart, checkout, account, product page) */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card h2, .card h3 { margin: 0 0 6px; line-height: 1.25; }
.price { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: var(--r); text-decoration: none;
  transition: background .15s; }
.btn:hover { background: var(--accent-d); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint); }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], select, textarea, input:not([type]) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.gateway { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 600; cursor: pointer; }
.gateway:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.error { color: var(--bad); font-size: 13.5px; margin-top: 4px; }
.notice { border-radius: var(--r); padding: 12px 14px; background: var(--accent-soft); border: 1px solid #e4d8fb; color: var(--ink); }
.notice.bad { color: var(--bad); background: var(--bad-bg); border-color: #f6cfcb; }
.notice.warn { color: var(--warn); background: var(--warn-bg); border-color: #f4dfb6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 700; background: var(--chip); }
.pill.ok { color: var(--ok); background: var(--ok-bg); } .pill.bad { color: var(--bad); background: var(--bad-bg); } .pill.warn { color: var(--warn); background: var(--warn-bg); }
.features { padding-left: 0; list-style: none; margin: 0; }
.features li { margin: 0; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); position: relative; }
.features li:last-child { border-bottom: 0; }
.features li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.key { font-family: var(--mono); font-size: 1rem; letter-spacing: .04em; background: var(--tint); border: 1px dashed var(--line-2); padding: 4px 10px; border-radius: var(--r-sm); user-select: all; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Screenshot viewer (product page) */
.shot-viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.shot-viewer::backdrop { background: rgba(12, 8, 24, .88); }
.shot-viewer[open] { display: grid; place-items: center; }
.shot-viewer figure { margin: 0; max-width: min(1400px, 92vw); text-align: center; }
.shot-viewer img { max-width: 100%; max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.shot-viewer figcaption { color: #e9e6f2; font-size: .9rem; margin-top: 10px; }
.shot-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #1d1530; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.shot-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #1d1530; font-size: 30px; line-height: 1; cursor: pointer; }
.shot-prev { left: 16px; } .shot-next { right: 16px; }
.shot-close:hover, .shot-nav:hover { background: #fff; outline: 2px solid var(--brand, #6d4aff); }
@media (max-width: 640px) { .shot-nav { top: auto; bottom: 20px; transform: none; } }

/* Email sign-up */
.newsletter { gap: 8px; }
.newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-row input { flex: 1 1 200px; min-width: 0; }
.nl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer .newsletter { max-width: 420px; margin-top: 16px; }
.af-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Launch offer */
.launch-offer { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); background: #fff4e5; border: 1px solid #f6c98a; color: #8a4b00; font-size: 14px; }
.launch-offer code { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
