/* Public pages (homepage + course detail). Rang theme.js ke variables se aate hain, taaki Site settings yahan bhi lagein. */
:root {
  --bg: #f4f2ee; --panel: #fff; --ink: #1d2430; --muted: #64707d; --line: #dedad2;
  --accent: #2b4acb; --accent-soft: #e4e9fb; --ok: #1d7a4d; --ok-soft: #dff1e7;
  --danger: #b3261e; --danger-soft: #fbe6e4; --radius: 8px;
  --soft: color-mix(in srgb, var(--ink) 4%, var(--panel));
  --soft-2: color-mix(in srgb, var(--ink) 8%, var(--panel));
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.06);
  --hero-1: var(--accent);
  --hero-2: color-mix(in srgb, var(--accent) 55%, #000);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.55; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.empty { padding: 28px 20px; color: var(--muted); border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--panel)); border-radius: 14px; background: var(--soft); text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 9px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; transition: background .15s, transform .1s; }
.btn:hover { background: var(--soft-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.light { background: #fff; color: #1d2430; border-color: transparent; }
.btn.light:hover { background: #eef0f4; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.outline-light:hover { background: rgba(255,255,255,.12); }

/* top bar */
.pub-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 66px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pub-brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-nav { display: flex; align-items: center; gap: 18px; }
.pub-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.pub-nav > a:not(.btn):hover { color: var(--ink); }
.pub-nav .btn, .pub-nav [data-theme-toggle] button { white-space: nowrap; }
.pub-main { max-width: 1160px; margin: 0 auto; padding: 0 24px 64px; }

/* homepage hero */
.hero { position: relative; overflow: hidden; margin: 28px 0 0; border-radius: 26px; color: #fff; padding: 64px 56px 92px;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 16px; font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; }
.hero p { margin: 0 0 28px; font-size: 18px; opacity: .92; max-width: 52ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 300px; }
.float-card { position: absolute; background: #fff; color: #1d2430; border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 15px; }
.float-card span { color: #64707d; font-size: 13px; }
.float-card .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.float-card .fi svg { width: 22px; height: 22px; }
.float-card.a { top: 4%; left: 6%; }
.float-card.b { top: 40%; right: 0; animation-delay: -2s; }
.float-card.c { bottom: 2%; left: 14%; animation-delay: -4s; }
.mini-bar { width: 140px; height: 7px; border-radius: 99px; background: #e8eaee; overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; width: 72%; background: #1d7a4d; border-radius: 99px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: -36px 40px 0; position: relative; z-index: 2; }
.stat-strip > div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); text-align: center; }
.stat-strip b { display: block; font-size: 30px; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.stat-strip span { color: var(--muted); font-weight: 600; font-size: 14px; }

.section { margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* course cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.course { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.course:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,24,40,.13); }
.course .cover, .course .cover-ph { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.cover-ph { display: grid !important; place-items: center; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--ph1, var(--accent)), var(--ph2, color-mix(in srgb, var(--accent) 55%, #000))); }
.course .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.course p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 17px; }
.price.free { color: var(--ok); }
.go { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.go svg { width: 16px; height: 16px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.feature .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink, #fff); display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 0 0 4px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.cta-band { margin-top: 72px; border-radius: 24px; padding: 44px; color: #fff; background: linear-gradient(135deg, var(--hero-2), var(--hero-1));
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.cta-band p { margin: 0; opacity: .9; }

/* course detail */
.c-hero { margin: 24px 0 0; border-radius: 24px; color: #fff; padding: 40px 44px; padding-right: 400px;
  background: radial-gradient(900px 300px at 90% -20%, rgba(255,255,255,.16), transparent 60%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.c-hero .crumbs { display: flex; gap: 8px; font-size: 14px; margin-bottom: 14px; opacity: .9; }
.c-hero .crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.c-hero h1 { margin: 0 0 12px; font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.c-hero .lead { margin: 0 0 18px; font-size: 17px; opacity: .92; max-width: 62ch; }
.c-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.c-meta .who { display: inline-flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.2); color: #fff; }
.chip-dark { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.chip-dark svg { width: 16px; height: 16px; }
.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.c-content { display: grid; gap: 20px; margin-top: 24px; }
.c-side { position: sticky; top: 86px; margin-top: -170px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.01em; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.card.buy { padding: 0; overflow: hidden; box-shadow: 0 18px 44px rgba(16,24,40,.16); }
.buy-cover .cover, .buy-cover .cover-ph { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.buy-body { padding: 22px; }
.price-big { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.price-big.free { color: var(--ok); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.facts li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.f-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.f-ic svg { width: 18px; height: 18px; }
.outline { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.outline details { border-bottom: 1px solid var(--line); }
.outline details:last-child { border-bottom: 0; }
.outline summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--soft); font-weight: 600; }
.outline summary::-webkit-details-marker { display: none; }
.outline summary:hover { background: var(--soft-2); }
.o-chev { display: inline-flex; transition: transform .15s; color: var(--muted); }
.o-chev svg { width: 18px; height: 18px; }
.outline details[open] .o-chev { transform: rotate(90deg); }
.o-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.outline ul { list-style: none; margin: 0; padding: 6px 16px 10px 44px; }
.outline li { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--ink); font-size: 14.5px; }
.outline li svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.rich { line-height: 1.7; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; }
.rich p { margin: 0 0 12px; }

[data-site-footer] { margin-top: 64px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 48px 36px; }
  .hero-art { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .c-hero { padding-right: 44px; }
  .c-layout { grid-template-columns: 1fr; }
  .c-side { position: static; margin-top: 20px; order: -1; }
}
@media (max-width: 640px) {
  .pub-top { padding: 0 14px; height: 58px; }
  .pub-nav { gap: 10px; }
  .pub-nav > a:not(.btn) { display: none; }
  .pub-main { padding: 0 14px 48px; }
  .hero { padding: 36px 22px; border-radius: 20px; margin-top: 16px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .stat-strip { margin: 14px 0 0; gap: 10px; }
  .stat-strip > div { padding: 14px 8px; }
  .stat-strip b { font-size: 22px; }
  .stat-strip span { font-size: 12.5px; }
  .section { margin-top: 48px; }
  .section-head h2 { font-size: 25px; }
  .features { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .c-hero { padding: 28px 22px; border-radius: 20px; margin-top: 16px; }
  .c-hero h1 { font-size: 27px; }
  .facts { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}
