:root {
  --ink: #0f1535;
  --muted: #5b6180;
  --line: #e4e6f0;
  --page: #f6f7fb;
  --panel: #ffffff;
  --night: #0b1030;
  --indigo: #1e2a78;
  --gold: #f2a900;
  --gold-soft: #fff3d1;
  --gold-ink: #8a5a00;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(15, 21, 53, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--page); padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 48, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #1e2a78, #f2a900); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 8px 22px rgba(242, 169, 0, 0.35); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline { border-color: var(--indigo); color: var(--indigo); background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; transform: none; }

/* Hero */
.hero { color: #fff; background: radial-gradient(circle at 85% 10%, rgba(242, 169, 0, 0.3), transparent 42%), linear-gradient(135deg, #0b1030 10%, #1b2468 70%, #241a55); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 72px 0 0; }
.hero-copy { padding-bottom: 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; color: #d6daf3; max-width: 560px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { font-size: 0.88rem; color: #aab0d8; margin-top: 14px; }
.phone { width: min(300px, 80%); margin: 0 auto; border-radius: 34px 34px 0 0; border: 8px solid #060a22; border-bottom: 0; background: #060a22; box-shadow: 0 -10px 60px rgba(242, 169, 0, 0.2); overflow: hidden; }
.phone img { width: 100%; }
.phone-float { border-radius: 30px; border: 7px solid #060a22; box-shadow: var(--shadow); overflow: hidden; background: #060a22; }

/* Sections */
section { padding: 84px 0; }
.band { background: var(--page); }
.dark { background: var(--night); color: #fff; }
.dark p { color: #c9cdea; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p { color: #c9cdea; }
.kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 800; color: var(--gold-ink); margin-bottom: 10px; }
.dark .kicker { color: var(--gold); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }

.icon-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 14px; }
.icon-badge svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.asset { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.asset .icon-badge { margin: 0; width: 42px; height: 42px; flex: none; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--muted); }

/* Traffic light */
.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.light { border-radius: var(--radius); padding: 26px; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.light .dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--c); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 8px; }
.light .dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }
.light .range { font-size: 0.9rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .phones { display: flex; gap: 18px; justify-content: center; }
.split .phones .phone-float { width: min(230px, 46%); }
.split .phones .phone-float:nth-child(2) { margin-top: 38px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.featured { border: 2px solid var(--gold); box-shadow: 0 14px 40px rgba(242, 169, 0, 0.18); }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--gold); color: var(--night); font-size: 0.74rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .ugx { font-size: 0.88rem; color: var(--muted); min-height: 22px; }
.plan .limit { margin: 14px 0; padding: 9px 12px; border-radius: 10px; background: var(--page); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; flex: 1; font-size: 0.95rem; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "\2713"; color: var(--green); font-weight: 800; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 22px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.method { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.method strong { display: block; }
.method span { color: var(--muted); font-size: 0.92rem; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); vertical-align: middle; margin-left: 6px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-ink); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Developer docs */
.code { background: #0b1030; color: #e7e9f7; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; margin: 12px 0; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
table.docs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.docs th, table.docs td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.docs th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.cta-band { text-align: center; color: #fff; background: radial-gradient(circle at 15% 0%, rgba(242, 169, 0, 0.28), transparent 45%), linear-gradient(135deg, #0b1030, #1b2468); }
.cta-band p { color: #d6daf3; max-width: 560px; margin: 0 auto 24px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--night); color: #aab0d8; padding: 56px 0 30px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #d6daf3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }

.page-hero { padding: 64px 0; }
.page-hero p.lead { font-size: 1.18rem; color: #d6daf3; max-width: 640px; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; }
  .hero-copy { padding-bottom: 8px; }
  .g4, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .g3, .lights, .methods { grid-template-columns: 1fr; }
  .assets { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-links.open { display: flex; }
  .g2, .g4, .steps, .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Device frames */
.device { position: relative; border-radius: 38px; padding: 9px; background: linear-gradient(150deg, #3a4075, #0a0e27 55%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.device::before { content: ""; position: absolute; top: 20px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #05081c; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06); z-index: 2; }
.device::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #1b2150; }
.device img { width: 100%; height: auto; border-radius: 30px; display: block; background: #0b1030; }

.phone-stack { position: relative; height: 640px; }
.phone-stack .device { position: absolute; }
.phone-stack .d-center { z-index: 3; width: 270px; left: 50%; margin-left: -135px; top: 6px; }
.phone-stack .d-left { z-index: 2; width: 224px; left: 0; top: 96px; transform: rotate(-8deg); opacity: 0.97; }
.phone-stack .d-right { z-index: 2; width: 224px; right: 0; top: 80px; transform: rotate(7deg); opacity: 0.97; }
.hero-grid.stacked { padding-bottom: 40px; align-items: center; }
.hero-grid.stacked .hero-copy { padding-bottom: 0; }

.duo { display: flex; justify-content: center; gap: 28px; align-items: flex-start; }
.duo .device { width: min(250px, 46%); }
.duo .device:nth-child(2) { margin-top: 46px; }
.cap { display: block; text-align: center; margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }

/* Illustrations */
.scene { border-radius: 28px; box-shadow: var(--shadow); width: 100%; height: auto; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { text-align: center; }
.person img { width: 100%; max-width: 210px; margin: 0 auto 14px; border-radius: 30px; box-shadow: 0 14px 34px rgba(15, 21, 53, 0.14); }
.person h3 { margin-bottom: 4px; }
.person p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.illus-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 0.92rem; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: #4a56c7; }
.chip.here { background: var(--gold-soft); border-color: #f1d58a; color: var(--gold-ink); }
.chip.here i { background: var(--gold); }
.map { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .phone-stack { height: 600px; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .phone-stack { height: 560px; }
  .phone-stack .d-left, .phone-stack .d-right { display: none; }
  .duo { gap: 16px; }
}
.hero-grid.stacked { grid-template-columns: 0.95fr 1.1fr; }
@media (max-width: 960px) { .hero-grid.stacked { grid-template-columns: 1fr; } }

/* Store badges (placeholders until the app is published) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 176px; padding: 9px 18px 9px 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, 0.55); line-height: 1.15; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: grid; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.store small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0.85; }
.store:hover { border-color: var(--gold); }
.store.is-placeholder { cursor: default; }

/* Assessment: traffic light */
.signal { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 72px; align-items: center; }
.signal-light { max-width: 210px; margin: 0 auto; }
.signal-light svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(15, 21, 53, 0.25)); }
.lamp { fill: #1d2457; transition: fill 0.35s ease; }
.glow { opacity: 0; filter: blur(16px); transition: opacity 0.35s ease; }
.signal-light[data-lit="red"] .lamp-red { fill: #dc2626; }
.signal-light[data-lit="red"] .glow-red { opacity: 0.65; }
.signal-light[data-lit="amber"] .lamp-amber { fill: #f59e0b; }
.signal-light[data-lit="amber"] .glow-amber { opacity: 0.65; }
.signal-light[data-lit="green"] .lamp-green { fill: #22c55e; }
.signal-light[data-lit="green"] .glow-green { opacity: 0.65; }
.outcomes { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.outcomes li { display: grid; grid-template-columns: 124px 1fr; gap: 20px; align-items: baseline; padding: 24px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.2s ease; border-radius: 4px; }
.outcomes li:hover, .outcomes li.on { background: #fff; }
.outcomes .range { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--c); }
.outcomes h3 { margin: 0 0 4px; }
.outcomes p { margin: 0; color: var(--muted); }
.fine { color: var(--muted); font-size: 0.9rem; margin: 16px 14px 0; }

/* Two statements in large type */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair p { margin: 0; padding: 6px 48px; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; }
.pair p:first-child { border-right: 1px solid #cfd3e6; padding-left: 0; }
.pair p:last-child { padding-right: 0; }
.pair .n { display: block; color: var(--gold-ink); font-size: 0.74rem; letter-spacing: 0.14em; margin-bottom: 10px; }

/* Ruled rows */
.rows { margin-top: 28px; }
.rows .row { display: grid; grid-template-columns: minmax(180px, 0.7fr) 2fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
.rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.rows.two .row { grid-template-columns: 1fr; gap: 6px; border-bottom: 0; }
.rows.two .row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.dark-rows .row { border-color: rgba(255, 255, 255, 0.14); grid-template-columns: 1fr; gap: 4px; }
.dark-rows h3 { color: #fff; }
.dark-rows p { color: #c9cdea; }

@media (max-width: 960px) {
  .signal { grid-template-columns: 1fr; gap: 36px; }
  .signal-light { max-width: 150px; }
  .pair { grid-template-columns: 1fr; gap: 26px; }
  .pair p, .pair p:first-child, .pair p:last-child { padding: 0; border: 0; }
  .rows .row { grid-template-columns: 1fr; gap: 6px; }
  .rows.two { grid-template-columns: 1fr; }
  .rows.two .row:nth-last-child(-n+2) { border-bottom: 0; }
  .rows.two .row:last-child { border-bottom: 1px solid var(--line); }
  .outcomes li { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lamp, .glow, .outcomes li { transition: none; } }

/* Assets: plain ruled items, not boxed tiles */
.assets { gap: 0 36px; }
.asset { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 4px; font-size: 1.05rem; }
.asset .icon-badge { background: none; width: 36px; height: 36px; border-radius: 0; color: var(--gold-ink); }
.asset .icon-badge svg { width: 30px; height: 30px; stroke-width: 1.6; }
@media (max-width: 960px) { .assets { gap: 0 24px; } }
