/* ============================================================
   byPorto — sistema de design compartilhado
   Editorial-utilitário · chat-as-interface
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --ink:        #0B0F0E;
  --ink-soft:   #121816;
  --ink-card:   #161D1A;
  --line:       #233029;
  --emerald:    #1FBF75;
  --emerald-dk: #149a5d;
  --lime:       #D4FF4F;
  --cream:      #F2F0E9;
  --muted:      #AEB8B2;
  --muted-2:    #7E8983;

  --display: "Bricolage Grotesque", sans-serif;
  --body:    "Hanken Grotesk", sans-serif;
  --mono:    "JetBrains Mono", monospace;

  --maxw: 1180px;
  --radius: 2px;
  --bubble: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* ink usado no texto de botão/realce sobre o accent (--emerald) */
  --accent-ink: #00140d;
}

/* ---------- TEMAS POR PÁGINA (recolore via --emerald) ---------- */
body.t-loja    { --emerald:#1FBF75; --emerald-dk:#149a5d; --accent-ink:#00140d; }
body.t-sdr     { --emerald:#D4FF4F; --emerald-dk:#a9d62f; --accent-ink:#0B120A; --ink:#08090A; }
body.t-suporte { --emerald:#45D6C0; --emerald-dk:#2bb3a0; --accent-ink:#042622; --ink:#070F0E; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain + glow atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, color-mix(in srgb, var(--emerald) 18%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--emerald) 7%, transparent), transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,14,.72);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 30px; width: auto; display: block; }
.foot .brand img { height: 34px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 14px var(--emerald); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--cream); }
.nav__links .active { color: var(--cream); }
/* botão na nav: vence a regra cinza de .nav__links a (especificidade) */
.nav__links a.btn--primary { color: var(--accent-ink); }
.nav__links a.btn--ghost { color: var(--cream); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--emerald); color: var(--accent-ink); font-weight: 700; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--emerald) 38%, transparent); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--emerald); transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- ERROR/EYEBROW/LABELS ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--emerald); }

.pill {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.02);
}
.pill .tick { color: var(--emerald); font-weight: 700; }

/* ---------- HEADINGS ---------- */
.display {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(44px, 8vw, 104px);
}
.display .hl { color: var(--emerald); }
.display .lime { color: var(--lime); }
.h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(32px, 4.5vw, 56px); }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 56ch; }

/* ---------- HERO ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- CHAT MOCK ---------- */
.chat {
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative;
}
.chat__head { display: flex; align-items: center; gap: 11px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat__ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--emerald-dk)); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--accent-ink); overflow: hidden; }
.chat__ava img { width: 100%; height: 100%; object-fit: cover; }
.chat__name { font-weight: 600; font-size: 15px; }
.chat__status { font-family: var(--mono); font-size: 11px; color: var(--emerald); }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: var(--bubble); margin-bottom: 10px;
  font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px);
  animation: pop .5s var(--ease) forwards;
}
.bubble--in  { background: var(--ink-card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--out { background: var(--emerald); color: var(--accent-ink); margin-left: auto; border-bottom-right-radius: 5px; font-weight: 600; }
.bubble small { display: block; font-family: var(--mono); font-size: 10px; opacity: .6; margin-top: 4px; }
.bubble:nth-child(2){animation-delay:.2s} .bubble:nth-child(3){animation-delay:.7s}
.bubble:nth-child(4){animation-delay:1.2s} .bubble:nth-child(5){animation-delay:1.7s} .bubble:nth-child(6){animation-delay:2.2s}
.chat__pay {
  margin-top: 6px; padding: 13px 15px; border: 1px dashed var(--emerald); border-radius: 10px;
  background: rgba(31,191,117,.07); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  opacity: 0; animation: pop .5s var(--ease) 2.6s forwards;
}
.chat__pay b { font-family: var(--display); }
.chat__pay span { font-family: var(--mono); font-size: 11px; color: var(--emerald); }
/* botão "Pagar →" dentro do chat: texto escuro, vence .chat__pay span */
.chat__pay span.btn { font-family: var(--body); font-size: 15px; color: var(--accent-ink); }

@keyframes pop { to { opacity: 1; transform: translateY(0); } }

/* ---------- TRUST STRIP ---------- */
.strip { border-block: 1px solid var(--line); padding: 22px 0; }
.strip__row { display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: center; justify-content: center; }
.strip__item { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.strip__item b { color: var(--cream); font-family: var(--body); font-weight: 600; }

/* ---------- SECTION ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head .lede { margin-top: 18px; }

/* ---------- PRODUCT BLOCKS (editorial numbered) ---------- */
.prod {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 28px; align-items: start;
  padding: 38px 0; border-top: 1px solid var(--line); transition: padding .3s;
}
.prod:last-child { border-bottom: 1px solid var(--line); }
.prod__num { font-family: var(--display); font-weight: 800; font-size: 40px; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--emerald) 60%, var(--muted)); }
.prod__name { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.prod__name a { transition: color .2s; }
.prod:hover .prod__name a { color: var(--emerald); }
.prod__desc { color: var(--muted); max-width: 58ch; }
.prod__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.prod__tag { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; border-radius: 3px; }
.prod__go { align-self: center; }
.prod__arrow {
  width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: .25s var(--ease); color: var(--cream);
}
.prod:hover .prod__arrow { background: var(--emerald); border-color: var(--emerald); color: #04130c; transform: rotate(-45deg); }
.prod__arrow svg { width: 20px; height: 20px; }

/* ---------- FEATURE GRID ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: .25s var(--ease); }
.fcard:hover { transform: translateY(-4px); border-color: var(--emerald); }
.fcard__ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(31,191,117,.1); display: grid; place-items: center; color: var(--emerald); margin-bottom: 18px; }
.fcard__ico svg { width: 22px; height: 22px; }
.fcard h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 15px; }

/* ---------- STEPS (flow) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 28px 22px 28px 0; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--emerald); display: block; margin-bottom: 14px;
}
.step::after { content: ""; position: absolute; top: 36px; right: 22px; width: 7px; height: 7px; border-top: 1px solid var(--emerald); border-right: 1px solid var(--emerald); transform: rotate(45deg); }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CALLOUT (native checkout / api) ---------- */
.callout {
  border: 1px solid var(--emerald); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31,191,117,.1), rgba(31,191,117,.02));
  padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.callout__k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); margin-bottom: 14px; }
