/* Selah — the visual layer.
 *
 * The load-bearing imagery is the PRODUCT and the DATA:
 *   — a live trace card, showing the working
 *   — the compounding curve, plotted from real engine output
 *   — the wall of wrong: URA's own table, beside the gazette
 * All vector. All a few kilobytes. That is not a constraint — it is the point.
 *
 * PHOTOGRAPHY IS ALLOWED, AND THE RULE IS NARROWER THAN "NO PHOTOS":
 *
 *   ❌ NOT a stock smiling person at a laptop. That is the most generic signal
 *      in African fintech. It says "we are like everyone else," which is the
 *      exact opposite of our claim.
 *
 *   ✅ A REAL Ugandan taxpayer, doing REAL work, in a REAL place.
 *
 * The market band is the test case, and it passes: a trader at her own stall,
 * with her own matooke. She is not decoration. SHE IS THE TAXPAYER — under
 * 150m turnover, in the presumptive regime, expected by URA to look up her own
 * bracket and type the number in herself, unassisted.
 *
 * The distinction is not "smiling or not". It is: is this person REAL, and are
 * they the person we are actually talking about?
 *
 * And the numbers still never sit on top of her. Numbers live on paper.
 */

/* ── the paper grain: a hairline grid, barely there.
      Texture without ornament. It reads as ledger paper. ── */
.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  opacity: .5;
  position: absolute; inset: 0; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-home { position: relative; }
.hero-home > * { position: relative; z-index: 1; }

/* ── hero: text left, the product right ── */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 32px; } }

/* ── THE TRACE CARD — the hero image is the product ── */
.trace {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(10,15,13,.04), 0 12px 32px rgba(10,15,13,.06);
}
.trace-bar { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-1); }
.trace-bar .t { font-size: 12px; color: var(--ink-500); }
.trace-body { padding: 18px 20px; }
.trace-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.trace-big .v { font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.trace-big .u { font-size: 12px; color: var(--ink-500); }
.trace-cap { font-size: 12px; color: var(--ink-500); margin-bottom: 16px; }
.trace-row { display: flex; justify-content: space-between; padding: 4px 0;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--ink-700); }
.trace-row.tot { border-top: 1px solid var(--border-str); margin-top: 5px; padding-top: 7px;
  color: var(--ink-900); font-weight: 500; }
.trace-foot { padding: 12px 20px; border-top: 1px solid var(--border);
  background: var(--surface-1); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* the conflict slip — tucked under the card, slightly rotated. The one flourish. */
.conflict-slip {
  margin: -10px 0 0 32px; padding: 11px 14px; max-width: 340px;
  background: var(--amber-50); border: 1px solid var(--amber-100);
  border-radius: var(--radius); transform: rotate(-.6deg);
  font-size: 12.5px; line-height: 1.5; color: var(--amber-700);
}

/* ── the wall of wrong ── */
.wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.wrong {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px; position: relative; overflow: hidden;
}
.wrong .x { position: absolute; top: 12px; right: 14px; font-family: var(--font-num);
  font-size: 15px; color: var(--red-600); }
.wrong .w { font-size: 13.5px; font-weight: 500; margin-bottom: 6px; padding-right: 20px; }
.wrong .d { font-size: 12.5px; color: var(--ink-700); line-height: 1.55; }
.wrong .n { font-family: var(--font-num); font-size: 11px; color: var(--ink-400); margin-top: 9px; }
.wrong.gold { border-color: var(--amber-600); background: var(--amber-50); }
.wrong.gold .w, .wrong.gold .d { color: var(--amber-700); }
.wrong.gold .x { color: var(--amber-600); }

/* ── the curve ── */
.curve-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .curve-wrap { grid-template-columns: 1fr; gap: 24px; } }
.curve-fig { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px; }
.curve-cap { font-family: var(--font-num); font-size: 11px; color: var(--ink-500); margin-top: 10px; }

