:root {
  --ink: #111114;
  --muted: #5f6070;
  --line: #ececf1;
  --bg: #ffffff;
  --soft: #f7f7fa;
  --wa: #1fa855;
  --mtn: #ffcc00;
  --telecel: #e60000;
  --at-red: #e4002b;
  --at-blue: #0033a0;
  --accent: var(--mtn);
  --accent-ink: #111114;
  --accent-soft: #fff7d1;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --r: 20px;
}
body[data-net="telecel"] { --accent: var(--telecel); --accent-ink: #fff; --accent-soft: #ffe8e8; }
body[data-net="airteltigo"] { --accent: var(--at-blue); --accent-ink: #fff; --accent-soft: #e8eeff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
main, .top, .foot { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--mtn);
  font: 800 22px/1 var(--display);
}
.brand-mark i {
  position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; transition: background .3s;
}
.brand-name { font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.brand-name b { font-weight: 800; }
.top-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s;
}
.top-cta svg { width: 18px; height: 18px; fill: currentColor; }
.top-cta:hover { transform: translateY(-1px); }

/* Hero */
.hero { padding: 40px 0 36px; position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -40px -20vw auto auto; width: 520px; height: 520px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--mtn) 45%, transparent), transparent 55%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--telecel) 22%, transparent), transparent 55%),
    radial-gradient(circle at 40% 80%, color-mix(in srgb, var(--at-blue) 22%, transparent), transparent 55%);
  filter: blur(30px); opacity: .7;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px #1fa85522; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #1fa85500; } }
h1 {
  font: 800 clamp(40px, 8vw, 84px)/.95 var(--display); letter-spacing: -.04em;
  margin: 0 0 20px; max-width: 12ch;
}
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mtn) 62%); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.lede strong { color: var(--ink); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats div {
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; min-width: 120px;
}
.hero-stats b { display: block; font: 800 26px/1 var(--display); }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* Shop */
.shop { padding: 28px 0 20px; scroll-margin-top: 10px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
h2 { font: 800 clamp(26px, 4vw, 36px)/1.1 var(--display); letter-spacing: -.03em; margin: 0; }
.delivery { margin: 0; font-weight: 600; color: var(--muted); }

.networks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.net {
  display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 72px;
  border-radius: 18px; border: 2px solid var(--line); background: #fff; text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.net:hover { transform: translateY(-2px); }
.net:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.net-label { font: 700 17px/1.1 var(--display); }
.net-mtn[aria-selected="true"] { border-color: var(--mtn); box-shadow: 0 8px 24px -10px #ffcc00aa; background: #fffbea; }
.net-telecel[aria-selected="true"] { border-color: var(--telecel); box-shadow: 0 8px 24px -10px #e6000066; background: #fff5f5; }
.net-at[aria-selected="true"] { border-color: var(--at-blue); box-shadow: 0 8px 24px -10px #0033a066; background: linear-gradient(135deg, #fff5f6, #f2f5ff); }

/* Network marks (stylised, brand-coloured) */
.logo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--display); font-weight: 800; }
.logo-mtn { background: var(--mtn); }
.logo-mtn span {
  display: grid; place-items: center; width: 38px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--ink); font-size: 12px; letter-spacing: -.02em; color: var(--ink);
}
.logo-telecel { background: var(--telecel); color: #fff; font-size: 30px; line-height: 1; }
.logo-telecel span { transform: translateY(-2px); }
.logo-at { display: flex; gap: 0; background: #fff; border: 2px solid var(--line); font-size: 24px; line-height: 1; }
.logo-at .a { color: var(--at-red); }
.logo-at .t { color: var(--at-blue); }

.net-note { margin: 18px 0 14px; color: var(--muted); font-size: 15px; }
.net-note b { color: var(--ink); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 20px 18px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  opacity: 0; transform: translateY(8px);
}
.grid.in .card { animation: rise .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 35ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.card:hover { border-color: var(--accent); box-shadow: 0 14px 30px -18px #0004; }
.card::before {
  content: ""; position: absolute; left: 18px; top: 0; width: 36px; height: 4px; border-radius: 0 0 4px 4px;
  background: var(--accent); transition: background .3s;
}
body[data-net="airteltigo"] .card::before { background: linear-gradient(90deg, var(--at-red) 50%, var(--at-blue) 50%); }
.tag {
  position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); font-size: 12px; font-weight: 700;
}
.size { margin: 4px 0 0; display: flex; align-items: baseline; gap: 3px; }
.size .num { font: 800 46px/1 var(--display); letter-spacing: -.04em; }
.size .unit { font: 700 20px/1 var(--display); color: var(--muted); }
.kind { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.price { margin: auto 0 14px; font: 700 22px/1 var(--display); }
.buy {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; font-size: 15px;
  transition: filter .15s, transform .1s, background .3s;
}
.buy:hover { filter: brightness(.95); }
.buy:active { transform: scale(.98); }
.buy:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* How */
.how { padding: 48px 0 40px; }
.how ol { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.how li { counter-increment: s; padding: 20px; border-radius: var(--r); background: var(--soft); }
.how li::before { content: "0" counter(s); display: block; font: 800 14px var(--display); color: var(--muted); margin-bottom: 10px; }
.how b { display: block; font: 700 20px/1.2 var(--display); margin-bottom: 4px; }
.how span { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding-block: 24px 36px; font-size: 15px; }
.foot p { margin: 0 0 6px; }
.foot .fine { font-size: 13px; color: var(--muted); }

/* Order sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: #11111466; opacity: 0; transition: opacity .25s; }
.sheet {
  position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(460px, 100%);
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff;
  transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.sheet-open .sheet-backdrop { opacity: 1; }
.sheet-open .sheet { transform: translate(-50%, 0); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; line-height: 1; }
.sheet-net { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.sheet h3 { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -.03em; }
.sheet-sub { margin: 4px 0 18px; color: var(--muted); }
.sheet label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sheet input {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line);
  font: 600 18px var(--body); letter-spacing: .02em;
}
.sheet input:focus { outline: none; border-color: var(--ink); }
.err { margin: 6px 0 0; color: #c0001a; font-size: 14px; }
.wa-btn {
  margin-top: 14px; width: 100%; height: 54px; border: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 17px;
}
.wa-btn svg { width: 22px; height: 22px; fill: currentColor; }
.skip { margin-top: 8px; width: 100%; padding: 10px; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14px; }

@media (min-width: 700px) {
  .sheet { bottom: 50%; border-radius: 26px; transform: translate(-50%, 60%); opacity: 0; transition: transform .28s, opacity .2s; }
  .sheet-open .sheet { transform: translate(-50%, 50%); opacity: 1; }
}

@media (max-width: 640px) {
  .networks { gap: 8px; }
  .net { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 12px 6px; }
  .net-label { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 18px 14px 14px; }
  .size .num { font-size: 38px; }
  .price { font-size: 19px; }
  .buy { font-size: 13px; min-height: 42px; }
  .tag { position: static; align-self: flex-start; margin-bottom: 6px; }
  .how ol { grid-template-columns: 1fr; }
  .top-cta span { display: none; }
  .top-cta { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}
