/* ============================================================================
   Mizan — "The Balance" theme.  A neutral courtroom/observatory aesthetic:
   cold, fair, precise.  Deliberately NOT the devotional Quranic-Insights
   dashboard, and NOT the green AMANAH "sacred testimony" theme — Mizan's
   walled-off neutrality is the whole point.  Near-black ground, a single
   restrained brass accent (the scale's beam), steel-grey monospace for the
   "instrument readouts" (hashes, counts, gauges), serif for prose.
   ========================================================================== */

:root {
  --bg:        #0b0c0e;   /* ground */
  --bg2:       #101216;
  --panel:     #16181d;   /* cards */
  --panel2:    #1b1e24;
  --line:      #262a31;   /* hairlines */
  --line2:     #323843;
  --ink:       #e9e7e2;   /* primary text (warm white) */
  --muted:     #9aa0a8;
  --faint:     #646b74;
  --brass:     #b8915a;   /* the beam of the scale — the only warm accent */
  --brass-br:  #d4ad6e;
  --steel:     #8794a3;   /* instrument readouts */
  --broke:     #c2554d;   /* a claim that failed — shown plainly, never hidden */
  --survived:  #6f9f74;   /* a claim that held */
  --indet:     #b8915a;   /* inconclusive — the honest default */
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }
::selection { background: var(--brass); color: #0b0c0e; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #14171c 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: var(--brass-br); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: 'Spectral', Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* ── instrument readout — mono, steel, for hashes / counts / gauges ───────── */
.readout, .mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color: var(--steel);
  font-size: .82rem;
  letter-spacing: .02em;
  word-break: break-all;
}

/* ── sticky nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .9rem 1.4rem;
  background: rgba(11,12,14,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.nav .brand { color: var(--ink); font-weight: 700; letter-spacing: .26em; margin-right: auto; }
.nav .brand .ar { color: var(--brass); font-family: 'Spectral', serif; letter-spacing: 0; text-transform: none; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.cur { color: var(--brass-br); }
@media (max-width: 680px){ .nav { gap: .9rem; font-size: .62rem; padding: .8rem 1rem; } .nav a.hide-sm { display: none; } }

/* ── layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.2rem 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 .8rem;
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 3.5rem; text-align: left; }
.hero .scale { font-size: 2rem; color: var(--brass); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); margin: .4rem 0 .6rem;
  background: linear-gradient(180deg, #fff, #cdd2d8 60%, #8a929b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 46ch; }
.hero .lede strong { color: var(--ink); font-weight: 600; }

details.tech { margin-top: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
details.tech > summary {
  cursor: pointer; padding: .9rem 1.1rem; list-style: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
}
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::after { content: ' ▸'; color: var(--faint); }
details.tech[open] > summary::after { content: ' ▾'; }
details.tech .body { padding: 0 1.1rem 1.1rem; color: var(--muted); font-size: .98rem; }

/* ── honest-ceiling callout ──────────────────────────────────────────────── */
.ceiling {
  border-left: 3px solid var(--brass);
  background: linear-gradient(90deg, rgba(184,145,90,.08), transparent 70%);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-size: 1.02rem;
}
.ceiling .label { color: var(--brass); font-weight: 600; }

/* ── generic cards / grids ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.18rem; color: var(--ink); }
.card p { margin: .4rem 0 0; color: var(--muted); font-size: .96rem; }

/* objection cards */
.objection .tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .7rem;
  letter-spacing: .12em; color: var(--brass); text-transform: uppercase;
}
.objection h3 { margin-top: .3rem; }

/* ── the test battery ────────────────────────────────────────────────────── */
.test {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; position: relative;
}
.test .top { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.test .tier {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line2); border-radius: 999px; padding: .12rem .55rem;
}
.test h3 { margin: 0; font-size: 1.22rem; }
.test .verse {
  font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--brass);
  font-size: .8rem; letter-spacing: .04em;
}
.test .q { color: var(--muted); margin: .7rem 0 .9rem; font-size: .98rem; }
.test .lose {
  border-top: 1px dashed var(--line2); padding-top: .8rem; margin-top: .2rem;
  font-size: .92rem; color: var(--ink);
}
.test .lose b { color: var(--broke); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
  border: 1px solid var(--line2); border-radius: 6px; padding: .18rem .5rem;
}
.badge.on { color: var(--brass-br); border-color: var(--brass); }
.badge.excluded { color: var(--faint); }

/* ── verdict legend ──────────────────────────────────────────────────────── */
.verdict { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--line); }
.verdict:first-child { border-top: none; }
.verdict .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex: 0 0 auto; }
.verdict .name { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8rem; letter-spacing: .08em; color: var(--ink); }
.verdict .desc { color: var(--muted); font-size: .94rem; }
.dot.survived { background: var(--survived); }
.dot.broke    { background: var(--broke); }
.dot.untest   { background: var(--steel); }
.dot.indet    { background: var(--indet); }

/* ── sealed footer strip ─────────────────────────────────────────────────── */
.seal-strip {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem;
}
.seal-strip .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--survived); box-shadow: 0 0 0 4px rgba(111,159,116,.16); }
.seal-strip .pip.pending { background: var(--indet); box-shadow: 0 0 0 4px rgba(184,145,90,.16); }
.seal-strip .k { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color: var(--brass); }

/* ── safeguards list ─────────────────────────────────────────────────────── */
.safeguard { padding: .9rem 0; border-top: 1px solid var(--line); }
.safeguard:first-child { border-top: none; }
.safeguard b { color: var(--ink); }
.safeguard span { color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer.site { text-align: center; color: var(--faint); font-size: .82rem; padding: 2.6rem 1.5rem 3.4rem; border-top: 1px solid var(--line); }
footer.site .ar { font-family: 'Spectral', serif; color: var(--brass); font-size: 1.1rem; }
footer.site a { color: var(--muted); }
