/* ==========================================================
   दीपोत्सव — sales site styles
   Mobile-first. Palette: ivory, emerald, gold, saffron, magenta.
   ========================================================== */
:root {
  --ivory: #fcf7ee;
  --ivory-2: #f6ecda;
  --ivory-3: #efe0c4;
  --emerald: #0f4d35;
  --emerald-deep: #0a3524;
  --emerald-ink: #08291c;
  --gold: #b8862a;
  --gold-light: #e9c46a;
  --gold-pale: #f6e3b0;
  --saffron: #e9781a;
  --marigold: #f4ab1c;
  --magenta: #b0175d;
  --burgundy: #84133a;
  --ink: #2b1b12;
  --ink-2: #4f3d31;
  --line: #e4d3b4;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(60, 30, 10, .28);
  /* Noto Sans Gujarati supplies the Gujarati letters inside mixed Hindi/Gujarati text */
  --font-display: "Rozha One", "Tiro Devanagari Hindi", "Noto Sans Gujarati", serif;
  --font-body: "Mukta", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); color: var(--emerald-deep); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--emerald-deep); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--emerald-deep); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 84px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  color: var(--saffron); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: 700 1.08rem/1.2 var(--font-body);
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-buy {
  color: #fff;
  background: linear-gradient(180deg, #c21d68 0%, var(--magenta) 45%, var(--burgundy) 100%);
  box-shadow: 0 8px 20px -8px rgba(132, 19, 58, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(132, 19, 58, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-buy:active { transform: translateY(0); }
.btn-buy svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { color: var(--emerald-deep); background: transparent; border: 2px solid var(--emerald); }
.btn-ghost:hover { background: rgba(15,77,53,.07); }
.btn-wide { width: 100%; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn[aria-disabled="true"], .btn:disabled { background: #cfc4b3; color: #5b4f44; box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 53, 36, .97);
  border-bottom: 1px solid rgba(233, 196, 106, .35);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-pale); text-decoration: none; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; color: var(--gold-light); }
.brand-sub { display: none; font-size: .78rem; color: #cfe3d6; line-height: 1.2; }
@media (min-width: 560px) { .brand-sub { display: block; } }
.main-nav { display: none; }
.main-nav a { color: #f3e9d2; text-decoration: none; font-weight: 600; padding: 8px 4px; }
.main-nav a:hover { color: var(--gold-light); }
@media (min-width: 900px) { .main-nav { display: flex; gap: 26px; } }
.header-cta { flex: none; }
.header-cta.btn { min-height: 44px; padding: 8px 18px; font-size: .98rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #f7efdc;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244,171,28,.18), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(176,23,93,.18), transparent 60%),
    linear-gradient(170deg, var(--emerald) 0%, var(--emerald-deep) 55%, var(--emerald-ink) 100%);
  padding: 36px 0 56px;
}
.hero-motif { position: absolute; width: 560px; height: 560px; right: -210px; top: -170px; opacity: .13; color: var(--gold-light); pointer-events: none; }
.hero-motif.two { width: 380px; height: 380px; left: -190px; right: auto; top: auto; bottom: -160px; opacity: .1; }
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero .eyebrow { color: var(--marigold); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 1.3rem + 4.2vw, 3.7rem);
  line-height: 1.18; color: #fff; margin-bottom: 14px;
}
.hero h1 .accent { color: var(--gold-light); display: inline-block; }
.hero-lead { font-size: 1.12rem; color: #e6efe8; max-width: 38em; }
.hero-lead strong { color: #fff; }
.benefits { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: #f4ecd8; }
.benefits svg { flex: none; width: 24px; height: 24px; margin-top: 3px; color: var(--marigold); }

.hero-visual { display: flex; justify-content: center; align-items: center; padding: 8px 0 4px; }

/* 3D book mockup */
.book { position: relative; width: min(64vw, 300px); aspect-ratio: 1240 / 1754; perspective: 1400px; }
.book-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .6s ease;
}
.book:hover .book-inner { transform: rotateY(-12deg) rotateX(2deg); }
.book-cover {
  position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(233,196,106,.4);
  transform: translateZ(14px);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.12) 3%, transparent 9%, transparent 80%, rgba(255,255,255,.08)); }
.book-pages {
  position: absolute; top: 4px; bottom: 4px; right: -14px; width: 28px;
  background: repeating-linear-gradient(90deg, #f8f1e2 0 2px, #e3d6bd 2px 3px);
  transform: rotateY(90deg) translateZ(0); transform-origin: left center;
  left: calc(100% - 14px);
}
.book-back { position: absolute; inset: 0; background: #082a1c; border-radius: 3px 8px 8px 3px; transform: translateZ(-14px); }
.pdf-badge {
  position: absolute; left: -14px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--ivory); color: var(--emerald-deep);
  padding: 8px 14px 8px 10px; border-radius: 12px;
  font-weight: 800; font-size: .92rem; line-height: 1.15;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  border: 2px solid var(--gold-light);
}
.pdf-badge svg { width: 30px; height: 30px; color: var(--magenta); flex: none; }
.pdf-badge small { display: block; font-weight: 600; font-size: .78rem; color: var(--ink-2); }

/* price card */
.price-card {
  background: var(--ivory); color: var(--ink);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.55);
  border: 1px solid var(--gold-light);
  position: relative;
}
.price-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(184,134,42,.45); border-radius: 17px; pointer-events: none;
}
.price-lines { margin: 0 0 16px; }
.price-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-lines dt { color: var(--ink-2); }
.price-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-lines .total { border-bottom: 0; padding-top: 10px; align-items: baseline; }
.price-lines .total dt { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.price-lines .total dd { font-size: 1.85rem; font-weight: 800; color: var(--burgundy); line-height: 1; }
.assure { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); margin: 12px 0 0; line-height: 1.5; }
.assure svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--emerald); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.meta-chips li { font-size: .86rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--ivory-2); color: var(--emerald-deep); border: 1px solid var(--line); }

@media (min-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy visual" "copy price"; column-gap: 56px; row-gap: 22px; align-items: start; }
  .hero-copy { grid-area: copy; align-self: center; }
  .hero-visual { grid-area: visual; }
  .hero-price { grid-area: price; }
  .book { width: 230px; }
  .hero-price .price-card { padding: 18px 20px; }
  .hero-price .price-lines > div { padding: 4px 0; }
}

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); padding: 0 16px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; max-width: 260px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.divider svg { width: 36px; height: 36px; }

/* ---------- Problems ---------- */
.problems { background: var(--ivory); }
.problem-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.problem {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.problem-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--saffron); }
.problem:nth-child(2) .problem-num { background: var(--magenta); }
.problem:nth-child(3) .problem-num { background: var(--emerald); }
.problem:nth-child(4) .problem-num { background: var(--gold); }
.problem q { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ink); quotes: "“" "”"; margin-bottom: 4px; }
.problem p { margin: 0; color: var(--ink-2); }
.reassure-quote {
  margin: 30px auto 0; max-width: 760px; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--emerald-deep); line-height: 1.5;
}
.reassure-quote cite { display: block; font: 600 .95rem var(--font-body); color: var(--ink-2); margin-top: 6px; font-style: normal; }

