:root {
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f3f1ec; --text: #1c2233; --muted: #667085; --border: #e6e2d8;
  --brand: #3b5bdb; --brand-2: #5f3dc4; --gold: #c99a2e; --ok: #2f9e44; --danger: #e03131;
  --shadow: 0 10px 30px rgba(28, 34, 51, .08); --shadow-sm: 0 2px 8px rgba(28, 34, 51, .06);
  --radius: 18px; --font: "Inter", "Noto Sans Malayalam", sans-serif;
  --serif: "Playfair Display", "Noto Serif Malayalam", serif;
}
[data-theme="dark"] {
  --bg: #0f1320; --surface: #171c2e; --surface-2: #1e2438; --text: #eceff8; --muted: #9aa3bd; --border: #2a3150;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3); --brand: #7c93ff; --brand-2: #a58bff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; letter-spacing: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section.block { padding: 84px 0; }
section.alt { background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(59, 91, 219, .28); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.input, textarea.input, select.input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 91, 219, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px; }
.menu-btn { display: none; }

/* hero */
.hero { padding: 56px 0 72px; background: radial-gradient(900px 420px at 85% -10%, rgba(95, 61, 196, .14), transparent), radial-gradient(700px 380px at 0% 0%, rgba(201, 154, 46, .14), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; align-items: center; }
.hero-cta img { height: 48px; display: block; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 14px; }
.trust b { display: block; color: var(--text); font-size: 22px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: min(280px, 62%); border-radius: 34px; border: 8px solid #101426; box-shadow: var(--shadow); background: #101426; }
.verse-card { position: absolute; left: -2%; bottom: 6%; width: min(330px, 78%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.verse-card .tag { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.verse-card h4 { font-family: var(--serif); font-size: 18px; margin: 6px 0; }
.verse-card p { margin: 0 0 8px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }

/* cards & grids */
.grid { display: grid; gap: 18px; }
.grid.f4 { grid-template-columns: repeat(4, 1fr); }
.grid.f3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* try it */
.try-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.try-form { padding: 28px; }
.try-out { padding: 28px; background: linear-gradient(160deg, rgba(59, 91, 219, .08), rgba(201, 154, 46, .1)); border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.out-body { flex: 1; font-family: var(--serif); font-size: 19px; line-height: 1.8; white-space: pre-wrap; }
.out-body.placeholder { color: var(--muted); font-family: var(--font); font-size: 15px; display: grid; place-items: center; text-align: center; min-height: 200px; }
.out-ref { font-weight: 700; color: var(--brand); font-family: var(--font); font-size: 15px; margin-bottom: 8px; }
.out-note { font-family: var(--font); font-size: 15px; color: var(--muted); margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.out-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.err { color: var(--danger); font-family: var(--font); font-size: 15px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* library */
.lib-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 260px; }
.search input { padding-left: 44px; }
.search::before { content: "🔍"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .7; }
.cat-chips { margin-bottom: 22px; }
.cat-chips .chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; }
.cat-chips .chip small { opacity: .7; }
.prayer-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; text-align: left; font: inherit; color: inherit; width: 100%; }
.prayer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prayer-card .badge { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--surface-2); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.prayer-card h3 { font-size: 17px; margin: 0; }
.prayer-card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }
.more-row { text-align: center; margin-top: 26px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(10, 14, 28, .6); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 22px; width: min(720px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 26px 14px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-family: var(--serif); font-size: 24px; margin: 0; flex: 1; }
.modal-body { padding: 22px 26px; overflow-y: auto; white-space: pre-wrap; font-size: 18px; line-height: 1.9; font-family: var(--serif); }
.modal-foot { padding: 14px 26px 20px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); align-items: center; }
.modal-foot .grow { flex: 1; color: var(--muted); font-size: 13px; }

/* feast calendar */
.cal-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-head h3 { margin: 0; flex: 1; font-size: 22px; font-family: var(--serif); }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dow div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.day { min-height: 82px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 6px 7px; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.day.pad { visibility: hidden; }
.day:hover { border-color: var(--brand); }
.day .n { font-size: 13px; font-weight: 700; }
.day .f { font-size: 11px; line-height: 1.25; background: rgba(59, 91, 219, .12); color: var(--brand); border-radius: 6px; padding: 2px 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.day .f.primary { background: rgba(201, 154, 46, .22); color: #8a6512; font-weight: 600; }
[data-theme="dark"] .day .f.primary { color: #f0c660; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(59, 91, 219, .25); }
.day.sel { background: var(--surface-2); }
.feast-list { max-height: 560px; overflow-y: auto; }
.feast-item { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.feast-item:last-child { border: 0; }
.feast-date { min-width: 46px; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 4px 0; font-weight: 700; line-height: 1.2; }
.feast-date small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.feast-item h4 { margin: 0 0 2px; font-size: 16px; }
.feast-item p { margin: 0; font-size: 13px; color: var(--muted); }
.today-banner { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; }
.today-banner small { opacity: .85; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.today-banner h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }

/* showcase */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; color: var(--brand); }
.quote p { font-size: 16px; margin: 0 0 12px; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 8px; }
.quote span { color: var(--muted); font-size: 14px; font-weight: 600; }
.download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, #1e2a78, #5f3dc4); color: #fff; border-radius: 28px; padding: 48px; }
.download h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); }
.download p { opacity: .9; }
.download img.qr { width: 170px; background: #fff; padding: 10px; border-radius: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; box-shadow: var(--shadow); }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 56px; cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer { border-top: 1px solid var(--border); padding: 44px 0 30px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 24px; }
.footer a { color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer h4 { color: var(--text); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #101426; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 960px) {
  .hero-grid, .try-card, .cal-grid, .download { grid-template-columns: 1fr; }
  .try-out { border-left: 0; border-top: 1px solid var(--border); }
  .hero-art { margin-top: 20px; }
  .verse-card { position: static; margin-top: -40px; }
  .hero-art { flex-direction: column; align-items: center; }
  .download { padding: 30px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 10px 4%; border-bottom: 1px solid var(--border); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
  section.block { padding: 56px 0; }
  .day { min-height: 56px; padding: 4px; }
  .day .f { display: none; }
  .day.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: auto; }
  }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 960px) { .grid.f4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.f4 { grid-template-columns: 1fr; } }

/* teasers */
.teaser { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.teaser .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); }
.teaser h3 { margin: 0; font-size: 18px; }
.teaser-main { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.teaser-main b { color: var(--text); }
.teaser .input { width: 100%; }
.quiz-q { font-weight: 600; margin: 0 0 8px; }
.quiz-opts { display: grid; gap: 8px; width: 100%; }
.quiz-opts button { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.quiz-opts button:hover { border-color: var(--brand); }
.quiz-opts .ok { background: #d3f9d8; border-color: #2f9e44; color: #1b5e20; }
.quiz-opts .bad { background: #ffe3e3; border-color: #e03131; color: #8a1c1c; }
#quiz-box { width: 100%; }
.unlock { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 28px; }
.unlock-item { display: flex; flex-direction: column; padding: 12px 16px; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface); min-width: 190px; }
.unlock-item span { font-size: 16px; }
.unlock-item small { color: var(--muted); }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.contact label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.contact .input { width: 100%; }
.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact .btn { margin-top: 16px; }
.contact .hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .contact .row2 { grid-template-columns: 1fr; }
  .sticky-cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #101426; color: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; transform: translateY(140%); transition: transform .3s; }
  .sticky-cta.show { transform: none; }
  .toast { bottom: 80px; }
}
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.quiz-exp { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* carousels: one row, continuous movement, pause on hover */
.carousel { overflow: hidden; padding: 8px 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.car-track { display: flex; flex-flow: row nowrap; align-items: stretch; gap: 18px; width: max-content; }
.car-item { flex: 0 0 auto; }
.car-ltr { animation: car-ltr 50s linear infinite; }
.car-rtl { animation: car-rtl 60s linear infinite; }
.carousel:hover .car-track, .carousel:focus-within .car-track { animation-play-state: paused; }
.shot img { display: block; width: 220px; height: 440px; max-width: none; object-fit: cover; border-radius: 24px; border: 6px solid #101426; box-shadow: var(--shadow); background: #101426; }
.review { width: 340px; display: flex; }
.review .card { width: 100%; }
@keyframes car-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes car-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .carousel { overflow-x: auto; } .car-track { animation: none !important; } }
@media (max-width: 640px) { .shot img { width: 180px; height: 360px; } .review { width: 280px; } }