/* ── icons — outlined, hairline, on-brand. No filled shapes. ── */
.ico { width: 26px; height: 26px; stroke: var(--emerald-600); stroke-width: 1.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.prom { padding-top: 4px; }

/* ── door previews — a slice of the real product, not an illustration ── */
.door-prev { border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-bottom: 14px; background: var(--surface-0); }
.dp-row { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; font-size: 10.5px; border-bottom: 1px solid var(--border); }
.dp-row:last-child { border-bottom: none; }
.dp-l { color: var(--ink-700); }
.dp-r { font-family: var(--font-num); color: var(--ink-900); }
.dp-tag { font-family: var(--font-num); font-size: 9px; padding: 2px 6px; border-radius: 4px; }
.dp-ok  { background: var(--emerald-100); color: var(--emerald-900); }
.dp-bad { background: var(--red-100); color: var(--red-700); }
.dp-warn{ background: var(--amber-100); color: var(--amber-700); }
.door.soon .door-prev { opacity: .62; }

/* ── the killer quote gets a mark ── */
.killer { position: relative; }
.killer-mark { position: absolute; right: 0; top: 56px; opacity: .07; pointer-events: none; }
@media (max-width: 900px) { .killer-mark { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE PLACEHOLDERS
   ───────────────────────────────────────────────────────────────────────────
   Drop a real file at the path shown and it appears automatically.
   No code change. The placeholder removes itself.

   ⚠️  Three rules, from the brand guidelines, and they are not negotiable:
       1. NEVER place the ‖ mark or a number on top of a photograph.
       2. NEVER a stock "smiling person at a laptop." It is the most generic
          signal in African fintech and it says: we are like everyone else.
       3. Real Ugandan work, real desks, real ledgers. Or nothing at all.

   Specs and licensing → assets/images/README.md
   ═══════════════════════════════════════════════════════════════════════════ */

.ph {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: var(--ar, 16 / 9);
  background: var(--surface-1);
  border: 1px dashed var(--border-str);
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
}
/* When the real file exists, it covers the placeholder entirely. */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; }
.ph:has(img) { border-style: solid; border-color: var(--border); }

.ph figcaption { text-align: center; padding: 16px; z-index: 1; max-width: 320px; }
.ph-dim  { display: block; font-family: var(--font-num); font-size: 11px;
  color: var(--emerald-700); margin-bottom: 6px; }
.ph-name { display: block; font-family: var(--font-num); font-size: 10.5px;
  color: var(--ink-400); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 8px; margin: 0 auto 9px; width: fit-content; }
.ph-note { display: block; font-size: 12px; color: var(--ink-500); line-height: 1.5; }

/* ── a wide band ── */
.band { margin: 0 0 8px; }
.band .ph { --ar: 21 / 7; }

/* ── who this is for — the three people, and their real problems ── */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.person { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden; }
.person .ph { --ar: 4 / 3; border: none; border-bottom: 1px dashed var(--border-str);
  border-radius: 0; }
.person:has(img) .ph { border-bottom: 1px solid var(--border); }
.person-body { padding: 16px 18px; }
.person-body h3 { font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.person-body .role { font-size: 12px; color: var(--ink-500); margin-bottom: 10px; }
.person-body p { font-size: 13.5px; color: var(--ink-700); line-height: 1.6; }
.person-body .hit { display: block; margin-top: 11px; padding-top: 11px;
  border-top: 1px solid var(--border);
  font-family: var(--font-num); font-size: 12px; color: var(--red-700); }
.person-body .hit.good { color: var(--emerald-700); }

/* ── door thumbnails ── */
.door .ph { --ar: 16 / 9; margin-bottom: 14px; border-radius: 8px; }
.door.soon .ph { opacity: .7; }

/* ── the market band, and the caption that makes it mean something ── */
.band-fig figcaption { max-width: 420px; }
.band-fig code { font-family: var(--font-num); font-size: 10.5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 5px; }
.band-cap { max-width: 760px; margin: 16px auto 0; text-align: center;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-700); }
.band-cap strong { color: var(--ink-900); font-weight: 500; }
