/* Landing pages de produto (Via Permuta e Clube da Permuta).
   Usa os tokens e o cabeçalho/rodapé de styles.css. */

.lp-brandpair {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-brandpair__sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.28);
}

.lp-brandpair .lp-tabulero {
  display: block;
  height: 34px;
  width: auto;
}

.lp-brandpair .brand img { height: 40px; width: auto; }

/* ── Hero ── */
.lp-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  background: var(--black) var(--hero-img) center / cover no-repeat;
  color: var(--white);
  padding: clamp(120px, 14vw, 168px) max(var(--pad), calc((100% - var(--max)) / 2)) clamp(48px, 6vw, 88px);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.86) 0%, rgba(8, 8, 8, 0.6) 38%, rgba(8, 8, 8, 0.08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.4) 0%, transparent 22%, transparent 78%, rgba(8, 8, 8, 0.35) 100%);
}

.lp-hero__grid { width: 100%; }

.lp-hero__text { max-width: 720px; }

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #ff7a52;
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.lp-hero h1 {
  margin: 0 0 22px;
  font: 800 clamp(38px, 5.2vw, 76px)/1.02 var(--font-display);
  letter-spacing: -0.04em;
}

.lp-hero h1 em { color: var(--orange); font-style: normal; }

.lp-hero__sub {
  max-width: 560px;
  margin: 0 0 32px;
  color: #cfcfcf;
  font: 400 clamp(17px, 1.5vw, 21px)/1.5 var(--font-body);
}

