/* =========================================================
   NextGen Sellers — Landing Page
   Built on the Mereka Design System (Remix)
   Poppins (display) + Inter (body), brand colour tokens
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colours (Mereka §3.4.1) */
  --off-black:   #1a1623;
  --white:       #ffffff;
  --grey:        #f5f6f7;
  --teal:        #1fa3a6;
  --amber:       #e8a92f;

  /* Teal tints */
  --teal-50:  #e6f5f5;
  --teal-100: #c2e7e7;
  --teal-300: #6cc7c8;
  --teal-700: #157578;
  --teal-900: #0c4a4c;

  /* Amber tints */
  --amber-50:  #fdf6e6;
  --amber-100: #f9e6b3;
  --amber-300: #f0c46e;
  --amber-700: #b6831a;

  /* Neutrals (purple-leaning ink) */
  --ink-900: #1a1623;
  --ink-700: #3a3547;
  --ink-500: #6b6678;
  --ink-400: #908b9c;
  --ink-300: #c2bdcb;
  --ink-200: #e3e0e7;
  --ink-100: #eef0f2;
  --ink-50:  #f5f6f7;

  --fg:        var(--off-black);
  --fg-muted:  var(--ink-500);
  --fg-subtle: var(--ink-400);
  --border:    var(--ink-200);

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(26,22,35,0.06);
  --shadow-md: 0 8px 24px rgba(26,22,35,0.10);
  --shadow-lg: 0 24px 48px rgba(26,22,35,0.14);

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 200ms;

  --gutter: 24px;
  --maxw: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--white);
  line-height: 1.4;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sec-y, clamp(56px, 8vw, 104px)) 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--off-black); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section--dark .eyebrow, .section--teal .eyebrow { color: var(--amber); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
  border-radius: 2px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0 0 18px;
}
.section-intro {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 60ch;
}
.section--dark .section-intro, .section--teal .section-intro { color: rgba(255,255,255,0.82); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--btn-radius, var(--radius-pill));
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }

.btn-amber { background: var(--amber); color: var(--off-black); }
.btn-amber:hover { background: var(--amber-700); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-dark { background: var(--off-black); color: #fff; }
.btn-dark:hover { background: var(--teal); }

.btn-white { background: #fff; color: var(--off-black); }
.btn-white:hover { background: var(--grey); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--off-black); border-color: var(--border); }
.btn-ghost:hover { background: var(--grey); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* ---------- Icon wells ---------- */
.icon-well {
  width: 52px; height: 52px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-well.teal { background: var(--teal-50); color: var(--teal); }
.icon-well.amber { background: var(--amber-50); color: var(--amber-700); }
.icon-well svg { width: 24px; height: 24px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}
.pill svg { width: 15px; height: 15px; }
.pill-teal { background: var(--teal-50); color: var(--teal-900); }
.pill-amber { background: var(--amber-50); color: var(--amber-700); }
.pill-glass { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.pill-teal-glass { background: rgba(31,163,166,0.18); color: var(--teal-100); border: 1px solid rgba(31,163,166,0.4); }

/* image-slot fallback styling */
image-slot {
  --is-placeholder-bg: var(--ink-100);
  --is-placeholder-fg: var(--ink-400);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- WhatsApp preview helper (editor only) ---------- */
.wa-prev__overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(26,22,35,0.62); backdrop-filter: blur(6px);
  padding: 24px;
}
.wa-prev__overlay.is-open { display: flex; }
.wa-prev__card {
  position: relative; background: #fff; border-radius: var(--radius-xl);
  padding: 32px 30px 26px; width: 100%; max-width: 360px; text-align: center;
  box-shadow: var(--shadow-lg); font-family: var(--font-body);
}
.wa-prev__close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-400);
  cursor: pointer; border-radius: 999px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wa-prev__close:hover { background: var(--grey); color: var(--off-black); }
.wa-prev__badge {
  width: 52px; height: 52px; border-radius: 999px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-50); color: var(--teal);
}
.wa-prev__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 8px; color: var(--off-black); }
.wa-prev__note { font-size: 0.9rem; line-height: 1.5; color: var(--fg-muted); margin: 0 0 20px; }
.wa-prev__qrwrap {
  width: 200px; height: 200px; margin: 0 auto 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wa-prev__qr { width: 100%; height: 100%; object-fit: contain; }
.wa-prev__linkrow { display: flex; align-items: stretch; gap: 8px; }
.wa-prev__link {
  flex: 1; min-width: 0; text-align: left; font-family: var(--font-mono, monospace); font-size: 0.78rem;
  background: var(--grey); border-radius: var(--radius-md); padding: 10px 12px; color: var(--ink-700);
  display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-prev__copy {
  flex-shrink: 0; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  background: var(--teal); color: #fff; border-radius: var(--radius-md); padding: 0 16px;
  transition: background var(--dur) var(--ease);
}
.wa-prev__copy:hover { background: var(--teal-700); }
