/* =============================================================================
   Flow Company - LP Transportadoras
   Sistema visual herdado de agenciaflowcompany.com/agentesdeia
   ========================================================================== */

:root {
  --blue: #2563EB;
  --blue-700: #1D4ED8;
  --blue-050: #EEF3FF;
  --orange: #F97316;
  --orange-600: #EA6A0C;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E6EBF1;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
  --shadow-md: 0 24px 60px -28px rgba(15, 23, 42, .22);

  --container: 1140px;
  --font-head: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.5vw, 2.85rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.3rem); line-height: 1.18; }

p { margin: 0; }

.hl-blue { color: var(--blue); }
.hl-orange { color: var(--orange); }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ------------------------------- botoes ---------------------------------- */
.btn {
  --pad-y: 16px;
  --pad-x: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border: 0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(249, 115, 22, .6);
}
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(.99); }
.btn--lg { --pad-y: 18px; --pad-x: 42px; font-size: 1rem; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

/* --------------------------- marca discreta ---------------------------- */
.brandbar {
  padding: clamp(18px, 3vw, 26px) clamp(20px, 5vw, 32px);
  max-width: var(--container);
  margin-inline: auto;
}
.brandbar__logo { height: 32px; width: auto; }

/* -------------------------------- hero -------------------------------- */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, .08), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  display: block;
  margin: 0 0 18px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero__copy h1 { max-width: 19ch; }
.lede {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
}
.cta-block { margin-top: clamp(26px, 4vw, 36px); }
.microcopy { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.microcopy--light { color: rgba(255, 255, 255, .72); }

/* composicao ANTES -> DEPOIS */
.hero__visual { display: flex; justify-content: center; }
.flow {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flow__col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.flow__col--before { background: #FBFCFE; }
.flow__label {
  display: block;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow__col--after .flow__label { color: var(--blue); }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F1F5F9;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}
.flow-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3B74F5, #2563EB);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: 0 12px 26px -14px rgba(37, 99, 235, .55);
}
.flow-tile::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  flex-shrink: 0;
}
.flow__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 2px auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: #94A3B8;
  transform: rotate(90deg);
}

/* ------------------------------ secoes ------------------------------- */
.section { padding: clamp(56px, 10vw, 108px) 0; }
.muda { background: var(--bg-soft); }
.section__title {
  text-align: center;
  max-width: 26ch;
  margin: 0 auto clamp(28px, 5vw, 44px);
}

/* prova visual: mockup de busca no Google (mobile-first) */
.muda__proof {
  margin: 0 auto clamp(32px, 6vw, 52px);
  max-width: 640px;
}
.muda__proof img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.muda__proof figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
}

.cards { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D7E1F5;
}
.card__num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8125rem;
}
.card h3 {
  font-size: 1.1875rem;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ----------------------------- cta final ---------------------------- */
.final__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2E6BF0, #1D4ED8);
  border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(44px, 8vw, 84px) clamp(24px, 6vw, 64px);
  box-shadow: 0 44px 90px -46px rgba(37, 99, 235, .6);
}
.final__inner::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 50%;
  padding-top: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 62%);
  pointer-events: none;
}
.final__inner h2 { color: #fff; margin: 0 auto 16px; max-width: 22ch; }
.final__inner p {
  color: rgba(255, 255, 255, .84);
  max-width: 46ch;
  margin: 0 auto clamp(26px, 4vw, 34px);
  line-height: 1.6;
}
.final .btn--primary { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4); }

/* ------------------------------- footer ---------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.foot .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* --------------------------- reveal anim --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ mobile ============================= */
@media (max-width: 560px) {
  .cta-block .btn,
  .final .btn { width: 100%; }
  .hero__visual { margin-top: 8px; }
  .flow { width: 100%; }
}

/* ============================ desktop ============================= */
@media (min-width: 820px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ============================== MODAL ============================= */
html.lpm-lock { overflow: hidden; }

.lpm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .24s ease;
}
.lpm.is-open { opacity: 1; }
.lpm[hidden] { display: none; }

.lpm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.lpm__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 100px -30px rgba(15, 23, 42, .5);
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  transition: transform .26s cubic-bezier(.2, .7, .2, 1);
}
.lpm.is-open .lpm__dialog { transform: none; }

.lpm__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.lpm__back, .lpm__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  flex-shrink: 0;
}
.lpm__back:hover, .lpm__close:hover { background: #F1F5F9; color: var(--ink); }
.lpm__progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #EDF1F6;
  overflow: hidden;
}
.lpm__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3B74F5, #2563EB);
  transition: width .4s cubic-bezier(.2, .7, .2, 1);
}
.lpm__count {
  min-width: 46px;
  text-align: right;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
}

