/* ============================================================
   PaySmallSmall — "Akwaaba" design system
   Corporate-modern fintech: deep forest green + warm gold,
   cool off-white surfaces, Hanken Grotesk / JetBrains Mono.
   Vanilla CSS. Fonts + Material Symbols loaded in the layout head.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface-low: #f1f3ff;
  --surface-container: #e9edff;
  --surface-high: #e0e8ff;
  --surface-variant: #dbe2f9;
  --surface-dim: #d2daf0;

  /* ink */
  --ink: #141b2c;
  --ink-variant: #3f4945;
  --outline: #707975;
  --outline-variant: #bfc9c4;

  /* brand */
  --primary: #00342b;
  --primary-container: #004d40;
  --on-primary: #ffffff;
  --on-primary-container: #7ebdac;
  --primary-fixed: #afefdd;
  --primary-fixed-dim: #94d3c1;

  /* gold / MoMo accent */
  --gold: #fabd00;
  --gold-container: #fdc003;
  --on-gold: #261a00;
  --gold-soft: #ffdf9e;
  --secondary: #785900;
  --on-secondary-container: #6c5000;

  /* semantic */
  --tertiary-container: #004f11;
  --on-tertiary-container: #72c26e;
  --tertiary-fixed-dim: #88d982;
  --success: #027a48;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  --shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 28px rgba(16, 24, 40, 0.09);
  --line: 1px solid var(--outline-variant);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1280px;
  --pad: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  vertical-align: middle;
  user-select: none;
}
.material-symbols-outlined.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-dim { background: var(--surface-low); }
.section-tint { background: var(--surface-container); }

.mono { font-family: var(--mono); }
.muted { color: var(--ink-variant); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--outline);
}

.currency { font-weight: 700; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.currency .cur { font-family: var(--mono); font-size: .6em; font-weight: 500; color: var(--outline); vertical-align: baseline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  background: var(--surface-container);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { background: var(--surface-high); }
.btn:active { transform: scale(.985); }
.btn .material-symbols-outlined { font-size: 20px; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-container); color: #fff; }

.btn-green { background: var(--primary); color: var(--on-primary); }
.btn-green:hover { background: var(--primary-container); }

.btn-gold, .btn-momo { background: var(--gold-container); color: var(--on-gold); }
.btn-gold:hover, .btn-momo:hover { background: var(--gold); }

.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--surface-low); }

.btn-ghost { background: transparent; border-color: var(--outline-variant); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-low); }

.btn-quiet { background: transparent; color: var(--ink-variant); padding-inline: .6rem; }
.btn-quiet:hover { background: var(--surface-low); color: var(--primary); }

.btn-danger { background: var(--error-container); color: var(--on-error-container); }
.btn-danger:hover { background: #ffcfca; }

.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

/* buttons that sit on the dark green band */
.on-dark .btn-ghost, .btn-on-dark {
  border-color: var(--primary-fixed-dim);
  color: var(--primary-fixed);
  background: transparent;
}
.on-dark .btn-ghost:hover, .btn-on-dark:hover { background: rgba(255,255,255,.08); }
.on-dark .btn-light, .btn-light { background: var(--surface); color: var(--primary); }
.on-dark .btn-light:hover { background: var(--surface-variant); }

/* ---------- Header / top nav ---------- */
.topbar {
  background: var(--primary);
  color: var(--primary-fixed);
  font-size: .8rem;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .5rem;
}
.topbar-note { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-note .material-symbols-outlined { font-size: 16px; }
.topbar-ussd b { color: var(--gold-container); font-family: var(--mono); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo .logo-small { color: var(--gold); }
.logo .logo-small2 { color: var(--primary-container); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
}
.primary-nav a {
  color: var(--ink-variant);
  font-weight: 600;
  font-size: .95rem;
  padding-block: .25rem;
  transition: color .18s;
}
.primary-nav a:hover { color: var(--primary); }
.primary-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 260px;
}
.search input {
  width: 100%;
  padding: .6rem .9rem .6rem 2.4rem;
  border: 1px solid transparent;
  background: var(--surface-low);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.search .search-ic {
  position: absolute;
  left: .8rem;
  color: var(--outline);
  pointer-events: none;
  font-size: 20px;
}
.search button {
  position: absolute;
  right: .3rem;
  background: transparent;
  border: 0;
  color: var(--outline);
  padding: .35rem;
  border-radius: 999px;
}

.header-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-actions a { color: var(--ink-variant); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .3rem; }
.header-actions a:hover { color: var(--primary); }
.header-actions a.nav-cta { color: var(--primary); }
/* buttons in the header keep their own text colour (beat .header-actions a) */
.header-actions a.btn-primary { color: var(--on-primary); }
.header-actions a.btn-primary:hover { color: #fff; }
.header-icon-btn {
  color: var(--ink-variant);
  padding: .4rem;
  border-radius: 999px;
  display: inline-flex;
}
.header-icon-btn:hover { background: var(--surface-low); color: var(--primary); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: .3rem;
  border-radius: var(--radius);
}

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0));
  background: var(--surface);
  border-top: 1px solid var(--surface-variant);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-variant);
  font-size: 11px;
  font-weight: 600;
  padding: .35rem .6rem;
  border-radius: 999px;
}
.bottom-nav a .material-symbols-outlined { font-size: 24px; }
.bottom-nav a.active { background: var(--primary-container); color: var(--on-primary-container); }
.bottom-nav a.active .material-symbols-outlined { font-variation-settings: "FILL" 1; }

