/* =========================================================================
   Landing Finders — estilos da página.
   Fundação (fontes, tokens, base .zenit-*) vem de vendor/zenit-ds/styles.css.
   Aqui ficam layout, tipografia responsiva da landing e as seções.
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* ---------- Tipografia responsiva da landing (Inter Tight, leve) ---------- */
.lp-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xp-faint);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-eyebrow .tick {
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--zenit-orange);
  flex: none;
}

.lp-display {
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--xp-ink);
  margin: 0;
  text-wrap: balance;
  max-width: 17ch;
}
.lp-h {
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--xp-ink);
  margin: 0;
  text-wrap: balance;
  max-width: 20ch;
}
.lp-statement {
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}
.lp-lede {
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.6;
  color: var(--xp-soft);
  margin: 28px 0 0;
  max-width: 52ch;
}
.lp-lede strong { font-weight: 600; color: var(--xp-ink); }

/* ---------- Layout base de seção ---------- */
.section {
  padding: clamp(72px, 11vh, 140px) clamp(22px, 6vw, 96px);
}
.section__inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- 1 · Hero (papel com textura) ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 12% -10%, var(--neutral-100) 0%, var(--xp-paper) 55%);
}
.hero__brand {
  position: absolute;
  top: clamp(28px, 5vh, 56px);
  left: clamp(22px, 6vw, 96px);
  z-index: 2;
}
.hero__brand img { height: 26px; width: auto; display: block; }

.hero__z {
  position: absolute;
  left: clamp(-90px, -7vw, -40px);
  bottom: clamp(-110px, -9vw, -60px);
  width: min(52vw, 580px);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__media { display: flex; align-items: center; justify-content: center; }

/* entrada com fade + leve subida, ao carregar a pagina */
.hero-in {
  animation: hero-rise 700ms var(--ease-zenit) both;
}
.hero-in--1 { animation-delay: 80ms; }
.hero-in--2 { animation-delay: 180ms; }
.hero-in--3 { animation-delay: 340ms; }

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

/* ---------- 2 · O que é (banda full-bleed com foto + boxes maiores) ---------- */
.what-is {
  position: relative;
  overflow: hidden;
}
.what-is__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.what-is__veil {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(15, 16, 18, 0.7);
}
.what-is .section__inner { position: relative; z-index: 2; }
.what-is .lp-eyebrow { color: var(--xp-on-ink-faint); }
.what-is .lp-h { color: var(--xp-on-ink); }

.block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  margin-top: clamp(40px, 5.5vh, 56px);
}
.block-item {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(244, 242, 238, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(250, 249, 246, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.block-item__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--zenit-orange);
  margin: 0 0 16px;
}
.block-item__t {
  margin: 0;
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--xp-on-ink);
}
.block-item__t strong { font-weight: 600; }

/* ---------- Phone mockup (estático, sem dependência externa) ---------- */
.phone-mock {
  position: relative;
  width: min(240px, 60vw);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  background: var(--xp-graphite);
  border-radius: 34px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.phone-mock__notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 16px;
  background: var(--xp-graphite);
  border-radius: 0 0 10px 10px;
  z-index: 2;
}
.phone-mock__screen {
  position: relative;
  width: 100%; height: 100%;
  background: radial-gradient(80% 60% at 50% 5%, rgba(244, 242, 238, 0.76), transparent 72%), var(--xp-paper);
  border-radius: 26px;
  overflow: hidden;
  padding: 26px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone-mock__time {
  align-self: flex-start;
  font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--xp-ink);
}

/* balança suavemente — mesma técnica do site institucional */
.phone-mock__balance {
  position: relative;
  width: min(88%, 170px);
  margin: 4px 0;
  transform-origin: 50% 92%;
  animation: phone-sway 5.8s var(--ease-zenit) infinite alternate;
}
.phone-mock__balance img { width: 100%; height: auto; display: block; }
.phone-mock__leaf {
  position: absolute;
  top: 18%;
  width: 18px; height: 16px;
  opacity: 0.6;
  transform-origin: 50% 100%;
  animation: phone-leaf-sway 2.8s var(--ease-zenit) infinite alternate;
}
.phone-mock__leaf::before, .phone-mock__leaf::after {
  content: ""; position: absolute;
  width: 7px; height: 14px;
  border-radius: 999px 999px 0 0;
  background: var(--success);
}
.phone-mock__leaf--left { left: 6%; }
.phone-mock__leaf--left::before { left: 2px; transform: rotate(-30deg); }
.phone-mock__leaf--right { right: 6%; }
.phone-mock__leaf--right::after { right: 2px; transform: rotate(30deg); }