/* ---------- Inside ---------- */
.inside { background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); }
.inside-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .inside-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.big-stat {
  border-radius: var(--radius-lg); padding: 28px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--emerald), var(--emerald-deep));
}
.big-stat .num { font-family: var(--font-display); font-size: 5.2rem; line-height: 1; color: var(--gold-light); }
.big-stat .label { font-size: 1.3rem; font-weight: 700; margin: 4px 0 10px; }
.big-stat p { color: #dbe9df; margin: 0; }
.big-stat svg { position: absolute; width: 220px; height: 220px; right: -60px; bottom: -70px; color: var(--gold-light); opacity: .15; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat-row div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat-row b { display: block; font-size: 1.5rem; color: var(--burgundy); line-height: 1.1; }
.stat-row span { font-size: .85rem; color: var(--ink-2); line-height: 1.3; display: block; }

.feature-list { list-style: none; display: grid; gap: 4px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-pale); color: var(--burgundy); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 2px; }
.feature p { margin: 0; color: var(--ink-2); }
.feature .why { display: block; margin-top: 4px; font-weight: 600; color: var(--emerald); }

.cats-head { margin-top: 48px; }
.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cat { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.cat img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.cat-body { padding: 10px 12px 12px; }
.cat-body h3 { font-size: 1.02rem; margin: 0 0 2px; }
.cat-body p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.cat-count { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 800; color: var(--burgundy); background: #fbe7ef; padding: 1px 10px; border-radius: 999px; }
.cat-total { background: linear-gradient(160deg, var(--saffron), #c85d0e); color: #fff; justify-content: center; align-items: flex-start; padding: 18px; border: 0; }
.cat-total b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; }
.cat-total span { font-weight: 600; line-height: 1.4; }
.img-note { font-size: .86rem; color: var(--ink-2); margin-top: 12px; }

/* ---------- Preview ---------- */
.preview { background: var(--emerald-deep); color: #eef4ef; position: relative; overflow: hidden; }
.preview h2 { color: #fff; }
.preview .section-head p { color: #d2e3d8; }
.preview .eyebrow { color: var(--marigold); }
.preview-groups { display: grid; gap: 22px; }
@media (min-width: 900px) { .preview-groups { grid-template-columns: 1.3fr 1fr 1fr; } }
.pgroup { background: rgba(255,255,255,.05); border: 1px solid rgba(233,196,106,.28); border-radius: var(--radius-lg); padding: 16px; }
.pgroup h3 { color: var(--gold-light); margin-bottom: 4px; }
.pgroup > p { color: #cfe0d5; font-size: .95rem; margin-bottom: 12px; line-height: 1.5; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumb {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; cursor: zoom-in; position: relative;
  background: #fff; border-radius: 8px; overflow: hidden; text-align: left; font: inherit;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.6);
}
.thumb img { width: 100%; aspect-ratio: 1240/1754; object-fit: cover; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.03); }
.thumb .tlabel { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(8,41,28,.92)); line-height: 1.3; }
.thumb .zoom { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(8,41,28,.8); color: #fff; display: grid; place-items: center; }
.thumb .zoom svg { width: 16px; height: 16px; }
.preview-note { margin-top: 20px; font-size: .92rem; color: #cfe0d5; display: flex; gap: 10px; align-items: flex-start; }
.preview-note svg { width: 20px; height: 20px; flex: none; color: var(--marigold); margin-top: 3px; }

/* ---------- Steps ---------- */
.steps-list { list-style: none; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .steps-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-list { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.step { position: relative; padding: 22px 18px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--saffron); }
.step:nth-child(2) { border-top-color: var(--magenta); }
.step:nth-child(3) { border-top-color: var(--emerald); }
.step:nth-child(4) { border-top-color: var(--gold); }
.step-n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--ivory-3); position: absolute; right: 14px; top: 12px; }
.step h3 { padding-right: 40px; }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- Audience ---------- */
.audience { background: var(--ivory-2); }
.aud-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .aud-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; } }
.aud-list { list-style: none; display: grid; gap: 12px; }
.aud-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.aud-list .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--gold-light); }
.aud-list .ic svg { width: 24px; height: 24px; }
.aud-list h3 { margin: 0 0 2px; font-size: 1.1rem; }
.aud-list p { margin: 0; color: var(--ink-2); }
.not-box { border-radius: var(--radius-lg); padding: 22px; background: #fff; border: 2px dashed var(--gold); }
.not-box h3 { color: var(--burgundy); }
.not-box ul { list-style: none; display: grid; gap: 10px; }
.not-box li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.not-box li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--burgundy); }
.not-box li.yes svg { color: var(--emerald); }

/* ---------- About ---------- */
.about-card { display: grid; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 800px) { .about-card { grid-template-columns: 180px 1fr; padding: 34px; gap: 34px; } }
.about-mark { width: 140px; height: 140px; margin: 0 auto; color: var(--gold); }
.about-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; }
.about-card dt { color: var(--ink-2); font-weight: 600; }
.about-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Offer ---------- */
.offer { background:
  radial-gradient(700px 300px at 50% 0%, rgba(244,171,28,.22), transparent 70%),
  linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.offer-card {
  max-width: 920px; margin: 0 auto; display: grid; gap: 24px;
  background: #fff; border-radius: 26px; padding: 22px; border: 2px solid var(--gold-light);
  box-shadow: 0 30px 60px -30px rgba(90,40,10,.45);
}
@media (min-width: 800px) { .offer-card { grid-template-columns: 240px 1fr; padding: 34px; gap: 36px; } }
.offer-cover { align-self: start; max-width: 220px; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 30px -16px rgba(0,0,0,.6); }
.offer h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin-bottom: 4px; }
.inc-list { list-style: none; display: grid; gap: 6px; margin: 14px 0 18px; }
.inc-list li { display: flex; gap: 10px; align-items: flex-start; }
.inc-list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--emerald); }
.offer .price-card { box-shadow: none; background: var(--ivory); }
.offer-fine { font-size: .9rem; color: var(--ink-2); margin: 12px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 700; font-size: 1.06rem; color: var(--emerald-deep); min-height: 56px; display: flex; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--saffron); border-bottom: 2.5px solid var(--saffron); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details[open] summary { border-bottom: 1px dashed var(--line); }
.faq-a { padding: 14px 18px 4px; color: var(--ink-2); }
.faq-a a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-ink); color: #cfe0d5; padding: 44px 0 28px; font-size: .97rem; }
.site-footer a { color: var(--gold-light); }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: 8px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.contact-link { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; text-decoration: none; overflow-wrap: anywhere; }
.contact-link svg { width: 18px; height: 18px; flex: none; }
.foot-bottom { border-top: 1px solid rgba(233,196,106,.2); margin-top: 28px; padding-top: 18px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- Sticky buy bar (mobile) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,53,36,.98); color: #fff; border-top: 1px solid rgba(233,196,106,.45);
  box-shadow: 0 -10px 24px -12px rgba(0,0,0,.5);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy .sb-price { line-height: 1.2; }
