/* =========================================================
   Prev4U — folha de estilos
   Paleta: navy #1e386d (marca) · laranja #f19226 (marca)
   ========================================================= */

:root {
  --navy: #1e386d;
  --navy-900: #0f1f42;
  --navy-800: #16295a;
  --navy-100: #e8edf7;
  --navy-50: #f3f6fb;
  --orange: #f19226;
  --orange-600: #d97c12;
  --orange-100: #fdeeda;
  --ink: #14213d;
  --ink-2: #3f4a63;
  --muted: #6b7590;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .18);
  --shadow-lg: 0 30px 60px -24px rgba(20, 33, 61, .28);
  --container: 1180px;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--navy-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tint { background: var(--bg-2); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #dbe3f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--ink-2); }
.section--navy .section-head p { color: #c5d0ea; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.section--navy .eyebrow { color: var(--orange); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(241, 146, 38, .7); }
.btn--primary:hover { background: var(--orange-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb959; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 33, 61, .3); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.header__logo img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.nav .btn { padding: .65rem 1.15rem; font-size: .92rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); position: relative; display: block; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); transition: transform .2s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, var(--orange-100), transparent 60%), linear-gradient(180deg, #fff, var(--navy-50)); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__meta li { display: flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 18px; height: 18px; color: var(--orange); }
.hero__visual { position: relative; }
.hero__photo { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; object-position: 88% center; width: 100%; }

/* Cartão de chat (mock WhatsApp) */
.chat {
  position: absolute; left: -8%; bottom: -8%; width: min(340px, 82%);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
}
.chat__head { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; background: #075e54; color: #fff; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; }
.chat__head strong { display: block; font-size: .9rem; line-height: 1.1; }
.chat__head small { font-size: .72rem; opacity: .85; }
.chat__body { padding: .8rem; background: #ece5dd; display: grid; gap: .5rem; }
.chat__msg { max-width: 88%; padding: .55rem .7rem; border-radius: 12px; font-size: .8rem; line-height: 1.4; background: #fff; color: #222; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); opacity: 0; transform: translateY(6px); animation: chatIn .5s ease forwards; }
.chat__msg--out { background: #dcf8c6; justify-self: end; border-bottom-right-radius: 4px; }
.chat__msg--in { border-bottom-left-radius: 4px; }
.chat__msg:nth-child(1) { animation-delay: .3s; }
.chat__msg:nth-child(2) { animation-delay: 1.1s; }
.chat__msg:nth-child(3) { animation-delay: 1.9s; }
.chat__msg:nth-child(4) { animation-delay: 2.7s; }
@keyframes chatIn { to { opacity: 1; transform: none; } }

/* Faixa de clientes */
.clients { padding-block: 2.2rem; border-block: 1px solid var(--line); background: #fff; }
.clients__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.9rem; }
.clients__list li { font-weight: 800; font-size: 1.05rem; color: #9aa3b8; letter-spacing: -.01em; transition: color .2s; }
.clients__list li:hover { color: var(--navy); }

/* Cards genéricos */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 1px 0 rgba(20, 33, 61, .02); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy); margin-bottom: 1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card--photo .card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card--photo .card__body p { flex: 1; }
.card__link { font-weight: 700; color: var(--orange-600); display: inline-flex; align-items: center; gap: .35rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(3px); }
.section--navy .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #dbe3f5; }
.section--navy .card p { color: #c5d0ea; }
.section--navy .card__icon { background: rgba(255, 255, 255, .1); color: var(--orange); }

/* Bloco "problema" */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.problem blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.3; color: var(--navy-900); letter-spacing: -.01em; border-left: 4px solid var(--orange); padding-left: 1.4rem; }
.problem blockquote footer { font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 1rem; }
.questions { display: grid; gap: .7rem; }
.questions li { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-2); }
.questions li span { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }

/* Split (texto + imagem) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { margin-bottom: 1rem; }
.split p { color: var(--ink-2); }
.split .btn { margin-top: .6rem; }
.checks { display: grid; gap: .65rem; margin: 1.2rem 0 1.4rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 2px; }
.section--navy .checks li { color: #dbe3f5; }

/* Camadas do assistente */
.layers { counter-reset: layer; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.layer { counter-increment: layer; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.4rem 1.3rem; position: relative; }
.layer::before { content: "0" counter(layer); font-weight: 800; font-size: 2rem; color: var(--orange); line-height: 1; display: block; margin-bottom: .8rem; letter-spacing: -.03em; }
.layer h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.layer p { font-size: .92rem; color: #c5d0ea; margin: 0; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.5rem; }
.rules .card ul { display: grid; gap: .5rem; margin-top: .8rem; }
.rules .card li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.rules .card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; margin-top: .55em; }

/* Fases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.phase { position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.phase__tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 800; font-size: .78rem; letter-spacing: .06em; margin-bottom: .9rem; }
.phase h3 { margin-bottom: .5rem; }
.phase p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* Passos (cashback) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.step { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: .9rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* Público-alvo */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.audience .card h3 { display: flex; align-items: center; gap: .6rem; }
.audience .card h3 span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 6px; background: var(--orange-100); color: var(--orange-600); }
.audience .card ul { margin-top: .9rem; display: grid; gap: .45rem; color: var(--ink-2); font-size: .95rem; }
.audience .card li { padding-left: 1rem; position: relative; }
.audience .card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }

/* Depoimentos */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem; }
.testimonial__quote { font-size: 2.4rem; line-height: 1; color: var(--orange); font-weight: 800; font-family: Georgia, serif; }
.testimonial p { color: var(--ink-2); flex: 1; margin: 0; font-size: .98rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy-900); font-size: .92rem; }
.testimonial cite small { display: block; font-weight: 600; color: var(--muted); }

/* Artigos */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.article { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.article__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.article__meta { font-size: .8rem; color: var(--muted); font-weight: 600; }
.article h3 { font-size: 1.1rem; }
.article p { color: var(--ink-2); font-size: .93rem; margin: 0; flex: 1; }
.author { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.2rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.author strong { display: block; color: var(--navy-900); font-size: 1.05rem; }
.author span { color: var(--muted); font-size: .92rem; }
.author .btn { margin-left: auto; }

/* Fundador */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder__photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-100); }
.founder__photo img { width: 100%; aspect-ratio: 263 / 305; object-fit: cover; }
.founder h2 { margin-bottom: .3rem; }
.founder__role { color: var(--orange-600); font-weight: 700; margin-bottom: 1.2rem; }
.founder p { color: var(--ink-2); }

/* CTA final */
.cta { background: linear-gradient(135deg, var(--orange), #f6a94f); color: #fff; border-radius: 28px; padding: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; box-shadow: 0 30px 60px -30px rgba(241, 146, 38, .7); }
.cta h2 { color: #fff; margin-bottom: .6rem; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact .card a { font-weight: 700; color: var(--navy); }
.contact .card a:hover { text-decoration: underline; }
.contact address { font-style: normal; color: var(--ink-2); }

/* Footer */
.footer { background: var(--navy-900); color: #b9c4e0; padding-block: 3.5rem 2rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { display: grid; gap: .5rem; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; color: #8f9cbf; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* Botão flutuante WhatsApp */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat__msg { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsivo */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: repeat(2, 1fr); }
  .layer:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 240px 1fr; }
}
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1rem 1rem; box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav .btn { margin-top: .8rem; border-bottom: 0; }
  .nav-toggle { display: flex; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 600px; margin-inline: auto; width: 100%; }
  .chat { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -2.5rem; margin-inline: auto; max-width: 440px; }
}
@media (max-width: 860px) {
  .problem, .split, .split--reverse, .rules, .contact, .articles, .cta { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .grid--3, .phases, .steps, .audience, .testimonials { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 280px; }
  .author { flex-wrap: wrap; }
  .author .btn { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .layer:last-child:nth-child(odd) { grid-column: auto; }
  .footer ul { gap: .75rem; }
  .wa-float { width: 50px; height: 50px; right: .9rem; bottom: .9rem; }
  .footer { padding-bottom: 4.5rem; }
  .wa-float svg { width: 25px; height: 25px; }
  .section { padding-block: 3.25rem; }
  .hero__grid { padding-block: 2.5rem 3rem; }
  .testimonial, .card, .phase, .step { padding: 1.3rem; }
  .grid--2, .grid--4, .layers { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article img { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
