/* N-Way's landing pages: the front page (/ and /fr), the country pages
   (/nigeria, /ghana, /benin, /togo and /fr/…) and the Lagos to Accra guide.
   No framework: they have to be quick on a West African data plan and work
   with JavaScript off. /landing.js only adds the moving lines behind the
   page and the fade-in on scroll. */
/* Colours, type, the header, footer and store badges: /site.css. */
:root {
  --deep-fg: #ffffff;
  --deep-fg-2: #cfe8d9;
  --shadow: 0 30px 70px -20px rgba(0, 20, 10, 0.7);
}
html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
#lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page {
  position: relative;
  z-index: 1;
}
/* ── Phones: CSS frames around real screenshots ───────────────── */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b3540, #0b1015 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), var(--shadow);
}
.phone::before {
  /* The side button, so it reads as a phone and not a card. */
  content: '';
  position: absolute;
  right: -2px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: #1c242c;
}
.phone picture,
.phone img {
  display: block;
  border-radius: 37px;
  overflow: hidden;
  background: var(--fill);
  width: 100%;
}
.phone.sm {
  max-width: 250px;
  padding: 8px;
  border-radius: 40px;
}
.phone.sm picture,
.phone.sm img {
  border-radius: 32px;
}

/* ── Sections ───────────────────────────────────────────────────── */
section {
  position: relative;
}
.band {
  background: var(--canvas);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.pad {
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (min-width: 1024px) {
  .pad {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}
.eyebrow {
  font: 600 0.9rem/1.3 var(--sans);
  color: var(--green-ink);
}
.h2 {
  font-size: clamp(2.1rem, 5.4vw, 3.1rem);
  line-height: 1.04;
}
.lede {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 36rem;
}

/* Hero */
.hero {
  overflow-x: clip;
  display: grid;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    padding-top: 104px;
    padding-bottom: 96px;
  }
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.7rem, 9vw, 4.2rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero h1 span {
  color: var(--green-ink);
}
.plate {
  display: inline-flex;
  gap: 4px;
  vertical-align: 0.1em;
  font: 700 0.9rem/1 ui-monospace, 'SF Mono', Menlo, monospace;
}
.plate b {
  padding: 5px 6px;
  border-radius: 6px;
  background: var(--sunken);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
}
.ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.ctas small {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.hero .stores {
  margin-top: 28px;
}

.hero-phones {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 4%;
}
.hero-phones .glow {
  position: absolute;
  inset: 6% 2%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(142, 234, 191, 0.3), transparent);
  filter: blur(30px);
}
.hero-phones .phone {
  flex: none;
  width: 52%;
}
.hero-phones .side {
  width: 42%;
  margin-top: 12%;
}
.hero-phones .left {
  margin-right: -8%;
  transform: rotate(-4deg);
}
.hero-phones .right {
  margin-left: -8%;
  transform: rotate(4deg);
}
.hero-phones .mid {
  z-index: 2;
}

/* Figures */
.figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.figs div {
  padding: 36px 16px;
}
.figs div:nth-child(even) {
  border-left: 1px solid var(--line-soft);
}
.figs div:nth-child(n + 3) {
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 640px) {
  .figs div {
    padding: 44px 32px;
  }
}
@media (min-width: 1024px) {
  .figs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .figs div:nth-child(n + 3) {
    border-top: 0;
  }
  .figs div + div {
    border-left: 1px solid var(--line-soft);
  }
}
.figs dt {
  font: 800 clamp(1.55rem, 5vw, 3rem) / 1.05 var(--display);
  text-wrap: balance;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.figs dd {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* Three steps, three phones */
.steps {
  margin-top: 56px;
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.step .phone {
  margin: 0 auto;
}
.step h3 {
  margin-top: 28px;
  font-size: 1.3rem;
  text-align: center;
}
.step p {
  margin: 6px auto 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  text-align: center;
  max-width: 22rem;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--on-mint);
  font: 700 0.8rem/1 var(--sans);
  vertical-align: 0.15em;
}

/* Feature rows: copy on one side, phones on the other */
.feature {
  display: grid;
  gap: 48px;
  align-items: center;
}
.feature + .feature {
  margin-top: 112px;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
  .feature.flip > :first-child {
    order: 2;
  }
}
.feature h3 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.06;
}
.feature .lede {
  font-size: 1.05rem;
}
.pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4%;
}
.pair .phone {
  width: 48%;
}
.pair .phone:nth-child(2) {
  margin-top: 10%;
}
.ticks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.ticks li b {
  color: var(--ink);
  font-weight: 600;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23035A31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Small cards for the "more" grid */
.grid3 {
  margin-top: 56px;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--line-soft);
  padding: 26px 26px 0;
}
.card h3 {
  font-size: 1.3rem;
}
.card p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.card .crop {
  margin-top: 24px;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.card .phone {
  width: 78%;
  max-width: 250px;
  flex: none;
  align-self: flex-start;
}
.card .crop.bottom {
  align-items: flex-end;
}
.card .crop.bottom .phone {
  align-self: flex-end;
  margin-bottom: -38%;
}

/* A deeper green band: the Lock Screen. */
.deep {
  background: var(--deep);
  color: var(--deep-fg);
  overflow: hidden;
}
.deep::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 70% at 72% 55%, rgba(47, 207, 138, 0.22), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(47, 207, 138, 0.1), transparent 70%);
}
.deep h2 {
  color: var(--deep-fg);
}
.deep .eyebrow {
  color: #7fe3b4;
}
.deep .lede {
  color: var(--deep-fg-2);
}
.deep .inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .deep .inner {
    grid-template-columns: 1fr 1.05fr;
  }
}
.chips {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 32rem;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}
.chips svg {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(47, 191, 125, 0.18);
  color: #7fe3b4;
}
.deep .pair .phone {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

/* Advertise + privacy */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.price {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price b {
  font: 800 clamp(3rem, 9vw, 4.6rem) / 1 var(--display);
  letter-spacing: -0.03em;
}
.price span {
  color: var(--ink-2);
}
.promise {
  margin-top: 48px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .promise {
    grid-template-columns: repeat(4, 1fr);
  }
}
.promise div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .promise div {
    padding: 28px 24px 28px 0;
    border-bottom: 0;
  }
  .promise div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line-soft);
  }
}
.promise h3 {
  font-size: 1.12rem;
}
.promise p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Closing call to action */
.final {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--sunken);
  box-shadow: 0 0 0 1px var(--line-soft);
  padding: 64px 24px;
  text-align: center;
}
@media (min-width: 640px) {
  .final {
    padding: 80px 64px;
  }
}
.final .streaks {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(-20deg, transparent 0, transparent 7px, rgba(255, 255, 255, 0.09) 7px, rgba(255, 255, 255, 0.09) 8px);
}
.final h2 {
  position: relative;
  color: #fff;
  margin: 0 auto;
  max-width: 40rem;
}
.final p {
  position: relative;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 30rem;
}
.final .ctas {
  position: relative;
  justify-content: center;
}
.final .btn-light {
  background: var(--mint);
  color: var(--on-mint);
}
.final .btn-light:hover {
  background: #fff;
  color: var(--on-mint);
}
.final .stores {
  position: relative;
  margin-top: 28px;
  justify-content: center;
}
.final .store {
  justify-items: center;
}
.final .soon {
  color: #fff;
}