.sticky-buy .sb-price b { font-size: 1.3rem; color: var(--gold-light); display: block; }
.sticky-buy .sb-price small { font-size: .8rem; color: #cfe0d5; }
.sticky-buy .btn { min-height: 48px; padding: 10px 20px; font-size: 1rem; flex: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
@media (max-width: 899px) { body.has-sticky { padding-bottom: 76px; } }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; max-width: calc(100vw - 24px); color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(8, 25, 17, .82); }
.preview-dialog { width: 760px; max-height: calc(100vh - 24px); }
.pd-frame { background: var(--ivory); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.pd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; background: var(--emerald-deep); color: #fff; }
.pd-top p { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.pd-top small { display: block; font-weight: 500; color: #cfe0d5; font-size: .82rem; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; }
.icon-btn:hover { background: rgba(255,255,255,.22); }
.icon-btn svg { width: 22px; height: 22px; }
.pd-body { overflow: auto; background: #e9dfcd; padding: 10px; }
.pd-body img { margin: 0 auto; width: 100%; max-width: 680px; border-radius: 4px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); transition: opacity .2s ease; }
.pd-body img.is-loading { opacity: .25; }
@supports (height: 100dvh) {
  .preview-dialog, .pd-frame { max-height: calc(100dvh - 24px); }
}
/* keep "लगभग 99 MB" together instead of leaving "MB" alone on a line */
[data-cfg="FILE_SIZE_LABEL"] { white-space: nowrap; }
.pd-nav { display: flex; justify-content: space-between; gap: 10px; padding: 8px; background: var(--ivory); border-top: 1px solid var(--line); }
.pd-nav .btn { min-height: 44px; padding: 6px 16px; font-size: .98rem; }

.notice-dialog { width: 460px; }
.notice-box { background: var(--ivory); border-radius: 18px; padding: 24px 22px 20px; border-top: 6px solid var(--saffron); }
.notice-box h2 { font-size: 1.6rem; }
.notice-box p { color: var(--ink-2); }
.notice-actions { display: grid; gap: 10px; margin-top: 16px; }
/* language chooser */
.lang-options { display: grid; gap: 10px; margin-top: 4px; }
.lang-option {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #c21d68 0%, var(--magenta) 45%, var(--burgundy) 100%);
  box-shadow: 0 8px 20px -10px rgba(132, 19, 58, .7);
}
.lang-option:hover { filter: brightness(1.06); }
.lang-name { font: 400 1.6rem/1.15 var(--font-display); grid-column: 1; }
.lang-option[lang="gu"] .lang-name { font-family: "Noto Sans Gujarati", var(--font-body); font-weight: 700; font-size: 1.45rem; }
.lang-sub { grid-column: 1; font-size: .92rem; font-weight: 600; color: #fbe3ee; line-height: 1.3; }
.lang-option svg { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; }
.lang-dialog .notice-actions { margin-top: 12px; }

/* offer card: one buy button per edition */
.ed-pick { margin: 0 0 10px; font-weight: 700; color: var(--emerald-deep); }
.ed-pick span { color: var(--burgundy); }
.ed-buttons { display: grid; gap: 10px; }
@media (min-width: 480px) { .ed-buttons { grid-template-columns: 1fr 1fr; } }
.ed-buttons .btn { width: 100%; padding: 12px 16px; }
[lang="gu"] { font-family: "Noto Sans Gujarati", var(--font-body); }
.btn[lang="gu"], .lang-option[lang="gu"] .lang-sub { font-weight: 700; }

.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #18663f; }

/* owner-only setup banner (shown only on localhost / file://) */
.setup-banner { background: #fff3cd; color: #5a4300; border-bottom: 2px solid #e0b100; font: 500 14px/1.5 system-ui, sans-serif; padding: 10px 16px; }
.setup-banner code { background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* ---------- Thank-you page ---------- */
.ty-hero { text-align: center; padding: 48px 0 36px; }
.ty-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem); color: #fff; margin-bottom: 8px; }
.ty-hero p { color: #e6efe8; max-width: 36em; margin: 0 auto; font-size: 1.1rem; }
.ty-diya { width: 74px; height: 74px; margin: 0 auto 10px; }
.ty-main { padding: 0 0 56px; margin-top: -8px; }
.ty-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 24px; border: 2px solid var(--gold-light); box-shadow: var(--shadow); padding: 22px; position: relative; top: -24px; }
@media (min-width: 720px) { .ty-card { padding: 34px; } }
.ty-product { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ty-product.no-cover { grid-template-columns: 1fr; }
.ty-product img { border-radius: 4px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.ty-product h2 { font-size: 1.45rem; margin: 0 0 4px; }
.ty-product p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.dl-actions { display: grid; gap: 10px; }
.dl-actions .btn { width: 100%; }
.open-link { text-align: center; font-weight: 600; }
.dl-intro { margin: 0; font-weight: 700; color: var(--emerald-deep); }
.dl-lang { display: grid; gap: 4px; }
.dl-lang .open-link { margin: 0; font-size: .95rem; }
.ty-missing { background: #fff6e6; border: 1px solid #f0c674; border-radius: 12px; padding: 14px 16px; color: #5a3d00; margin-top: 12px; }
.ty-missing p { margin: 0 0 6px; }
.ty-email { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef6f0; border: 1px solid #b9d8c4; color: var(--emerald-deep); line-height: 1.5; }
.ty-email svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--emerald); }
.ty-steps { margin: 22px 0 0; padding-left: 1.3em; color: var(--ink-2); }
.ty-steps li { margin-bottom: 8px; }
.ty-tip { display: flex; gap: 10px; background: var(--ivory-2); border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-weight: 600; color: var(--emerald-deep); }
.ty-tip svg { width: 22px; height: 22px; flex: none; color: var(--saffron); margin-top: 2px; }
.ty-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ty-help h3 { margin-bottom: 6px; }
.help-links { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .help-links { grid-template-columns: 1fr 1fr; } }
.help-links .btn { width: 100%; font-size: 1rem; }
.back-link { display: block; text-align: center; margin-top: 22px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .book-inner { transform: rotateY(-18deg); }
}

/* long email addresses must never push the layout wider than the screen */
.faq-a, .about-card dd, .site-footer, .ty-help, .notice-box { overflow-wrap: anywhere; }
/* email labels get a <wbr> before "@" (common.js); prefer that break point */
[data-contact="email"] [data-contact-label] { overflow-wrap: normal; word-break: normal; }
@media (max-width: 340px) { [data-contact="email"] [data-contact-label] { overflow-wrap: anywhere; } }

/* mobile-only price + buy row near the top of the hero */
.hero-quickbuy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(233,196,106,.4); }
.hero-quickbuy p { margin: 0; line-height: 1.2; }
.hero-quickbuy b { display: block; font-size: 1.45rem; color: var(--gold-light); }
.hero-quickbuy small { font-size: .82rem; color: #d7e6dc; }
.hero-quickbuy .btn { flex: none; }
@media (min-width: 900px) { .hero-quickbuy { display: none; } }