.lpm__body {
  padding: clamp(22px, 5vw, 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lpm__pane {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.lpm__pane--back { transform: translateX(-24px); }
.lpm__pane.is-in { opacity: 1; transform: none; }

.lpm__q {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  line-height: 1.25;
  margin: 0 0 20px;
}
.lpm__sub { color: var(--muted); margin: 0 0 22px; line-height: 1.55; }
.lpm__sub--tight { margin-bottom: 14px; }

.lpm__field { display: block; margin-bottom: 16px; }
.lpm__label {
  display: block;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.lpm__input {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;   /* >=16px: evita zoom no iOS */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lpm__input::placeholder { color: #9AA7B6; }
.lpm__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.lpm__input.is-err { border-color: #E23D3D; }

.lpm__err {
  margin: 6px 0 0;
  min-height: 1.25em;
  color: #D92D20;
  font-size: .875rem;
}

.lpm__submit {
  width: 100%;
  margin-top: 22px;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.lpm__submit:hover { background: var(--orange-600); transform: translateY(-1px); }
.lpm__submit.is-loading { opacity: .75; cursor: wait; transform: none; }
.lpm__submit.is-revealed {
  animation: lpm-rise .28s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes lpm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lpm__opts { display: grid; gap: 10px; }
.lpm__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.lpm__opt:hover { border-color: var(--blue); background: #F7F9FF; }
.lpm__opt:active { transform: scale(.99); }
.lpm__opt.is-sel {
  border-color: var(--blue);
  background: #F0F5FF;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.lpm__opt-key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #F1F5F9;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease;
}
.lpm__opt:hover .lpm__opt-key,
.lpm__opt.is-sel .lpm__opt-key { background: var(--blue); color: #fff; }

/* sucesso */
.lpm__success { text-align: center; }
.lpm__check {
  color: #16A34A;
  width: 52px;
  margin: 4px auto 16px;
  animation: pop .4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lpm__sub--sep { margin-top: 30px; }
.lpm__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.lpm__wa:hover { filter: brightness(.96); transform: translateY(-1px); }

/* modal no mobile: quase tela cheia, margem confortavel */
@media (max-width: 560px) {
  .lpm { padding: 12px; }
  .lpm__dialog {
    width: 100%;
    height: calc(100dvh - 24px);
    max-height: none;
    border-radius: 18px;
  }
}

/* ================= microinteracoes e destaques ================= */

/* composicao ANTES -> DEPOIS: entra em cascata, o "depois" fecha a cena */
.flow-chip,
.flow__arrow,
.flow-tile {
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}
.hero__visual:not(.is-visible) .flow-chip { opacity: 0; transform: translateX(-10px); }
.hero__visual:not(.is-visible) .flow__arrow { opacity: 0; transform: rotate(90deg) scale(.75); }
.hero__visual:not(.is-visible) .flow-tile { opacity: 0; transform: translateY(14px) scale(.95); }
.hero__visual.is-visible .flow-chip:nth-child(1) { transition-delay: .06s; }
.hero__visual.is-visible .flow-chip:nth-child(2) { transition-delay: .14s; }
.hero__visual.is-visible .flow-chip:nth-child(3) { transition-delay: .22s; }
.hero__visual.is-visible .flow__arrow { transition-delay: .34s; }
.hero__visual.is-visible .flow-tile:nth-child(1) { transition-delay: .46s; }
.hero__visual.is-visible .flow-tile:nth-child(2) { transition-delay: .58s; }
.hero__visual.is-visible .flow-tile:nth-child(3) { transition-delay: .70s; }

/* prova visual (SERP): assenta ao entrar */
.muda__proof img { transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease; }
.muda__proof:not(.is-visible) img {
  transform: scale(.97);
  box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .16);
}

/* CTA final: um brilho passa uma vez quando a faixa entra */
.final__inner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.final__inner.is-visible::after { animation: lp-shine 1.1s ease .35s 1 forwards; }
@keyframes lp-shine {
  0% { left: -60%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* botao primario: leve reflexo ao passar o mouse */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
  z-index: -1;
}
.btn--primary:hover::after { left: 135%; }

/* card: o numero acende no hover */
.card__num { transition: background-color .2s ease, color .2s ease; }
.card:hover .card__num { background: var(--blue); color: #fff; }

/* ---------------------- movimento reduzido ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal,
  .flow-chip,
  .flow-tile,
  .muda__proof img { opacity: 1; transform: none; }
  .flow__arrow { opacity: 1; transform: rotate(90deg); }
  html { scroll-behavior: auto; }
}
