/* TikFap LP. Cores tiradas da logo e do app (tikfap-app/src/styles/globals.css) */
:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --line: #262626;
  --text: #ffffff;
  --muted: #a3a3a3;
  --pink: #ff2d6f;
  --pink-hover: #ff4f86;
  --cyan: #25f4ee;

  --font-display: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --radius: 14px;

  /* deslocamento das sombras rosa/ciano da logo */
  --glitch: -0.035em 0 0 var(--cyan), 0.045em 0.035em 0 var(--pink);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- Tipografia com o efeito da logo ---------- */
.glitch {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-shadow: var(--glitch);
}

/* ---------- Botões ---------- */
.btn {
  --shadow: -4px 4px 0 var(--cyan);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--pink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--pink-hover); }
.btn:active { transform: translate(-3px, 3px); box-shadow: -1px 1px 0 var(--cyan); }
.btn--sm { --shadow: -2px 2px 0 var(--cyan); min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 20px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 116px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  display: grid; gap: 40px;
}
/* quebra de linha natural; "pretty" evita uma palavra sozinha na última linha */
.hero h1 { font-size: clamp(32px, 11vw, 72px); text-wrap: pretty; }
/* no celular, título e descrição centralizados; no computador voltam para a esquerda */
.hero__copy { text-align: center; }
.hero__lead { margin: 18px auto 0; font-size: 18px; color: #e5e5e5; max-width: 34ch; }
.hero__pink { color: var(--pink); font-weight: 600; }
/* no celular fica embaixo do celular da prévia; no computador, embaixo do texto */
.hero__cta { margin-top: -8px; text-align: center; }

.hero { overflow-x: clip; }
.hero__demo {
  --phone-w: min(300px, 68vw);
  /* distância do centro até o meio de cada celular de fundo. No celular, encosta na borda da tela
     (metade da tela menos metade do celular de fundo, que aparece em 80% do tamanho); em telas
     mais largas para em meio celular, para não ficar solto longe do principal */
  --ghost-offset: min(calc(50vw - var(--phone-w) * .4), calc(var(--phone-w) * .5));
  position: relative; display: flex; justify-content: center;
}
/* luz da tela: rosa e ciano, como as camadas da logo */
.hero__demo::before {
  content: ""; position: absolute; inset: 8% 0;
  background:
    radial-gradient(closest-side at 30% 60%, rgba(255, 45, 111, .38), transparent),
    radial-gradient(closest-side at 72% 38%, rgba(37, 244, 238, .24), transparent);
  filter: blur(30px);
  pointer-events: none;
}

/* ---------- Celular com o feed ---------- */
.phone {
  position: relative;
  width: var(--phone-w);
  padding: 9px;
  border-radius: 44px;
  background: #161616;
  box-shadow: inset 0 0 0 1px #2c2c2c, 0 30px 80px rgba(0, 0, 0, .7);
}
.phone__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  background: #000;
  user-select: none; -webkit-user-select: none;
}
.phone--main { z-index: 1; }

/* celulares de fundo: centro na borda do principal, então só metade fica à mostra */
.phone--ghost {
  position: absolute; top: 50%; left: 50%;
  opacity: .38;
  filter: blur(1.5px) saturate(.8);
  box-shadow: inset 0 0 0 1px #2c2c2c;
  pointer-events: none;
}
.phone--left { transform: translate(-50%, -50%) translateX(calc(var(--ghost-offset) * -1)) scale(.8); }
.phone--right { transform: translate(-50%, -50%) translateX(var(--ghost-offset)) scale(.8); }

.feed { position: absolute; inset: 0; }
.feed video { width: 100%; height: 100%; object-fit: cover; }
.feed::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  pointer-events: none;
}

