/* BooksOn HSN — www.bookson.co.in
   Tokens mirror bookson.in (Books/frontend/styles/tokens.css) and the app theme, so the
   website, the app and the logo read as one product. System fonts only: the site makes no
   third-party requests. */

/* Same self-hosted faces as bookson.in (Books/frontend/features/site/siteFonts.ts), SIL Open Font License. */
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --font-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", sans-serif;
  --page: #f7f8fc;
  --card: #ffffff;
  --raised: #f1f3f9;
  --border: #dee3ec;
  --ink: #0f172a;
  --muted: #525c6b;
  --brand: #4f46e5;
  --brand-ink: #312e81;
  --brand-soft: #e0e7ff;
  --violet: #7e22ce;
  --teal: #0f766e;
  --warn-bg: #fef3c7;
  --warn-ink: #78350f;
  --hero: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7e22ce 100%);
  --cta: linear-gradient(90deg, #4f46e5, #7e22ce 60%, #0f766e);
  --cta-ink: #ffffff;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 4px 12px -2px rgb(15 23 42 / .08);
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b0f1a;
    --card: #141a28;
    --raised: #1d2536;
    --border: #2a3346;
    --ink: #e8ecf5;
    --muted: #9ba6bc;
    --brand: #a5b4fc;
    --brand-ink: #e0e7ff;
    --brand-soft: #312e81;
    --violet: #c084fc;
    --teal: #5eead4;
    --warn-bg: #5c2e05;
    --warn-ink: #fef3c7;
    --hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
    --cta: linear-gradient(90deg, #a5b4fc, #c084fc 60%, #5eead4);
    --cta-ink: #1e1b4b;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px -2px rgb(0 0 0 / .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .brand, .store span, .btn { font-family: var(--font-display); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 .5em; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; }

/* ── top bar ─────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px -4px rgb(79 70 229 / .45); }
.brand .word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; }
.brand .word b { color: var(--brand); font-weight: 800; }
.brand .word sup { font-size: .42em; font-weight: 600; color: var(--muted); vertical-align: top; margin-left: 1px; }
.brand .product { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.menu-btn { display: none; margin-left: auto; background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--border); padding: 8px 12px 14px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
}

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .16) 1px, transparent 0) 0 0 / 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgb(20 184 166 / .45), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgb(255 255 255 / .3); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; display: inline-block; }
.hero h1 b { color: #c7d2fe; }
.hero .lead { font-size: 1.15rem; opacity: .92; max-width: 34em; }
.hero .phone { justify-self: center; width: min(300px, 80%); border-radius: 34px; padding: 10px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); box-shadow: 0 30px 60px -20px rgb(15 23 42 / .6); }
.hero .phone img { border-radius: 26px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } .hero .phone { width: min(260px, 75%); } }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #0b0f1a; color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .22); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.store span { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.store:hover { background: #1d2536; }
/* Colourful store buttons: brand-palette gradients (not the stores' logos, which need their official badge artwork). */
.store.play { background: linear-gradient(135deg, #0f766e 0%, #15803d 55%, #22c55e 100%); border-color: rgb(255 255 255 / .3); box-shadow: 0 10px 22px -10px rgb(22 163 74 / .7); }
.store.galaxy { background: linear-gradient(135deg, #5b21b6 0%, #a21caf 55%, #ec4899 100%); border-color: rgb(255 255 255 / .3); box-shadow: 0 10px 22px -10px rgb(236 72 153 / .65); }
.store.play, .store.galaxy { color: #fff; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.store.play:hover, .store.galaxy:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.store.play svg, .store.galaxy svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: rgb(255 255 255 / .22); }
.hero .fine { font-size: .85rem; opacity: .85; margin-top: 8px; }

/* ── sections ────────────────────────────────────────────── */
section.block { padding: 64px 0; }
section.block.alt { background: var(--card); border-block: 1px solid var(--border); }
.kicker { color: var(--teal); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.intro { color: var(--muted); max-width: 44em; font-size: 1.05rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
section.alt .card { background: var(--page); box-shadow: none; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; margin-top: 24px; }
.shots figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.shots figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; font-weight: 600; }

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.steps li { list-style: none; counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: grid; place-items: center; font-weight: 800; }
.steps li b { display: block; color: var(--ink); }
.steps { padding: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid color-mix(in srgb, var(--warn-ink) 18%, transparent); border-radius: 14px; padding: 14px 16px; margin: 18px 0; }
.notice strong { display: block; }

.cta-band { background: var(--cta); color: var(--cta-ink); border-radius: 24px; padding: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; opacity: .9; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; background: var(--card); color: var(--brand-ink); border: 1px solid var(--border); }
.btn:hover { box-shadow: var(--shadow); }

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); }

/* ── document pages (terms, privacy, …) ──────────────────── */
.doc-head { background: var(--hero); color: #fff; padding: 44px 0 38px; position: relative; overflow: hidden; }
.doc-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .14) 1px, transparent 0) 0 0 / 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.doc-head .wrap { position: relative; }
.doc-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.doc-head p { margin: 0; opacity: .9; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 20px 64px; max-width: var(--max); margin: 0 auto; }
.toc { position: sticky; top: 84px; align-self: start; font-size: .9rem; }
.toc b { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.doc article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); min-width: 0; }
.doc article h2 { font-size: 1.3rem; margin: 30px 0 10px; scroll-margin-top: 84px; }
.doc article h2:first-child { margin-top: 0; }
.doc article li { margin: 6px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta span { background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.tbl { overflow-x: auto; margin: 12px 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--raised); }
.muted { color: var(--muted); }
.facts { max-width: 860px; }
.facts caption { text-align: left; padding: 0 0 8px; font-weight: 600; }
.facts th { width: 28%; background: var(--raised); }
.facts td, .facts th { background-clip: padding-box; }
section.block .tbl table { background: var(--card); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; background: var(--raised); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; padding-top: 24px; } .toc { position: static; } .doc article { padding: 22px 18px; } }

/* ── footer (fixed navy in both themes, as on bookson.in) ─ */
footer.site { background: #0b0f1a; color: rgb(255 255 255 / .62); font-size: .9rem; }
footer.site .ribbon { height: 4px; background: linear-gradient(90deg, #4f46e5, #7e22ce 60%, #0f766e); }
footer.site a { color: rgb(255 255 255 / .62); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding: 44px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
footer.site .brand { color: #fff; }
footer.site .brand .word b { color: #a5b4fc; }
footer.site .brand .word sup { color: #94a3b8; }
footer.site .brand .product { background: rgb(165 180 252 / .16); color: #c7d2fe; }
footer.site .tagline { margin: 14px 0 4px; color: rgb(255 255 255 / .82); max-width: 26em; }
footer.site .slogan { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .45); margin: 0; }
footer.site .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
footer.site .actions .store:hover { color: #fff; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: 1.3fr 1fr 1fr; padding: 38px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
footer.site h4 { font-family: var(--font-body); color: rgb(255 255 255 / .45); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
footer.site .ari { height: 48px; width: auto; margin-bottom: 18px; }
footer.site address { font-style: normal; line-height: 1.65; }
footer.site address b { color: rgb(255 255 255 / .82); font-weight: 600; }
footer.site .ids { font-size: .78rem; color: rgb(255 255 255 / .45); margin-top: 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 7px 0; }
footer.site .bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding: 22px 0 36px; font-size: .78rem; color: rgb(255 255 255 / .45); }
footer.site .bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site .bottom a { color: rgb(255 255 255 / .45); }
footer.site .bottom a:hover { color: #fff; }
footer.site .bottom .copy { text-align: right; }
footer.site .bottom .copy p { margin: 0 0 4px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .bottom .copy { text-align: left; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }
@media print { .topbar, footer.site, .toc, .menu-btn { display: none !important; } .doc { display: block; } .doc article { box-shadow: none; border: 0; } }
