/* ==========================================================================
   Retail Stack Nigeria landing page.
   Same design language as the previous build: white cards on a lavender
   field, large radii, wide internal padding, tight grotesque display type
   against mono eyebrow labels, two button CTA pattern.
   ========================================================================== */

:root {
  --ink:        #14151a;
  --muted:      #66677d;
  --muted-2:    #707075;
  --card:       #ffffff;
  --tint-2:     #f7f8f7;
  --line:       #e3e4f0;
  --green:      #2dab45;      /* reserved: stock and system states only */

  /* accent: sand ramp. accent-50 for full-width areas, accent-100 for small
     elements, accent-900 for any text sitting on either. */
  --accent-50:  #F7F2EC;
  --accent-100: #F0E8DE;
  --accent-200: #E3D5C6;
  --accent-400: #9A7A5E;
  --accent-600: #6B4A32;
  --accent-700: #4E3524;
  --accent-900: #2E1F14;

  /* was --navy #0b0c2b. The dark band and every heading move onto the ramp
     so no blue survives anywhere in the palette. */
  --ink-deep:   #2E1F14;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 28px;
  --r-inset: 16px;
  --gap: 16px;
  --pad: clamp(22px, 4vw, 64px);
  --content: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--accent-50);          /* page wash, full-width */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent-700); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
}

/* ── shell ─────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  display: flex;
  flex-direction: column;
}
main { display: flex; flex-direction: column; }

/* Sections run edge to edge. The horizontal padding grows on wide screens so
   the content itself stays at the same measure it had inside the old shell. */
.card {
  background: var(--card);
  border-radius: 0;
  padding-block: var(--pad);
  padding-inline: max(var(--pad), calc((100% - var(--content)) / 2));
}

/* No gap and no rule between sections, so neighbours alternate surface instead */
.steps { background: var(--tint-2); }
.footer { background: var(--accent-50); }   /* full-width */

/* ── shared type ───────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);          /* matches the mono labels on /about and /pricing */
  margin: 0 0 20px;
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
/* accent-700 is the ramp's designated button fill; accent-600 is its hover. */
.btn--dark { background: var(--accent-700); color: #fff; border-color: var(--accent-700); }
.btn--dark:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--tint-2); }
.btn--onink { background: #fff; color: var(--ink-deep); border-color: #fff; }
.btn--onink:hover { background: var(--accent-100); border-color: var(--accent-100); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.46); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent-700);
  border-bottom: 1px solid transparent;
}
.textlink::after { content: "\2192"; transition: transform .18s ease; }
.textlink:hover { border-bottom-color: var(--accent-700); }
.textlink:hover::after { transform: translateX(3px); }

/* ── nav ───────────────────────────────────────────────────────────────── */

/* Full bleed like every other section, and still sticky. Its horizontal
   padding uses the same expression as .card, so the logo and links line up
   with the section content below. */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-block: 12px;
  padding-inline: max(var(--pad), calc((100% - var(--content)) / 2));
}
.nav__brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.nav__mark { width: 19px; height: 21px; color: var(--ink-deep); flex: none; }
.nav__word { font-weight: 600; font-size: 16.5px; letter-spacing: -.025em; color: var(--ink-deep); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color .16s ease, background .16s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--accent-100); }

/* sign in sits beside the demo button as a plain link, not a second button */
.nav__tail { display: flex; align-items: center; gap: 14px; }
.nav__signin {
  font-size: var(--size-small, 14.5px);
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s ease;
}
.nav__signin:hover { color: var(--ink); }

.nav__cta { height: 42px; padding: 0 20px; }

.nav__toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; padding: 0;
  align-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform .2s ease; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.2px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

.nav__drawer { display: none; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: clamp(24px, 3vw, 40px); align-items: center; overflow: hidden; }

.hero__title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.036em;
  color: var(--ink-deep);
  margin: 0 0 18px;
  text-wrap: balance;
}

/* Rotating headline. Only the active phrase is in the DOM flow, so assistive
   tech reads one line rather than six. The animation runs on entry only and
   fills forwards, so a phrase cannot be left mid-fade. */
