/* ============================================================
   কাজের ইংরেজি / Kajer English — style.css
   Mobile-first · calm teal/navy + warm amber · dark-mode friendly
   No frameworks, no images, low-end-Android friendly.
   ============================================================ */

:root {
  color-scheme: light dark;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* light palette */
  --bg: #FAF7F2;
  --bg-alt: #F3EDE2;
  --surface: #FFFFFF;
  --ink: #1E2A32;
  --muted: #5C6B75;
  --teal: #0E6B5C;
  --teal-deep: #0A4A40;
  --accent: #E9A23B;
  --accent-ink: #2C1D05;
  --tagline: #8F5F10;
  --line: #E7DFD3;
  --phrase-bg: #F5F0E6;
  --wa: #1FA855;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A24;
    --bg-alt: #0C1620;
    --surface: #17242F;
    --ink: #ECF2F5;
    --muted: #9DAEB9;
    --teal: #46BFA9;
    --teal-deep: #0C2E29;
    --accent: #E9A23B;
    --accent-ink: #221703;
    --tagline: #F0C078;
    --line: #263844;
    --phrase-bg: #101B24;
    --wa: #22B45E;
    --shadow: none;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
p { margin: 0 0 1em; }
a { color: var(--teal); }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 14px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 22px; height: 22px; flex: none; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow); }
.btn-wa:hover { filter: brightness(1.06); }