/* ---------- Flash ---------- */
.flash {
  border-radius: var(--radius-lg);
  padding: .8rem 1.1rem;
  margin-block: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.flash-success { background: #e5f5ec; color: var(--success); border-color: #b7e3ca; }
.flash-error { background: var(--error-container); color: var(--on-error-container); border-color: #f5b7b2; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--surface-variant);
  margin-top: 3rem;
  padding-block: 2.5rem;
}
.footer-word { font-weight: 800; font-size: clamp(2rem, 8vw, 4rem); color: var(--primary); letter-spacing: -0.03em; line-height: 1; opacity: .12; }
.footer-word .dot { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: 1.5rem;
}
.footer-logo { font-weight: 800; font-size: 1.4rem; color: var(--primary); margin-bottom: .5rem; }
.footer-note { color: var(--ink-variant); font-size: .9rem; max-width: 30ch; }
.footer-head { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--outline); margin-bottom: .35rem; }
.footer-ussd { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--ink-variant); font-size: .92rem; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-base {
  border-top: 1px solid var(--surface-variant);
  padding-top: 1.2rem;
  color: var(--outline);
  font-size: .82rem;
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  /* Real shop photo, laid under a light wash (strong on the left where the
     headline sits, lighter toward the right so the image reads through). */
  background-color: var(--surface-low);
  background-image:
    linear-gradient(105deg, rgba(241, 243, 255, .97) 0%, rgba(241, 243, 255, .90) 42%, rgba(241, 243, 255, .58) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(148, 211, 193, .30), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(175, 239, 221, .22), transparent 70%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(148, 211, 193, .28);
  padding: .35rem .8rem;
  border-radius: 999px;
  width: fit-content;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-block: 1rem .9rem;
}
.hero-title .accent { color: var(--primary); }
.hero-lead { font-size: 1.1rem; color: var(--ink-variant); max-width: 36ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.3rem; }
.hero-ussd-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold-container);
  color: var(--on-gold);
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--mono);
  font-size: .85rem;
}
.hero-trust { display: flex; align-items: center; gap: .5rem; color: var(--ink-variant); font-size: .9rem; }
.hero-trust .material-symbols-outlined { color: var(--primary); font-size: 20px; }

