/* ============================================================
   Wazbuy — Chat-native commerce design system
   Brand: WhatsApp-first commerce · greens from the Wazbuy mark
   Typeface: Manrope (single family, full site)
   ============================================================ */

/* ---------- Fonts (self-described fallback) ---------- */
:root {
  /* Brand greens — sampled from the Wazbuy logo gradient */
  --ink:         #07130D;
  --ink-2:       #0C1E15;
  --ink-3:       #122A1E;
  --brand-bright:#2BE06E;   /* gradient top  */
  --brand:       #16A24C;   /* primary       */
  --brand-600:   #12923F;   /* gradient base */
  --brand-700:   #0C7A33;
  --lime:        #2BE06E;   /* bright accent on dark (matches mark) */
  --wa:          #25D366;   /* WhatsApp bubble — mockups only */

  /* Brand gradient (logo mark) */
  --grad-brand:  linear-gradient(135deg, #2BE06E 0%, #12923F 100%);
  --grad-brand-soft: linear-gradient(135deg, #34d27a 0%, #16a24c 100%);

  /* Surfaces */
  --paper:       #FFFFFF;
  --paper-2:     #F5F6F4;
  --card:        #FFFFFF;

  /* Ink text */
  --text:        #0B1A12;
  --muted:       #56685D;
  --muted-2:     #7E8E84;
  --line:        rgba(8,25,16,0.12);
  --line-2:      rgba(8,25,16,0.085);

  /* States */
  --amber:       #F4A323;
  --danger:      #EF5350;
  --danger-bg:   #FBE9E7;
  --verify:      #14CC82;

  /* Accent (kept for compatibility) */
  --accent:      var(--brand);
  --accent-ink:  #052b1d;
  --accent-soft: rgba(22,162,76,0.10);

  /* Type — Manrope everywhere */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Manrope", ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  /* Geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;
  --maxw: 1440px;

  /* Shadows — green-tinted */
  --sh-1: 0 1px 2px rgba(7,40,26,0.06), 0 2px 8px rgba(7,40,26,0.05);
  --sh-2: 0 6px 18px rgba(7,40,26,0.08), 0 2px 6px rgba(7,40,26,0.05);
  --sh-3: 0 24px 60px -18px rgba(7,40,26,0.28), 0 8px 24px rgba(7,40,26,0.10);
  --sh-glow: 0 18px 50px -12px rgba(22,162,76,0.42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 3.5vw, 44px); }
.section { padding-block: clamp(40px, 4.6vw, 72px); position: relative; }
.section--tight { padding-block: clamp(30px, 3.6vw, 52px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1.display { font-size: clamp(42px, 6.4vw, 82px); }
h2.display { font-size: clamp(33px, 4.4vw, 58px); }
h3.display { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.06; }
/* Phones: scale display headings down so they fit narrow screens without clipping */
@media (max-width: 600px) {
  h1.display { font-size: clamp(30px, 8.6vw, 50px); letter-spacing: -0.03em; }
  h2.display { font-size: clamp(25px, 7vw, 38px); letter-spacing: -0.03em; }
  h3.display { font-size: clamp(20px, 5.4vw, 26px); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--brand) 8%, var(--card));
  border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent);
}
.eyebrow svg { width: 14px; height: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.kicker { color: var(--brand-600); }
.gradient-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s, filter .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 22px 56px -10px rgba(22,162,76,0.55); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn--ink:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 16px 40px -12px rgba(43,224,110,0.6); }
.btn--lime:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(8,25,16,0.28); transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--sh-1);
  font-size: 14px; font-weight: 600;
}
.chip svg { width: 16px; height: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--brand-700);
  font-weight: 700; font-size: 13.5px;
}
.cta-box .tag { white-space: nowrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line-2);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--brand-600);
  margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 7px; line-height: 1.15; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ---------- Scroll reveal ----------
   Default = visible. Hidden-then-animate only when JS confirms the
   animation timeline actually runs (html.anim-ready). Guarantees content
   shows in any environment where timelines are frozen/throttled. */
[data-reveal] { opacity: 1; transform: none; }
html.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.anim-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.muted { color: var(--muted); }
.hl { color: var(--brand-600); }
.hl-lime { background: linear-gradient(180deg, transparent 62%, rgba(43,224,110,0.45) 62%); padding-inline: 2px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; }
