/*
 * APK §W2 The public site's one stylesheet: the Neo direction (docs/design/2026-10-29-home-mockups-wallet.html,
 * direction D) — dark first, Manrope, a soft green glow, glass panels. A light variant follows the
 * system setting. No inline styles anywhere: the CSP (nginx.conf) allows only this file.
 */

/* Manrope (OFL, fonts/OFL.txt), subset to Latin. The taka sign ৳ falls back to the system font. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/manrope-800.woff2') format('woff2');
}

:root {
  color-scheme: dark light;
  --bg: #000000;
  --surface: #131816;
  --surface-2: #1f2623;
  --ink: #f4f7f5;
  --ink-2: rgba(236, 244, 240, 0.7);
  --ink-3: rgba(236, 244, 240, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(44, 52, 49, 0.5);
  --glass-solid: rgba(22, 28, 26, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hi: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  --primary: #5eeab0;
  --primary-soft: rgba(94, 234, 176, 0.13);
  --on-primary: #03130d;
  --warn: #f5c26b;
  --warn-soft: rgba(245, 194, 107, 0.14);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 138, 128, 0.12);
  --aurora-1: rgba(94, 234, 176, 0.3);
  --aurora-2: rgba(0, 106, 78, 0.6);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Manrope', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f4f3;
    --surface: #ffffff;
    --surface-2: #e8ecea;
    --ink: #0b1210;
    --ink-2: rgba(11, 18, 16, 0.7);
    --ink-3: rgba(11, 18, 16, 0.5);
    --line: rgba(11, 18, 16, 0.1);
    --glass: rgba(255, 255, 255, 0.66);
    --glass-solid: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(11, 18, 16, 0.07);
    --glass-hi: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 28px rgba(10, 20, 16, 0.1);
    --primary: #006a4e;
    --primary-soft: rgba(0, 106, 78, 0.1);
    --on-primary: #ffffff;
    --warn: #8a5600;
    --warn-soft: rgba(214, 152, 40, 0.16);
    --danger: #b3261e;
    --danger-soft: rgba(196, 55, 46, 0.1);
    --aurora-1: rgba(94, 234, 176, 0.55);
    --aurora-2: rgba(0, 106, 78, 0.22);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The soft green glow at the top of every page (Neo's aurora). */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 640px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 12% 0%, var(--aurora-1), transparent 70%),
    radial-gradient(60% 60% at 96% 0%, var(--aurora-2), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(24px, 3.6vw, 30px);
}

h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
}

mark.todo {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* ---------- Glass ---------- */

.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-solid);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface-2);
}

@media (max-width: 420px) {
  .site-nav a {
    padding: 8px 9px;
    font-size: 14px;
  }
  .brand span {
    font-size: 17px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--glass-border);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 88px 0 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 16px;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-note {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 14px;
}

/* The phone-like preview card: decorative. */
.preview {
  padding: 22px;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}

.preview-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.preview-balance {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}

.preview-balance small {
  font-size: 0.5em;
  color: var(--ink-3);
}

.preview-delta {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.preview svg.spark {
  width: 100%;
  height: 64px;
  margin: 14px 0 10px;
}

.spark .line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark .glow {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
}

.preview-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.preview-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.preview-rows .tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}

.tile.bkash {
  background: linear-gradient(135deg, #ec2a84, #a10d50);
}

.tile.bank {
  background: linear-gradient(135deg, #1b75bb, #0d4a7a);
}

.tile.shop {
  background: linear-gradient(135deg, #f7941d, #c0570f);
}

.preview-rows b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.preview-rows small {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.preview-rows .amt {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.amt.in {
  color: var(--primary);
}

.features {
  display: grid;
  gap: 16px;
  padding: 8px 0 24px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  padding: 24px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 14px;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--ink-2);
  font-size: 16px;
}

.section {
  padding: 48px 0;
}

.section > h2 {
  margin-bottom: 14px;
}

.section > p {
  color: var(--ink-2);
  max-width: 44em;
}

/* ---------- Pages with prose ---------- */

.page-head {
  padding: 48px 0 24px;
}

.page-head h1 {
  font-size: clamp(32px, 5.4vw, 46px);
  margin-bottom: 12px;
}

.page-head .lead {
  margin-bottom: 0;
}

.updated {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.prose {
  padding-bottom: 32px;
}

.prose h2 {
  margin: 48px 0 14px;
  scroll-margin-top: 84px;
}

.prose h3 {
  margin: 28px 0 10px;
  scroll-margin-top: 84px;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table,
.prose .callout,
.prose details {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  font-weight: 800;
}

.muted {
  color: var(--ink-2);
}

.card {
  padding: 22px 24px;
}

.card > :last-child {
  margin-bottom: 0;
}

.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.callout.warn {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}

.callout.danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.callout.warn .callout-title {
  color: var(--warn);
}

.callout.danger .callout-title {
  color: var(--danger);
}

.draft-banner {
  margin-top: 24px;
}

/* Table of contents */
.toc {
  padding: 20px 24px;
  margin: 8px 0 8px;
}

.toc h2 {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  margin: 4px 0;
  break-inside: avoid;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.toc a:hover {
  color: var(--primary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap table {
  margin: 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 800;
  background: var(--surface-2);
  white-space: nowrap;
}

/* Numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 16px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 14px 48px;
  margin: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
}

/* Release card (download) */
.release {
  padding: 24px;
  margin: 8px 0 24px;
}

.release-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.release-top img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.release-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.release-name b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.release-name small {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 15px;
}

.facts dt {
  color: var(--ink-2);
  font-weight: 700;
}

.facts dd {
  margin: 0;
  font-weight: 700;
  min-width: 0;
}

.hash {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0 0 16px;
  font-size: 14px;
}

pre code {
  background: none;
  padding: 0;
}

/* Disclosure FAQ, no JavaScript */
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
  padding: 14px 32px 14px 0;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

details[open] summary::after {
  content: '−';
}

details > :not(summary) {
  margin: 0 0 14px;
  color: var(--ink-2);
}

details > ul,
details > ol {
  padding-left: 1.3em;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin: 8px 0 32px;
}

.contact b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact small {
  display: block;
  color: var(--ink-2);
  font-size: 15px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-2 .card h3 {
  margin: 0 0 8px;
}

.grid-2 .card p,
.grid-2 .card ol,
.grid-2 .card ul {
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--ink-2);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer-brand b {
  color: var(--ink);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--ink);
}

.fine {
  grid-column: 1 / -1;
  font-size: 13px;
}

.fine a {
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a {
    transition:
      background-color 0.15s ease,
      filter 0.15s ease,
      color 0.15s ease;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .skip {
    display: none;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .glass {
    background: none;
    box-shadow: none;
    border: 1px solid #cccccc;
  }
}
