/* Consult with Ankush school: one stylesheet, mobile-first, no build step. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5d636f;
  --line: #e7e4dc;
  --brand: #0f5b4f;
  --brand-ink: #ffffff;
  --brand-soft: #e5f1ee;
  --accent: #f2b33d;
  --danger: #b42318;
  --ok: #157f3b;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 6px 20px rgba(22, 24, 29, .06);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
section { padding: 48px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.logo { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.wa { background: var(--wa); color: #0b2e17; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.btn.danger { background: var(--danger); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 700; }
.tag.gold { background: #fdf1d8; color: #8a5a00; }

/* hero */
.hero { padding: 40px 0 32px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 1.35rem; }
.stat span { font-size: .78rem; color: var(--muted); }

/* price */
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .now { font-size: 2rem; font-weight: 800; }
.price s { color: var(--muted); font-size: 1.1rem; }
.price .off { background: #fdf1d8; color: #8a5a00; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 999px; }
.inr-note { font-size: .85rem; color: var(--muted); }

/* lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 7px 0 7px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.crosses li::before { content: "✕"; background: #fde8e6; color: var(--danger); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* notice box */
.note { border-left: 4px solid var(--accent); background: #fffaf0; padding: 14px 16px; border-radius: 10px; }

/* table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare td:last-child, .compare th:last-child { background: var(--brand-soft); font-weight: 600; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* forms */
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font: inherit; color: var(--ink);
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.error { color: var(--danger); font-size: .88rem; margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert.ok { background: #e7f6ec; color: var(--ok); }
.alert.bad { background: #fde8e6; color: var(--danger); }
.otp { letter-spacing: .5em; font-size: 1.4rem; text-align: center; font-weight: 700; }
.choice { display: grid; gap: 8px; }
.choice label { margin: 0; font-weight: 500; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice input { width: auto; min-height: 0; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* proof */
.proof-img { border-radius: 12px; border: 1px solid var(--line); max-height: 460px; object-fit: cover; object-position: top; width: 100%; }

/* sticky buy bar (mobile) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar .p { font-weight: 800; font-size: 1.15rem; }
.buybar .p s { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 4px; }
@media (min-width: 900px) { .buybar { display: none; } }
.has-buybar { padding-bottom: 84px; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: var(--shadow); }
.has-buybar .wa-float { bottom: calc(90px + env(safe-area-inset-bottom)); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
footer a { color: var(--muted); }

/* ---------- school ---------- */
.school-head { padding: 22px 0 6px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.course-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.course-card.locked { opacity: .96; border-style: dashed; }
.module { margin-bottom: 14px; }
.module h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.lesson-row .dot { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.lesson-row.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.lesson-row.current { border-color: var(--brand); }
.lesson-row .t { flex: 1; }
.lesson-row .d { color: var(--muted); font-size: .85rem; }
.lesson-row.lock { color: var(--muted); }
.player { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .empty { position: absolute; inset: 0; display: grid; place-items: center; color: #ddd; text-align: center; padding: 16px; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; text-decoration: none; color: inherit; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.admin-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.admin-nav a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi b { display: block; font-size: 1.4rem; }
.kpi span { font-size: .8rem; color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form > * { flex: 1 1 140px; }
.inline-form label { margin-top: 0; }
.status { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); }
.status.paid { background: #e7f6ec; color: var(--ok); }
.status.failed { background: #fde8e6; color: var(--danger); }
.pager { display: flex; gap: 8px; margin: 14px 0; }
.box-admin { margin-top: 12px; }
.admin-lesson { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; background: var(--bg); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