.btn-teal { background: var(--teal); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-big { min-height: 60px; padding: 16px 30px; font-size: 1.15rem; }

.btn-link {
  background: none; border: 0; padding: 8px 0; min-height: 48px;
  color: var(--teal); font: 700 1rem var(--font);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.micro { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-bn { font-weight: 700; font-size: 1.18rem; color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .brand-bn { color: var(--teal); } }
.brand-en { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.lang-btn {
  min-height: 48px; padding: 8px 18px;
  border-radius: 999px; border: 1.5px solid var(--teal);
  background: transparent; color: var(--teal);
  font: 700 .95rem var(--font); cursor: pointer;
}
.lang-btn:hover { background: var(--teal); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 8vw, 84px) 0 clamp(40px, 7vw, 72px); }
.kicker { color: var(--teal); font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); margin-bottom: 4px; }
.tagline { font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 700; color: var(--tagline); margin-bottom: 18px; }
.teacher-credit { font-size: .9rem; color: var(--muted); margin: -10px 0 18px; }
.lead { max-width: 34em; font-size: 1.06rem; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  font-size: .88rem; color: var(--muted);
}

/* ---------- sections ---------- */
.sec { padding: clamp(44px, 7vw, 72px) 0; }
.sec-alt { background: var(--bg-alt); }
.sec-sub { color: var(--muted); max-width: 40em; margin-bottom: 26px; font-size: 1.02rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ---------- is this for you ---------- */
.sit-grid { display: grid; gap: 12px; }
.sit { display: flex; gap: 14px; align-items: flex-start; }
.sit p { margin: 0; }
.sit-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem;
  margin-top: 2px;
}

.placement { margin-top: 28px; border-top: 4px solid var(--accent); }
.placement h3 { font-size: 1.1rem; }
.pq-step { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pq-q { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.pq-btns { display: flex; gap: 12px; }
.pq-btns .btn { flex: 1; }
.pq-result p { font-weight: 700; font-size: 1.08rem; margin-bottom: 14px; }
#pqAgain { display: block; margin-top: 6px; }

.needs-js { display: none; }
.js .needs-js { display: block; }
.js .placement noscript { display: none; }

/* ---------- learn cards ---------- */
.card-grid { display: grid; gap: 16px; }
.learn .lic { width: 30px; height: 30px; color: var(--teal); }
.learn h3 { font-size: 1.1rem; margin: 10px 0 4px; }
.learn > p { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.phrase {
  margin: 0; background: var(--phrase-bg);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 10px 12px;
  font-size: .95rem;
}
.phrase span { display: block; }
.phrase small { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }

/* ---------- how classes work ---------- */
.how-list { display: grid; gap: 12px; max-width: 46em; }
.how-list li { display: flex; gap: 10px; align-items: flex-start; }
.hic { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 5px; }

.clock { margin-top: 28px; }
.clock h3 { font-size: 1.15rem; }
.bars { display: grid; gap: 10px; margin-bottom: 8px; }
.bar-row {
  display: grid; grid-template-columns: 56px 1fr 34%;
  gap: 10px; align-items: center;
}
.bar-min { font-size: .85rem; color: var(--muted); }
.bar-label { font-size: .95rem; }
.bar {
  height: 24px; border-radius: 999px;
  background: var(--phrase-bg); overflow: hidden;
}
.bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
}

/* ---------- 12-week journey ---------- */
.phase-grid { display: grid; gap: 16px; }
.phase-n {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 10px;
}
.phase-week {
  display: inline-block; margin-left: 10px;
  border: 1.5px solid var(--teal); color: var(--teal);
  border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700;
  vertical-align: middle;
}
.phase h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.phase ul { display: grid; gap: 7px; }
.phase li { position: relative; padding-left: 16px; font-size: .95rem; }
.phase li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- price ---------- */
.price-grid { display: grid; gap: 16px; align-items: start; }
.price-card { border: 2px solid var(--accent); }
.badge {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 5px 14px;
  font-size: .85rem; font-weight: 700; margin-bottom: 12px;
}
.price { margin-bottom: 4px; }
.price strong { font-size: 2.5rem; font-weight: 700; color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .price strong { color: var(--teal); } }
.price .per { color: var(--muted); font-size: 1.05rem; margin-left: 4px; }
.was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-card h3 { font-size: 1.05rem; margin: 18px 0 10px; }
.price-card ul, .sched ul { display: grid; gap: 10px; }
.price-card li, .sched li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.price-card .btn { width: 100%; margin-top: 18px; }
.sched .next { margin-top: 16px; font-weight: 700; color: var(--teal); }

/* ---------- teacher ---------- */
.teacher-in { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.avatar {
  width: 144px; height: 144px; border-radius: 50%;
  background: var(--teal-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700;
  border: 4px solid var(--accent);
}
.t-name { font-size: 1.3rem; color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .t-name { color: var(--teal); } }
.bio { max-width: 40em; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 780px; }
details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; min-height: 56px;
  font-weight: 700; font-size: 1.03rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex: none;
  font-size: 1.5rem; line-height: 1; color: var(--teal); font-weight: 700;
}
details.faq[open] summary::after { content: "−"; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq p { padding: 14px 18px 16px; margin: 0; font-size: .98rem; }

/* ---------- final cta ---------- */
.final-cta {
  background: var(--teal-deep); color: #F2F7F5;
  text-align: center;
  padding: clamp(52px, 8vw, 80px) 0;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .82); max-width: 30em; margin-inline: auto; }
.final-cta .micro { color: rgba(255, 255, 255, .68); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 28px; }
.foot-in { display: grid; gap: 22px; }
.foot-brand .brand-bn { font-size: 1.2rem; }
.tagline-sm { color: var(--muted); font-size: .95rem; margin: 2px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: start; }
.foot-nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--teal); }
.foot-meta p { margin: 0 0 4px; font-size: .95rem; }
.foot-meta .tiny { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ---------- sticky bottom CTA bar (mobile) ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(10, 20, 30, .08);
}
.sb-price { display: flex; flex-direction: column; line-height: 1.25; }
.sb-price strong { color: var(--teal-deep); font-size: 1.02rem; }
@media (prefers-color-scheme: dark) { .sb-price strong { color: var(--teal); } }
.sb-price span { font-size: .78rem; color: var(--muted); }
.sb-btn { min-height: 48px; padding: 10px 18px; flex: none; }

@media (max-width: 767.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .cta-bar { display: none; }
}

/* ---------- responsive grids ---------- */
@media (min-width: 640px) {
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .teacher-in { flex-direction: row; gap: 28px; }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .phase-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 3fr 2fr; }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-nav { flex-direction: column; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
