/* Mesavento — landing de venda. Paleta e fontes tiradas do CSS da própria interface
   (--charcoal, --steel, --ember, --paper...; Bahnschrift/Roboto Condensed, Noto Sans, IBM Plex Mono). */
:root {
  --charcoal: #18201d;
  --hero: #1b2722;
  --steel: #2c3732;
  --steel-2: #3a4741;
  --ice: #e9f0ed;
  --paper: #f7f9f6;
  --white: #ffffff;
  --ember: #e45a35;
  --ember-dark: #bd4225;
  --ember-soft: #fbe9e3;
  --success: #3f765b;
  --danger: #9f3e34;
  --muted: #68736e;
  --line: #d9e1dd;
  --hero-copy: #c5d0cb;
  --hero-line: #52625b;
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 76px; /* barra fixa do celular */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 7.6vw, 3.4rem); line-height: 1; }
h3 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-dark);
}
.dark .eyebrow { color: var(--ember); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.dark .lead { color: var(--hero-copy); }
em.ember { font-style: normal; color: var(--ember); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ember); color: var(--white); box-shadow: 0 10px 24px rgba(228, 90, 53, .28); }
.btn-primary:hover { background: var(--ember-dark); }
.btn-ghost { border-color: var(--hero-line); color: var(--white); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--hero-copy); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(24, 32, 29, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ember); color: var(--white);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 500; font-size: .58rem; letter-spacing: .2em; color: var(--hero-copy); margin-top: 3px; text-transform: uppercase; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--hero-copy); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--white); }
.topbar .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.topbar .btn .long { display: none; }

/* ---------- hero ---------- */
.dark { background: var(--hero); color: var(--white); }
.hero { position: relative; overflow: hidden; padding: 44px 0 0; }
.hero::before { /* o mesmo riscado diagonal do cabeçalho das telas do sistema */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.028) 22px 23px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero h1 { margin: 16px 0 20px; }
.hero .lead { font-size: 1.12rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--hero-copy); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

.hero-visual { position: relative; min-height: 480px; }
.hero-visual .browser { display: none; }
.hero-visual .phone { margin: 0 auto; width: min(280px, 78%); position: relative; z-index: 2; }
.hero-visual .float-card {
  position: absolute; z-index: 3; left: 0; bottom: 36px; width: min(300px, 74%);
  transform: rotate(-2deg);
}
.hero-bottom-line { height: 4px; background: linear-gradient(90deg, var(--ember), transparent 70%); margin-top: 48px; }

/* molduras */
.phone {
  border-radius: 36px; padding: 9px; background: #0c110f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px rgba(0,0,0,.45);
}
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 412 / 860; object-fit: cover; object-position: top; background: var(--paper); }
.light .phone { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px rgba(24,32,29,.22); }
.browser {
  border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.5);
}
.browser-bar { height: 30px; background: #232d29; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3f4b46; }
.browser-bar b { margin-left: 12px; height: 16px; flex: 1; max-width: 300px; border-radius: 5px; background: #2f3a35; }
.light .browser { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 70px rgba(24,32,29,.2); }
.shot-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(24,32,29,.08), 0 24px 50px rgba(24,32,29,.18);
}
.shot-tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 6px; margin-bottom: 10px;
}
.shot-tag.ok { background: #e3efe8; color: var(--success); }
.shot-tag.bad { background: var(--ember-soft); color: var(--danger); }

/* ---------- seções ---------- */
section { scroll-margin-top: 70px; }
.block { padding: 72px 0; }
.block-head { display: grid; gap: 14px; margin-bottom: 40px; }

/* dores */
.pains { display: grid; gap: 14px; }
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.pain .n { font-family: var(--mono); font-size: .8rem; color: var(--ember-dark); font-weight: 600; }
.pain h3 { margin: 8px 0 8px; }
.pain p { color: var(--muted); }

/* origem */
.origin { background: var(--charcoal); color: var(--white); }
.origin-grid { display: grid; gap: 28px; align-items: center; }
.origin blockquote {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 6.4vw, 2.7rem);
  line-height: 1.05; letter-spacing: -0.015em;
}
.origin p { color: var(--hero-copy); font-size: 1.05rem; max-width: 58ch; }
.origin p + p { margin-top: 14px; }
.origin-list { display: grid; gap: 10px; margin-top: 8px; }
.origin-list div {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); color: var(--ice);
}
.origin-list s { color: #95a39d; text-decoration-color: var(--ember); text-decoration-thickness: 2px; }
.origin-list b { font-family: var(--mono); color: var(--ember); font-weight: 600; font-size: .8rem; flex: none; }

/* módulos */
.module { padding: 72px 0; border-top: 1px solid var(--line); }
.module:nth-of-type(even) { background: var(--white); }
.module-grid { display: grid; gap: 36px; align-items: center; }
.module-num { font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--ember-dark); text-transform: uppercase; }
.module h2 { margin: 12px 0 16px; }
.module .lead { margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px;
  background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks b { font-weight: 700; }
.visual-pair { display: grid; gap: 16px; position: relative; }
.visual-pair figure, .visual-single figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.phones .phone { border-radius: 26px; padding: 6px; }
.phones .phone img { border-radius: 21px; }
.phones .phone:nth-child(2) { margin-top: 34px; }
.minor {
  margin-top: 26px; padding: 18px 20px; border-radius: 12px; background: var(--ice); border-left: 4px solid var(--success);
}
.minor h3 { font-size: 1.15rem; margin-bottom: 6px; }
.minor p { color: var(--steel); font-size: .96rem; }

/* PWA */
.pwa { overflow: hidden; }
.pwa-grid { display: grid; gap: 40px; align-items: center; }
.pwa-phones { display: flex; gap: 14px; justify-content: center; }
.pwa-phones .phone { width: 46%; max-width: 230px; border-radius: 28px; padding: 7px; }
.pwa-phones .phone img { border-radius: 22px; }
.pwa-phones .phone:nth-child(2) { margin-top: 40px; }
.pwa-phones .phone:nth-child(3) { display: none; }
.pwa .checks li { color: var(--ice); }

/* modelo comercial */
.deal-grid { display: grid; gap: 14px; }
.deal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 10px; align-content: start;
}
.deal .big { font-family: var(--display); font-weight: 800; font-size: 2.7rem; line-height: 1; color: var(--ember); letter-spacing: -0.02em; }
.deal h3 { font-size: 1.3rem; }
.deal p { color: var(--muted); font-size: .98rem; }
.deal.feature { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.deal.feature p { color: var(--hero-copy); }
.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 36px; list-style: none; padding: 0; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 18px; border-radius: 12px; border: 1px dashed #bfcac5;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--mono); font-weight: 600; color: var(--ember-dark);
  border: 1px solid var(--ember); border-radius: 8px; height: 40px; display: grid; place-items: center;
}
.steps b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .96rem; }
.price-note { margin-top: 22px; font-size: .98rem; color: var(--steel); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--ember-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* CTA final */
.final { text-align: left; padding: 80px 0; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px);
}
.final .wrap { position: relative; }
.final h2 { font-size: clamp(2.3rem, 9vw, 4.4rem); max-width: 16ch; }
.final .lead { margin: 18px 0 30px; }
.final .hero-ctas { margin-top: 0; }

