/* bolbo.app — the app's paper, navy and emerald; Inter for Latin, Anek
   Bangla for Bangla; light and dark; phone first. */

:root {
  --page: #F7F6F2;
  --page-2: #EFF5EF;
  --surface: #FFFFFF;
  --text: #14284B;
  --muted: #56617A;
  --line: #E3E6EC;
  --navy: #14284B;
  --green: #08773A;
  --emerald: #17D96F;
  --warm: #B54A28;
  --gold: #F2B01E;
  --mint: #EEF8F2;
  --mint-line: #BFE0CC;
  --sky: #EDF2FB;
  --peach: #FDF1EB;
  --butter: #FFF7E2;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 12px 32px -12px rgba(20, 40, 75, .18);
  --shadow-lg: 0 2px 4px rgba(20, 40, 75, .06), 0 30px 60px -20px rgba(20, 40, 75, .30);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121826;
    --page-2: #151C2B;
    --surface: #1E2233;
    --text: #EEF2F8;
    --muted: #A3ACBD;
    --line: #2C3247;
    --green: #3FC974;
    --warm: #F0A585;
    --mint: #1A2A26;
    --mint-line: #2E4A44;
    --sky: #1C2438;
    --peach: #2A2024;
    --butter: #29261C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
  .scene-img { filter: brightness(.9); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', 'Anek Bangla', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.bn { font-family: 'Anek Bangla', 'Inter', sans-serif; line-height: 1.65; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark {
  width: 38px; height: 38px; border-radius: 11px; background: #14284B; color: var(--emerald);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.word { font-family: 'Anek Bangla', sans-serif; font-weight: 700; font-size: 21px; line-height: 1; }
.word small { display: block; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .2em; color: var(--muted); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .pill { margin-left: auto; } }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  border-radius: 14px; padding: 14px 22px; font-size: 16px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .btn-primary { background: #EEF2F8; color: #14284B; } }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.play-badge { line-height: 1.1; }
.play-badge small { display: block; font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .02em; }
.play-badge span { font-size: 17px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--mint); color: var(--green); border: 1px solid var(--mint-line); font-weight: 700; font-size: 13px; text-decoration: none;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 25%, transparent); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; margin-bottom: 18px; }
h1 {
  font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 800;
}
h1 .accent { color: var(--green); }
.hero .bn-lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--muted); font-weight: 600; font-size: 14px; }
.trust span::before { content: '✓'; color: var(--green); margin-right: 6px; font-weight: 800; }

.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: center; }
.stage .scene {
  position: absolute; inset: 8% 0 18% 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.stage .scene img { width: 100%; height: 100%; object-fit: cover; }
.stage .phone { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 44%; }
.chip {
  position: absolute; z-index: 3; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 9px 16px; font-weight: 700; font-size: clamp(14px, 1.8vw, 18px); box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.chip.de { top: 2%; left: 4%; color: var(--warm); }
.chip.bn { top: 30%; right: -2%; color: var(--green); animation-delay: -2s; font-family: 'Anek Bangla', sans-serif; }
.chip.en { bottom: 30%; left: -3%; color: var(--text); animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

/* ── Phone frame ────────────────────────────────────────────── */
.phone {
  aspect-ratio: 390 / 844; border-radius: 13% / 6%; padding: 3.2%; background: #0F1B33;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2A3A5C; position: relative;
  display: flex; flex-direction: column;
}
/* The screenshots have no status bar: a strip stands in for it, so the
   camera sits above the app rather than on it. */
.phone::before { content: ''; flex: none; height: 5.2%; background: #fff; border-radius: 30px 30px 0 0; }
.phone img {
  flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top;
  border-radius: 0 0 30px 30px; background: #fff;
}
.phone::after {
  content: ''; position: absolute; top: 4.1%; left: 50%; transform: translateX(-50%);
  width: 24%; height: 2.3%; border-radius: 99px; background: #0F1B33;
}

/* ── Numbers ────────────────────────────────────────────────── */
.numbers { padding: 16px 0 8px; }
.numbers .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .numbers .grid { grid-template-columns: repeat(2, 1fr); } }
.num { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.num b { display: block; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.num span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 80px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }
.tint { background: var(--page-2); }
.head { max-width: 640px; margin: 0 0 40px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }
.head .bn { margin-top: 6px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 18px; }
  .feature img { width: 64px; height: 64px; margin: 0; grid-row: span 3; }
  .feature h3 { font-size: 17px; }
}
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); }
.feature .bn { font-size: 15px; margin-top: 8px; color: var(--text); opacity: .85; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .levels {
    grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 0 20px 12px; scrollbar-width: none;
  }
  .levels::-webkit-scrollbar { display: none; }
  .level { scroll-snap-align: center; }
}
.level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.level:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.level img { width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.level .body { padding: 18px 20px 20px; }
.badge {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px;
  font-weight: 800; font-size: 14px; margin-bottom: 10px; border: 1px solid;
}
.b-a1 { background: var(--mint); color: var(--green); border-color: var(--mint-line); }
.b-a2 { background: var(--sky); color: #2B4C8C; border-color: #C3D1EA; }
.b-b1 { background: var(--butter); color: #8A5E00; border-color: #E8D49C; }
.b-b2 { background: var(--peach); color: var(--warm); border-color: #EBC7B6; }
@media (prefers-color-scheme: dark) {
  .b-a2 { color: #A6BEE6; border-color: #32415F; }
  .b-b1 { color: #F5BC42; border-color: #4A4537; }
  .b-b2 { border-color: #4C3A3E; }
}
.level h3 { margin: 0; font-size: 18px; }
.level .band { color: var(--muted); font-weight: 600; font-size: 14px; margin: 2px 0 10px; }
.level .meta { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) {
  .screens { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .screens figure { scroll-snap-align: center; }
}
.screens figure { margin: 0; }
.screens .phone { width: min(280px, 100%); margin: 0 auto; }
.screens figcaption { text-align: center; margin-top: 18px; }
.screens figcaption b { display: block; font-size: 17px; }
.screens figcaption span { color: var(--muted); font-size: 15px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split .art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .art img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--green); font-weight: 800; font-size: 14px; border: 1px solid var(--mint-line); margin-top: 1px;
}

/* goals */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; } }
.goal { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.goal img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.goal b { display: block; font-size: 17px; }
.goal span { color: var(--muted); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 16px 32px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* final call */
.final { position: relative; border-radius: 36px; overflow: hidden; min-height: 380px; display: grid; align-items: end; box-shadow: var(--shadow-lg); }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final .panel {
  position: relative; margin: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 24px; padding: 28px; max-width: 560px; border: 1px solid var(--line);
}
.final h2 { font-size: clamp(26px, 3.6vw, 36px); }
.final p { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 640px) {
  .final { display: block; min-height: 0; }
  .final > img { position: relative; height: auto; aspect-ratio: 2.1; }
  .final .panel { margin: -32px 12px 12px; padding: 22px; }
}

/* footer */
footer { padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--text); }

/* ── Document pages (privacy, deletion) ─────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-top: 16px; }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 8px; }
.doc .lead { font-size: 19px; color: var(--muted); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.doc .card.mint { background: var(--mint); border-color: var(--mint-line); }
.doc .card h2 { margin-top: 0; }
.doc ol.steps { padding-left: 22px; }
.doc ol.steps li { margin: 8px 0; }
.doc li { margin: 4px 0; }

/* ── Reveal on scroll (only when JS runs; still under reduce-motion) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feature, .level, .btn { transition: none; }
}