.phone__top {
  position: absolute; top: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 16px;
  font-size: 13px; color: rgba(255, 255, 255, .6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.phone__top strong { color: #fff; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }

.rail {
  position: absolute; right: 10px; bottom: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.rail__avatar { position: relative; display: block; margin-bottom: 6px; }
.rail__avatar img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.rail__avatar i {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pink); color: #fff;
  font-style: normal; font-weight: 700; font-size: 14px; line-height: 18px; text-align: center;
}
.rail__icon { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail__icon svg { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.rail__icon small { font-size: 11px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.rail__icon.is-liked svg { fill: var(--pink); animation: pop .4s ease; }

.caption {
  position: absolute; left: 14px; right: 14px; bottom: 22px;
  font-size: 13px; line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.caption strong { display: block; margin-bottom: 4px; font-size: 14px; }


/* ---------- Seções ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.section__head { max-width: 640px; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 7vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
.section__lead { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section__lead span { color: var(--text); font-weight: 600; }

/* Como funciona */
.steps { margin-top: 32px; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: .9;
  text-shadow: var(--glitch);
}
.step h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.step p { margin-top: 6px; color: var(--muted); max-width: 40ch; }

/* TikTok x TikFap: dois celulares sobrepostos. O TikTok fica menor, apagado e atrás; o TikFap
   maior, na frente, com as camadas rosa/ciano da logo. As medidas são em % do palco, que segue
   a proporção dos dois juntos (os vídeos são 9:16) */
.versus__stage {
  position: relative;
  width: 100%; max-width: 400px; margin: 0 auto;
  aspect-ratio: 100 / 112;
}
.versus__phone {
  position: absolute; overflow: hidden;
  aspect-ratio: 9 / 16; border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.versus__phone video { width: 100%; height: 100%; object-fit: cover; }
.versus__phone--tiktok {
  left: 3%; top: 11%; width: 46%;
  transform: rotate(-5deg);
}
.versus__phone--tiktok video { filter: grayscale(.5) brightness(.55); }
.versus__phone--tikfap {
  right: 3%; top: 1%; width: 60%; z-index: 1;
  transform: rotate(3deg);
  box-shadow: -6px 0 0 var(--cyan), 6px 6px 0 var(--pink);
}

.versus__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1;
}
.versus__phone--tiktok .versus__tag { color: #bdbdbd; }
.versus__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

.versus__cta { margin-top: 32px; }

.versus__note {
  max-width: 360px; margin: 16px auto 0; padding: 10px 14px;
  border: 1px dashed var(--pink); border-radius: 10px;
  color: var(--pink); font-size: 14px; text-align: center;
}

/* Tipos de conteúdo: badges com checkbox marcado, cada um num ângulo, como se tivessem sido
   jogados na mesa. O checkbox leva as camadas rosa/ciano da logo, igual aos botões */
.kinds .section__head { margin-inline: auto; text-align: center; }
/* título estreito para quebrar em mais linhas; "balance" deixa as linhas com tamanhos parecidos */
.kinds .section__title { max-width: 20ch; margin-inline: auto; text-wrap: balance; }
/* Os badges seguem um atrás do outro e quebram linha quando não cabem. Cada um estica
   (flex-grow) para completar a linha, então nenhuma fileira termina com espaço sobrando */
.kinds__list {
  max-width: 560px; margin: 28px auto 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.kind {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 12px 7px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid #333;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  white-space: nowrap;
}
.kind__check {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--pink);
  box-shadow: -2px 2px 0 var(--cyan);
}
.kind__check svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Categorias */
/* título e descrição centralizados */
.cats .section__head { margin-inline: auto; text-align: center; }
.cats__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat a {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
.cat .cat__cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .88));
}
.cat__info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; }
/* hashtag longa (#sentandodecostas) quebra em vez de vazar do card */
.cat__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.cat__bio {
  margin-top: 6px; font-size: 12px; line-height: 1.35; color: #d4d4d4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cats__cta { margin-top: 24px; }

/* Depoimentos: no formato dos comentários do app */
.talk__draft {
  margin-top: 20px; max-width: 640px; padding: 10px 14px;
  border: 1px dashed var(--pink); border-radius: 10px;
  color: var(--pink); font-size: 14px;
}
.talk__list { margin: 28px 0 0; padding: 0; list-style: none; column-gap: 40px; }
.comment {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line);
  break-inside: avoid;
}
.comment__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 2px var(--pink), -2px 0 0 3px var(--cyan);
}
.comment__meta { font-size: 13px; color: var(--muted); }
.comment__meta strong { color: var(--text); font-weight: 600; }
.comment__text { margin-top: 4px; font-size: 16px; line-height: 1.5; max-width: 52ch; }

@media (hover: hover) {
  .cat a:hover .cat__cover { transform: scale(1.05); }}

/* Recursos */
.perks__list { margin-top: 28px; display: grid; gap: 12px; }
.perks__list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 18px; border-radius: 18px;
  border: 1px solid #333;
}
.perks__list svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perks__list h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.perks__list p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* CTA final */
.final {
  padding: 72px var(--gutter) 88px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(255, 45, 111, .22), transparent 70%);
}
.final__title { font-size: clamp(30px, 8.5vw, 56px); text-wrap: balance; }
.final p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.final .btn { margin-top: 28px; }

/* Rodapé */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 12px; text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer img { width: 100px; height: auto; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--text); }
.footer__copy { color: #737373; }

/* ---------- Termos e Privacidade ---------- */
/* Coluna única de leitura; o título leva o efeito da logo e o resto fica quieto */
.legal { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 72px; color: #d4d4d4; }
.legal__title { font-size: clamp(34px, 9vw, 56px); color: var(--text); }
.legal__date { margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
.legal a { color: var(--cyan); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal p + p { margin-top: 12px; }


.legal section { margin-top: 40px; scroll-margin-top: 84px; }
.legal h2 { margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--text); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal p + ul { margin-top: 12px; }
.legal ul li + li { margin-top: 8px; }
.legal ul li::marker { color: var(--pink); }
.footer nav a[aria-current="page"] { color: var(--pink); text-decoration: none; }

/* ---------- Confirmação de idade ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }
.gate__box {
  width: 100%; max-width: 360px;
  padding: 28px 22px; border-radius: 24px;
  background: var(--surface-2); border: 1px solid var(--line);
  text-align: center;
}
.gate__logo { width: 220px; height: auto; margin: 0 auto 20px; }
.gate__text { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

/* Antes de confirmar a idade, as imagens ficam borradas */
.is-locked .feed,
.is-locked .cat__cover,
.is-locked .versus__phone video,
.is-locked .rail__avatar img { filter: blur(22px); }
.is-gate-open body { overflow: hidden; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .cats__grid { gap: 14px; }
  /* 4 cards: grade 2x2 */
  .perks__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero {
    grid-template-columns: 1fr 1fr; align-items: center;
    grid-template-areas: "copy demo" "cta demo";
    grid-template-rows: auto auto; align-content: center; row-gap: 32px;
    padding-top: 56px; padding-bottom: 88px;
    min-height: calc(100vh - 60px);
  }
  .hero__copy { grid-area: copy; align-self: end; text-align: left; }
  .hero__demo { grid-area: demo; }
  .hero__cta { grid-area: cta; align-self: start; margin-top: 0; text-align: left; }
  .hero h1 { font-size: clamp(40px, 4.6vw, 58px); }
  .hero__lead { margin-inline: 0; font-size: 20px; }
  .hero__demo { --phone-w: 320px; --ghost-offset: calc(var(--phone-w) * .5); }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .cats__grid { grid-template-columns: repeat(4, 1fr); }
  .kinds__list { gap: 10px; }
  .kind { font-size: 18px; padding: 9px 18px 9px 9px; }
  .talk__list { columns: 3; }
  /* no computador a seção é larga demais para um botão de ponta a ponta */
  .cats__cta .btn,
  .versus__cta .btn { max-width: 420px; margin-inline: auto; }
  .legal { padding-top: 56px; padding-bottom: 96px; }
  /* alinha o topo com a largura do conteúdo */
  .topbar { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ---------- Movimento ---------- */
/* Único momento animado da página: o título "acerta" as camadas ao carregar */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: settle .9s steps(1, end) .15s both; }
}

@keyframes settle {
  0% { text-shadow: 0.12em 0 0 var(--cyan), -0.1em 0.05em 0 var(--pink); }
  20% { text-shadow: -0.08em 0.02em 0 var(--cyan), 0.14em 0 0 var(--pink); }
  40% { text-shadow: 0.03em -0.02em 0 var(--cyan), -0.04em 0.06em 0 var(--pink); }
  60% { text-shadow: -0.05em 0 0 var(--cyan), 0.07em 0.05em 0 var(--pink); }
  100% { text-shadow: var(--glitch); }
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail__icon.is-liked svg { animation: none; }
  .btn { transition: none; }
}