.rot { display: block; position: relative; }
.rot__item { display: none; }
.rot__item.is-on {
  display: block;
  animation: rot-in 380ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* each phrase breaks after its second word, so every headline is two lines
   and the block fills the same space whichever phrase is showing */
.rot__line { display: block; }

/* Movement only. Never animate the opacity of the headline: if the timeline
   stalls the phrase would be left invisible, which is exactly what happened
   with an opacity fade here. Stalled at the start, this is merely offset. */
@keyframes rot-in {
  from { transform: translateY(.22em); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* no rotation at all; the first phrase simply stands */
  .rot__item.is-on { animation: none; }
}

.hero__support {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 clamp(34px, 4.5vw, 56px);
  max-width: 46ch;
  /* stops the last word orphaning onto a line of its own */
  text-wrap: balance;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.hero__note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted-2);
  margin: 0;
}

/* bleeds into the card's right padding so the devices read larger, and shifts
   left to close the transparent gutter baked into the composite */
.hero__media {
  position: relative;
  margin: 0 calc(var(--pad) * -1) 0 0;
  transform: translateX(-72px);
}

/* the composite is transparent, so it sits straight on the card with no frame */
.hero__media img { width: 118%; max-width: none; height: auto; display: block; position: relative; z-index: 1; }

.hero__glow {
  position: absolute;
  inset: -26% -12% -26%;
  background:
    radial-gradient(48% 54% at 34% 52%, var(--accent-200) 0%, transparent 68%),
    radial-gradient(52% 58% at 70% 46%, var(--accent-100) 0%, transparent 70%);
  filter: blur(48px);
  opacity: .6;
  z-index: 0;
  pointer-events: none;
}

/* ── the five steps, as one switching module ───────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(30px, 4vw, 44px);
  padding: 0 0 clamp(26px, 4vw, 38px);
}

.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  /* short enough to keep up with the dwell */
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.chip:hover { border-color: var(--accent-200); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }

.chip__name { position: relative; z-index: 1; }

.chip__bar {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.16);
  transform: scaleX(0);
  transform-origin: left center;
}
.chip[aria-selected="true"] .chip__bar { animation: chip-dwell var(--dwell, 6000ms) linear forwards; }
.chips.is-paused .chip[aria-selected="true"] .chip__bar { animation-play-state: paused; }

@keyframes chip-dwell {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* the swapping panel. No transition on the content itself: anything that
   animates its opacity can strand it dimmed if the timeline stalls. */
.panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.panel[hidden] { display: none; }

.step__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.step__topic {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.step__topic { color: var(--accent-700); }

.status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}
.status--live { color: var(--accent-900); background: var(--accent-100); border-color: var(--accent-200); }

/* Phosphor bullet glyphs. The container (.step__ico) keeps its existing size,
   tint, radius and spacing; this only sizes the glyph and wires it to the
   accent token, which it inherits through currentColor. */
.step__ico .ph-light {
  font-size: 21px;              /* matches the 21px footprint of the SVGs it replaces */
  line-height: 1;
  color: var(--accent-700);
}

.step__title {
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.03em;
  color: var(--ink-deep);
  margin: 0 0 16px;
  max-width: 20ch;
}

.step__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 48ch;
}
.step__list li {
  position: relative;
  min-height: 38px;
  padding-left: 54px;
  display: flex;
  align-items: center;
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -.012em;
  color: var(--ink);
}

/* A raised tile rather than a flat glyph: soft vertical gradient, hairline
   edge, and a low shadow. Depth comes from the tile, so the icon itself stays
   in the same restrained line language as the rest of the page. */
.step__ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-700);
  background: linear-gradient(180deg, var(--card) 0%, var(--accent-100) 100%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 1px rgba(46, 31, 20,.05),
    0 7px 14px -9px rgba(46, 31, 20,.45);
}
.step__ico svg { width: 21px; height: 21px; display: block; }

/* the sprite itself never renders */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* pinned in JS to the tallest panel so the card does not jump on swap */
.panels { position: relative; }


/* ── product screenshots ───────────────────────────────────────────────── */

/* Real screens, shown whole rather than cropped. width/height attributes on
   every image so the panel measures correctly before the files load. */
.screen {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 40px -26px rgba(46, 31, 20, .45);
}
.screen img { width: 100%; height: auto; display: block; }