.lp-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.lp-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lp-author p { margin: 0; display: grid; gap: 2px; }
.lp-author strong { font: 700 16px/1.2 var(--font-display); }
.lp-author span { color: #a9a9a9; font: 400 14px/1.3 var(--font-body); }

/* ── Faixa de benefícios ── */
.lp-band {
  background: var(--orange);
  color: var(--white);
  padding: clamp(28px, 4vw, 44px) max(var(--pad), calc((100% - var(--max)) / 2));
}

.lp-band ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-band li { display: grid; gap: 6px; }
.lp-band strong { font: 800 clamp(18px, 1.6vw, 22px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.lp-band span { font: 400 15px/1.4 var(--font-body); color: rgba(255, 255, 255, 0.88); }

/* ── Seções ── */
.lp-section {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(36px, 4.5vw, 64px) max(var(--pad), calc((100% - var(--max)) / 2));
}

.lp-section--alt { background: #ebe9e1; }

.lp-section h2 {
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  font: 800 clamp(28px, 3.4vw, 42px)/1.08 var(--font-display);
  letter-spacing: -0.035em;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}

.lp-steps li {
  counter-increment: passo;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  display: grid;
  gap: 10px;
  align-content: start;
}

.lp-steps li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font: 800 16px/1 var(--font-display);
}

.lp-steps h3 { margin: 0; font: 800 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.lp-steps p { margin: 0; color: #4d4b46; font: 400 16px/1.5 var(--font-body); }

.lp-for {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-for li {
  padding: 18px 0 18px 30px;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  font: 500 18px/1.4 var(--font-body);
}

.lp-for li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}

.lp-faq { display: grid; gap: 10px; max-width: 860px; }

.lp-faq details {
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 4px 24px;
}

.lp-faq summary {
  cursor: pointer;
  padding: 18px 0;
  font: 700 18px/1.3 var(--font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 18px; color: #4d4b46; font: 400 16px/1.55 var(--font-body); }

/* ── Fechamento ── */
.lp-close {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: clamp(40px, 5vw, 72px) max(var(--pad), calc((100% - var(--max)) / 2));
}

.lp-close h2 {
  margin: 0 auto 28px;
  max-width: 820px;
  font: 800 clamp(30px, 4.2vw, 56px)/1.05 var(--font-display);
  letter-spacing: -0.04em;
}

.lp-close h2 em { color: var(--orange); font-style: normal; }

@media (max-width: 900px) {
  .lp-hero::before { background: linear-gradient(180deg, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.7) 55%, rgba(8,8,8,0.88) 100%); }
}

@media (max-width: 640px) {
  .lp-brandpair { gap: 10px; }
  .lp-brandpair .brand img { height: 30px; }
  .lp-brandpair .lp-tabulero { height: 28px; }
  .lp-hero { padding-top: 112px; }
}

/* Botões das landings */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font: 700 15px/1 var(--font-body);
  transition: background-color 180ms ease, transform 180ms ease;
}

.lp-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.lp-btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.lp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lp-headcta { grid-column: 3; justify-self: end; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .lp-headcta { grid-column: 2; }
}

@media (max-width: 480px) {
  .lp-headcta { display: none; }
}

.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.lp-btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* ── Cases ── */
.lp-lede { margin: -10px 0 clamp(14px, 2vw, 22px); max-width: 640px; color: #4d4b46; font: 400 clamp(16px, 1.3vw, 19px)/1.5 var(--font-body); }

.lp-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.lp-case {
  display: grid;
  gap: 8px;
  color: inherit;
  perspective: 1200px;
}

.lp-case__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.lp-case:hover .lp-case__frame,
.lp-case:focus-visible .lp-case__frame { box-shadow: 0 26px 54px rgba(234, 46, 0, 0.28); }

.lp-case__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #1b1b1b;
}

.lp-case__bar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4a4a; }
.lp-case__bar b { margin-left: 10px; color: #9a9a9a; font: 500 12px/1 var(--font-body); }

.lp-case__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 688;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.lp-case:hover .lp-case__frame img { transform: scale(1.06); }

.lp-case__chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font: 700 13px/1 var(--font-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.lp-case__chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lp-case:hover .lp-case__chip,
.lp-case:focus-visible .lp-case__chip { opacity: 1; transform: none; }

@media (hover: none) { .lp-case__chip { opacity: 1; transform: none; } }

.lp-case__name { margin-top: 10px; font: 800 clamp(20px, 1.9vw, 26px)/1.15 var(--font-display); letter-spacing: -0.025em; }
.lp-case__desc { color: #4d4b46; font: 400 16px/1.5 var(--font-body); }

@media (max-width: 760px) {
  .lp-cases__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-case__frame, .lp-case__frame img, .lp-case__chip { transition: none; }
  .lp-case:hover .lp-case__frame img { transform: none; }
}

/* ── Movimento (mesma linguagem da página principal) ── */
.lp-hero { background-attachment: scroll; }

.lp-hero::after {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: var(--hero-img) 0% 30% / 122% auto no-repeat;
  animation: lp-kenburns 22s ease-in-out infinite alternate;
}

.lp-hero { background-image: none; }

@keyframes lp-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.lp-hero__text > * { opacity: 0; animation: lp-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.lp-hero__text > :nth-child(1) { animation-delay: 120ms; }
.lp-hero__text > :nth-child(2) { animation-delay: 260ms; }
.lp-hero__text > :nth-child(3) { animation-delay: 420ms; }
.lp-hero__text > :nth-child(4) { animation-delay: 560ms; }
.lp-hero__text > :nth-child(5) { animation-delay: 700ms; }

.reveal { transition-delay: calc(var(--i, 0) * 110ms); }

.lp-band li { transition-property: opacity, transform; }

.lp-steps li,
.lp-faq details {
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
}

.lp-steps li.is-visible:hover,
.lp-faq details.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  transition-delay: 0ms;
}

.lp-steps li::before { transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.lp-steps li:hover::before { transform: scale(1.14) rotate(-6deg); }

.lp-btn svg { transition: transform 240ms ease; }
.lp-btn:hover svg { transform: translate(3px, -3px); }

.lp-faq details[open] p { animation: lp-fade 420ms ease both; }
.lp-faq summary::after { transition: transform 300ms ease; }
.lp-faq details[open] summary::after { transform: rotate(180deg); }

@keyframes lp-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.lp-for li { transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), padding-left 260ms ease; }
.lp-for li:hover { padding-left: 38px; }

.lp-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 100%;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero::after { animation: none; }
  .lp-hero__text > * { opacity: 1; animation: none; }
  .lp-faq details[open] p { animation: none; }
}
.lp-hero { overflow: hidden; }

/* ── Slider de cases ── */
.lp-slider { position: relative; }

.lp-slider__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 18px;
  margin: 0 calc(-1 * var(--pad));
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
  cursor: grab;
}

.lp-slider__track::-webkit-scrollbar { display: none; }
.lp-slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.lp-slider__track.is-dragging .lp-case { pointer-events: none; }
.lp-slider__track:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 12px; }

.lp-slider .lp-case {
  flex: 0 0 clamp(250px, 26vw, 340px);
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
}

.lp-slider .lp-case__name { font-size: clamp(18px, 1.5vw, 21px); margin-top: 6px; }
.lp-slider .lp-case__desc { font-size: 14.5px; line-height: 1.45; }
.lp-slider .lp-case__bar { height: 26px; padding: 0 10px; gap: 5px; }
.lp-slider .lp-case__bar i { width: 7px; height: 7px; }
.lp-slider .lp-case__bar b { font-size: 10.5px; margin-left: 6px; }
.lp-slider .lp-case__chip { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; }
.lp-slider .lp-case__frame { border-radius: 16px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16); }

.lp-slider__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.lp-slider__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.lp-slider__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-slider__btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--white); transform: scale(1.06); }
.lp-slider__btn:disabled { opacity: 0.3; cursor: default; }

/* Seções vizinhas com o mesmo fundo não somam dois respiros */
.lp-section:not(.lp-section--alt) + .lp-section:not(.lp-section--alt) { padding-top: 0; }
.lp-section--alt + .lp-section:not(.lp-section--alt) { padding-top: clamp(36px, 4.5vw, 64px); }
.lp-slider__track { padding-bottom: 10px; }
.lp-hero { padding-bottom: clamp(40px, 5vw, 72px); min-height: min(92svh, 820px); }

/* ── Rodapé com foto de fundo ── */
.lp-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 0;
  background: var(--black) url("/assets/servicos/mentoria-1.avif") center 40% / cover no-repeat;
}

.lp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.58) 42%, rgba(8, 8, 8, 0.78) 100%);
}

@media (max-width: 640px) {
  .lp-footer { background-position: 35% center; }
}

.lp-footer p, .lp-footer a, .lp-footer span { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

/* CTA de fechamento dentro do rodapé, sobre a foto */
.lp-footer .lp-close {
  background: transparent;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 900px) {
  .lp-hero::after { background-size: cover; background-position: 40% center; }
}

.lp-hero__text h1, .lp-hero__sub, .lp-tag, .lp-author { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }

/* ── Passos com foto ── */
.lp-steps li { padding: 0; overflow: hidden; position: relative; gap: 0; }

.lp-steps li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.lp-step__media { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #1a1a1a; }

.lp-step__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-steps li:hover .lp-step__media img { transform: scale(1.07); }

.lp-step__body { display: grid; gap: 10px; padding: 22px 26px 28px; }

/* Perguntas frequentes centralizadas */
#perguntas h2 { text-align: center; }
#perguntas .lp-faq { margin-inline: auto; max-width: 900px; }

.lp-case--interno { cursor: default; }

.lp-hero__meta { margin: -6px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.88); }