.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
/* Real phone photo inside the hero card */
.hero-phone-photo {
  position: relative;
  width: min(80%, 260px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-low);
  box-shadow: var(--shadow-md);
}
.hero-phone-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-phone-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem .8rem .7rem;
  background: linear-gradient(transparent, rgba(0, 32, 26, .72));
  color: #fff; text-align: center; font-size: .78rem; line-height: 1.4;
}
.hero-phone-caption b { display: block; font-size: .95rem; margin-bottom: .1rem; }
.hero-badge {
  position: absolute;
  left: -18px; bottom: -18px;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.hero-badge .dot {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--primary-container); color: var(--on-primary-container);
  display: grid; place-items: center;
}
.hero-badge .k { font-family: var(--mono); font-size: 11px; color: var(--outline); text-transform: uppercase; letter-spacing: .05em; }
.hero-badge .v { font-weight: 800; font-size: 1.2rem; color: var(--primary); }

/* ---------- Benefit strip ---------- */
.benefit-strip { background: var(--surface); border-block: 1px solid var(--surface-variant); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding-block: 1.8rem;
}
.benefit { display: flex; gap: .7rem; align-items: flex-start; }
.benefit .material-symbols-outlined { color: var(--primary); font-size: 26px; flex-shrink: 0; }
.benefit b { display: block; font-size: .95rem; }
.benefit span { color: var(--ink-variant); font-size: .85rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--primary); color: var(--primary-fixed); padding-block: .7rem; }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: .9rem; }
.marquee-track b { color: var(--gold-container); font-family: var(--mono); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-block: .5rem .6rem; }
.section-head p { color: var(--ink-variant); font-size: 1.05rem; }
.section-bar { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2rem; gap: 1rem; }
.section-bar h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
.see-all { display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s;
}
.step:hover { transform: translateY(-4px); }
.step .step-ic {
  width: 86px; height: 86px; margin: 0 auto 1.2rem;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 5px solid var(--surface);
  box-shadow: var(--shadow);
}
.step .step-ic .material-symbols-outlined { font-size: 34px; }
.step-1 .step-ic { background: var(--surface-container); color: var(--primary); }
.step-2 .step-ic { background: var(--primary-container); color: var(--on-primary-container); }
.step-3 .step-ic { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--ink-variant); font-size: .95rem; }

/* ---------- Bento / attainable goals ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.bento-lg { grid-column: span 8; }
.bento-sm { grid-column: span 4; }
.bento-card {
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bento-lg { display: flex; flex-direction: row; }
.bento-lg .bento-media { width: 45%; min-height: 240px; position: relative; background: var(--surface-low); }
.bento-lg .bento-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-lg .bento-body { padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.bento-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,.9);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
}
.plan-mini {
  background: var(--surface-container);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-block: 1rem;
}
.plan-mini-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.bento-sm { padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.bento-sm .icon-box {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--surface-container); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: .9rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  color: inherit;
}
.product-card:hover { border-color: var(--primary-fixed-dim); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-low);
  margin-bottom: .9rem;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-photo img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--gold-container); color: var(--on-gold);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: .25rem .6rem; border-radius: var(--radius);
}
.card-badge.badge-new { background: var(--primary); color: #fff; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; color: var(--outline); text-align: center; padding: 1rem;
}
.photo-placeholder b { color: var(--ink-variant); font-size: .9rem; }
.photo-placeholder .material-symbols-outlined { font-size: 40px; opacity: .6; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product-cat { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--outline); margin-bottom: .25rem; }
.product-name { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.product-shop { color: var(--ink-variant); font-size: .85rem; margin-bottom: .6rem; }
.product-cash { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .8rem; }
.product-cash .amt { font-weight: 800; font-size: 1.4rem; color: var(--primary); letter-spacing: -0.01em; }
.product-cash .lbl { font-family: var(--mono); font-size: 11px; color: var(--outline); }
.weekly-box {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  padding: .7rem .8rem;
  margin-top: auto;
  margin-bottom: .8rem;
}
.weekly-box .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: .2rem; }
.weekly-box .wk-lbl { font-family: var(--mono); font-size: 11px; color: var(--ink-variant); }
.weekly-box .wk-amt { font-weight: 700; color: var(--primary); }
.weekly-box .wk-dur { display: flex; align-items: center; gap: .3rem; color: var(--ink-variant); font-size: .8rem; }
.weekly-box .wk-dur .material-symbols-outlined { font-size: 15px; }

/* ---------- Page head ---------- */
.page-head { padding-block: 2rem 1.2rem; }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); color: var(--primary); }
.page-head p { color: var(--ink-variant); margin-top: .3rem; max-width: 62ch; }

