/* ==========================================================================
   HalalFoodScan — design system
   Brand: #FFDE59 (icon ground) + #0A0A0A (icon ink)
   Verdict palette mirrors the app: Halal green / Mushbooh amber / Haram red
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  --brand: #FFDE59;
  --brand-600: #F0C929;
  --brand-700: #8A6800;          /* 5.17:1 on white — WCAG AA for small text */
  --focus: #8A6800;              /* 3:1+ against white AND the yellow brand button */
  --brand-tint: #FFF9E0;

  --halal: #16A34A;
  --halal-tint: #E9F8EF;
  --mushbooh: #D97706;
  --mushbooh-tint: #FEF4E6;
  --haram: #DC2626;
  --haram-tint: #FDECEC;
  --unknown: #64748B;
  --unknown-tint: #F1F3F6;

  --bg: #FFFFFF;
  --bg-2: #FBFAF5;
  --bg-3: #F5F3EC;
  --surface: #FFFFFF;

  --ink: #0A0A0A;
  --ink-2: #45464B;
  --ink-3: #6E7076;

  --line: rgba(10, 10, 10, .10);
  --line-2: rgba(10, 10, 10, .06);

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, .05), 0 1px 3px rgba(10, 10, 10, .04);
  --shadow-md: 0 4px 6px -1px rgba(10, 10, 10, .06), 0 12px 24px -8px rgba(10, 10, 10, .10);
  --shadow-lg: 0 24px 60px -20px rgba(10, 10, 10, .28), 0 8px 20px -10px rgba(10, 10, 10, .14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;

  --wrap: 1160px;
  --wrap-narrow: 760px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-700: #FFDE59;
    --focus: #FFDE59;
    --brand-tint: #2A2410;

    --halal: #34D399;
    --halal-tint: #10241A;
    --mushbooh: #FBBF24;
    --mushbooh-tint: #2A2110;
    --haram: #F87171;
    --haram-tint: #2B1414;
    --unknown: #94A3B8;
    --unknown-tint: #1B1D22;

    --bg: #0B0B0D;
    --bg-2: #121215;
    --bg-3: #17171B;
    --surface: #141418;

    --ink: #F7F7F5;
    --ink-2: #B9BAC0;
    --ink-3: #8B8D95;

    --line: rgba(255, 255, 255, .12);
    --line-2: rgba(255, 255, 255, .07);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, .7);
    --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .85);
  }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:where(h1, h2, h3, h4, h5) {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 10px; font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--bg-2); }
.section--band { background: var(--bg-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700);
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-block: 12px 14px; }
.section-head p { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-3); text-wrap: pretty; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease,
    border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--brand { background: var(--brand); color: #0A0A0A; box-shadow: var(--shadow-md); }
.btn--brand:hover { background: var(--brand-600); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }

.btn--lg { padding: 17px 30px; font-size: 17.5px; }
.btn--block { width: 100%; }

/* Icon SVGs have no intrinsic size; without this they expand to fill the button. */
.btn svg { width: 17px; height: 17px; flex: none; }

/* App Store badge button */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 12px 24px 12px 20px; border-radius: 14px; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .16s ease, box-shadow .16s ease;
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.appstore-btn svg { flex: none; width: 28px; height: 28px; fill: currentColor; }
.appstore-btn__text { display: grid; text-align: left; line-height: 1.15; }
.appstore-btn__text small { font-size: 11px; opacity: .78; letter-spacing: .02em; }
.appstore-btn__text strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--ink); letter-spacing: -.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink-2); text-decoration: none;
  padding: 9px 13px; border-radius: 9px;
  transition: color .14s ease, background-color .14s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--brand-tint); }