.shots-note {
  margin: 20px auto 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  text-align: center;
}

/* Fade-in on scroll, only when the script is running. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Countries ──────────────────────────────────────────────────── */
/* Flags (/wa/flag-*.svg): Wikimedia Commons, public domain. Base style in site.css. */
.flag {
  vertical-align: -0.2em;
}
.flag.lg {
  width: 60px;
  height: 40px;
  border-radius: 6px;
}
.countries {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .countries {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .countries {
    grid-template-columns: repeat(4, 1fr);
  }
}
.countries a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}
.countries a:hover {
  background: var(--fill);
  box-shadow: 0 0 0 1px var(--line);
}
.countries b {
  font: 750 1.3rem/1.1 var(--display);
  letter-spacing: -0.02em;
}
.countries span {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.countries .go {
  margin-top: auto;
  color: var(--green-ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.corridor-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--sunken);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.corridor-cta p {
  color: var(--ink-2);
  max-width: 40rem;
}
.corridor-cta b {
  color: var(--ink);
}

/* Country page hero: the flag above the headline. */
.hero .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-link {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}
.crumbs a {
  color: var(--ink-2);
}

/* Short facts: capital, money, clock… */
.facts {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.facts div {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.facts dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
}

/* Two columns of cards on wide screens: what works here. */
.works {
  margin-top: 48px;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .works {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}
.works li {
  list-style: none;
  padding: 22px;
  border-radius: 20px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.works {
  padding: 0;
}
.works h3 {
  font-size: 1.12rem;
}
.works p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* City chips */
.cities {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cities li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.cities b {
  color: var(--ink);
  font-weight: 600;
}

/* ── The Lagos to Accra guide ───────────────────────────────────── */
.guide {
  max-width: 820px;
}
.guide h2 {
  margin-top: 64px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
  scroll-margin-top: 88px;
}
.guide h3 {
  margin-top: 28px;
  font-size: 1.15rem;
}
.guide p,
.guide li {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.guide p {
  margin-top: 12px;
}
.guide b,
.guide strong {
  color: var(--ink);
  font-weight: 600;
}
.guide ul,
.guide ol {
  margin: 12px 0 0;
  padding-left: 22px;
}
.guide li {
  margin: 6px 0;
}
.updated {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.src {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.toc {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--sunken);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.toc p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2 14rem;
  column-gap: 24px;
}
.toc li {
  margin: 4px 0;
}

/* The route, one stop after another. */
.route {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.route::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
}
.route > li {
  position: relative;
  margin: 0;
  padding: 0 0 22px 52px;
}
.route > li::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 4px var(--green);
}
.route > li.border::before {
  left: 5px;
  top: 0;
  width: 27px;
  height: 27px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23035A31' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: none;
}
.route .km {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.route b {
  display: block;
  font-size: 1.05rem;
}
.route p {
  margin-top: 4px;
  font-size: 0.95rem;
}

/* Tables scroll in their own box on small phones. */
.table {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line-soft);
}
.table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.table th {
  color: var(--ink);
  background: var(--canvas);
  font-weight: 600;
}
.table td {
  color: var(--ink-2);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  /* Cancels the step-number circle in the same file. */
  display: table-cell;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tfoot td {
  color: var(--ink);
  font-weight: 600;
  background: var(--sunken);
  border-bottom: 0;
}

/* Questions, open with JavaScript off. */
.faq {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--ink);
  list-style-position: inside;
}
.faq details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}
.faq .a {
  padding: 4px 18px 16px;
}
.callout {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px var(--amber-line);
  color: var(--amber-ink);
}
.callout p {
  margin: 0;
  color: var(--amber-ink);
}
.shots {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 4%;
}
.shots .phone {
  width: 31%;
  max-width: 250px;
}
@media (max-width: 559px) {
  .shots .phone:nth-child(3) {
    display: none;
  }
  .shots .phone {
    width: 46%;
  }
}