/* ---------- Browse layout (sidebar + grid) ---------- */
.browse-layout { display: flex; gap: 2rem; align-items: flex-start; padding-block: 1.5rem 3rem; }
.browse-aside { width: 240px; flex-shrink: 0; position: sticky; top: 90px; }
.browse-main { flex: 1; min-width: 0; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.filter-list { display: flex; flex-direction: column; gap: .2rem; }
.filter-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: var(--radius);
  color: var(--ink); font-size: .95rem; transition: background .15s;
}
.filter-item:hover { background: var(--surface-low); }
.filter-item.active { background: var(--surface-container); color: var(--primary); font-weight: 600; }
.filter-item .material-symbols-outlined { font-size: 18px; color: var(--outline); }
.filter-item.active .material-symbols-outlined { color: var(--primary); }
.filter-divider { height: 1px; background: var(--surface-variant); margin-block: 1rem; }
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; gap: 1rem; }
.browse-head h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.browse-head p { color: var(--ink-variant); margin-top: .3rem; }
.shop-count { font-family: var(--mono); font-size: .85rem; color: var(--ink-variant); }
.shop-count b { color: var(--primary); }

/* ---------- Empty state card ---------- */
.empty-card {
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 32rem;
}
.empty-card h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.empty-card p { color: var(--ink-variant); margin-bottom: 1rem; }

