/* ============================================================
   WazBuy site revamp (Oct 2026): real app screenshots, feature
   map, feature rows. Loaded after styles/components/v2/pages.
   ============================================================ */

/* ---------- Small labels ---------- */
.plan-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: 2px;
  background: rgba(244,163,35,0.16); color: #7A4E06;
}
.plan-pill--soon { background: var(--paper-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Nav: "Log in" text link next to the main button ---------- */
.nav__login { font-size: 15px; font-weight: 600; color: var(--muted); padding: 9px 6px; }
.nav__login:hover { color: var(--text); }

/* ---------- Hero visual: the store in a browser, WhatsApp in front ---------- */
.hero3__stage { position: relative; padding: 0 0 40px 0; }
.hero3__browser { position: relative; z-index: 1; margin-left: 12%; }
.hero3__browser .shot__img { aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.hero3__phone { position: absolute; z-index: 2; left: 0; bottom: 0; width: 46%; max-width: 268px; }
.hero3__stage .float-badge { white-space: nowrap; }
.hero3__stage .fb-1 { top: -14px; right: 4%; z-index: 3; }
.hero3__stage .fb-2 { bottom: 16%; right: -10px; z-index: 3; }
html.anim-ready .hero3__stage .fb-1 { animation: floaty 5s ease-in-out infinite; }
html.anim-ready .hero3__stage .fb-2 { animation: floaty 5s ease-in-out infinite .8s; }
@media (max-width: 1000px) {
  .hero3__stage { max-width: 640px; margin: 36px auto 0; }
}
@media (max-width: 560px) {
  .hero3__browser { margin-left: 18%; }
  .hero3__phone { width: 50%; }
  .hero3__stage .fb-1 { right: 0; top: -22px; }
  .hero3__stage .fb-2 { display: none; }
}

/* ---------- Screenshot frames ---------- */
.shot { margin: 0; position: relative; }
.shot__img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.shot--browser { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.shot--browser .frame__bar { padding: 9px 13px; }
.shot--browser .frame__url { font-size: 11.5px; padding: 5px 12px; }
.shot--flat { border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); }

/* phone shell for real screenshots: a slim status strip, no notch over the picture */
.phone--shot { width: 100%; max-width: 300px; padding: 9px; border-radius: 40px; }
html.anim-ready .phone--shot { animation: none; }
.phone--shot::before { display: none; }
.phone--shot .phone__screen { border-radius: 31px; background: #fff; }
.phone__status { height: 26px; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.phone__status::before { content: ""; width: 74px; height: 18px; border-radius: 999px; background: #0a0f0c; }
.phone--shot .phone__status--chat { background: #fff; }
/* a WhatsApp chat header drawn above a real chat screenshot */
.phone--shot .wam-head { background: #fff; border-bottom: 1px solid #E9EDEF; color: #111B21; }
.phone--shot .shot__img { background: #F0EAE3; }
.shot-cap { margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }

/* two screens side by side: a computer screen with a phone over its corner */
.duo { position: relative; padding-bottom: 34px; }
.duo .shot--browser { margin-right: 18%; }
.duo .phone--shot { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 230px; padding: 7px; border-radius: 32px; }
.duo .phone--shot .phone__screen { border-radius: 26px; }
.duo .phone__status { height: 20px; }
.duo .phone__status::before { width: 56px; height: 14px; }
@media (max-width: 560px) {
  .duo .shot--browser { margin-right: 22%; }
  .duo .phone--shot { width: 40%; }
}

/* a lone phone screenshot centred in its column */
.solo-phone { display: flex; justify-content: center; }
.solo-phone .phone--shot { max-width: 290px; }

/* ---------- How it works: three steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 3.6vw, 52px); counter-reset: s3; }
.step3 {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 26px 24px 24px; box-shadow: var(--sh-1); position: relative;
}
.step3__n {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff;
  background: var(--grad-brand); box-shadow: var(--sh-glow); margin-bottom: 18px;
}
.step3 h3 { font-family: var(--font-display); font-weight: 720; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.step3 p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-top: 8px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Feature map (everything WazBuy does, grouped) ---------- */
.fmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 3.6vw, 52px); }
.fgroup {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px 22px 18px; box-shadow: var(--sh-1);
}
.fgroup__h { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.fgroup__ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-600); }
.fgroup__ico svg { width: 19px; height: 19px; }
.fgroup__h h3 { font-family: var(--font-display); font-weight: 760; font-size: 17.5px; letter-spacing: -0.02em; }
.fgroup__h a { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.fgroup__h a:hover { text-decoration: underline; text-underline-offset: 2px; }
.flist { display: grid; gap: 0; }
.flist li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.flist li b { display: block; color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 1px; }
@media (max-width: 1000px) { .fmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fmap { grid-template-columns: 1fr; } }

/* ---------- Feature rows (re-use .sol) ---------- */
.sol--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sol .lede-sm { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.sol .ticks { margin-top: 22px; }
.sol__media { min-width: 0; }

/* store designs strip */
.designs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 3.4vw, 46px); }
.design { margin: 0; }
.design .shot--flat { box-shadow: var(--sh-2); }
.design figcaption { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.design figcaption b { font-family: var(--font-display); font-weight: 720; font-size: 15.5px; letter-spacing: -0.015em; }
.design figcaption span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.designs__note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a row of two screenshots under a feature row */
.pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; margin-top: clamp(28px, 3vw, 40px); }
.pair--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .pair, .pair--even { grid-template-columns: 1fr; } }

/* ---------- More tools: compact icon cards ---------- */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 3.4vw, 46px); }
.tool { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1); }
.tool .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-600); margin-bottom: 14px; }
.tool .ico svg { width: 20px; height: 20px; }
.tool h3 { font-family: var(--font-display); font-weight: 720; font-size: 16.5px; letter-spacing: -0.015em; }
.tool p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 5px; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Official + message cost strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(30px, 3.4vw, 46px); }
.fact { border-radius: var(--r-lg); padding: 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); }
.fact .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(43,224,110,0.14); color: var(--lime); margin-bottom: 16px; }
.fact .ico svg { width: 21px; height: 21px; }
.fact h3 { color: #fff; font-family: var(--font-display); font-weight: 720; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.fact p { color: rgba(234,242,236,0.7); font-size: 15px; line-height: 1.55; margin-top: 8px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Final CTA buttons row ---------- */
.cta-box .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn--ghost-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6); transform: translateY(-1px); }

