/* Halal Check Online — design tokens */
:root {
  --bg: #fbfdfc;
  --bg-soft: #f1f6f3;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --text: #0e1530;
  --muted: #5a6b62;
  --border: #e2eae5;
  --brand: #0c8a57;
  --brand-2: #12a37a;
  --brand-deep: #073b2c;
  --brand-ink: #ffffff;
  --brand-soft: #e4f5ec;
  --gold: #e6a93a;
  --halal: #0c8a57;   --halal-bg: #e2f6ea;
  --mushbooh: #a35f00; --mushbooh-bg: #fff2d9;
  --haram: #c0271b;   --haram-bg: #fde7e4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 20, .05);
  --shadow: 0 1px 2px rgba(10, 30, 20, .04), 0 8px 24px -8px rgba(10, 30, 20, .12);
  --shadow-lg: 0 24px 60px -20px rgba(6, 60, 38, .35);
  --grad: linear-gradient(135deg, #0c8a57 0%, #12a37a 55%, #e0aa3e 100%);
  --grad-text: linear-gradient(100deg, #0c8a57, #12a37a 45%, #e6a93a);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tabbar-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a110d; --bg-soft: #101a15; --surface: #121e18; --surface-2: #16241d; --text: #e8f1ec; --muted: #9bb0a5;
    --border: #22332a; --brand: #e0aa3e; --brand-2: #12a37a; --brand-deep: #bfe9d4; --brand-ink: #04140c; --brand-soft: #123326;
    --halal: #4ade80; --halal-bg: #10301f; --mushbooh: #fbbf24; --mushbooh-bg: #33270d; --haram: #fb7185; --haram-bg: #3a1519;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    --grad-text: linear-gradient(100deg, #e0aa3e, #f3dca0 45%, #fbbf24); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a110d; --bg-soft: #101a15; --surface: #121e18; --surface-2: #16241d; --text: #e8f1ec; --muted: #9bb0a5;
  --border: #22332a; --brand: #e0aa3e; --brand-2: #12a37a; --brand-deep: #bfe9d4; --brand-ink: #04140c; --brand-soft: #123326;
  --halal: #4ade80; --halal-bg: #10301f; --mushbooh: #fbbf24; --mushbooh-bg: #33270d; --haram: #fb7185; --haram-bg: #3a1519;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  --grad-text: linear-gradient(100deg, #e0aa3e, #f3dca0 45%, #fbbf24); color-scheme: dark;
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); background: var(--bg); color: var(--text); padding-bottom: var(--tabbar-h); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img, svg { vertical-align: middle; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .3em 0 .45em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 1.8em 0 .6em; }
h3, .h3 { font-size: 1.12rem; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
::selection { background: var(--brand-soft); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42em; }
.center .lead, .center.lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; color: var(--brand); margin: 0 0 .5em; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.gap { gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.section { margin: 72px 0; }
.section-title { margin: 0 0 20px; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header-inner { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo img { border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(13, 107, 79, .6); }
.wordmark { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.wordmark b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-weight: 600; font-size: .95rem; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--bg-soft); }
.icon-btn { color: var(--muted); padding: 8px; border-radius: 10px; display: inline-flex; transition: .15s; }
.icon-btn:hover { color: var(--text); background: var(--bg-soft); transform: rotate(30deg); }
.lang { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.lang:hover { color: var(--text); background: var(--bg-soft); }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; max-width: 7.5em; padding: 2px 0; }
.lang select option { color: #0e1530; background: #fff; }
.header-cta { margin-inline-start: 4px; }

/* mobile app tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar-h: 76px; }
  .site-header .nav, .site-header .header-cta { display: none; }
  .header-inner { height: 60px; }
  .lang { margin-inline-start: auto; }
  .lang select { max-width: 6em; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; padding: 0 6px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); }
  .tabbar a { display: grid; justify-items: center; gap: 1px; padding: 8px 0 9px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; }
  .tabbar a[aria-current] { color: var(--brand); }
  .tabbar .tab-fab { align-self: center; justify-self: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -8px rgba(13, 107, 79, .7), 0 0 0 5px var(--bg); padding: 0; }
  .tabbar .tab-fab:active { transform: scale(.94); }
}

/* footer */
.site-footer { margin-top: 80px; background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid a:not(.logo) { display: block; color: var(--text); text-decoration: none; padding: 4px 0; font-size: .95rem; }
.footer-grid a:not(.logo):hover { color: var(--brand); }
.footer-grid p { margin-top: 12px; max-width: 30em; }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: #fff; border: 0; padding: 11px 20px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(13, 107, 79, .8); transition: transform .15s, box-shadow .15s, filter .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 22px -10px rgba(13, 107, 79, .9); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 12px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 16px; }
.btn-outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand), var(--shadow); }
.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-glow { position: relative; }
.btn-glow::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--grad); filter: blur(14px); opacity: .45; z-index: -1; animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .15; } }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.badge-lg { font-size: 1rem; padding: 6px 15px; }
.badge-halal { background: var(--halal-bg); color: var(--halal); }
.badge-mushbooh { background: var(--mushbooh-bg); color: var(--mushbooh); }
.badge-haram { background: var(--haram-bg); color: var(--haram); }
.badge-unknown { background: var(--bg-soft); color: var(--muted); }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.link-card { text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.link-card p { margin: .5em 0 0; }
.code { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.code-card { position: relative; overflow: hidden; }
.code-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--brand)); }
.cc-halal { --c: var(--halal); } .cc-mushbooh { --c: var(--mushbooh); } .cc-haram { --c: var(--haram); }
.note { background: var(--surface-2); border: 1px solid var(--border); border-inline-start: 4px solid var(--brand); padding: 12px 16px; border-radius: 12px; font-size: .95rem; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.hero-bg span:nth-child(1) { width: 480px; height: 480px; background: #bfe9d4; top: -160px; left: -120px; }
.hero-bg span:nth-child(2) { width: 380px; height: 380px; background: #f6e3b4; top: 40px; right: -100px; animation-delay: -5s; opacity: .45; }
.hero-bg span:nth-child(3) { width: 320px; height: 320px; background: #f3dca0; bottom: -160px; left: 40%; animation-delay: -10s; opacity: .35; }
:root[data-theme="dark"] .hero-bg span { opacity: .14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg span { opacity: .14; } }
@keyframes float { 50% { transform: translate(30px, 24px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); letter-spacing: -.045em; margin: .2em 0 .35em; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--brand); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-sm); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.hero .search { margin: 0; }
.try { color: var(--muted); }
.try a { display: inline-block; margin: 2px 2px; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--text); }
.try a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 32px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero .search { margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-actions .btn-lg { padding: 12px 16px; font-size: .98rem; }
  .hero-actions .btn-glow { flex: 1 1 100%; }
  .hero-actions .btn-ghost { flex: 1; }
}

/* phone demo */
.phone-wrap { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone { width: 270px; height: 520px; border-radius: 44px; background: #0e1530; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #1f3a2e; position: relative; transform: rotate(-3deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-3deg) translateY(-10px); } }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #0e1530; border-radius: 99px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; background: linear-gradient(180deg, #f6f8ff, #ffffff); padding: 52px 16px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; color: #0e1530; }
.demo-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #12a37a; box-shadow: 0 0 0 4px #cff4fa; }
.demo-label { position: relative; background: #fff; border: 1px dashed #d4dcf5; border-radius: 14px; padding: 12px; font-size: .8rem; line-height: 1.5; color: #475070; min-height: 88px; overflow: hidden; }
.demo-label p { margin: 0; }
.laser { position: absolute; left: 0; right: 0; height: 2px; background: #ef4444; box-shadow: 0 0 12px 2px rgba(239, 68, 68, .6); top: 0; opacity: 0; }
.phone.scanning .laser { animation: laser 1.3s ease-in-out 2 alternate; }
@keyframes laser { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.demo-pills { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; align-content: flex-start; }
.demo-pills span { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; opacity: 0; transform: translateY(6px) scale(.9); animation: pop .35s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.dp-halal { background: #e2f6ea; color: #0c8a57; } .dp-mushbooh { background: #fff2d9; color: #a35f00; } .dp-haram { background: #fde7e4; color: #c0271b; } .dp-neutral { background: #eef3f0; color: #5a6b62; }
.demo-verdict { margin-top: auto; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 10px; font-weight: 800; opacity: 0; transform: translateY(12px); transition: .4s; }
.demo-verdict.show { opacity: 1; transform: none; }
.demo-verdict .dv-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.dv-haram { background: #fde7e4; color: #c0271b; } .dv-haram .dv-icon { background: #c0271b; }
.dv-mushbooh { background: #fff2d9; color: #a35f00; } .dv-mushbooh .dv-icon { background: #d98200; }
.dv-halal { background: #e2f6ea; color: #0c8a57; } .dv-halal .dv-icon { background: #0c8a57; }
.demo-verdict small { display: block; font-weight: 600; opacity: .8; font-size: .72rem; }
.float-card { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); animation: float 9s ease-in-out infinite; white-space: nowrap; }
.float-card svg { width: 18px; height: 18px; }
.fc-1 { top: 1%; left: 2%; color: var(--halal); }
.fc-2 { top: 48%; right: -6%; color: var(--mushbooh); animation-delay: -3s; }
.fc-3 { bottom: 10%; left: 0; color: var(--haram); animation-delay: -6s; }
@media (max-width: 900px) { .phone { width: 240px; height: 460px; } .fc-1 { left: 2%; } .fc-2 { right: 0; } }
@media (max-width: 420px) { .float-card { display: none; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stats strong { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .85rem; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* steps & features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: relative; }
.step-icon, .f-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: 0 10px 20px -10px rgba(13, 107, 79, .8); }
.step p, .feature p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.f-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); box-shadow: none; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* daily + quiz */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.daily { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
.daily::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--brand-soft); z-index: 0; }
.daily > * { position: relative; z-index: 1; }
.daily h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-soft), var(--surface-2), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.quiz-q { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.quiz-sub { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz-opts button { font: inherit; font-weight: 800; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: .15s; }
.quiz-opts button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); }
.quiz-opts button.q-halal { color: var(--halal); } .quiz-opts button.q-mushbooh { color: var(--mushbooh); } .quiz-opts button.q-haram { color: var(--haram); }
.quiz-opts button.right { background: var(--halal-bg); border-color: var(--halal); color: var(--halal); animation: bounce .4s; }
.quiz-opts button.wrong { background: var(--haram-bg); border-color: var(--haram); color: var(--haram); animation: shake .35s; }
.quiz-opts button:disabled { cursor: default; }
@keyframes bounce { 40% { transform: scale(1.06); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz-explain { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; animation: pop .3s forwards; }
.quiz-bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-bottom: 12px; }
.quiz-bar span { display: block; height: 100%; background: var(--grad); transition: width .4s; }
.quiz-top { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.quiz-score { text-align: center; padding: 10px 0; }
.quiz-score .big { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.quiz-lg .quiz-q { font-size: 2rem; }

/* search */
.search { position: relative; display: flex; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 5px; transition: box-shadow .2s, border-color .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 0; background: transparent; color: var(--text); outline: none; }
.search button { border: 0; background: var(--grad); color: #fff; width: 46px; border-radius: 14px; cursor: pointer; display: grid; place-items: center; }
.search-lg input { padding: 14px 16px; font-size: 1.08rem; }
.search-lg button { width: 54px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); text-align: start; max-height: 380px; overflow: auto; animation: pop .15s forwards; }
.suggest a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--bg-soft); }
.search-results { margin: 24px 0; display: grid; gap: 10px; }

/* page heroes */
.page-hero { padding: 36px 0 12px; background: radial-gradient(900px 260px at 20% -40%, var(--brand-soft), transparent 70%); }
.page-hero h1 { margin-bottom: .25em; }
.profile-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--brand-soft); text-decoration: none; font-weight: 700; font-size: .9rem; }

/* entry pages */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.entry-hero { padding-bottom: 8px; background: radial-gradient(900px 300px at 10% -30%, var(--hero-tint), transparent 70%); }
.entry-halal { --hero-tint: var(--halal-bg); } .entry-mushbooh { --hero-tint: var(--mushbooh-bg); } .entry-haram { --hero-tint: var(--haram-bg); }
.entry-head { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.entry-head h1 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.verdict-icon { flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: #fff; animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.vi-halal { background: linear-gradient(135deg, #0c8a57, #e0aa3e); box-shadow: 0 14px 30px -12px rgba(13, 107, 79, .8); }
.vi-mushbooh { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 14px 30px -12px rgba(217, 119, 6, .8); }
.vi-haram { background: linear-gradient(135deg, #b91c1c, #f87171); box-shadow: 0 14px 30px -12px rgba(185, 28, 28, .8); }
@keyframes popIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
@media (max-width: 520px) { .verdict-icon { width: 58px; height: 58px; border-radius: 18px; } .verdict-icon svg { width: 28px; height: 28px; } }
.verdict-card { border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 8px; border: 1px solid transparent; }
.verdict-halal, .verdict-clear { background: var(--halal-bg); border-color: color-mix(in srgb, var(--halal) 25%, transparent); }
.verdict-mushbooh { background: var(--mushbooh-bg); border-color: color-mix(in srgb, var(--mushbooh) 25%, transparent); }
.verdict-haram { background: var(--haram-bg); border-color: color-mix(in srgb, var(--haram) 25%, transparent); }
.verdict-answer { margin: 10px 0 0; font-size: 1.08rem; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.glance-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.glance-item span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.glance-item strong { font-size: .95rem; font-weight: 700; }
.faq { border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; background: var(--surface); transition: .15s; }
.faq[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mini-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; border-inline-start: 4px solid var(--c); transition: .15s; }
.mini-card span { font-size: .82rem; color: var(--muted); }
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mc-halal { --c: var(--halal); } .mc-mushbooh { --c: var(--mushbooh); } .mc-haram { --c: var(--haram); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 32px 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--border); }
.cta-band p { margin: 0; color: var(--muted); }
.shop { margin: 24px 0; }
.review-line { margin-top: 28px; }
.prose { font-size: 1.08rem; }
.prose li { margin: .35em 0; }
.prose h2 { margin-top: 1.6em; }

/* lists */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; align-items: center; position: sticky; top: 68px; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); padding: 10px 0; }
@media (max-width: 760px) { .filters { top: 60px; } }
.filter-input, .filters select { font: inherit; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.filter-input { flex: 1; min-width: 160px; }
.seg { display: inline-flex; background: var(--bg-soft); padding: 3px; border-radius: 12px; gap: 2px; }
.seg button { font: inherit; font-size: .88rem; font-weight: 700; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.list td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.list tr:last-child td { border-bottom: 0; }
.list td a { color: var(--text); text-decoration: none; }
.list tbody tr { transition: background .12s; }
.list tbody tr:hover td { background: var(--surface-2); }
@media (max-width: 560px) { .hide-sm { display: none; } .list td, .list th { padding: 10px; } }

/* checker */
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft); padding: 5px; border-radius: 16px; margin: 16px 0; }
.tab-glider { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; padding: 11px 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); }
.panel { padding: 16px; }
textarea, .barcode-form input { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); resize: vertical; transition: border-color .15s, box-shadow .15s; }
textarea:focus, .barcode-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.panel .row.between { margin-top: 12px; }
.live-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); margin-inline-end: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 181, 200, .6); } 100% { box-shadow: 0 0 0 10px rgba(15, 181, 200, 0); } }
.barcode-form input { flex: 1; width: auto; min-width: 0; }
.barcode-form { flex-wrap: nowrap; margin-top: 12px; }
.scanner { position: relative; background: radial-gradient(circle at 50% 40%, #0e3b2c, #04140e); border-radius: 16px; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-idle { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; color: #bfe9d4; }
.scan-illustration { animation: bob 3s ease-in-out infinite; opacity: .9; }
.scan-frame { position: absolute; inset: 28% 12%; border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); display: none; background: linear-gradient(#e0aa3e, #e0aa3e) top left / 26px 4px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) top left / 4px 26px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) top right / 26px 4px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) top right / 4px 26px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) bottom left / 26px 4px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) bottom left / 4px 26px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) bottom right / 26px 4px no-repeat, linear-gradient(#e0aa3e, #e0aa3e) bottom right / 4px 26px no-repeat; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 2px; background: #e0aa3e; box-shadow: 0 0 14px 3px rgba(224, 170, 62, .7); animation: laser 1.6s ease-in-out infinite alternate; }
.scanner.live .scan-frame { display: block; }
.scanner.live .scanner-idle { display: none; }
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 40px 20px; border: 2px dashed var(--border); border-radius: 16px; cursor: pointer; color: var(--text); transition: .2s; background: var(--surface-2); }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop-icon { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(13, 107, 79, .8); }
.progress { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .25s; }
.status-msg { margin: 14px 0; color: var(--muted); min-height: 1.2em; }
.product { display: flex; gap: 14px; align-items: center; margin: 12px 0; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.product img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.result { animation: pop .35s forwards; }
.result-hero { display: flex; gap: 16px; align-items: center; }
.ring { position: relative; flex: none; width: 84px; height: 84px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: color-mix(in srgb, currentColor 18%, transparent); }
.ring .bar { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226; animation: ring 1s .1s cubic-bezier(.3, .8, .3, 1) forwards; }
@keyframes ring { to { stroke-dashoffset: var(--off, 0); } }
.ring .ring-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.rh-haram { color: var(--haram); } .rh-mushbooh { color: var(--mushbooh); } .rh-halal { color: var(--halal); }
.result-hero h2 { margin: 0 0 4px; font-size: 1.4rem; color: var(--text); }
.result-hero p { margin: 0; color: var(--text); }
.tally { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tally span { font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--surface); }
.t-haram { color: var(--haram); } .t-mushbooh { color: var(--mushbooh); } .t-halal { color: var(--halal); } .t-neutral { color: var(--muted); }
.label-map { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.label-map span { font-size: .85rem; font-weight: 600; padding: 4px 11px; border-radius: 99px; border: 1px solid transparent; opacity: 0; animation: pop .3s forwards; }
.lm-halal { background: var(--halal-bg); color: var(--halal); } .lm-mushbooh { background: var(--mushbooh-bg); color: var(--mushbooh); border-color: color-mix(in srgb, var(--mushbooh) 35%, transparent) !important; } .lm-haram { background: var(--haram-bg); color: var(--haram); border-color: color-mix(in srgb, var(--haram) 35%, transparent) !important; } .lm-neutral { background: var(--bg-soft); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: -1px; }
.items { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); border-inline-start: 4px solid var(--c, var(--border)); opacity: 0; animation: pop .3s forwards; }
.item.st-haram { --c: var(--haram); } .item.st-mushbooh { --c: var(--mushbooh); } .item.st-halal { --c: var(--halal); }
.item p { grid-column: 2; margin: 0; font-size: .92rem; color: var(--muted); }
.item a { color: var(--text); font-weight: 700; text-decoration: none; }
.item a:hover { color: var(--brand); }
.item .matched { font-weight: 500; color: var(--muted); font-size: .82rem; }
.result details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.recent ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.recent button { width: 100%; text-align: start; font: inherit; font-weight: 600; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; transition: .15s; }
.recent button:hover { border-color: var(--brand); transform: translateX(3px); }

/* settings */
.settings fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.settings legend { font-weight: 800; margin-bottom: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--border); border-radius: 14px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.opt input { margin-top: 5px; accent-color: var(--brand); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* blog */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); margin: 12px 0 24px; transition: .2s; }
.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { margin: .2em 0 .4em; font-size: clamp(1.4rem, 3vw, 2rem); }
.featured-body .btn { align-self: flex-start; margin-top: 8px; }
.featured .cover { border-radius: 0; height: 100%; min-height: 260px; margin: 0; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured .cover { min-height: 180px; } .featured-body { padding: 22px; } }
.cover { display: grid; place-items: center; border-radius: 14px; height: 160px; position: relative; overflow: hidden; }
.cover span { font-size: 3.6rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); transition: transform .3s; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 50%), radial-gradient(circle at 90% 90%, rgba(255,255,255,.18), transparent 40%); }
.cover-lg { height: 260px; margin: 12px 0 24px; border-radius: var(--radius); }
.cover-lg span { font-size: 5.4rem; }
.cover-a { background: linear-gradient(135deg, #073b2c, #12a37a); }
.cover-b { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.cover-c { background: linear-gradient(135deg, #b45309, #fbbf24); }
.cover-d { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.cover-e { background: linear-gradient(135deg, #be185d, #f9a8d4); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { padding: 10px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card:hover .cover span { transform: scale(1.12) rotate(-6deg); }
.post-card-body { padding: 14px 8px 6px; }
.post-card h3 { font-size: 1.1rem; }
.post-card[hidden] { display: none; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.cat-chips button { flex: none; font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: .15s; }
.cat-chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--grad); }
.post-hero { padding-bottom: 8px; background: radial-gradient(900px 300px at 10% -30%, var(--brand-soft), transparent 70%); }
.post-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.post-meta { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.post-meta img { border-radius: 12px; }
.post-meta div { display: grid; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share .muted { margin-inline-end: 6px; }
.share-btn { font: inherit; font-size: .88rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; transition: .15s; }
.share-btn:hover { transform: translateY(-2px); }
.sb-wa { background: #25d366; color: #fff; border-color: #25d366; }
.sb-x { background: #111; color: #fff; border-color: #111; }
.sb-fb { background: #1877f2; color: #fff; border-color: #1877f2; }

/* bands */
.newsletter-band, .app-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 48px 0 0; padding: 28px 30px; border-radius: 24px; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.newsletter-band::before, .app-band::before { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.newsletter-band > *, .app-band > * { position: relative; }
.newsletter-band p, .app-band p { margin: 0; opacity: .9; }
.app-band { padding: 40px; }
.app-band h2 { margin: 0 0 8px; color: #fff; }
.app-band .row { margin-top: 18px; }
.app-band-icon img { width: 120px; height: 120px; border-radius: 30px; transform: rotate(8deg); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); animation: bob 5s ease-in-out infinite; }
@media (max-width: 640px) { .app-band { padding: 28px 22px; } .app-band-icon { display: none; } }

/* ads */
.ad { margin: 28px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ad-placeholder { display: grid; place-items: center; border: 2px dashed var(--border); border-radius: 16px; color: var(--muted); font-size: .85rem; }

/* language suggestion + Google Translate chrome */
.lang-suggest { background: var(--brand-soft); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: .95rem; }
.lang-suggest .row { flex-wrap: wrap; gap: 8px; }
.lang-suggest .btn { padding: 6px 12px; }
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { background: none !important; box-shadow: none !important; }

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .item, .label-map span, .demo-pills span, .result, .quiz-explain, .suggest { opacity: 1 !important; transform: none !important; }
  .ring .bar { stroke-dashoffset: var(--off, 0) !important; }
}

/* misc */
pre.code { background: var(--bg-soft); padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }
.embed { background: transparent; padding: 0; }
.embed-box { padding: 12px; font-size: 15px; }
.embed-box .search { max-width: none; }
.cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: .88rem; }
.cheat-grid ul { padding-inline-start: 1.1em; margin: 0; }
.cheat-grid .cols { columns: 2; }
.cheat-grid h2 { font-size: 1rem; margin: 1em 0 .4em; }
@media (max-width: 640px) { .cheat-grid { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .no-print, .ad, .tabbar { display: none !important; }
  body { font-size: 10pt; padding: 0; }
  .cheat-grid .cols { columns: 3; }
}
.tab-glider { transform: translateX(calc(var(--i, 0) * 100%)); }
[dir="rtl"] .tab-glider { left: auto; right: 5px; transform: translateX(calc(var(--i, 0) * -100%)); }
.cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-inline-start: 4px solid var(--brand); background: var(--surface-2); border-radius: 10px; }

/* products, brands, foods */
[hidden] { display: none !important; }
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.prod-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 18px; }
.prod-img { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; font-size: 1.6rem; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-body { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.prod-body strong { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-hero-img { flex: none; width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg-soft); margin: 10px 0 6px; }
.stack span { display: block; height: 100%; }
.stack .st-halal { background: var(--halal); } .stack .st-mushbooh { background: #f0a020; } .stack .st-haram { background: var(--haram); }
.tally-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tally-row span { font-weight: 800; font-size: .88rem; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.brand-card .tally { margin-top: 4px; }
.brand-card .tally span, .brand-answer .tally span { background: var(--surface-2); }
.food-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.food-card { display: grid; gap: 4px; align-content: start; }
.food-emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; transition: transform .25s; }
.food-card:hover .food-emoji { transform: scale(1.15) rotate(-8deg); }
.food-hero-emoji { flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 2.6rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.quick-answer { margin-top: 18px; border-inline-start: 5px solid var(--brand); }
.tips { padding-inline-start: 1.2em; }
.tips li { margin: .4em 0; }
.chip-good { background: var(--halal-bg); color: var(--halal); border-color: transparent; font-weight: 700; font-size: .8rem; padding: 3px 11px; }
.label-map.static span, .items.static .item { opacity: 1; animation: none; }
.food-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.food-strip a { flex: none; display: grid; justify-items: center; gap: 6px; width: 104px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 700; font-size: .82rem; text-align: center; transition: .15s; }
.food-strip a:hover { transform: translateY(-3px); border-color: var(--brand); }
.food-strip span { font-size: 2rem; line-height: 1; }
@media (max-width: 1100px) { .nav a { padding: 8px 8px; font-size: .9rem; } }
@media (max-width: 960px) and (min-width: 761px) { .header-cta { display: none; } .lang select { max-width: 5.5em; } }
.app-hero-icon { border-radius: 26px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.install-card, .offline-card { margin: 18px 0; }
.steps-list { padding-inline-start: 1.3em; margin: 8px 0 0; }
.steps-list li { margin: .5em 0; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .feature-grid.two { grid-template-columns: 1fr; } }
.offline-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px); z-index: 70; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: calc(100% - 32px); animation: pop .3s forwards; }
.mic-btn { border: 0 !important; background: transparent !important; color: var(--muted) !important; width: 42px !important; border-radius: 12px; cursor: pointer; display: grid; place-items: center; box-shadow: none !important; }
.mic-btn:hover { color: var(--brand) !important; background: var(--bg-soft) !important; }
.mic-btn.listening, [data-dictate].listening { color: #fff !important; background: var(--haram) !important; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(192, 39, 27, .5); } 100% { box-shadow: 0 0 0 12px rgba(192, 39, 27, 0); } }
@media (max-width: 480px) {
  .header-inner { gap: 4px; }
  .lang { position: relative; padding: 8px; }
  .lang select { position: absolute; inset: 0; opacity: 0; width: 100%; max-width: none; cursor: pointer; }
}

/* Q&A verdicts: "it depends" (blue) and "scholars differ" (purple) */
:root { --depends: #1d5fbf; --depends-bg: #e5efff; --disputed: #6b3fb5; --disputed-bg: #efe8fb; }
:root[data-theme="dark"] { --depends: #8ab4ff; --depends-bg: #152640; --disputed: #c4a6ff; --disputed-bg: #2a1e40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --depends: #8ab4ff; --depends-bg: #152640; --disputed: #c4a6ff; --disputed-bg: #2a1e40; } }
.badge-depends { background: var(--depends-bg); color: var(--depends); }
.badge-disputed { background: var(--disputed-bg); color: var(--disputed); }
.badge-makruh { background: var(--mushbooh-bg); color: var(--mushbooh); }
.verdict-depends { background: var(--depends-bg); border-color: color-mix(in srgb, var(--depends) 25%, transparent); }
.verdict-disputed { background: var(--disputed-bg); border-color: color-mix(in srgb, var(--disputed) 25%, transparent); }
.entry-depends { --hero-tint: var(--depends-bg); } .entry-disputed { --hero-tint: var(--disputed-bg); }
.vi-depends { background: linear-gradient(135deg, #1d4ed8, #60a5fa); box-shadow: 0 14px 30px -12px rgba(29, 78, 216, .7); }
.vi-disputed { background: linear-gradient(135deg, #6d28d9, #a78bfa); box-shadow: 0 14px 30px -12px rgba(109, 40, 217, .7); }
.cc-depends { --c: var(--depends); } .cc-disputed { --c: var(--disputed); }
.q-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.q-card { display: grid; gap: 6px; align-content: start; justify-items: start; position: relative; overflow: hidden; padding-inline-start: 22px; }
.q-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--brand)); }
.q-card strong { font-size: 1.02rem; line-height: 1.35; }
.verdict-card.quick .verdict-answer { margin-top: 8px; }
.also-asked span { white-space: nowrap; }
.fatwa-note { margin: 28px 0; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border); font-size: .95rem; }
.table-wrap { overflow-x: auto; }
.school-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 1rem; }
.school-table th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 14px; background: var(--surface-2); }
.school-table td { padding: 11px 14px; border-top: 1px solid var(--border); }
.sources li { font-size: .95rem; }
.gloss-list { display: grid; gap: 10px; }
.gloss-card p { margin: 6px 0 0; }
.arabic { font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif; font-size: 1.3rem; color: var(--brand); }
.arabic.big { font-size: 2.2rem; margin: 0 0 8px; }

/* blog photos */
.post-photo { margin: 12px 0 24px; }
.post-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-soft); }
.post-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.post-photo figcaption a { color: var(--muted); }
.cover.has-img::after { display: none; }
.cover.has-img img { transition: transform .4s; }
.post-card:hover .cover.has-img img { transform: scale(1.05); }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.slogan { font-weight: 800; letter-spacing: -.01em; margin: 12px 0 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── mobile app experience ───────────────────────────────── */
.mobile-only { display: none !important; }
.tabbar button { font: inherit; background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 1px; padding: 8px 0 9px; color: var(--muted); font-size: .68rem; font-weight: 700; }
a, button { -webkit-tap-highlight-color: transparent; }
.btn:active, .chip:active, .card:active, .tabbar a:active, .tabbar button:active, .share-btn:active { transform: scale(.97); }
html.sheet-lock, html.sheet-lock body { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8, 20, 14, .45); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; z-index: 90; left: 0; right: 0; background: var(--bg); transition: transform .22s cubic-bezier(.3, .9, .4, 1); }
.sheet-search { inset: 0; transform: translateY(24px); opacity: 0; transition: transform .22s, opacity .2s; overflow-y: auto; padding-bottom: 24px; }
.sheet-search.open { transform: none; opacity: 1; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--bg); border-bottom: 1px solid var(--border); }
.sheet-head .search { flex: 1; max-width: none; margin: 0; }
.sheet-back { border: 0; background: var(--bg-soft); color: var(--text); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; flex: none; }
.sheet-body { padding: 16px; max-width: 720px; margin: 0 auto; }
.sheet-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.sheet-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sheet-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.sheet .suggest { position: static; margin-top: 10px; box-shadow: none; max-height: none; border-radius: 14px; }
.sheet .suggest a { min-height: 48px; }
.sheet-menu { bottom: 0; max-height: 86vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); box-shadow: var(--shadow-lg); }
.sheet-menu.open { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--border); margin: 6px auto 14px; cursor: pointer; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-grid a { display: grid; justify-items: center; gap: 6px; padding: 16px 6px; min-height: 88px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .8rem; font-weight: 700; text-align: center; }
.menu-grid a svg { color: var(--brand); }
.sheet-close { width: 100%; margin-top: 14px; }
.to-top { position: fixed; z-index: 45; right: 16px; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.share-row .share-btn { min-height: 40px; }

@media (max-width: 760px) {
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .tabbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .section { margin: 44px 0; }
  .card { border-radius: 16px; }
  /* swipeable card rows */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .rail.cards > *, .rail.q-grid > * { flex-basis: 70%; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero .lead { font-size: 1.05rem; }
  .phone-wrap { transform: scale(.92); margin: -12px 0; }
  .entry-head h1, .page-hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.2rem); }
  .verdict-answer { font-size: 1.04rem; line-height: 1.6; }
  .filters { top: 60px; }
  .filters select[data-filter-cat] { display: none; }
  .glance { grid-template-columns: 1fr 1fr; }
  .tabs button { padding: 12px 4px; }
  .btn { min-height: 46px; }
  .faq summary { min-height: 48px; align-items: center; }
  .footer-grid a:not(.logo) { padding: 7px 0; }
}
@media (min-width: 761px) { [data-qcat-chips] { display: none; } }
button.icon-btn { border: 0; background: none; cursor: pointer; font: inherit; }
.sheet-head .search { flex-wrap: wrap; }
.sheet-head .search input { flex: 1 1 0; }
.sheet .suggest { flex: 0 0 100%; order: 3; margin: 8px 0 0; }
.sheet-search { background: var(--bg); }
.sheet-head { align-items: flex-start; }
.sheet-back { margin-top: 5px; }

/* prayer times & mosques */
.city-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.city-card { display: grid; gap: 2px; padding: 14px 16px; }
.prayer-card { margin-top: 14px; padding: 18px; }
.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prayer-cell { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; transition: .2s; }
.prayer-cell span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prayer-cell strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prayer-cell.is-sunrise { opacity: .75; }
.prayer-cell.is-next { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(13, 107, 79, .8); transform: translateY(-2px); }
.prayer-cell.is-next span { color: rgba(255, 255, 255, .85); }
.next-prayer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.next-prayer strong { font-size: 1.15rem; }
.next-prayer [data-next-in] { color: var(--brand); font-weight: 800; }
.prayer-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.prayer-settings label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.prayer-settings select { font: inherit; font-size: .9rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.two-col { grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.big-num { font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qibla-dial { position: relative; width: 110px; height: 110px; border-radius: 50%; margin: 8px auto 12px; background: radial-gradient(circle, var(--surface) 55%, var(--brand-soft) 56%); border: 2px solid var(--border); }
.qibla-dial::before { content: "N"; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 800; color: var(--muted); }
.qibla-dial span { position: absolute; left: 50%; top: 50%; width: 4px; height: 46px; margin-left: -2px; border-radius: 4px; background: var(--grad); transform-origin: 50% 0; transform: rotate(calc(var(--q) + 180deg)); }
.qibla-dial span::after { content: "🕋"; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%) rotate(calc(-1 * (var(--q) + 180deg))); font-size: 1rem; }
.month-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.month-table caption { text-align: start; font-weight: 800; padding: 0 0 8px; }
.month-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; background: var(--surface-2); text-align: center; }
.month-table td { padding: 8px; text-align: center; border-top: 1px solid var(--border); }
.month-table tr.today td { background: var(--brand-soft); font-weight: 800; }
.mosque-list { display: grid; gap: 12px; margin: 16px 0; }
.mosque-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.mosque-card p { margin: 0 0 8px; }
.mosque-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mosque-tags:empty { display: none; }
.mosque-tags .chip { font-size: .78rem; padding: 3px 10px; text-transform: capitalize; }
.prayer-mini { display: grid; gap: 8px; margin-top: 16px; }
.prayer-mini-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prayer-mini-row small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.home-prayer h2 { margin: 4px 0 6px; }
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .prayer-cell strong { font-size: 1.2rem; }
  .month-table { font-size: .8rem; }
  .month-table td, .month-table th { padding: 7px 4px; }
  .prayer-settings { grid-template-columns: 1fr; }
}
.prayer-mini-row b { font-weight: 800; }

/* ── colour contrast + day/night switch ─────────────────── */
/* Links and small labels use a deeper green in day mode (≥ 4.5:1 contrast). */
:root { --link: #0a7348; }
:root[data-theme="dark"] { --link: #5ee6a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --link: #5ee6a8; } }
.eyebrow, .more, .profile-pill, .pill { color: var(--link); }
.theme-btn .i-sun { display: none; }
html.is-dark .theme-btn .i-sun { display: block; }
html.is-dark .theme-btn .i-moon { display: none; }
.theme-btn:hover { transform: rotate(-20deg); }
.theme-seg { display: flex; width: 100%; }
.theme-seg button { flex: 1; min-height: 44px; }
/* smooth colour change when switching */
html.theme-fade, html.theme-fade * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
/* night mode polish */
html.is-dark .site-header { border-bottom-color: #173126; }
html.is-dark .card, html.is-dark .step, html.is-dark .stats > div { box-shadow: none; }
html.is-dark .hero-bg span { opacity: .12; }
html.is-dark .prod-img, html.is-dark .prod-hero-img, html.is-dark .product img { background: #f4f7f5; }
html.is-dark .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 2px #1f3a2e; }
html.is-dark .btn-light { color: #073b2c; }
html.is-dark .ad-placeholder { border-color: #22382d; }

/* brand tagline under the logo */
.wordmark-wrap { display: grid; line-height: 1.05; }
.brand-tag { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: 2px; white-space: nowrap; }

/* ── smallest phones (320–400px) ─────────────────────────── */
select { max-width: 100%; min-width: 0; }
.prayer-settings select { width: 100%; }
.seg { flex-wrap: wrap; }
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .theme-seg button { flex: 1 1 45%; }
  .list td, .list th { padding: 9px 6px; }
  .list td { font-size: .92rem; overflow-wrap: anywhere; }
  .list .badge { font-size: .72rem; padding: 2px 8px; }
  .prayer-cell strong { font-size: 1.08rem; }
  .prayer-grid { gap: 6px; }
  .menu-grid { gap: 8px; }
  .menu-grid a { font-size: .74rem; padding: 14px 4px; }
  .wordmark { font-size: 1.08rem; }
}

/* ── tablets & small laptops (761–1180px): compact header + menu drawer ── */
.menu-btn { display: none !important; }
@media (min-width: 761px) and (max-width: 1300px) {
  .site-header .nav, .site-header .header-cta, .site-header .desktop-only { display: none !important; }
  .site-header .mobile-only, .site-header .menu-btn { display: inline-flex !important; }
  .lang { margin-inline-start: auto; }
}
@media (min-width: 761px) {
  .sheet-menu { left: 50%; right: auto; width: min(560px, 100%); transform: translate(-50%, 105%); bottom: 0; }
  .sheet-menu.open { transform: translate(-50%, 0); }
  .sheet-menu .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
.site-header .wrap { max-width: 1360px; }

/* tagline under the logo — stacked, so it barely widens the header */
.brand-tag { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: 3px; white-space: nowrap; }
@media (max-width: 359px) { .brand-tag { display: none; } }

/* about page */
.about-hero { position: relative; overflow: hidden; padding: 48px 0 24px; }
.about-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.04em; margin: .15em 0 .35em; }
.about-hero .lead { margin-inline: auto; }
.about-block { margin: 44px 0; }
.about-block h2 { margin-top: 0; }
.about-stats { margin: 8px 0 40px; }
.about-page .feature.link-card { display: block; color: var(--text); text-decoration: none; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.value h3 { margin: 0 0 4px; }
.value p { margin: 0; color: var(--muted); }
.value-n { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(13, 107, 79, .8); }
.about-how p { color: var(--muted); }
.about-cta { margin-top: 48px; }

/* ════════════════════════════════════════════════════════════
   "Seal" brand — deep emerald (halal) + gold on warm ivory.
   Green says halal at a glance; the gold eight-pointed star, ivory paper
   and geometric lattice make it ours rather than a stock green UI.
   ════════════════════════════════════════════════════════════ */
:root {
  --bg: #fbf8f1; --bg-soft: #f4efe3; --surface: #ffffff; --surface-2: #fdfaf4;
  --text: #10231b; --muted: #5d6a62; --border: #e9e2d2;
  --brand: #0d6b4f; --brand-2: #12a37a; --brand-deep: #073b2c; --brand-ink: #ffffff; --brand-soft: #e3f2ea;
  --gold: #c9972f; --gold-soft: #f8edd2; --link: #0b6448;
  --halal: #0c8a57;
  --grad: linear-gradient(135deg, #074a36 0%, #0d6b4f 48%, #12935f 100%);
  --grad-text: linear-gradient(100deg, #0a5a42, #0f8a62 55%, #c9972f);
  --shadow-sm: 0 1px 2px rgba(40, 32, 10, .05);
  --shadow: 0 1px 2px rgba(40, 32, 10, .04), 0 10px 26px -10px rgba(40, 32, 10, .14);
  --shadow-lg: 0 26px 60px -22px rgba(7, 59, 44, .42);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6.4 6.2h8.8v8.8L49.4 28l-6.2 6.4v8.8h-8.8L28 49.4l-6.4-6.2h-8.8v-8.8L6.6 28l6.2-6.4v-8.8h8.8z' fill='none' stroke='%230d6b4f' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6.4 6.2h8.8v8.8L49.4 28l-6.2 6.4v8.8h-8.8L28 49.4l-6.4-6.2h-8.8v-8.8L6.6 28l6.2-6.4v-8.8h8.8z' fill='none' stroke='%23e0aa3e' stroke-opacity='.2' stroke-width='1.2'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --bg: #07130e; --bg-soft: #0c1b14; --surface: #0f2119; --surface-2: #13281f;
  --text: #ebf3ee; --muted: #9fb3a8; --border: #1f3a2e;
  --brand: #45c994; --brand-2: #2fb784; --brand-deep: #c9ecd9; --brand-ink: #04140e; --brand-soft: #123828;
  --gold: #e6b955; --gold-soft: #2c2410; --link: #6fdaae;
  --halal: #4ade80;
  --grad: linear-gradient(135deg, #0b5a41 0%, #0f7a57 50%, #16a06e 100%);
  --grad-text: linear-gradient(100deg, #6fdaae, #45c994 55%, #e6b955);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .55); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6.4 6.2h8.8v8.8L49.4 28l-6.2 6.4v8.8h-8.8L28 49.4l-6.4-6.2h-8.8v-8.8L6.6 28l6.2-6.4v-8.8h8.8z' fill='none' stroke='%23e6b955' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07130e; --bg-soft: #0c1b14; --surface: #0f2119; --surface-2: #13281f;
    --text: #ebf3ee; --muted: #9fb3a8; --border: #1f3a2e;
    --brand: #45c994; --brand-2: #2fb784; --brand-deep: #c9ecd9; --brand-ink: #04140e; --brand-soft: #123828;
    --gold: #e6b955; --gold-soft: #2c2410; --link: #6fdaae;
    --halal: #4ade80;
    --grad: linear-gradient(135deg, #0b5a41 0%, #0f7a57 50%, #16a06e 100%);
    --grad-text: linear-gradient(100deg, #6fdaae, #45c994 55%, #e6b955);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .55); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6.4 6.2h8.8v8.8L49.4 28l-6.2 6.4v8.8h-8.8L28 49.4l-6.4-6.2h-8.8v-8.8L6.6 28l6.2-6.4v-8.8h8.8z' fill='none' stroke='%23e6b955' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
  }
}

/* signature details */
.vi-halal { background: linear-gradient(135deg, #0a6b4a, #22b07a); box-shadow: 0 14px 30px -12px rgba(12, 138, 87, .8), 0 0 0 4px var(--gold-soft); }
.wordmark b { background: linear-gradient(100deg, #0a5a42, #0f8a62 60%, #c9972f); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.is-dark .wordmark b { background: linear-gradient(100deg, #6fdaae, #e6b955); -webkit-background-clip: text; background-clip: text; }
.logo img { box-shadow: 0 6px 16px -6px rgba(7, 59, 44, .55); }
.site-header { box-shadow: inset 0 -2px 0 -1px color-mix(in srgb, var(--gold) 45%, transparent); }
.pill { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); color: var(--brand-deep); }
html.is-dark .pill { color: var(--gold); }
.eyebrow { letter-spacing: .14em; color: var(--gold); }
/* hero: ivory paper with the eight-point star lattice and soft emerald/gold light */
.hero { background: var(--pattern), radial-gradient(1000px 420px at 85% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), radial-gradient(900px 480px at 0% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%); }
.hero-bg span:nth-child(1) { background: #bfe9d4; }
.hero-bg span:nth-child(2) { background: #f6e3b4; }
.hero-bg span:nth-child(3) { background: #d7f0e2; }
.page-hero { background: var(--pattern), radial-gradient(900px 260px at 20% -40%, var(--brand-soft), transparent 70%); border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border)); }
/* primary buttons: emerald with a fine gold edge */
.btn:not(.btn-ghost):not(.btn-light):not(.btn-outline-light):not(.btn-sm) { box-shadow: inset 0 0 0 1px rgba(224, 170, 62, .35), 0 10px 22px -12px rgba(7, 59, 44, .7); }
.link-card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent), 0 14px 36px -16px rgba(201, 151, 47, .55); }
/* footer: deep emerald band with the gold lattice */
.site-footer { background: var(--pattern-light), linear-gradient(180deg, #08402f, #052a1f); color: #d9e9e0; border-top: 3px solid #c9972f; }
.site-footer a { color: #f3e3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .muted, .site-footer small, .site-footer p { color: #a9c4b6; }
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer strong { color: #fff; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark b { background: linear-gradient(100deg, #9be3c2, #e6b955); -webkit-background-clip: text; background-clip: text; }
.site-footer .brand-tag { color: #a9c4b6; }
.site-footer .footer-grid a:not(.logo) { color: #e4efe9; }
.site-footer .footer-grid a:not(.logo):hover { color: #f0c96a; }
.site-footer .footer-grid h3 { color: #e6b955; }
.site-footer .slogan { background: linear-gradient(100deg, #9be3c2, #f0c96a); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.site-footer .footer-base { border-top-color: rgba(230, 185, 85, .25); color: #a9c4b6; }
/* let the green footer run under the mobile tab bar instead of leaving an ivory strip */
body:has(> .site-footer) { padding-bottom: 0; }
body:has(> .site-footer) .site-footer { padding-bottom: calc(28px + var(--tabbar-h)); }
.stats > div strong { color: var(--brand); }
.prayer-cell.is-next { box-shadow: 0 10px 22px -10px rgba(7, 59, 44, .8), inset 0 0 0 1px rgba(224, 170, 62, .55); }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }

/* team dashboard */
.team-stats { margin: 8px 0 32px; }
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; color: #fff; }
.sc-good { color: var(--halal); } .sc-ok { color: var(--mushbooh); } .sc-bad { color: var(--haram); }
.score.sc-good { background: var(--halal); color: #fff; } .score.sc-ok { background: #d98200; color: #fff; } .score.sc-bad { background: var(--haram); color: #fff; }
.fix-list { margin: 0; padding-inline-start: 1.1em; font-size: .88rem; color: var(--muted); }
.team-table td { vertical-align: top; }
.idea-list { display: grid; gap: 8px; }
.idea { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }

/* wordmark: Halal·Check·Online */
.wordmark i { font-style: normal; font-weight: 700; font-size: .8em; margin-inline-start: 2px; color: var(--gold); letter-spacing: -.01em; }
.site-footer .wordmark i { color: #e6b955; }
@media (max-width: 380px) { .wordmark { font-size: 1rem; } .wordmark i { font-size: .74em; } }

/* home: most-searched chips, daily band, FAQ */
.hot-chips { margin: 0 0 16px; gap: 8px; }
.hot-chips .chip { font-weight: 600; transition: .15s; }
.hot-chips .chip:hover { border-color: var(--gold); color: var(--brand); background: var(--gold-soft); }
.daily-band { padding: 28px; border-radius: var(--radius); background: var(--pattern), linear-gradient(135deg, var(--brand-soft), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); }
.daily-band .section-title { margin-top: 0; }
.daily-band .home-prayer h3 { margin: 4px 0 6px; }
@media (max-width: 640px) { .daily-band { padding: 18px; } }
.home-faq .faq-list { max-width: 820px; margin: 0 auto; }

/* footer on phones: "Check" (longest list) on the left spanning two rows,
   "Learn" and "Work with us" stacked on the right — no empty column */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 8px; }
  .footer-grid > :nth-child(2) { grid-row: span 2; }
  .footer-grid > :nth-child(3), .footer-grid > :nth-child(4) { grid-column: 2; }
  .footer-grid h3 { margin: 14px 0 6px; }
}
/* short pages: keep the footer at the bottom of the screen */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .site-footer) > main { flex: 1 0 auto; width: 100%; }
.team-lock { max-width: 560px; margin: 8px auto 40px; text-align: center; }
.team-lock .btn { margin-top: 6px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; margin: 8px 0 40px; }
.contact-form { display: grid; gap: 6px; }
.contact-form h2 { margin: 0 0 6px; }
.contact-form label { font-weight: 700; font-size: .92rem; margin-top: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.contact-form .btn { margin-top: 12px; justify-self: start; }
.contact-done { color: var(--brand); font-weight: 600; }
.contact-side { display: grid; gap: 16px; }
.contact-side h2 { margin-top: 0; }
.contact-email { font-size: 1.15rem; font-weight: 800; word-break: break-all; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.send-grid .btn { justify-content: center; margin: 0; }
.send-options { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); }
.send-title { margin: 0 0 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
