/* StockFinch website — one stylesheet, mobile-first, no framework. */

@font-face { font-family: "Noto Sans Bengali"; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-bengali-400.woff") format("woff"); }
@font-face { font-family: "Noto Sans Bengali"; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-bengali-700.woff") format("woff"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-400.woff") format("woff"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-700.woff") format("woff"); }

:root {
  --brand: #1f6aa5;          /* the app's accent blue */
  --brand-dark: #17527f;
  --brand-soft: #e7f0f9;
  --green: #16a34a;          /* download / trial actions */
  --green-dark: #12803a;
  --ink: #1a1f2e;
  --muted: #5b6473;
  --line: #dfe4ee;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --warn-bg: #fff7e6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 31, 46, .08);
  --max: 1120px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: "Noto Sans Bengali", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; scroll-margin-top: 64px; }  /* clear the sticky header on #anchor jumps */
section.alt { background: var(--bg-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ── Bangla / English switch ─────────────────────────────────────────
   Every text exists twice; html.lang-en flips which one shows. */
.t-en { display: none; }
html.lang-en .t-en { display: revert; }
html.lang-en .t-bn { display: none; }
html.lang-en body { font-family: "Noto Sans", "Noto Sans Bengali", system-ui, sans-serif; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--brand); color: #fff; }
.btn-blue:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-lg { font-size: 1.08rem; padding: .95em 1.6em; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid #f59e0b; outline-offset: 2px;
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 1.15rem; font-family: "Noto Sans", sans-serif; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: none; gap: 18px; margin-left: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .4em .7em;
  font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink);
}
.header-actions .btn { padding: .5em .9em; font-size: .9rem; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--brand-soft), #fff 75%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px;
  color: var(--muted); font-size: .92rem; }
.checks li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  background: #fff; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.25fr; } }

/* ── Cards ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.features { display: grid; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.features strong { display: block; }
.features span.d { color: var(--muted); font-size: .93rem; }

/* ── Gallery ─────────────────────────────────────────────────────── */
.gallery { display: grid; gap: 16px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 24, .88); display: none;
  align-items: center; justify-content: center; padding: 16px; z-index: 100; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

/* ── Steps ───────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 22px 72px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: "Noto Sans", sans-serif; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.founding { display: inline-block; background: var(--warn-bg); border: 1px solid #f5d38c;
  color: #8a5a00; border-radius: 999px; padding: .35em 1em; font-weight: 700; font-size: .92rem;
  margin-bottom: 18px; }
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700;
  padding: .2em .9em; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 2.1rem; font-weight: 700; margin: 6px 0 0; font-family: "Noto Sans", "Noto Sans Bengali", sans-serif; }
.plan .price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan .was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { padding: 4px 0; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.plan .limit { color: #b45309; font-weight: 700; font-size: .9rem; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff;
  margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 16px; color: var(--muted); }

/* ── Contact / footer ────────────────────────────────────────────── */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.site-footer { background: var(--ink); color: #c9cfdb; padding: 32px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ── Download page ───────────────────────────────────────────────── */
.dl-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem;
  margin: 16px 0 0; color: var(--muted); }
.meta code { word-break: break-all; font-size: .82rem; }
.guide { display: grid; gap: 22px; counter-reset: g; }
.guide .step { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
@media (min-width: 900px) { .guide .step.with-img { grid-template-columns: 1fr 1fr; align-items: center; } }
.guide .step h3::before { counter-increment: g; content: counter(g) ". "; color: var(--brand); }
.placeholder { border: 2px dashed #b9c3d6; border-radius: 12px; padding: 28px; text-align: center;
  color: var(--muted); background: var(--bg-alt); font-size: .9rem; }
.phone-panel { display: none; }
.is-phone .phone-panel { display: block; }
.is-phone .desktop-only { display: none; }
.note { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 12px 16px;
  border-radius: 8px; margin: 16px 0; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink);
  color: #fff; padding: .6em 1.1em; border-radius: 8px; opacity: 0; transition: opacity .2s;
  pointer-events: none; z-index: 120; }
.toast.show { opacity: 1; }

/* ── Legal pages ─────────────────────────────────────────────────── */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