/* ---------- Phones: tighten the new sections ---------- */
@media (max-width: 600px) {
  .step3 { padding: 22px 20px 20px; }
  .fgroup { padding: 18px 18px 14px; }
  .designs { gap: 12px; }
  .design figcaption span { display: none; }
  .tool { padding: 18px; }
  .fact { padding: 20px; }
  .cta-box .row .btn { width: 100%; }
}

/* ---------- Anchors clear the sticky nav ---------- */
section[id], [id="top"] { scroll-margin-top: 84px; }

/* ---------- WhatsApp mock: welcome carousel and stacked buttons ---------- */
.wam-carousel { display: flex; gap: 6px; margin: 1px -12px 0 0; overflow: hidden; align-self: stretch; }
.wam-ccard {
  flex: 0 0 58%; background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.3; color: #111B21;
}
.wam-ccard img { width: 100%; height: 108px; object-fit: cover; display: block; }
.wam-ccard b { font-weight: 700; padding: 7px 9px 0; }
.wam-ccard span { color: #667781; font-size: 11px; padding: 1px 9px 7px; }
.wam-ccard i { font-style: normal; border-top: 1px solid #E9EDEF; text-align: center; padding: 7px; color: #00A884; font-weight: 600; font-size: 12.5px; }
.wam-cardmsg .wam-btn + .wam-btn { margin-top: 5px; }

/* ---------- Hero badges sit beside the phone, not over the chat ---------- */
@media (min-width: 1001px) {
  .hero2__stage .fb-1 { top: 120px; left: -96px; }
  .hero2__stage .fb-2 { bottom: 120px; right: -96px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .hero2__stage .fb-1 { left: max(0px, calc(50% - 372px)); }
  .hero2__stage .fb-2 { right: max(0px, calc(50% - 372px)); }
}
@media (max-width: 600px) { .hero2__stage .float-badge { display: none; } }

/* ---------- Paired shots: the phone keeps a phone shape and stays inside the pair ---------- */
.duo .phone--shot .shot__img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
@media (max-width: 600px) { .duo { padding-bottom: 52px; } }

/* a chat input bar under a real chat screenshot */
.phone--shot .wam-input { background: #F0EAE3; padding: 6px 8px 9px; }
.phone--shot .wam-field { padding: 7px 11px; font-size: 12.5px; }
.phone--shot .wam-field svg { width: 17px; height: 17px; }
.phone--shot .wam-mic { width: 36px; height: 36px; }
.phone--shot .wam-mic svg { width: 16px; height: 16px; }

/* ---------- Phones: compact two-up tool cards, no logo behind the CTA buttons ---------- */
@media (max-width: 520px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool { padding: 14px; }
  .tool .ico { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px; }
  .tool .ico svg { width: 17px; height: 17px; }
  .tool h3 { font-size: 15px; }
  .tool p { font-size: 13px; }
}
@media (max-width: 600px) { .cta-box::after, .cta-strip::after { display: none; } }

/* ---------- Floating WhatsApp button (Google Ads visitors chat straight away) ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: var(--r-pill, 999px);
  background: #25D366; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; line-height: 1; white-space: nowrap;
  box-shadow: 0 10px 28px -8px rgba(18,140,70,0.55), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-float:hover { background: #1fbf5a; transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(18,140,70,0.6), 0 3px 8px rgba(0,0,0,0.14); }
.wa-float:active { transform: translateY(0); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }
