/* ============================================================================
   Certifica+ · Seguro Auto e Moto — Landing page styles
   Built on the Certifica+ design tokens (colors_and_type.css).
   Mobile-first; desktop/tablet via min-width breakpoints.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--branco);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 9vw, 104px); }
.center { text-align: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 16px; font-weight: var(--w-semibold); line-height: 1;
  border: 0; cursor: pointer; border-radius: var(--r-pill);
  padding: 17px 32px; transition: background var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  text-align: center; white-space: nowrap;
}
.btn-lg { padding: 19px 40px; font-size: 17px; }
.btn-primary { background: var(--laranja); color: var(--fg-on-laranja); }
.btn-primary:hover { background: var(--laranja-escuro); }
.btn-primary:active { transform: scale(0.985); }
.btn-light { background: var(--branco); color: var(--laranja); }
.btn-light:hover { background: var(--areia); }
.btn-dark { background: var(--preto); color: #fff; }
.btn-dark:hover { background: var(--grafite); }
.btn .plus { font-size: 19px; line-height: 0; margin-top: -2px; }
.btn-block { display: flex; width: 100%; }

/* ---- Eyebrow / badge pill ----------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: var(--w-semibold); letter-spacing: 0.01em;
  color: var(--laranja); background: rgba(255,85,0,0.10);
  padding: 8px 18px; border-radius: var(--r-pill);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--laranja); }

/* ============================================================================
   HEADER
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand-logo { height: 26px; width: auto; }
.header-cta { padding: 11px 22px; font-size: 14px; }
.header-trust { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); }
.header-trust svg { width: 17px; height: 17px; color: var(--laranja); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { background: var(--preto); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { padding-block: clamp(40px, 8vw, 76px); position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: var(--w-medium); color: #fff;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,0.32); background: transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; }
.chip:hover, .chip.is-active { background: var(--laranja); border-color: var(--laranja); }
.hero h1 {
  font-size: clamp(34px, 8.4vw, 60px); font-weight: var(--w-semibold);
  line-height: 1.03; letter-spacing: var(--ls-tight); margin: 0 0 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--laranja); }
.hero-sub {
  font-size: clamp(17px, 4.5vw, 21px); font-weight: var(--w-regular);
  line-height: var(--lh-relaxed); color: var(--fg-on-dark-2); margin: 0 0 30px;
  max-width: 33ch;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-on-dark-2); }
.hero-note svg { width: 16px; height: 16px; color: var(--laranja); }

.hero-visual { position: relative; }
.hero-visual image-slot {
  width: 100%; height: 300px; display: block;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual .spark {
  position: absolute; top: -14px; right: -6px; width: 46px; height: 46px;
  color: var(--laranja); z-index: 3;
}
.hero-visual .plus-badge {
  position: absolute; bottom: -16px; left: -10px;
  width: 64px; height: 64px; background: var(--laranja); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .plus-badge img { width: 30px; }

/* ============================================================================
   BENEFITS (checklist)
   ============================================================================ */
.benefits { background: var(--areia); }
.benefits .head { text-align: center; margin-bottom: 38px; }
.benefits h2 {
  font-size: clamp(26px, 6vw, 38px); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight); line-height: 1.1; margin: 16px 0 0; text-wrap: balance;
}
.check-list { display: grid; gap: 18px; max-width: 640px; margin: 0 auto; }
.check-item { display: flex; gap: 16px; align-items: flex-start; }
.check-item .ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  background: var(--laranja); color: #fff; display: flex; align-items: center;
  justify-content: center; margin-top: 2px;
}
.check-item .ic svg { width: 17px; height: 17px; }
.check-item p { margin: 0; font-size: clamp(17px, 4.4vw, 20px); font-weight: var(--w-medium); color: var(--fg1); line-height: 1.4; }

/* ============================================================================
   COMERCIAL (cotação personalizada)
   ============================================================================ */
.comercial { background: var(--branco); text-align: center; }
.comercial .kicker { font-size: 15px; font-weight: var(--w-medium); color: var(--fg2); margin: 0 0 10px; }
.comercial .big {
  font-size: clamp(30px, 8vw, 52px); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight); line-height: 1.05; color: var(--laranja);
  margin: 0 auto 14px; max-width: 16ch; text-wrap: balance;
}
.comercial .sub { font-size: clamp(16px, 4.4vw, 19px); color: var(--fg2); margin: 0 auto 30px; max-width: 38ch; line-height: var(--lh-relaxed); }

/* ============================================================================
   INCLUSO (coverage cards)
   ============================================================================ */
.incluso { background: var(--cinza); }
.incluso h2 {
  font-size: clamp(28px, 6.6vw, 42px); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight); text-align: center; margin: 0 0 8px; text-wrap: balance;
}
.incluso .lede { text-align: center; color: var(--fg2); font-size: 16px; max-width: 40ch; margin: 0 auto 40px; }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cov-card {
  background: var(--branco); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; text-align: center;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cov-card:hover { border-color: var(--laranja); transform: translateY(-3px); }
.cov-card .ic {
  width: 56px; height: 56px; border-radius: var(--r-md); background: var(--areia);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--preto);
}
.cov-card .ic svg { width: 26px; height: 26px; }
.cov-card h3 { font-size: 19px; font-weight: var(--w-semibold); margin: 0 0 7px; }
.cov-card p { font-size: 14.5px; color: var(--fg2); margin: 0; line-height: 1.5; }
.incluso .foot { text-align: center; margin-top: 34px; }
.incluso .foot .legal { font-size: 13px; color: var(--fg3); max-width: 50ch; margin: 0 auto 22px; line-height: 1.55; }
.incluso .foot .legal a { color: var(--fg2); text-decoration: underline; }

/* ============================================================================
   TRUST (institutional — replaces social proof)
   ============================================================================ */
.trust { background: var(--laranja); color: #fff; }
.trust h2 {
  font-size: clamp(27px, 6.4vw, 42px); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight); text-align: center; margin: 0 0 10px; text-wrap: balance;
}
.trust .lede { text-align: center; color: rgba(255,255,255,0.9); font-size: 17px; max-width: 42ch; margin: 0 auto 42px; line-height: var(--lh-relaxed); }
.trust-grid { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.trust-card {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg); padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-card .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--r-md); background: #fff; color: var(--laranja); display: flex; align-items: center; justify-content: center; }
.trust-card .ic svg { width: 23px; height: 23px; }
.trust-card h3 { font-size: 18px; font-weight: var(--w-semibold); margin: 0 0 5px; }
.trust-card p { font-size: 14.5px; color: rgba(255,255,255,0.88); margin: 0; line-height: 1.5; }
.trust .foot { text-align: center; margin-top: 40px; }

/* ============================================================================
   FORM (online, rápido e fácil)
   ============================================================================ */
.form-sec { background: var(--areia); }
.form-sec .head { text-align: center; margin-bottom: 40px; }
.form-sec h2 { font-size: clamp(28px, 6.6vw, 44px); font-weight: var(--w-semibold); letter-spacing: var(--ls-tight); margin: 14px 0 12px; text-wrap: balance; }
.form-sec .lede { color: var(--fg2); font-size: clamp(16px, 4.4vw, 19px); max-width: 40ch; margin: 0 auto; line-height: var(--lh-relaxed); }

.lead-card {
  background: var(--branco); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 5vw, 40px); max-width: 600px; margin: 0 auto; box-shadow: var(--shadow-md);
}
.veh-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.veh-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: var(--branco); cursor: pointer; color: var(--fg2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.veh-opt svg { width: 30px; height: 30px; }
.veh-opt span { font-size: 16px; font-weight: var(--w-semibold); }
.veh-opt.is-active { border-color: var(--laranja); background: rgba(255,85,0,0.06); color: var(--laranja); }

.field-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: var(--w-semibold); color: var(--fg2); margin-bottom: 7px; }
.field input, .field select {
  font-family: inherit; font-size: 16px; color: var(--fg1);
  padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: #fff; outline: none; width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder { color: var(--fg3); }
.field input:focus, .field select:focus { border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(255,85,0,0.14); }
.field.has-error input, .field.has-error select { border-color: var(--erro); }
.field .err { font-size: 12.5px; color: var(--erro); margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.form-micro { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--fg3); margin: 18px 0 0; line-height: 1.45; }
.form-micro svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--fg3); }
.form-success {
  display: none; text-align: center; padding: 20px 8px;
}
.form-success.show { display: block; }
.form-success .ok-ic { width: 64px; height: 64px; border-radius: 999px; background: var(--verde-tint); color: var(--verde); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .ok-ic svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 24px; font-weight: var(--w-semibold); margin: 0 0 8px; }
.form-success p { color: var(--fg2); margin: 0; font-size: 16px; }

/* ============================================================================
   DEPOIMENTOS (client testimonials — placeholder-ready)
   ============================================================================ */