/* The in-nav CTA exists only for the mobile menu; the header CTA covers desktop. */
.nav > .btn { display: none; }
.nav > a.btn--brand { color: #0A0A0A; }
.header .btn { padding: 10px 18px; font-size: 15px; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-width: 44px; min-height: 44px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16.5px; }
  .nav > .btn { display: inline-flex; margin-top: 10px; justify-content: center; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(52px, 7vw, 96px);
  background:
    radial-gradient(1100px 460px at 78% -8%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 62%),
    radial-gradient(720px 380px at 6% 6%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    var(--bg);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 63px);
  letter-spacing: -.035em; margin-block: 16px 20px;
}
.hero h1 .hl {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 100% .28em;
  background-position: 0 .82em;
  padding-inline: 4px;
}
.hero__sub {
  font-size: clamp(17px, 1.9vw, 20.5px); color: var(--ink-2);
  max-width: 56ch; text-wrap: pretty;
}
.hero .cta-row { margin-top: 30px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
  font-size: 14.5px; color: var(--ink-3);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 16px; height: 16px; flex: none; color: var(--halal); }

.rating-badge {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px 7px 12px;
  box-shadow: var(--shadow-sm); font-size: 14px; color: var(--ink-2);
}
.rating-badge .stars { color: #9F6B17; letter-spacing: 1px; font-size: 14px; }
.rating-badge strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__shot {
  width: min(330px, 78vw); border-radius: 30px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-2);
  transform: rotate(1.6deg);
}
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink);
  white-space: nowrap;
}
.hero__chip i {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800;
}
.hero__chip--halal { left: -8px; top: 16%; }
.hero__chip--halal i { background: var(--halal-tint); color: var(--halal); }
.hero__chip--haram { right: -10px; top: 46%; }
.hero__chip--haram i { background: var(--haram-tint); color: var(--haram); }
.hero__chip--mush { left: 2%; bottom: 12%; }
.hero__chip--mush i { background: var(--mushbooh-tint); color: var(--mushbooh); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero .cta-row, .hero__trust { justify-content: center; }
  .hero__chip--halal { left: 0; }
  .hero__chip--haram { right: 0; }
  .hero__chip--mush { left: 4%; }
}
@media (max-width: 560px) {
  .hero__chip { font-size: 13px; padding: 9px 12px; }
  .hero__chip--mush { display: none; }
}

/* ---------- 7. Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: var(--bg); padding: 26px 22px; text-align: center; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); letter-spacing: -.03em;
}
.stat span { display: block; margin-top: 5px; font-size: 14px; color: var(--ink-3); }

/* ---------- 8. Verdict cards ---------- */
.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }
.verdict {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 24px 28px;
  border-top: 4px solid var(--v, var(--unknown));
  box-shadow: var(--shadow-sm);
}
.verdict__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--vt, var(--unknown-tint)); color: var(--v, var(--unknown));
  margin-bottom: 16px;
}
.verdict__icon svg { width: 24px; height: 24px; }
.verdict h3 { font-size: 21px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.verdict h3 em {
  font-style: normal; font-size: 17px; color: var(--v);
  font-family: var(--font-body); font-weight: 600;
}
.verdict p { margin-top: 9px; font-size: 15.5px; color: var(--ink-3); }
.verdict--halal { --v: var(--halal); --vt: var(--halal-tint); }
.verdict--mushbooh { --v: var(--mushbooh); --vt: var(--mushbooh-tint); }
.verdict--haram { --v: var(--haram); --vt: var(--haram-tint); }
.verdict--unknown { --v: var(--unknown); --vt: var(--unknown-tint); }

/* ---------- 9. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px 26px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -17px; left: 24px;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand); color: #0A0A0A;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 20px; margin-top: 12px; }
.step p { margin-top: 9px; font-size: 15.5px; color: var(--ink-3); }

/* ---------- 10. Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.shot { flex: none; width: 258px; scroll-snap-align: center; }
.shot img {
  width: 100%; border-radius: 22px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md); background: var(--bg-2);
}
.shot figcaption {
  margin-top: 14px; font-size: 14.5px; color: var(--ink-3);
  text-align: center; text-wrap: pretty;
}
.shot figcaption b {
  display: block; color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 16px; margin-bottom: 3px;
}
.shot--ipad { width: 340px; }

/* ---------- 11. Feature cards ---------- */
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-700); margin-bottom: 14px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18.5px; }
.feature p { margin-top: 8px; font-size: 15.5px; color: var(--ink-3); }

/* ---------- 12. Link cards (guides + blog) ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-600); }
.card__tag {
  display: inline-flex; align-self: flex-start; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-tint);
  padding: 5px 10px; border-radius: 7px; margin-bottom: 13px;
}
.card h3 { font-size: 19px; line-height: 1.28; }
.card p { margin-top: 9px; font-size: 15px; color: var(--ink-3); flex: 1; }
.card__more {
  margin-top: 16px; font-family: var(--font-display); font-weight: 700;
  font-size: 14.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.card:hover .card__more { color: var(--brand-700); }
.card__more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card:hover .card__more svg { transform: translateX(3px); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--brand-600); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 24px; top: 27px;
  width: 11px; height: 11px; border-right: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .2s ease; transform-origin: 70% 70%;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brand-700); }
.faq__body { padding: 0 22px 22px; }
.faq__body p { font-size: 16px; color: var(--ink-2); }
.faq__body p + p { margin-top: 12px; }
.learn-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--brand-700); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brand-700) 32%, transparent);
  padding-bottom: 2px;
  transition: border-color .16s ease;
}
.learn-more:hover { border-bottom-color: var(--brand-700); }
.learn-more svg { width: 15px; height: 15px; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, #FFD02E 100%);
  border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 68px) clamp(26px, 5vw, 60px);
  text-align: center; color: #0A0A0A;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 260px at 50% -20%, rgba(255, 255, 255, .55), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(29px, 4.4vw, 47px); color: #0A0A0A; }
.cta-band p {
  margin-top: 14px; font-size: clamp(16.5px, 1.8vw, 19px);
  color: rgba(10, 10, 10, .74); max-width: 60ch; margin-inline: auto; text-wrap: pretty;
}
.cta-band .cta-row { justify-content: center; margin-top: 30px; }
.cta-band .appstore-btn { background: #0A0A0A; color: #FFF; }
.cta-band .btn--ghost { border-color: rgba(10, 10, 10, .3); color: #0A0A0A; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .45); border-color: rgba(10, 10, 10, .5); }
.cta-band__note { margin-top: 20px; font-size: 14.5px; color: rgba(10, 10, 10, .62); }

/* ---------- 15. Article / prose ---------- */
.page-head { padding-block: clamp(34px, 5vw, 60px) clamp(20px, 3vw, 32px); background: var(--bg-2); }
.page-head h1 { font-size: clamp(31px, 4.8vw, 50px); margin-block: 14px 16px; }
.page-head__lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.page-head + .section { padding-top: clamp(36px, 5vw, 64px); }