.phone-mock__caption {
  margin: 0; max-width: 18ch;
  font-size: 14px; line-height: 1.3; text-align: center; color: var(--xp-ink);
}
.phone-mock__btn {
  width: 100%; border: 0; border-radius: 999px;
  padding: 12px 16px;
  background: var(--zenit-orange); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
}
.phone-mock__dots {
  width: calc(100% + 36px); margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-around; align-items: center;
}
.phone-mock__dots span {
  width: 13px; height: 13px; border-radius: 5px;
  border: 2px solid var(--border-default);
}
.phone-mock__dots span.is-active { border-color: var(--zenit-orange); background: var(--accent-tint); }

@keyframes phone-sway {
  0% { transform: translateX(-5px) rotate(-1.2deg); }
  45% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(5px) rotate(1.2deg); }
}
@keyframes phone-leaf-sway {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-2px) rotate(7deg); }
}

/* ---------- 3 · Lastro / tamanho + logos ---------- */
.lastro { background: var(--neutral-100); }

.lastro-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.lastro-top__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Device mockup — crossfade de telas reais do app ---------- */
.device-mock {
  position: relative;
  width: min(260px, 70%);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--xp-graphite), #0d0e12);
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.device-mock__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--xp-graphite);
}
.device-mock__viewport {
  position: absolute; inset: 0;
  overflow: hidden;
}
.device-mock__shot {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s var(--ease-zenit);
}
.device-mock__shot.is-active { opacity: 1; }
.device-mock__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 0;
}
.scale-item { display: flex; flex-direction: column; gap: 8px; }
.scale-item__k {
  font-weight: 300;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--xp-ink);
}
.scale-item__k b { font-weight: inherit; font-style: normal; }
.scale-item__k i { font-style: normal; color: var(--zenit-orange); }
.scale-item__l {
  font-size: 15px; line-height: 1.45; color: var(--xp-soft); max-width: 22ch;
}

.logos {
  margin-top: clamp(56px, 8vh, 96px);
  padding-top: clamp(40px, 5vh, 56px);
  border-top: 1px solid var(--border-default);
}
.logos__label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--xp-faint); margin: 0 0 32px;
}
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.logo-slot {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-slot img {
  height: 100%; width: auto; max-width: 140px;
  object-fit: contain;
  filter: grayscale(1); opacity: 0.62;
  transition: opacity var(--dur-default) var(--ease-zenit),
              filter var(--dur-default) var(--ease-zenit);
}
.logo-slot img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- 4 · Seu papel nisso (papel, centralizado) ---------- */
.finder {
  position: relative;
  overflow: hidden;
}
.finder__z {
  position: absolute;
  right: clamp(-70px, -5vw, -30px);
  top: clamp(-60px, -5vw, -20px);
  width: min(38vw, 420px);
  opacity: 0.035;
  pointer-events: none;
}
.finder__inner {
  position: relative;
  max-width: 620px;
  text-align: center;
}
.finder__eyebrow { justify-content: center; }
.finder__inner .lp-h { margin-left: auto; margin-right: auto; }
.finder__lede { margin-left: auto; margin-right: auto; }

/* ---------- 5 · Fechamento (escuro + watermark Z) ---------- */
.closing {
  position: relative;
  background: var(--xp-graphite);
  color: var(--xp-on-ink);
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.closing__z {
  position: absolute;
  right: clamp(-60px, -4vw, -20px);
  bottom: clamp(-80px, -6vw, -30px);
  width: min(46vw, 520px);
  opacity: 0.06;
  z-index: 0;
}
.closing .section__inner { position: relative; z-index: 1; }
.closing .lp-statement { color: var(--xp-on-ink); max-width: 24ch; }
.closing__statement { max-width: 20ch; }
.closing__line { display: block; }
.closing__line--soft { color: var(--xp-on-ink-faint); font-weight: 300; }
.closing__line--strong { color: var(--xp-on-ink); font-weight: 500; }
.closing__note {
  margin: clamp(20px, 3vh, 32px) 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  max-width: 26ch;
}
.closing__note--soft { color: var(--xp-on-ink-faint); font-weight: 300; }
.closing__note--strong { color: var(--xp-on-ink-soft); font-weight: 500; }
.closing__mark { margin-top: clamp(48px, 7vh, 80px); }
.closing__mark img { height: 30px; width: auto; display: block; }
.closing__site {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--xp-on-ink-faint);
}

/* ---------- Reveal sutil ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-zenit), transform 600ms var(--ease-zenit);
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .lastro-top { grid-template-columns: 1fr; }
  .lastro-top__media { order: -1; }
  .block-grid { grid-template-columns: 1fr; }
  .scale-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .scale-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in { animation: none; opacity: 1; transform: none; }
  .phone-mock__balance, .phone-mock__leaf { animation: none; }
  .device-mock__shot { transition: none; }
}
