/* Estoque Fácil Pro — página de vendas e páginas legais */
/* Fontes hospedadas no próprio site (nada é pedido ao Google) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f3f6f1;
  --paper-2: #e8eee6;
  --ink: #17352a;
  --muted: #4a6255;
  --line: #cfd9cc;
  --brand: #1f7a4d;
  --brand-dark: #165a38;
  --tag: #f6c945;
  --tag-ink: #3b2f05;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--brand-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-tag { background: var(--ink); color: #fff; }
.btn-tag:hover { background: #0e2219; color: #fff; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 241, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: none; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.top-actions .btn { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- Herói ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: .95rem; color: var(--muted); }

/* Painel de exemplo (celular) */
.stage { position: relative; display: grid; justify-items: center; padding: 2rem 0 0; }
.phone {
  width: min(320px, 100%); background: #fff; border: 2px solid var(--ink); border-radius: 30px;
  padding: 14px 14px 18px; box-shadow: 10px 10px 0 var(--paper-2), 10px 10px 0 2px var(--line);
}
.phone-bar { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); padding: 0 6px 8px; }
.phone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phone-head strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.phone-menu { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); position: relative; }
.phone-menu::before, .phone-menu::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; top: 11px; box-shadow: 0 6px 0 #fff; }
.phone-menu::after { display: none; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi span { display: block; font-size: .7rem; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-top: 2px; letter-spacing: -0.02em; white-space: nowrap; }
.kpi.profit b { color: var(--brand-dark); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin: 14px 2px 4px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; background: #c5dccd; border-radius: 4px 4px 0 0; }
.bars i:last-child { background: var(--brand); }
.bars-label { font-size: .7rem; color: var(--muted); margin: 0 2px 12px; }
.alert-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .78rem; display: flex; justify-content: space-between; gap: .5rem; margin-top: 6px; }
.alert-row em { font-style: normal; font-weight: 700; color: #8a3b12; white-space: nowrap; }
.stage-caption { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* Etiqueta de preço — motivo do site */
.tag {
  position: relative; background: var(--tag); color: var(--tag-ink);
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
  padding: .9rem 1.4rem .9rem 3rem; font-weight: 700;
}
.tag::before { content: ""; position: absolute; left: 20px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); transform: translateY(-50%); box-shadow: inset 0 0 0 2px var(--tag-ink); }
.stage .tag { position: absolute; top: .2rem; right: 0; transform-origin: 30px 50%; animation: swing 1.6s ease-out .5s 1 both; font-size: .92rem; }
@keyframes swing {
  0% { transform: rotate(-10deg); }
  30% { transform: rotate(6deg); }
  55% { transform: rotate(-3deg); }
  80% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}
@media (max-width: 899px) { .stage .tag { right: 2%; } }

/* ---------- Seções ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.alt { background: var(--white); border-block: 1px solid var(--line); }

/* Antes / Depois */
.compare { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.compare-row { display: grid; gap: .5rem 3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .compare-row { grid-template-columns: 1fr 1fr; align-items: baseline; } }
.compare-row .before { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(23, 53, 42, .35); }
.compare-row .after { font-size: 1.1rem; }
.compare-row .after b { color: var(--brand-dark); }

/* Recursos */
.features { display: grid; gap: 0 3rem; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .35rem; }
.feature p { color: var(--muted); }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: passo; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: passo; border-top: 3px solid var(--ink); padding-top: 1rem; display: grid; gap: .4rem; align-content: start; }
.steps li::before { content: counter(passo); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--brand); }
.steps p { color: var(--muted); font-size: 1rem; }

/* Preço */
.pricing { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.price-tag { background: var(--tag); color: var(--tag-ink); padding: 2.2rem 2rem 2rem 4.2rem; position: relative; clip-path: polygon(44px 0, 100% 0, 100% 100%, 44px 100%, 0 50%); max-width: 460px; }
.price-tag::before { content: ""; position: absolute; left: 26px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transform: translateY(-50%); box-shadow: inset 0 0 0 2px var(--tag-ink); }
.price-name { font-weight: 700; font-size: 1rem; }
.price-value { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; margin: .3rem 0; }
.price-value small { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.price-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .45rem; }
.price-list li { padding-left: 1.4rem; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2.5px solid var(--tag-ink); border-bottom: 2.5px solid var(--tag-ink); transform: rotate(-45deg); }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.trust-list li { border-left: 3px solid var(--brand); padding-left: 1rem; }
.trust-list b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.trust-list span { color: var(--muted); }

/* Dúvidas */
.faq { border-top: 1px solid var(--ink); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .7rem; color: var(--muted); max-width: 62ch; }

/* Chamada final */
.final { background: var(--ink); color: #fff; }
.final .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.final h2 { color: #fff; max-width: 20ch; }
.final p { color: #c9d8cf; max-width: 46ch; }
.final .btn-ghost { color: #fff; border-color: #fff; }
.final .btn-ghost:hover { background: #fff; color: var(--ink); }
.final .btn-primary { background: var(--tag); color: var(--tag-ink); }
.final .btn-primary:hover { background: #ffd95e; color: var(--tag-ink); }
.final .hero-actions { margin-top: .5rem; }

/* Rodapé */
.foot { padding: 2rem 0 3rem; font-size: .95rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Páginas legais */
.legal { padding: clamp(2rem, 5vw, 4rem) 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); max-width: none; margin-bottom: .5rem; }
.legal h2 { font-size: 1.35rem; max-width: none; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { margin-bottom: .7rem; }
.legal ul { padding-left: 1.3rem; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.draft-note { background: #fff4cc; border: 2px dashed #b58900; padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1.5rem 0; font-size: .98rem; }
.fill { background: #fff4cc; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .tag { animation: none; }
  .faq summary::after { transition: none; }
}