/* ---------- Progress bars ---------- */
.progress {
  width: 100%;
  height: 8px;
  background: var(--primary-fixed-dim);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 999px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.progress-fill--primary { background: var(--primary); }
.progress-fill--warn { background: var(--gold); }
.progress-fill--success { background: var(--success); }
.progress-legend {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px;
  margin-bottom: .35rem; color: var(--ink-variant);
}
.progress-legend b { color: var(--primary); }
.progress-legend .warn { color: var(--secondary); }

/* ---------- Tags / status pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .03em;
  padding: .28rem .6rem; border-radius: 999px;
  background: var(--surface-container); color: var(--ink-variant);
  text-transform: capitalize;
}
.tag .material-symbols-outlined { font-size: 14px; }
.tag-active, .tag-on-track, .tag-completed, .tag-success, .tag-sent, .tag-approved {
  background: var(--tertiary-container); color: var(--on-tertiary-container);
}
.tag-pending, .tag-grace, .tag-processing { background: var(--gold-soft); color: var(--on-secondary-container); }
.tag-flagged, .tag-defaulted, .tag-cancelled, .tag-failed { background: var(--error-container); color: var(--on-error-container); }

/* ---------- Stamp ---------- */
.stamp {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  border: 1px solid transparent;
}
.stamp .material-symbols-outlined { font-size: 14px; }
.stamp-lg { font-size: 13px; padding: .4rem .9rem; }
.stamp-orange { background: var(--gold-soft); color: var(--on-secondary-container); }
.stamp-animate { animation: stamp-pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes stamp-pop { 0% { transform: scale(1.6) rotate(-8deg); opacity: 0; } 60% { transform: scale(.95) rotate(2deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.flash-good { animation: flash-good 1.1s ease; }
@keyframes flash-good { 0%, 100% { background: var(--surface); } 30% { background: #eafaf1; } }

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card-soft { background: var(--surface-low); border-color: var(--outline-variant); box-shadow: none; }

/* ---------- Plan cards (my plans dashboard) ---------- */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.plan-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.plan-card-status { position: absolute; top: 1.1rem; right: 1.1rem; }
.plan-card-body { display: flex; gap: 1.3rem; }
.plan-card-media {
  width: 33%; max-width: 190px; aspect-ratio: 1/1; flex-shrink: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-container);
  position: relative;
}
.plan-card-media img { width: 100%; height: 100%; object-fit: cover; }
.plan-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plan-card-main h3 { font-size: 1.2rem; }
.plan-card-shop { color: var(--ink-variant); font-size: .88rem; margin-bottom: 1rem; }
.plan-figures { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: .9rem; gap: 1rem; }
.plan-figures .k { font-family: var(--mono); font-size: 11px; color: var(--outline); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .2rem; }
.plan-figures .big { font-weight: 800; font-size: 1.5rem; color: var(--primary); letter-spacing: -0.01em; }
.plan-figures .total { font-weight: 600; }
.plan-actions { display: flex; gap: .7rem; margin-top: 1rem; }
.plan-actions .btn { flex: 1; }

/* Plan list (compact rows) */
.plan-list { display: flex; flex-direction: column; gap: 1rem; }
.plan-row {
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
}
.plan-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.plan-row-top h3 { font-size: 1.15rem; }
.plan-row-top h3 a:hover { color: var(--primary); text-decoration: underline; }
.plan-row .plan-shop { color: var(--ink-variant); font-size: .85rem; }

/* Sidebar info cards */
.info-card {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  display: flex; gap: .9rem; align-items: flex-start;
}
.info-card .info-ic {
  width: 42px; height: 42px; border-radius: 999px; flex-shrink: 0;
  background: var(--primary-container); color: var(--on-primary-container);
  display: grid; place-items: center;
}
.info-card h4 { font-size: 1rem; margin-bottom: .3rem; }
.info-card p { color: var(--ink-variant); font-size: .88rem; line-height: 1.55; }
.ussd-card {
  background: var(--surface-container);
  border-radius: var(--radius-xl);
  padding: 1.4rem; text-align: center;
}
.ussd-card .material-symbols-outlined { color: var(--primary); font-size: 30px; }
.ussd-card h4 { margin-block: .5rem .4rem; }
.ussd-card p { color: var(--ink-variant); font-size: .88rem; margin-bottom: 1rem; }
.ussd-code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-family: var(--mono); font-weight: 700; font-size: 1.2rem;
  color: var(--primary); letter-spacing: .06em;
}

/* payment history mini list */
.pay-list { display: flex; flex-direction: column; gap: .9rem; }
.pay-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.pay-item .pay-left { display: flex; align-items: center; gap: .7rem; }
.pay-item .pay-ic { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-container); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.pay-item .pay-ic .material-symbols-outlined { font-size: 18px; }
.pay-item .p-title { font-size: .9rem; font-weight: 600; }
.pay-item .p-meta { font-size: .78rem; color: var(--ink-variant); }
.pay-item .p-amt { font-weight: 700; font-size: .92rem; }

/* ---------- Product detail ---------- */
.crumbs { display: flex; align-items: center; gap: .4rem; padding-block: 1.2rem; font-size: .85rem; color: var(--ink-variant); flex-wrap: wrap; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--outline-variant); }
.crumbs .here { color: var(--ink); font-weight: 600; }

.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; align-items: start; }
.detail-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface-low); border: 1px solid var(--surface-variant); position: relative;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product gallery (multiple images) ---------- */
.gallery { display: flex; flex-direction: column; gap: .8rem; }
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-low);
  border: 1px solid var(--surface-variant);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-count {
  position: absolute; bottom: .7rem; right: .7rem;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(0, 32, 26, .78); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: .3rem .6rem; border-radius: 999px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .6rem;
}
.gallery-thumb {
  padding: 0; border: 2px solid transparent; background: var(--surface-low);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1;
  cursor: pointer; transition: border-color .15s, transform .1s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--primary-fixed-dim); }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb:active { transform: scale(.97); }

/* ---------- Product image manager (merchant form) ---------- */
.img-manage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .8rem;
}
.img-manage-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--surface-variant); background: var(--surface-low);
  display: block; cursor: pointer;
}
.img-manage-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: opacity .15s; }
.img-remove {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .35rem; font-size: .75rem; font-weight: 600;
  background: rgba(20, 27, 44, .72); color: #fff;
}
.img-remove input { accent-color: var(--error); }
.img-manage-item:has(input:checked) img { opacity: .35; }
.img-manage-item:has(input:checked) { border-color: var(--error); }
.img-manage-item:has(input:checked) .img-remove { background: var(--error); }

