/* ============================================================
   Canadian Halal Investor — canadianhalalinvestor.com
   No frameworks, no trackers, no build step.
   ============================================================ */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --muted: #5d5d59;
  --line: #e6e4dc;
  --accent: #0d6e4f;        /* deep green — finance/trust, no religious iconography */
  --accent-soft: #e7f3ed;
  --gold: #b8860b;
  --star: #e0a800;
  --warn-bg: #fff8e6;
  --radius: 10px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.65; font-size: 17px;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 64px; }
.article { max-width: 760px; margin: 0 auto; }
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; margin-bottom: 28px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.2; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-weight: 700; text-decoration: none; padding: 13px 26px;
  border-radius: var(--radius); font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { background: #0a5a41; }
.btn-ghost {
  background: transparent; color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

/* ---------- Verdict / rating box ---------- */
.verdict {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; margin: 26px 0;
}
.verdict h2 { margin-top: 0; font-size: 22px; }
.score-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.score {
  font-size: 34px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--radius); padding: 6px 18px;
}
.stars { color: var(--star); font-size: 20px; letter-spacing: 2px; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 24px 0; }
table.compare {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 15.5px;
}
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr.winner td { background: var(--accent-soft); font-weight: 600; }
.compare .check { color: var(--accent); font-weight: 800; }
.compare .cross { color: #b3372f; font-weight: 800; }

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  border-radius: var(--radius); padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line);
}
.pros { border-top: 4px solid var(--accent); }
.cons { border-top: 4px solid #b3372f; }
.pros h3, .cons h3 { margin: 0 0 10px; font-size: 17px; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; }
.pros li, .cons li { margin-bottom: 6px; }

/* ---------- Screenshot placeholders ---------- */
figure.screenshot {
  margin: 24px 0; border: 1px dashed var(--muted); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.screenshot .shot {
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f2f1ec, #f2f1ec 12px, #e9e7df 12px, #e9e7df 24px);
  color: var(--muted); font-weight: 600; text-align: center; padding: 24px;
}
.screenshot figcaption {
  padding: 10px 16px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--bg);
}
/* NOTE (BUILD phase): replace every .screenshot figure with a REAL captioned
   screenshot of the product UI. No stock art. First-hand screenshots only —
   this is the ranking moat. */

/* ---------- TOC ---------- */
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; margin: 24px 0; font-size: 15.5px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 4px; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; font-size: 15.5px;
  background: var(--warn-bg); border: 1px solid #ecd9a0;
}
.callout.shariah {
  background: var(--accent-soft); border-color: #bcdccb;
}
.callout.shariah strong { color: var(--accent); }

/* ---------- Disclosure snippet (REUSABLE — required on every monetized page) ---------- */
.disclosure {
  margin: 36px 0 0; padding: 18px 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); font-size: 14px; color: var(--muted);
}
.disclosure strong { color: var(--ink); }

/* ---------- Cards (homepage) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin: 24px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13, 110, 79, .10); }
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.card .mini-score { font-weight: 800; color: var(--gold); font-size: 14px; letter-spacing: .02em; }
.card.pick { border-top: 4px solid var(--accent); }
.section-title { font-size: 24px; margin: 40px 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 8px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 20px;
  font-size: 14px; color: var(--muted); display: grid; gap: 14px;
}
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