.callout h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px,3vw,34px); letter-spacing: -.02em; line-height: 1.05; }
.callout p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* ---------- FINAL CTA ---------- */
.cta-final { text-align: center; padding: clamp(70px,10vw,130px) 0; }
.cta-final .display { margin: 0 auto 28px; }
.cta-final .hero__cta { justify-content: center; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.foot__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot__brand { max-width: 320px; }
.foot__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.foot__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.foot__col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot__col a:hover { color: var(--cream); }
.foot__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* ============================================================
   COMPONENTES ESPECÍFICOS POR TEMA
   ============================================================ */

/* ---- LOJA: seção clara invertida + vitrine ---- */
.section--light { background: var(--cream); color: #0c1411; border-block: 1px solid #d8d5c8; }
.section--light .eyebrow { color: var(--emerald-dk); }
.section--light .eyebrow::before { background: var(--emerald-dk); }
.section--light .h2 { color: #0c1411; }
.section--light .lede { color: #4a544e; }
.vitrine { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 12px; }
.vcard { background: #fff; border: 1px solid #e3e0d4; border-radius: 6px; overflow: hidden; transition: .25s var(--ease); }
.vcard:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(12,20,17,.12); }
.vcard__img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, color-mix(in srgb,var(--emerald) 22%,#fff), #fff); }
.vcard__body { padding: 16px 16px 18px; }
.vcard__body h4 { font-family: var(--display); font-weight: 700; font-size: 17px; color: #0c1411; }
.vcard__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.vcard__price { font-family: var(--mono); font-size: 13px; color: var(--emerald-dk); }
.vcard__add { width: 34px; height: 34px; border-radius: 50%; background: var(--emerald); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }

/* ---- SDR: barra de stats / velocidade ---- */
.statbar { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-weight: 800; font-size: clamp(44px,6vw,72px); line-height: 1; letter-spacing: -.03em; color: var(--emerald); }
.stat__l { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 12px; letter-spacing: .04em; }
.rail { position: relative; padding-left: 28px; }
.rail::before { content:""; position:absolute; left:6px; top:8px; bottom:8px; width:2px; background: linear-gradient(var(--emerald), transparent); }
.rail__item { position: relative; padding: 0 0 30px 0; }
.rail__item::before { content:""; position:absolute; left:-28px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--ink); border:2px solid var(--emerald); }
.rail__t { font-family: var(--display); font-weight:700; font-size:20px; margin-bottom:6px; }
.rail__d { color: var(--muted); font-size: 15px; max-width: 52ch; }
.rail__tag { font-family:var(--mono); font-size:11px; color:var(--emerald); }

/* ---- SUPORTE: radar pulse + triagem calma ---- */
.radar { width: 100%; aspect-ratio: 1; max-width: 420px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.radar__ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.radar__ring.r1 { inset: 0; } .radar__ring.r2 { inset: 18%; } .radar__ring.r3 { inset: 36%; }
.radar__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--emerald); opacity: 0; animation: radar 3s ease-out infinite; }
.radar__pulse:nth-child(2){ animation-delay: 1s; } .radar__pulse:nth-child(3){ animation-delay: 2s; }
@keyframes radar { 0%{ transform: scale(.36); opacity:.7 } 100%{ transform: scale(1); opacity:0 } }
.radar__core { width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle, var(--emerald), var(--emerald-dk)); display: grid; place-items: center; color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 13px; text-align: center; z-index: 1; box-shadow: 0 0 40px color-mix(in srgb,var(--emerald) 50%, transparent); }
.radar__blip { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.blip-ok { background: var(--emerald); } .blip-alert { background: #FF6B5B; box-shadow: 0 0 12px #FF6B5B; }
.triage { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tcol { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tcol__h { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); display:flex; align-items:center; gap:8px; }
.tcol__h .d { width:8px; height:8px; border-radius:50%; }
.titem { background: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; margin-bottom: 10px; font-size: 14px; }
.titem small { display:block; font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-top:5px; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .fgrid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .callout { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 54px 1fr; }
  .prod__go { grid-column: 1 / -1; justify-self: start; }
  .nav__links .hide-sm { display: none; }
  .vitrine, .triage { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .nav__links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .bubble, .chat__pay { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
