/* ==========================================================
   wapp.shop – landing page styles
   ========================================================== */

:root {
  --ink: #20353d;
  --ink-soft: #4a5f67;
  --muted: #7b8c93;
  --green: #6ee26b;
  --emerald: #12c08a;
  --teal: #0e7a8f;
  --wa: #25d366;
  --bg: #ffffff;
  --tint: #f2fbf7;
  --line: #e3eeea;
  --gradient: linear-gradient(135deg, var(--green) 0%, var(--emerald) 50%, var(--teal) 100%);
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(32, 53, 61, .06);
  --shadow: 0 12px 32px rgba(32, 53, 61, .10);
  --shadow-lg: 0 24px 60px rgba(14, 122, 143, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
/* border-box origin: otherwise the gradient tiles under the transparent border and shows stripes at the edges */
.btn--primary { background: var(--gradient) border-box; color: #fff; box-shadow: 0 8px 20px rgba(18, 192, 138, .30); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(18, 192, 138, .40); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--emerald); }
.btn--white { background: #fff; color: var(--teal); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 31px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav > a { color: var(--ink-soft); }
.nav > a:hover { color: var(--emerald); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.nav-toggle { display: none; }
.nav-toggle__btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(110, 226, 107, .18), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(14, 122, 143, .10), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid #cdeedf;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin-bottom: 22px; }
.hero__lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__trust { font-size: 14px; color: var(--muted); font-weight: 500; }

/* Phone mockup */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  padding: 12px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 24px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.store { background: #fff; border-radius: 34px; overflow: hidden; padding: 38px 14px 14px; }
.store__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.store__head strong { display: block; font-size: 15px; }
.store__head small { color: var(--emerald); font-size: 11px; font-weight: 600; }
.store__avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  font-size: 22px;
}
.store__tabs { display: flex; gap: 6px; margin-bottom: 12px; font-size: 11px; font-weight: 600; }
.store__tabs span { padding: 5px 10px; border-radius: 999px; background: #f2f5f4; color: var(--ink-soft); }
.store__tabs .is-active { background: var(--ink); color: #fff; }
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product {
  display: flex; flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
}
.product__img {
  height: 70px;
  display: grid; place-items: center;
  font-size: 30px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.product span { color: var(--emerald); font-weight: 700; }
.store__cart {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.store__cart-btn { background: var(--wa); padding: 5px 9px; border-radius: 999px; }

.chat-bubble {
  position: absolute;
  left: 0;
  bottom: -24px;
  width: 230px;
  padding: 12px 14px 8px;
  background: #dcf8c6;
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow);
  font-size: 13px;
  transform: rotate(-3deg);
}
.chat-bubble__head { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; color: #075e54; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-bubble small { display: block; text-align: right; color: #53bdeb; font-size: 11px; margin-top: 2px; }

/* ---------- Stats strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 34px 0; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip strong { display: block; font-size: 30px; font-weight: 800; color: var(--green); }
.strip span { font-size: 14px; color: #b7c6cb; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
.section__head p { color: var(--ink-soft); font-size: 17px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 30px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 26px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Use-case chips */
.chips { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan__desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan__price { color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.plan__price span { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 30px; font-size: 15px; }
.plan li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
}
.plan--featured { border: 2px solid var(--emerald); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan__tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 22px;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 20px 32px 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--emerald);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

/* Final CTA */
.cta { padding: 0 0 96px; }
.cta__inner {
  padding: 64px 32px;
  border-radius: 28px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 18px; opacity: .92; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer__brand img { height: 29px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--ink-soft); max-width: 300px; }
.footer__brand a { color: var(--emerald); font-weight: 700; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer__col a { color: var(--ink-soft); }
.footer__col a:hover { color: var(--emerald); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { margin-top: 24px; }
  .features, .pricing { grid-template-columns: 1fr 1fr; }
  .plan--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Mobile nav */
  .nav-toggle__btn {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    cursor: pointer;
  }
  .nav-toggle__btn span,
  .nav-toggle__btn span::before,
  .nav-toggle__btn span::after {
    content: "";
    display: block;
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform .2s ease, background .2s ease;
  }
  .nav-toggle__btn span::before { position: absolute; top: -7px; }
  .nav-toggle__btn span::after { position: absolute; top: 7px; }
  .nav-toggle:checked + .nav-toggle__btn span { background: transparent; }
  .nav-toggle:checked + .nav-toggle__btn span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle__btn span::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav > a { padding: 10px 0; }
  .nav__actions { flex-direction: column; align-items: stretch; margin: 12px 0 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

@media (max-width: 680px) {
  .hero { padding: 48px 0 80px; }
  .section { padding: 72px 0; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .phone { width: 270px; }
  .chat-bubble { left: 50%; margin-left: -180px; width: 210px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cta__inner { padding: 48px 22px; }
}

@media (max-width: 420px) {
  .chat-bubble { margin-left: -150px; }
}
