/* Mukta Edu Mall. Light theme by default; theme.js switches html[data-theme]. */
@font-face { font-family: "Inter Logo"; src: url("/static/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --bg: #f7f6f2; --bg-2: #efede6; --card: #ffffff; --text: #18203a; --muted: #555d78; --border: rgba(24, 32, 58, .13);
  --accent: #3f4fd1; --accent-2: #0e8fa8; --warn: #b45309; --ok: #15803d; --red: #c2410c;
  --grad: linear-gradient(120deg, #3f4fd1 0%, #0e8fa8 100%); --shadow: 0 18px 44px -26px rgba(30, 40, 90, .45);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0f1b; --bg-2: #121628; --card: #161b2f; --text: #eef0fb; --muted: #a3a9c4; --border: rgba(255, 255, 255, .11);
  --accent: #8c99ff; --accent-2: #2fd6f0; --warn: #fbbf24; --ok: #4ade80; --red: #fb923c;
  --grad: linear-gradient(120deg, #7c8bff 0%, #2fd6f0 100%); --shadow: 0 18px 44px -26px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans Gujarati", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 24px; margin: 34px 0 14px; letter-spacing: -.01em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0; }
.big { font-size: 21px; font-weight: 700; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.alert { color: var(--red); font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.wordmark { font-family: "Inter Logo", Inter, system-ui, sans-serif; font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.03em; display: inline-flex; align-items: baseline; }
.wordmark i, .cover-brand i { display: inline-block; width: .2em; height: .2em; margin-left: .06em; border-radius: 50%; background: #F59E0B; }
.logo-sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border); line-height: 1.6; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); white-space: nowrap; }
.nav-links a:hover { border-color: var(--accent); }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; padding: 0; flex: none; }
.nav-drop { display: grid; gap: 4px; padding: 8px 16px 14px; border-top: 1px solid var(--border); }
.nav-drop a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 4px; }
@media (min-width: 721px) { .nav-menu, .nav-drop { display: none !important; } }
@media (max-width: 720px) { .nav-links a { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--grad); border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 26px -12px rgba(63, 79, 209, .7); }
:root[data-theme="dark"] .btn { color: #0a0c16; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }
@media (pointer: fine) { .mobile-only { display: none !important; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); margin: 16px 0; }
input, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }

.hero { padding: 56px 0 30px; background: radial-gradient(900px 380px at 15% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), radial-gradient(700px 320px at 90% 10%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent); }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 8px 0; }
.lead.hi { font-size: 16px; }

.shelf { font-size: 18px; margin: 26px 0 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 14px; }
.book { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.book:hover { transform: translateY(-3px); }
.book-info { display: grid; gap: 4px; padding: 14px 16px 16px; }
.cover { --h: 222; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h) 62% 42%), hsl(calc(var(--h) + 35) 66% 30%)); position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.cover-grp { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cover-title { font-size: 21px; font-weight: 800; line-height: 1.2; position: relative; z-index: 1; }
.cover-brand { font-family: "Inter Logo", system-ui, sans-serif; font-weight: 800; font-size: 14px; opacity: .9; }
.cover.big { border-radius: 18px; box-shadow: var(--shadow); max-width: 340px; }
.cover.big .cover-title { font-size: 28px; }
.price { font-weight: 800; font-size: 18px; }
.mrp { color: var(--muted); } .off { color: var(--ok); font-weight: 700; font-size: 14px; }
.big-price .price { font-size: 30px; }

.product { display: grid; grid-template-columns: 320px 1fr; gap: 36px; padding: 36px 0; align-items: start; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product-cover .cover { max-width: 220px; } }
.buy h2 { margin-top: 0; }
.desc p { margin: 8px 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.step span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.step b { display: block; margin: 10px 0 4px; } .step p { margin: 0; color: var(--muted); font-size: 15px; }

.pay-row { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
#upiQr { width: 232px; height: 232px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.utr { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.utr input { flex: 1 1 220px; }
details summary { cursor: pointer; color: var(--accent); margin-top: 10px; }
.prose ul { padding-left: 20px; }

.reader-head { padding: 24px 0 6px; }
.reader-head h1 { font-size: 26px; }
.reader { width: min(980px, 100% - 16px); margin: 0 auto 30px; display: grid; gap: 14px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.page-wrap { position: relative; }
.page { width: 100%; background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.page canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.page-no { position: absolute; right: 10px; bottom: -22px; font-size: 12px; color: var(--muted); }
.reader.hidden-tab { visibility: hidden; }
.reader-stop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 16px; }
@media print { body * { display: none !important; } body::after { content: "Printing is not allowed."; display: block; } }

footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* home: animated hero and the medium / semester picker */
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; }
#heroWord { display: inline-block; transition: opacity .35s, transform .35s; }
#heroWord.out { opacity: 0; transform: translateY(8px); }
.lead.gu { font-size: 16px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.hero-stats span { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.hero-stats b { color: var(--text); }
.step-label { font-weight: 700; margin: 22px 0 10px; }
.step-label span { color: var(--muted); font-weight: 500; }
.medium-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.medium-tab { text-align: left; font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.medium-tab b { font-size: 19px; }
.medium-tab span { color: var(--muted); font-size: 14px; }
.medium-tab em { font-style: normal; font-size: 13px; color: var(--accent-2); font-weight: 700; }
.medium-tab:hover { transform: translateY(-2px); }
.medium-tab.on { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.sem-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sem-tab { font: inherit; font-weight: 800; font-size: 16px; color: var(--text); background: var(--card); border: 2px solid var(--border); border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: all .2s; }
.sem-tab.on { background: var(--grad); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .sem-tab.on { color: #0a0c16; }
.subject { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.cover-sub { font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.book.pop { animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .book.pop { animation: none; } #heroWord { transition: none; } }
.reader.blurred canvas { filter: blur(18px); }