.img-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .5rem; margin-top: .7rem;
}
.img-preview:empty { display: none; }
.img-preview img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--surface-variant);
}
.seller-card {
  display: flex; gap: .8rem; align-items: center;
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg); padding: 1rem; margin-top: 1.2rem;
}
.seller-card .seller-ic { color: var(--primary); }
.seller-card b { display: block; }
.seller-card span { color: var(--ink-variant); font-size: .85rem; }

.product-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.product-meta { font-family: var(--mono); font-size: .8rem; color: var(--outline); text-transform: uppercase; letter-spacing: .05em; margin-block: .4rem .9rem; }
.product-desc { color: var(--ink-variant); margin-bottom: 1rem; }
.cash-price { font-size: 1.05rem; margin-bottom: 1.2rem; }
.cash-price b { font-weight: 800; font-size: 1.5rem; color: var(--primary); }

/* plan picker */
.picker {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.4rem;
}
.picker h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.picker-options { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.picker-option { position: relative; }
.picker-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.picker-option label {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid var(--outline-variant); border-radius: var(--radius-lg);
  padding: .9rem 1.1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.picker-option input:checked + label { border-color: var(--primary); background: var(--surface-container); }
.picker-option input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.picker-per { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.picker-per .muted { font-weight: 500; font-size: .8rem; }
.picker-weeks { font-family: var(--mono); font-size: .85rem; color: var(--ink-variant); }
.picker-first { background: var(--surface-low); border-radius: var(--radius); padding: .8rem; font-size: .9rem; margin-bottom: 1rem; }
.picker-note { color: var(--ink-variant); font-size: .82rem; margin-top: .7rem; text-align: center; }

.assure { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.assure li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-variant); font-size: .92rem; }
.assure li .material-symbols-outlined { color: var(--primary); font-size: 20px; flex-shrink: 0; }

/* sticky mobile buy bar */
.buy-bar-spacer { display: none; height: 76px; }
.buy-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 80;
  background: var(--surface); border-top: 1px solid var(--surface-variant);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  padding: .8rem var(--pad) calc(.8rem + env(safe-area-inset-bottom, 0));
  align-items: center; justify-content: space-between; gap: 1rem;
}
.buy-bar .buy-price { font-weight: 800; color: var(--primary); }
.buy-bar .buy-price small { display: block; font-weight: 500; color: var(--ink-variant); font-size: .72rem; }

/* pending payment card */
.pay-pending {
  background: var(--gold-soft); border: 1px solid var(--gold-container);
  border-radius: var(--radius-lg); padding: 1.2rem;
}
.pay-pending-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .4rem; }
.pay-pending-title .material-symbols-outlined { color: var(--secondary); }

/* ---------- Checkout method tabs (hosted-page stand-in) ---------- */
.pay-methods { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-method {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem; font: inherit; font-size: .9rem; font-weight: 600;
  background: var(--surface); color: var(--on-surface);
  border: 1.5px solid var(--surface-variant); border-radius: var(--radius);
  cursor: pointer;
}
.pay-method.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft, var(--surface)); }

/* ---------- Schedule ---------- */
.schedule { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.schedule li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem;
}
.schedule li.paid { background: var(--surface-low); color: var(--ink-variant); }
.schedule li.due { border-color: var(--gold-container); background: var(--gold-soft); }
.schedule .sch-amount { font-family: var(--mono); font-weight: 600; }
.schedule .sch-status { font-family: var(--mono); font-size: .78rem; color: var(--outline); }
.schedule li.paid .sch-status { color: var(--success); }
.schedule li.due .sch-status { color: var(--secondary); font-weight: 700; }

/* ---------- Detail grid (plan show) ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 1.5rem 3rem; align-items: start; }

/* receipt block reused in plan show */
.receipt {
  position: relative;
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.6rem;
}
.receipt-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--secondary); }
.receipt-title { font-size: 1.5rem; margin-top: .3rem; }
.receipt-sub { color: var(--ink-variant); font-size: .9rem; }
.perf { border-top: 1px dashed var(--outline-variant); margin-block: 1rem; }
.receipt-math { font-family: var(--mono); font-size: 1rem; color: var(--ink); margin-bottom: 1rem; }