.final-grid { display: grid; gap: 32px; align-items: center; }
.final-mark { display: none; color: var(--ember); opacity: .9; justify-self: center; width: min(340px, 100%); }
.final-mark svg { width: 100%; height: auto; }

/* rodapé */
footer { background: var(--charcoal); color: var(--hero-copy); padding: 36px 0 40px; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.07); }
footer .wrap { display: grid; gap: 18px; }
footer .brand-name { font-size: 1.2rem; }
footer .by { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
footer .by strong { color: var(--white); font-weight: 600; }
footer a { color: var(--white); }
footer small { display: block; color: #8e9c96; font-size: .8rem; }

/* barra fixa do celular */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(24, 32, 29, .96); border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-cta .btn { width: 100%; }

/* ---------- telas maiores ---------- */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .pains { grid-template-columns: 1fr 1fr; }
  .deal-grid { grid-template-columns: 1fr 1fr; }
  .pwa-phones .phone { width: 31%; }
  .pwa-phones .phone:nth-child(3) { display: block; }
  .topbar .btn .long { display: inline; }
  .topbar .btn .short { display: none; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; font-size: 17px; }
  .mobile-cta { display: none; }
  .nav { display: flex; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; align-items: center; gap: 48px; }
  .hero-visual { min-height: 560px; }
  .hero-visual .browser { display: block; position: absolute; left: 4%; top: 30px; width: 118%; }
  .hero-visual .phone { position: absolute; right: 2%; top: 110px; width: 230px; margin: 0; }
  .hero-visual .float-card { left: 2%; bottom: 10px; width: 320px; }
  .hero .lead { max-width: 44ch; }
  .hero-bottom-line { margin-top: 64px; }
  .block, .module { padding: 110px 0; }
  .block-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 52px; }
  .pains { grid-template-columns: repeat(4, 1fr); }
  .pain { padding: 26px 22px 30px; }
  .origin-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .module-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .module.flip .module-copy { order: 2; }
  .visual-pair.overlap { display: block; min-height: 560px; }
  .visual-pair.overlap figure:first-child { width: 74%; }
  .visual-pair.overlap figure:last-child { position: absolute; right: 0; bottom: 0; width: 64%; }
  .visual-pair.overlap.tall { min-height: 640px; }
  .visual-pair.overlap.tall figure:last-child { top: 250px; bottom: auto; }
  .final-grid { grid-template-columns: 1.4fr 1fr; }
  .final-mark { display: block; }
  .pwa-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .deal-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1280px) {
  .hero-visual .browser { width: 124%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