/* two screens, layered: the list behind, the single day in front */
.screen--pair {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  padding-bottom: 9%;
}
.screen--pair img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.screen__back { width: 86%; box-shadow: 0 14px 30px -24px rgba(46, 31, 20, .4); }
.screen__front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  box-shadow: 0 22px 46px -24px rgba(46, 31, 20, .55);
}

/* Channels has no screenshot yet. The Price Update screen stands in, blurred
   enough that no detail is legible while the shapes and colour still read as a
   screen. Rendered at its natural size, exactly like the real screenshots, so
   the panel matches the other chips. */
.screen--blurred {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.screen--blurred img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(15px);
  /* transform does not affect layout height, so it only hides the blur's
     soft edge inside the clip */
  transform: scale(1.14);
}

.blur__scrim {
  position: absolute;
  inset: 0;
  background: var(--ink-deep);
  opacity: .16;
}


.blur__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.blur__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--card);
  border: 1px solid var(--card);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--ink-deep);
}

/* ── closer ────────────────────────────────────────────────────────────── */

.closer {
  background: var(--ink-deep);
  color: #fff;
  text-align: center;
  padding-block: clamp(52px, 7vw, 96px);
}
.closer__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.034em;
  color: #fff;
  margin: 0 0 22px;
  text-wrap: balance;
}
.closer__body { font-size: 15.5px; line-height: 1.62; color: var(--accent-100); margin: 0 auto 14px; max-width: 54ch; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.closer__link { margin-top: 22px; color: var(--accent-100); }
.closer__link:hover { border-bottom-color: var(--accent-100); }

/* ── footer ────────────────────────────────────────────────────────────── */

.footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 36px; }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-700); margin: 0 0 4px;
}
.footer__col a { font-size: 14.5px; color: var(--accent-900); transition: color .16s ease; }
.footer__col a:hover { color: var(--accent-600); }
.footer__col a[data-pending] { color: var(--accent-400); opacity: .7; cursor: not-allowed; }

/* Contact block then city-headed address columns, on the same grid as the
   link columns above it. */
.footer__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.footer__addr { font-style: normal; }
.footer__addr span { font-size: 14px; line-height: 1.6; color: var(--accent-900); }
/* Colour comes from `.footer__col a` above (accent-900), which outranks this
   selector — matching the other footer links. The permanent underline is what
   marks it as the contact address. */
.footer__email { font-size: 14.5px; text-decoration: underline; text-underline-offset: 2px; }

.social {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted-2);
  transition: color .16s ease;
}
.social a:hover { color: var(--ink); }
.social svg { width: 100%; height: 100%; display: block; }
/* no URL supplied yet, so it must not look clickable */
.social a[data-pending] { color: var(--accent-400); opacity: .7; cursor: not-allowed; }
.social a[data-pending]:hover { color: var(--accent-400); }

.footer__legal {
  padding-top: 22px; font-size: 13.5px; color: var(--accent-900);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 24px;
}
.footer__legal p { margin: 0; }
.footer__legallinks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer__legallinks a { color: var(--accent-700); }
.footer__legallinks a:hover { color: var(--accent-900); }

/* ── motion ────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  /* mobile is already right; the desktop bleed and shift are switched off here */
  .hero__media { margin-right: 0; transform: none; }
  .hero__media img { width: 100%; }
  .panel { grid-template-columns: 1fr; }
  .panel__visual { order: -1; }
  .footer__entities { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}

@media (max-width: 760px) {
  .nav { padding: 9px 9px 9px 18px; gap: 12px; }
  .nav__toggle { display: grid; }
  .nav__links, .nav__tail { display: none; }
  .nav__drawer {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: max(var(--pad), calc((100% - var(--content)) / 2));
    right: max(var(--pad), calc((100% - var(--content)) / 2));
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    padding: 10px; box-shadow: 0 20px 44px -22px rgba(46, 31, 20,.4);
  }
  .nav.is-open .nav__drawer { display: block; }
  .nav__drawer a { display: block; padding: 11px 14px; border-radius: 12px; font-size: 15.5px; color: var(--muted); }
  .nav__drawer a:hover { background: var(--accent-100); color: var(--ink); }
  .nav__drawer .btn { width: 100%; margin-top: 8px; color: #fff; }

  .hero__actions .btn, .closer__actions .btn { flex: 1 1 auto; }
  .footer__entities { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
}
