/* ═══════════════════════════════════════════════════════════════
   এজেন্ট হিসাব — company website
   Design tokens mirror the app (lib/.../theme/agent_colors.dart):
   warm cream bg, flat white cards with hairline borders, brand
   crimson used as tint (0.06 bg / 0.30 border) — never solid card
   fill. Font: Hind Siliguri (same as the app).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #221F1B;
  --muted: #7A7369;
  --body-alt: #4A453E;
  --info: #5A544B;
  --line: #E5E0D8;
  --bg: #F4F1EA;
  --card: #FFFFFF;
  --total-bg: #FAF8F3;
  --brand: #BD273D;
  --brand-tint: rgba(189, 39, 61, 0.06);
  --brand-border: rgba(189, 39, 61, 0.30);
  --green: #0E6B4F;
  --green-soft: #E3F3EC;
  --amber-soft: #FCF0DB;
  --amber-ink: #7A4E0B;
  --radius: 16px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.logo-mark img {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--body-alt);
}

.nav-links a:hover { color: var(--brand); }

/* Highlighted "buy premium" tab — most visitors come for this. */
.nav-premium a {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand) !important;
  font-weight: 700 !important;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-premium a:hover { background: rgba(189, 39, 61, 0.12); }

/* Floating premium button */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(189, 39, 61, 0.55);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab:hover { background: #A82136; }
.fab.fab-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: #A82136; }

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--brand-border); color: var(--brand); }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: #0B5940; }

.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── Section scaffolding ────────────────────────────────────── */

section { padding: 72px 0; }

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .section-sub { margin: 0 auto; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding: 88px 0 80px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--brand); }

.hero-sub {
  font-size: 18px;
  color: var(--body-alt);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14.5px;
}

.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* hero visual: stylised app summary card */
.hero-visual { display: flex; justify-content: center; }

.phone-card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 48px -32px rgba(34, 31, 27, 0.35);
}

.phone-card .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pc-title { font-weight: 700; font-size: 17px; }

.pc-date { font-size: 13px; color: var(--muted); }

.pc-total {
  background: var(--total-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.pc-total .label { font-size: 13.5px; color: var(--muted); }
.pc-total .amount { font-size: 26px; font-weight: 700; }

.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pc-row:last-child { border-bottom: none; }

.pc-row .wallet { display: flex; align-items: center; gap: 10px; font-weight: 500; }

.w-dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
}
.w-bkash { background: #FBEAF0; color: #72243E; }
.w-nagad { background: #FAEEDA; color: #633806; }
.w-cash  { background: #E1F5EE; color: #085041; }

.amt-in  { color: var(--green); font-weight: 600; }
.amt-out { color: var(--brand); font-weight: 600; }

.pc-chip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ── Features ───────────────────────────────────────────────── */

.features { background: var(--card); border-block: 1px solid var(--line); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--total-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  display: grid; place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 15px; color: var(--info); }

/* ── How it works ───────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.step-num {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: grid; place-items: center;
}

.step-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 15px; color: var(--muted); }

/* ── Pricing ────────────────────────────────────────────────── */

.pricing { background: var(--card); border-block: 1px solid var(--line); }

.trial-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 14px;
}

.buy-steps {
  max-width: 640px;
  margin: 0 auto 36px;
  background: var(--green-soft);
  border: 1px solid rgba(14, 107, 79, 0.30);
  border-radius: 14px;
  padding: 18px 22px;
}

.buy-steps-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.buy-steps ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.buy-steps li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body-alt);
}

.buy-steps li::marker {
  font-weight: 700;
  color: var(--green);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--total-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
}

.price-card.best {
  background: var(--brand-tint);
  border-color: var(--brand-border);
}

.best-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-duration { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.price-amount { font-size: 32px; font-weight: 700; line-height: 1.2; }
.price-amount .tk { font-size: 22px; }

.price-permonth { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

.save-chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.save-chip.placeholder { visibility: hidden; }

.price-features {
  list-style: none;
  font-size: 14.5px;
  color: var(--info);
  margin-bottom: 18px;
  flex-grow: 1;
}

.price-features li {
  padding: 4px 0 4px 24px;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ── FAQ ────────────────────────────────────────────────────── */

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  font-size: 15.5px;
  color: var(--info);
  padding-bottom: 16px;
}

/* ── Contact ────────────────────────────────────────────────── */

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.contact-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-bottom: 24px; }

.contact-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-info {
  list-style: none;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--body-alt);
}
.contact-info a { color: inherit; }
.contact-info a:hover { color: var(--brand); }

/* ── EPS payment-methods strip (merchant-site requirement) ──── */

.eps-strip {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.eps-strip img { width: 100%; height: auto; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner .copy { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-inner .addr { font-size: 12.5px; }

.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 14px; color: var(--body-alt); }
.footer-links a:hover { color: var(--brand); }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0; }
  .hero-sub { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }

  /* Compact 2×2 package grid: price + buy button only. The feature
     lists are identical across plans, so hiding them loses nothing —
     the buy-steps box above the grid carries the explanation. */
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .price-card { padding: 18px 14px 14px; }
  .price-card .btn { margin-top: auto; padding: 10px 12px; font-size: 15px; }
  .price-features { display: none; }
  .price-duration { font-size: 15px; margin-bottom: 4px; }
  .price-amount { font-size: 26px; }
  .price-amount .tk { font-size: 18px; }
  .price-permonth { font-size: 12.5px; }
  .save-chip { font-size: 11.5px; margin-bottom: 12px; }
  .best-badge { font-size: 11px; padding: 3px 10px; }
  .buy-steps { padding: 16px; }
  .buy-steps li { font-size: 13.5px; }

  .nav-toggle-btn { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 13px 4px; font-size: 16px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-cta { display: none; }
}