/* ---------- Merchant / admin sub-nav ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; align-items: center; }
.mode-banner {
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  background: var(--gold-soft); color: var(--on-secondary-container);
  padding: .15rem .6rem; border-radius: var(--radius); text-transform: uppercase;
}

/* ---------- Stat bento ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.3rem;
  position: relative; overflow: hidden;
}
.stat .stat-ic {
  width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--primary-container); color: var(--primary); margin-bottom: 1rem;
}
.stat.stat-money .stat-ic { background: var(--gold-container); color: var(--on-gold); }
.stat.stat-accent .stat-ic { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stat.stat-money b { color: var(--primary); }
.stat > span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-variant); }
.stat .cur { font-family: var(--mono); font-size: .55em; font-weight: 600; color: var(--outline); }

/* stat band (home) */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-big b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-big.green b { color: var(--primary); }
.stat-big span { color: var(--ink-variant); font-size: .9rem; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--surface-variant); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data thead tr { background: var(--surface-low); }
table.data th {
  text-align: left; padding: .9rem 1rem;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-variant);
  border-bottom: 1px solid var(--surface-variant);
}
table.data td { padding: .9rem 1rem; border-bottom: 1px solid var(--surface-variant); font-size: .92rem; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-low); }
.inline-form { display: inline; }

/* ---------- Forms ---------- */
.form-page { max-width: 30rem; margin-inline: auto; padding-block: 2.5rem 4rem; }
.form-page > h1 { font-size: 1.8rem; color: var(--primary); }
.form-page > p { color: var(--ink-variant); margin-block: .3rem 1.5rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.8rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input[type=text], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=search], .field input[type=email],
.field input[type=file], .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, .12);
}
.field textarea { resize: vertical; }
.field-hint { color: var(--ink-variant); font-size: .82rem; margin-top: .35rem; }
.field label.check-line { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.field label.check-line input[type=checkbox] { width: auto; accent-color: var(--primary); }
.form-alt { text-align: center; margin-top: 1.2rem; color: var(--ink-variant); }
.form-alt a { color: var(--primary); font-weight: 600; }
.form-alt a:hover { text-decoration: underline; }

/* ---------- Auth pages (login / register) ---------- */
.auth { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 62rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Branded side panel */
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 85% 12%, rgba(148, 211, 193, .22), transparent 70%),
    radial-gradient(45% 40% at 5% 95%, rgba(175, 239, 221, .16), transparent 70%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.auth-logo .logo-small { color: var(--gold-container); }
.auth-logo .logo-small2 { color: var(--primary-fixed-dim); }
.auth-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-fixed-dim);
  margin-top: 2rem;
}
.auth-aside h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.01em; margin-top: .5rem; margin-bottom: 1.5rem;
}
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.auth-point { display: flex; gap: .8rem; align-items: flex-start; }
.auth-point .ic {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255, 255, 255, .12); color: var(--primary-fixed);
  display: grid; place-items: center;
}
.auth-point .ic .material-symbols-outlined { font-size: 18px; }
.auth-point b { display: block; font-size: .95rem; }
.auth-point span { color: var(--primary-fixed-dim); font-size: .85rem; line-height: 1.45; }
.auth-foot {
  margin-top: auto; padding-top: 1.5rem;
  color: var(--primary-fixed-dim); font-size: .82rem;
  display: flex; align-items: center; gap: .5rem;
}

/* Merchant tint — gold accents on the point icons */
.auth-aside.is-merchant .auth-point .ic { background: rgba(253, 192, 3, .18); color: var(--gold-container); }
.auth-aside.is-merchant .auth-eyebrow { color: var(--gold-container); }

/* Admin tint — dark slate, staff/control-room feel */
.auth-aside.is-admin { background: var(--ink); }
.auth-aside.is-admin::before {
  background: radial-gradient(55% 45% at 85% 12%, rgba(148, 211, 193, .14), transparent 70%);
}
.auth-aside.is-admin .auth-eyebrow { color: var(--gold-container); }
.auth-aside.is-admin .auth-logo .logo-small2 { color: var(--primary-fixed-dim); }

