/* Modelos Retto — estilo "criativo" escuro, compartilhado pelas páginas de demonstração.
   Cada página define --accent, --accent-2 e --accent-ink no <body>. */
:root {
  --bg: #09090b;
  --bg-2: #121216;
  --ink: #f6f5f3;
  --muted: #b9b7c0;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --accent-ink: #160a02;
  --radius: 22px;
  --display: "Anton", "Bebas Neue", Impact, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-2); }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* Granulado de foto por cima de tudo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.demo-bar {
  position: relative;
  z-index: 30;
  background: #000;
  color: #d9d6de;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.demo-bar a { color: var(--accent-2); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

/* Tipografia de criativo */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.5px;
  font-size: clamp(54px, 12vw, 132px);
}
.h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(40px, 7.5vw, 78px);
}
.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 45%, transparent));
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; color: var(--muted); max-width: 560px; }

/* Topo com foto */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero__photo { position: absolute; inset: -6% 0 0 0; z-index: -2; }
.hero__photo img { width: 100%; height: 112%; object-fit: cover; object-position: var(--pos, 60% 30%); filter: contrast(1.12) saturate(0.85); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.55) 50%, rgba(9,9,11,0.2) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 45%);
  mix-blend-mode: normal;
}
.hero__inner { padding: 120px 0 72px; display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
@media (max-width: 720px) {
  .hero::before {
    background:
      radial-gradient(80% 40% at 70% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
      linear-gradient(0deg, var(--bg) 18%, rgba(9,9,11,0.55) 60%, rgba(9,9,11,0.25) 100%);
  }
  .hero__inner { padding-top: 46svh; }
}

/* Faixa de topo com marca */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding: 18px 0;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 26px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav__links { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 10px 0; opacity: 0.85; }
.nav__links a:hover { opacity: 1; color: var(--accent-2); }

/* Botões com brilho */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: var(--accent-ink);
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 12px 40px -8px var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 18px 50px -6px var(--accent); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--ghost { color: var(--ink); background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::after { display: none; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.12); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Faixa corrida */
.marquee {
  overflow: hidden;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  transform: rotate(-2deg);
  margin: -14px -10px 0;
  padding: 14px 0;
  box-shadow: 0 20px 60px -20px var(--accent);
  position: relative;
  z-index: 3;
}
.marquee__track { display: flex; gap: 40px; width: max-content; animation: slide 26s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); text-transform: uppercase; white-space: nowrap; display: inline-flex; gap: 40px; align-items: center; }
.marquee span::after { content: "✦"; font-family: var(--body); font-size: 0.6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cartões de vidro escuro */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); line-height: 1.6; font-size: 15.5px; }

/* Ícone com volume (efeito 3D) */
.icon3d {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.75), transparent 40%),
    linear-gradient(150deg, var(--accent-2), var(--accent));
  box-shadow:
    inset 0 -6px 10px rgba(0,0,0,0.25),
    inset 0 4px 8px rgba(255,255,255,0.35),
    0 14px 30px -10px var(--accent);
  transform: perspective(300px) rotateX(10deg) rotateY(-12deg);
}

/* Comparação sem x com */
.versus { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.versus .card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.versus li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-size: 16px; }
.versus li svg { flex-shrink: 0; margin-top: 2px; }
.versus .bad { opacity: 0.8; }
.versus .bad h3 { color: var(--muted); }
.versus .good { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 30px 80px -30px var(--accent); }
.versus .good h3 { color: var(--accent-2); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.good .tag { background: var(--accent); color: var(--accent-ink); }

/* Foto inclinada com moldura de luz */
.photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); filter: contrast(1.08) saturate(0.9); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,11,0.75), transparent 50%); }
.photo-card figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-weight: 700; }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }

/* Passos com número vazado */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font-family: var(--display);
  font-size: 84px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); line-height: 1.6; }

/* Perguntas frequentes */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); line-height: 1.6; margin-top: 12px; }