.page-head__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px;
  font-size: 14.5px; color: var(--ink-3);
}
.page-head__meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-head__meta svg { width: 16px; height: 16px; flex: none; color: var(--halal); }

.breadcrumb { font-size: 14px; color: var(--ink-3); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { display: inline-block; padding-block: 4px; text-decoration: none; color: var(--ink-3); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--line); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--ink-3); }
.breadcrumb [aria-current] { color: var(--ink-2); }

.prose { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(25px, 3.1vw, 33px); margin-top: 1.9em; margin-bottom: .55em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: clamp(20px, 2.2vw, 23px); margin-top: 1.7em; margin-bottom: .45em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brand-700); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) {
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 85%, transparent);
  transition: background-color .16s ease;
  padding-bottom: 1px;
}
.prose a:not(.btn):hover { background: var(--brand-tint); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--bg-3); padding: .16em .42em;
  border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink);
}
.prose blockquote {
  border-left: 4px solid var(--brand); padding: 4px 0 4px 20px;
  color: var(--ink-2); font-size: 1.03em;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 480px; }
.prose thead th {
  background: var(--bg-3); text-align: left; padding: 13px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: .02em; white-space: nowrap;
}
.prose tbody td { padding: 13px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }

/* Verdict pill used inside prose tables and callouts */
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-family: var(--font-display); white-space: nowrap;
}
.pill--halal { background: var(--halal-tint); color: #11813A; }
.pill--mushbooh { background: var(--mushbooh-tint); color: #A95D05; }
.pill--haram { background: var(--haram-tint); color: #D32424; }
.pill--unknown { background: var(--unknown-tint); color: var(--unknown); }

/* Answer box — the snippet-targeting summary at the top of every guide/article */
.answer {
  background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 0;
}
.answer p { margin: 0; font-size: 17px; color: var(--ink-2); }
.answer p + p { margin-top: 10px; }
.answer__label {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 9px;
}

/* Callout used mid-article to bridge into the app */
.callout {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.callout img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: var(--shadow-sm); }
.callout__body { flex: 1; min-width: 0; }
.callout h3 { font-size: 18px; margin: 0 0 6px; }
.callout p { margin: 0; font-size: 15.5px; color: var(--ink-3); }
.callout .btn { margin-top: 14px; padding: 11px 20px; font-size: 15px; }
@media (max-width: 560px) { .callout { flex-direction: column; gap: 14px; } }

/* Related links block at the end of every article */
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 44px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink);
  transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}
.related a:hover { border-color: var(--brand-600); background: var(--bg-2); transform: translateX(3px); }
.related a svg { width: 16px; height: 16px; flex: none; color: var(--brand-700); margin-left: auto; }

/* Table of contents */
.toc {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.toc strong {
  display: block; font-family: var(--font-display); font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px;
}
.toc ol { margin: 0; padding-left: 1.15em; font-size: 15.5px; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- 16. Footer ---------- */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 68px) 30px; }
/* min() keeps the track from forcing overflow on narrow viewports */
.footer__grid {
  display: grid; gap: 34px 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}
.footer__about { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(0, 1fr)); }
  .footer__about { grid-column: auto; }
}
.footer__about p { font-size: 15px; color: var(--ink-3); margin-top: 14px; max-width: 34ch; }
.footer__about .appstore-btn { margin-top: 20px; }
.footer h3 {
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a {
  display: inline-block; padding-block: 4px;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer ul a:hover { color: var(--ink); border-bottom-color: var(--line); }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 14px; color: var(--ink-3);
}
.footer__disclaimer {
  margin-top: 18px; font-size: 13.5px; color: var(--ink-3);
  max-width: 92ch; line-height: 1.6;
}

/* ---------- 17. Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.stack-lg { display: grid; gap: clamp(32px, 4vw, 48px); }