/* Form side */
.auth-form { padding: clamp(1.8rem, 3vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 1.7rem; color: var(--primary); }
.auth-form > p.sub { color: var(--ink-variant); margin-block: .35rem 1.6rem; }
.auth-form .form-alt { margin-top: 1.4rem; text-align: left; }

@media (max-width: 767px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { padding: 1.6rem; }
  .auth-aside h2 { margin-bottom: 0; }
  .auth-eyebrow { margin-top: 1.2rem; }
  .auth-points, .auth-foot { display: none; }
  .auth-form { padding: 1.6rem; }
}

/* ---------- Merchant CTA band ---------- */
.merchant-band {
  background: var(--primary); color: var(--on-primary);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.merchant-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 20%, rgba(148,211,193,.18), transparent 70%);
}
.merchant-inner { position: relative; text-align: center; max-width: 48rem; margin-inline: auto; }
.merchant-inner > .material-symbols-outlined { font-size: 44px; margin-bottom: .6rem; }
.merchant-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-fixed-dim); }
.merchant-quote { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-block: .6rem 1rem; letter-spacing: -0.01em; }
.merchant-attr { color: var(--primary-fixed-dim); max-width: 46ch; margin-inline: auto; margin-bottom: 1.6rem; }
.merchant-band .ital-em { color: var(--gold-container); font-style: italic; }

/* ---------- USSD callout ---------- */
.ussd-callout { background: var(--surface-low); padding-block: 3rem; text-align: center; }
.ussd-callout .ussd-code { font-size: 1.8rem; padding: .7rem 1.6rem; margin-block: .8rem; }
.ussd-callout p { color: var(--ink-variant); }
.ussd-spark { display: inline-flex; align-items: center; gap: .4rem; justify-content: center; }

/* ---------- Editorial emphasis ---------- */
.ital-em { font-style: italic; color: var(--primary); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.stack-gap { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal.stagger.in > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.stagger > * { opacity: 1; transform: none; transition: none; }
  .progress-fill { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual, .hero-card-wrap { display: none; }
  /* No card on the right now, so use a flatter wash for readable full-width text */
  .hero {
    background-image:
      linear-gradient(rgba(241, 243, 255, .93), rgba(241, 243, 255, .93)),
      url("../img/hero-bg.jpg");
  }
  .bento-lg, .bento-sm { grid-column: span 12; }
  .bento-lg { flex-direction: column; }
  .bento-lg .bento-media { width: 100%; min-height: 200px; }
  .detail-grid, .product-hero { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 767px) {
  :root { --pad: 16px; }
  .primary-nav { display: none; }
  .search { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .hide-mobile { display: none; }
  .bottom-nav { display: flex; }
  .site-footer { margin-bottom: 64px; }
  .steps { grid-template-columns: 1fr; }
  .plan-card-body { flex-direction: column; }
  .plan-card-media { width: 100%; max-width: none; aspect-ratio: 16/9; }
  .plan-actions { flex-direction: column; }
  .plan-figures { flex-wrap: wrap; }
  .browse-layout { flex-direction: column; }
  .browse-aside { width: 100%; position: static; }
  .filter-list { flex-flow: row wrap; }
  .filter-item { border: 1px solid var(--outline-variant); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .buy-bar { display: flex; }
  .buy-bar-spacer { display: block; }
  .topbar-ussd { display: none; }
  .section-bar { flex-direction: column; align-items: flex-start; }
  .browse-head { flex-direction: column; align-items: flex-start; }

  /* mobile slide-down nav */
  #site-nav.header-actions.open {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-top: 1px solid var(--surface-variant);
    padding: .8rem var(--pad); gap: .3rem; box-shadow: var(--shadow);
  }
  #site-nav.header-actions:not(.open) { display: none; }
  #site-nav.header-actions.open a { padding: .6rem .4rem; }
}

@media (max-width: 479px) {
  .stat-row, .benefit-grid, .stat-band { grid-template-columns: 1fr; }
}