.depo { background: var(--cinza); }
.depo .head { text-align: center; margin-bottom: 40px; }
.depo h2 { font-size: clamp(28px, 6.6vw, 42px); font-weight: var(--w-semibold); letter-spacing: var(--ls-tight); margin: 14px 0 12px; text-wrap: balance; }
.depo .lede { color: var(--fg2); font-size: 16px; max-width: 46ch; margin: 0 auto; line-height: var(--lh-relaxed); }
.depo-grid { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.depo-card {
  background: var(--branco); border: 1px dashed var(--border-forte); border-radius: var(--r-lg);
  padding: 26px 24px; margin: 0; display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.depo-card .stars { color: var(--laranja); font-size: 17px; letter-spacing: 2px; }
.depo-quote { margin: 0; font-size: 16px; line-height: var(--lh-relaxed); color: var(--fg2); font-style: italic; flex: 1; }
.depo-author { display: flex; align-items: center; gap: 12px; margin: 0; }
.depo-author image-slot { flex: 0 0 auto; border: 1px solid var(--border); }
.depo-author > div { display: flex; flex-direction: column; line-height: 1.3; }
.depo-name { font-size: 15px; font-weight: var(--w-semibold); color: var(--fg1); }
.depo-meta { font-size: 13px; color: var(--fg3); }
.depo .editar-hint {
  display: inline-flex; align-items: center; gap: 8px; margin: 36px auto 0; width: fit-content;
  font-size: 13px; color: var(--fg3); background: var(--branco); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: var(--r-pill);
}
.depo .editar-hint svg { width: 15px; height: 15px; }

/* ============================================================================
   PROCESSO (online, rápido e fácil — leads to chatbot)
   ============================================================================ */
.processo { background: var(--areia); }
.processo .head { text-align: center; margin-bottom: 44px; }
.processo h2 { font-size: clamp(28px, 6.6vw, 44px); font-weight: var(--w-semibold); letter-spacing: var(--ls-tight); margin: 14px 0 12px; text-wrap: balance; }
.processo .lede { color: var(--fg2); font-size: clamp(16px, 4.4vw, 19px); max-width: 42ch; margin: 0 auto; line-height: var(--lh-relaxed); }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 620px; margin: 0 auto 40px; }
.step {
  background: var(--branco); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; text-align: center;
}
.step-n {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; background: var(--laranja); color: #fff; font-size: 19px; font-weight: var(--w-bold);
  margin: 0 auto 16px;
}
.step h3 { font-size: 19px; font-weight: var(--w-semibold); margin: 0 0 6px; }
.step p { font-size: 14.5px; color: var(--fg2); margin: 0; line-height: 1.5; }
.processo-micro { display: inline-flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--fg3); margin: 18px auto 0; line-height: 1.45; }
.processo-micro svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--fg3); }

/* ---- Chatbot toast ------------------------------------------------------ */
.chat-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%);
  background: var(--preto); color: #fff; padding: 14px 22px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: var(--w-medium); box-shadow: var(--shadow-lg); z-index: 100;
  transition: transform var(--dur-slow) var(--ease); max-width: 90vw; text-align: center;
}
.chat-toast.show { transform: translate(-50%, 0); }

/* ---- Hero background variants (Tweaks) ---------------------------------- */
.hero.hero--laranja { background: var(--laranja); }
.hero.hero--laranja h1 .accent { color: var(--preto); }
.hero.hero--laranja .plus-badge { background: var(--preto); }
.hero.hero--laranja .spark { color: var(--preto); }
.hero.hero--areia { background: var(--areia); color: var(--fg1); }
.hero.hero--areia h1 { color: var(--fg1); }
.hero.hero--areia .hero-sub, .hero.hero--areia .hero-note { color: var(--fg2); }
.hero.hero--areia .chip { color: var(--fg1); border-color: var(--border-forte); }
.hero.hero--areia .hero-visual image-slot { border-color: var(--border); }

/* ---- Disable entrance animations (Tweaks) ------------------------------- */
body.no-anim .reveal,
body.no-anim .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }


.final-cta { background: var(--preto); color: #fff; text-align: center; }
.final-cta .spark { width: 40px; height: 40px; color: var(--laranja); margin: 0 auto 22px; }
.final-cta h2 {
  font-size: clamp(30px, 7.4vw, 54px); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight); line-height: 1.05; margin: 0 auto 18px; max-width: 18ch; text-wrap: balance;
}
.final-cta h2 .accent { color: var(--laranja); }
.final-cta p { color: var(--fg-on-dark-2); font-size: clamp(16px, 4.4vw, 19px); margin: 0 auto 32px; max-width: 40ch; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--grafite); color: var(--fg-on-dark-2); padding-block: 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; }
.site-footer .logo-foot { height: 24px; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.6; max-width: 60ch; }
.site-footer .legal-line { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---- Scroll reveal ------------------------------------------------------
   Base/resting state is always VISIBLE (opacity 1). The .in class plays a
   one-shot entrance animation — no persistent hiding, so content is safe
   for print, no-JS, and capture contexts. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in:not(.revealed) { animation: reveal-in 0.6s var(--ease); }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================================
   RESPONSIVE — tablet & desktop
   ============================================================================ */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
}
@media (min-width: 700px) {
  .header-trust { display: flex; }
  .hero-visual image-slot { height: 380px; }
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-visual image-slot { height: 460px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .check-list { grid-template-columns: 1fr 1fr; gap: 22px 40px; max-width: none; }
  .depo-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
}