/* Luz de fundo */
.glow { position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: 0.35; background: var(--accent); pointer-events: none; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select {
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.field select option { color: #111; }
.note { font-size: 13px; color: var(--muted); }

/* WhatsApp flutuante */
.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.8);
  text-decoration: none;
}
.wa::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 96px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Inclinação 3D e aparecer na rolagem (usados por modelos.js) */
[data-tilt] { transform-style: flat; transition: transform 0.25s ease; will-change: transform; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.22), transparent 55%); opacity: 0; transition: opacity 0.3s; z-index: 3; }
[data-tilt]:hover .tilt-glare { opacity: 1; }
.reveal { opacity: 0; translate: 0 36px; transition: opacity 0.9s ease, translate 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* Animações reduzidas: mantém faixa, empilhamento, cortina e transição entre páginas;
   desliga só os movimentos intensos (pulsar, flutuar, aparecer deslizando) */
@media (prefers-reduced-motion: reduce) {
  .btn::after, .wa::after { animation: none; display: none; }
  .marquee__track { animation-duration: 40s; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* ===== Transições entre seções ===== */
/* Seções empilhadas: cada uma fica presa e a próxima sobe por cima */
.empilhada .stack-item {
  position: sticky;
  top: 0;
  isolation: isolate;
  overflow: clip;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 60px -10px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 0;
  will-change: transform;
}
.empilhada .stack-item:nth-child(even) { background: var(--bg-2); }
.empilhada .stack-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #000;
  opacity: calc(var(--dim, 0) * 0.65);
}
/* Cortina: a seção abre em círculo enquanto entra na tela */
.empilhada .curtain { clip-path: circle(var(--curtain, 150%) at 50% 35%); border-radius: 0; }

/* Transição entre páginas (capa -> modelo) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }



/* ===== Seção com fundo branco (alterna com as escuras; .t-alt só na rolagem empilhada) ===== */
.t-white, .empilhada .t-alt {
  --bg: #ffffff;
  --bg-2: #f2f6f9;
  --ink: #0b1620;
  --muted: #475563;
  --line: rgba(11, 22, 32, 0.12);
  --card: #f4f8fb;
  background: var(--bg) !important;
  color: var(--ink);
}
.t-white .card, .empilhada .t-alt .card { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 24px 50px -28px rgba(11, 40, 60, 0.35); }
.t-white .grad, .empilhada .t-alt .grad { background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 70%, #000), color-mix(in srgb, var(--accent) 85%, #000)); -webkit-background-clip: text; background-clip: text; filter: none; }
.t-white .kicker, .t-white .versus .good h3, .empilhada .t-alt .kicker, .empilhada .t-alt .versus .good h3 { color: color-mix(in srgb, var(--accent) 65%, #000); }
.t-white .glow, .empilhada .t-alt .glow { display: none; }
.t-white .faq details, .empilhada .t-alt .faq details { background: var(--card); }
.t-white .photo-card, .empilhada .t-alt .photo-card { box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(11, 40, 60, 0.45); }

/* ===== Celular: marca numa faixa própria, foto inteira logo abaixo, texto depois ===== */
@media (max-width: 720px) {
  .hero { min-height: 0; display: block; }
  .hero::before { display: none; }
  .nav { position: relative; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .wrap { flex-wrap: nowrap; }
  .nav__links { display: none; }
  .brand { font-size: 21px; white-space: nowrap; }
  .nav .btn--ghost { min-height: 42px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
  .hero__photo { position: relative; inset: auto; z-index: 0; }
  .hero__photo[data-depth] { transform: none !important; }
  .hero__photo img { height: auto; aspect-ratio: 3 / 2; }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(9, 9, 11, 0) 40%); }
  .hero__inner { padding: 4px 0 56px; }
}
@media (max-width: 420px) { .nav .btn--ghost { display: none; } }
html, body { overflow-x: clip; }

/* Computador: foto com a mesma altura do texto ao lado */
@media (min-width: 721px) {
  .split:has(> .photo-card) { align-items: stretch; }
  .split > .photo-card { aspect-ratio: auto; min-height: 420px; }
}
