/* Ferraz Seguros – LP e-book "7 erros no seguro de cargas"
   Estrutura inspirada no playbook da Full Sales System (hero escuro, títulos pesados em caixa alta,
   faixa de rolagem, placar, índice, FAQ, modal). Cores e fonte: identidade do site ferrazseg.com.br. */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #061226;
  --bg-2: #0a1c38;
  --surface: #0d2347;
  --line: rgba(107, 175, 255, .18);
  --texto: #e8eefb;
  --texto-2: #a9b8d4;
  --azul: #003d82;
  --azul-botao: #0654b2;
  --azul-claro: #6bafff;
  --laranja: #f66300;
  --laranja-hover: #ff7a1f;
  --erro: #ff8a8a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--texto); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--azul-claro); }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.01em; }
em { font-style: normal; color: var(--azul-claro); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.micro { margin: 14px 0 0; font-size: .875rem; color: var(--texto-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: .9375rem; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 18px 32px; border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn--cta { background: var(--laranja); box-shadow: 0 0 0 0 rgba(246, 99, 0, .5), 0 10px 30px rgba(246, 99, 0, .35); }
.btn--cta:hover { background: var(--laranja-hover); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(246, 99, 0, .5); }
.btn--sm { padding: 12px 22px; font-size: .8125rem; }
.btn--lg { padding: 22px 42px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--on-accent { background: #fff; color: var(--azul); box-shadow: 0 10px 30px rgba(0, 20, 60, .35); }
.btn--on-accent:hover { background: #fff; color: var(--azul-botao); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, .linklike:focus-visible, .modal__close:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 18, 38, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.site-header__logo img { display: block; height: 28px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .9375rem; opacity: .85; }
.site-nav a:hover { opacity: 1; color: var(--azul-claro); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 80% 40%, rgba(6, 84, 178, .5), transparent 70%),
    linear-gradient(90deg, var(--bg) 25%, rgba(6, 18, 38, .78) 100%),
    url("../images/bg-intro.jpg") center / cover no-repeat;
  opacity: .95;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.pill-outline {
  display: inline-block; margin-bottom: 26px; padding: 10px 22px; border: 1px solid var(--azul-claro); border-radius: 999px;
  color: var(--azul-claro); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
h1 { font-size: 3rem; line-height: 1.02; text-transform: uppercase; margin-bottom: 26px; }
.hero__lead { font-size: 1.125rem; color: var(--texto-2); max-width: 36em; margin-bottom: 32px; }
.hero__lead strong { color: #fff; }
.hero__micro { margin: 14px 0 0; font-size: .875rem; color: var(--texto-2); }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 28px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--texto-2); }
.hero__proof strong { color: #fff; font-weight: 800; }

.hero__visual { display: flex; justify-content: center; }
.book { position: relative; width: min(100%, 300px); }
.book::before { content: ""; position: absolute; inset: 8% -18%; background: radial-gradient(closest-side, rgba(40, 140, 255, .55), transparent 72%); filter: blur(30px); z-index: 0; }
.book img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform: rotate(3deg); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.badge-free {
  z-index: 2; position: absolute; top: 40px; right: -34px; padding: 12px 24px; border-radius: 999px; transform: rotate(8deg);
  background: var(--laranja); color: #fff; font-weight: 900; font-size: .9375rem; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(246, 99, 0, .55);
}

/* ---------- Faixa de rolagem ---------- */
.ticker { overflow: hidden; background: var(--bg-2); border-block: 1px solid var(--line); padding: 18px 0; }
.ticker__track { display: flex; gap: 28px; width: max-content; white-space: nowrap; animation: scroll 40s linear infinite; font-weight: 800; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); }
.ticker__track i { font-style: normal; color: var(--azul-claro); font-size: .6rem; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.eyebrow { margin: 0 0 16px; font-size: .75rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--azul-claro); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.06; text-transform: uppercase; margin-bottom: 20px; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 800; }
.section__lead { font-size: 1.0625rem; color: var(--texto-2); }
.section__lead--left { max-width: 34em; }

.chapters { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.chapter { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 56px; transition: transform .2s, border-color .2s; }
.chapter:hover { transform: translateY(-4px); border-color: var(--azul-claro); }
.chapter__num { display: block; font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--azul-claro); margin-bottom: 18px; }
.chapter h3 { margin-bottom: 10px; text-transform: uppercase; font-size: 1rem; letter-spacing: .01em; }
.chapter p { margin: 0; color: var(--texto-2); font-size: .9688rem; line-height: 1.55; }
.chapter__arrow { position: absolute; right: 26px; bottom: 20px; font-size: 1.5rem; color: var(--azul-claro); transition: transform .2s; }
.chapter:hover .chapter__arrow { transform: translateX(6px); }
.chapter--accent { grid-column: 1 / -1; background: var(--azul-botao); border-color: var(--azul-botao); display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; padding-bottom: 30px; }
.chapter--accent .chapter__num { grid-row: span 2; margin: 0; color: #fff; font-size: 3.5rem; }
.chapter--accent p { color: rgba(255,255,255,.88); max-width: 50em; }
.chapter--accent .chapter__arrow { color: #fff; bottom: 50%; transform: translateY(50%); }
.chapter--accent:hover .chapter__arrow { transform: translate(6px, 50%); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col--center { align-items: center; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 18px 22px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); border-radius: 8px;
  background: var(--azul-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003d82' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--azul-claro); border-radius: 14px; padding: 28px 24px; }
.card h3 { margin-bottom: 10px; text-transform: uppercase; font-size: 1rem; }
.card p { margin: 0; color: var(--texto-2); font-size: .9688rem; line-height: 1.55; }

.video { max-width: 920px; margin: 0 auto; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(6,84,178,.3); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; line-height: 1; color: var(--azul-claro); font-weight: 400; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--texto-2); max-width: 46em; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--azul-botao); padding: 96px 0; }
.cta-final h2 { color: #fff; max-width: 14em; margin: 0 auto 16px; }
.cta-final em { color: #cfe5ff; }
.cta-final p { max-width: 34em; margin: 0 auto 32px; color: rgba(255,255,255,.9); font-size: 1.125rem; }

/* ---------- Rodapé ---------- */
.footer { background: #030b17; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__addr { margin: 16px 0 0; font-size: .875rem; color: var(--texto-2); }
.footer__title { font-weight: 800; margin-bottom: 14px; text-transform: uppercase; font-size: .8125rem; letter-spacing: .14em; }
.footer__line { margin: 0 0 8px; font-size: .9375rem; }
.footer a { color: var(--texto); text-decoration: none; }
.footer a:hover { color: var(--azul-claro); }
.social { display: flex; gap: 12px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.social img { width: 18px; height: 18px; object-fit: contain; }
.social a[aria-label="Facebook"] img { width: auto; height: 17px; }
.social a:hover { background: rgba(255,255,255,.18); }
.footer__legal { padding-top: 24px; font-size: .75rem; line-height: 1.6; color: rgba(255,255,255,.5); }
.footer__legal p { margin-bottom: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--azul-claro); text-decoration: underline; cursor: pointer; }
.linklike--light { color: rgba(255,255,255,.8); }

/* ---------- Modais ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--texto); max-width: 520px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(2, 8, 20, .82); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__panel { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px 30px; max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px rgba(6,84,178,.25); }
.modal__panel--text { margin: 0; }
.modal__panel--text h2 { font-size: 1.5rem; }
.modal__panel--text p { color: var(--texto-2); font-size: .9688rem; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: rgba(255,255,255,.18); }
.modal__head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; padding-right: 32px; }
.pill { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: rgba(107,175,255,.15); color: var(--azul-claro); font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal__head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.modal__sub { margin: 0; font-size: .9rem; color: var(--texto-2); }

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .875rem; color: var(--texto); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 50px; padding: 0 16px; font-family: var(--font); font-size: 1rem; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(107,175,255,.3); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: #6f82a6; font-weight: 400; }
input:focus { outline: none; border-color: var(--azul-claro); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(107,175,255,.25); }
input.is-invalid { border-color: var(--erro); }
input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #12305f inset; }
.field__error { display: block; margin-top: 4px; font-size: .8125rem; color: var(--erro); font-weight: 500; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .8125rem; line-height: 1.5; color: var(--texto-2); margin: 6px 0; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--azul-botao); }
.recaptcha { margin: 14px 0 16px; min-height: 78px; }
.form-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; background: rgba(255,90,90,.12); color: #ffb3b3; border: 1px solid rgba(255,120,120,.4); }
.modal .btn--block { padding: 20px 24px; font-size: .9688rem; }
.secure { margin: 14px 0 0; text-align: center; font-size: .8125rem; color: var(--texto-2); }

.success { text-align: center; padding: 8px 0; }
.success:focus { outline: none; }
.success__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(60, 200, 120, .15); color: #4be08e; margin-bottom: 16px; }
.success h2 { font-size: 1.75rem; }
.success p { color: var(--texto-2); }
.success .btn { margin: 8px 0 22px; }
.success__next { font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }
.success__next a { font-weight: 700; }
.modal--form.is-done .modal__head { display: none; }

body.modal-open { overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 48px; }
  .book { width: min(52%, 230px); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  .container { padding: 0 20px; }
  .site-header__in { height: 62px; }
  .site-header__logo img { height: 24px; }
  .hero__grid { padding-top: 32px; gap: 36px; }
  .hero__visual { padding: 0 14px; }
  .book { width: min(84%, 320px); aspect-ratio: 802 / 940; overflow: hidden; }
  .book img { transform: none; }
  .book::before { inset: 4% 0; }
  .badge-free { right: 8px; }
  .badge-free { right: -14px; top: 16px; padding: 9px 18px; font-size: .8125rem; }
  .hero .btn--lg { width: 100%; padding: 22px 20px; }
  .hero__proof { gap: 8px 24px; }
  .cards-4, .chapters, .footer__grid { grid-template-columns: 1fr; }
  .chapter--accent { grid-template-columns: 1fr; }
  .chapter--accent .chapter__num { grid-row: auto; margin-bottom: 12px; }
  .chapter--accent .chapter__arrow { bottom: 20px; transform: none; }
  .chapter--accent:hover .chapter__arrow { transform: translateX(6px); }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .center .btn--lg, .cta-final .btn--lg { width: 100%; padding: 22px 16px; }
  .faq summary { font-size: .9375rem; padding: 20px 0; }
  .cta-final { padding: 72px 0; }
  .modal { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; }
  .modal__panel { border-radius: 24px 24px 0 0; padding: 28px 20px 24px; max-height: 94dvh; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal__head { gap: 14px; }
}
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
  .recaptcha { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  * { transition: none !important; }
  .modal[open] { animation: none; }
}
