/* Planu — home (réplica fiel de planu.app)
   Medidas extraídas do site original: bg #030712, headings 48px/900,
   typing #BD88F9 e #B8D63C, destaque #ECB615 / #3086C8, cards Voxel
   (borda #374151, raio 8), faixa roxa #8345D8, cartões finais #E5FF77 / #FD5D95 */

.home-page { background: var(--bg); color: var(--text); }
.home-page main { max-width: none; padding: 0; }

.home-section { position: relative; overflow: hidden; }
.home-section h2 { font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1.08; color: var(--text); }

/* emojis flutuantes (posições do original) */
.float-emoji { position: absolute; font-size: 51px; line-height: 1; z-index: 2; pointer-events: none; }

/* ---------- entrance animations (Elementor) ---------- */
@keyframes fadeInDown { 0% { opacity: 0; transform: translate3d(0, -60px, 0); } 100% { opacity: 1; transform: none; } }
@keyframes fadeInUp   { 0% { opacity: 0; transform: translate3d(0, 60px, 0); }  100% { opacity: 1; transform: none; } }
.anim { opacity: 0; }
.anim.play-fadeInDown { animation: fadeInDown 1s both; }
.anim.play-fadeInUp   { animation: fadeInUp 1s both; }
.anim.delay-3 { animation-delay: 0.3s; }
.anim.delay-4 { animation-delay: 0.4s; }

/* ---------- hero ---------- */
.home-hero { text-align: center; padding: 48px 20px 52px; border-bottom: 1px solid var(--border); }
.home-hero h1 { font-size: clamp(44px, 6.5vw, 76px); font-weight: 900; letter-spacing: -4px; line-height: 1.05; color: var(--text); }
.home-hero .sub { margin: 8px auto 26px; font-size: 18px; font-weight: 500; color: var(--text-2); }
.home-hero .sub strong { color: var(--text); }

/* botões do hero — a mecânica vive em style.css; aqui só o tamanho e as cores */
.btn-lime, .btn-dark, .btn-gold { font-size: 16px; padding: 13px 30px; }
.btn-lime { --face: #e5ff77; --side: #a9bf44; --ink: #12140a; --edge: #1a1a1a; }
.btn-dark { --face: #030712; --side: #000; --ink: #fff; --edge: #6b7280; }
.btn-gold { --face: #ffcc31; --side: #bf901a; --ink: #1a1a1a; --edge: #fff; }

/* ---------- carrossel de cards (parallax com scroll) ---------- */
.card-carousel { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
/* 4px em cima e embaixo de cada fileira = 8px entre elas, o mesmo valor
   do espaçamento horizontal entre os cards */
.carousel-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; will-change: transform; }
.carousel-line .vx-card { flex-shrink: 0; }
#carouselLineOne { margin-left: -190px; }
#carouselLineTwo { margin-left: -1630px; }
.carousel-ball { font-size: 46px; }

/* ---------- card de evento (estilo Voxel) ---------- */
.vx-card {
  width: 320px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.vx-cover { width: 100%; height: 48px; object-fit: cover; display: block; }
.vx-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.vx-card a { color: inherit; }
.vx-date { font-size: 12px; font-weight: 500; color: var(--text); }
.vx-date b { font-weight: 700; }
.vx-title { font-size: 16px; font-weight: 600; color: var(--text); }
.vx-title a:hover { text-decoration: underline; }
.vx-loc { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.vx-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.vx-cal { font-size: 12px; color: var(--text-2); text-decoration: underline; display: flex; align-items: center; gap: 6px; }
.vx-attend {
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 4px;
  padding: 6px 10px; font-size: 12px; font-weight: 500; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.vx-attend:hover, .vx-attend.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent); }

/* ---------- seção "Para todos tipos de ..." ---------- */
/* texto e celular centrados na altura, um em relação ao outro */
.home-tipos { display: flex; gap: 64px; padding: 96px 80px; align-items: center; justify-content: center; }
.home-tipos .col-text { flex: 0 1 480px; }
.home-tipos .typing { color: #bd88f9; }
.home-tipos p { max-width: 420px; margin-top: 26px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.home-tipos p strong { color: var(--text); }
.home-tipos .btn-lime { margin-top: 30px; }

/* ---------- celular: moldura, tela e acabamento ---------- */
.mockup {
  position: relative; z-index: 1;
  width: 338px; flex-shrink: 0;
  padding: 11px;                 /* a moldura é o padding; a tela vai dentro */
  border-radius: 55px;
  /* metal escovado: luz nas quinas opostas */
  background: linear-gradient(145deg, #4a4e59 0%, #191c22 26%, #0e1015 58%, #23262e 82%, #51555f 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(255, 255, 255, 0.10),
    0 50px 100px -40px rgba(0, 0, 0, 0.95),
    0 24px 48px -24px rgba(0, 0, 0, 0.8);
  animation: mockup-float 7s ease-in-out infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* halo da marca, preso ao aparelho (acompanha a inclinação e a flutuação) */
.mockup::before {
  content: ''; position: absolute; inset: -70px -60px -40px;
  z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(189, 136, 249, 0.3), transparent 68%);
  filter: blur(16px);
}

/* botões laterais, salientes na moldura */
.mockup .key {
  position: absolute; width: 3px; z-index: 2;
  background: linear-gradient(90deg, #4b4f59, #14161b);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
}
.mockup .key-silent { left: -3px; top: 104px; height: 26px; border-radius: 3px 0 0 3px; }
.mockup .key-up    { left: -3px; top: 150px; height: 52px; border-radius: 3px 0 0 3px; }
.mockup .key-down  { left: -3px; top: 214px; height: 52px; border-radius: 3px 0 0 3px; }
.mockup .key-power { right: -3px; top: 178px; height: 78px; border-radius: 0 3px 3px 0;
  background: linear-gradient(270deg, #4b4f59, #14161b); }

/* a tela, com raio concêntrico ao da moldura */
.mockup-screen {
  position: relative; overflow: hidden;
  border-radius: 45px; background: #05060e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
/* vidro: um brilho fixo discreto na quina de cima… */
.mockup-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 14%,
    rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 100%);
}
/* …e um feixe que atravessa a tela de tempos em tempos */
.mockup-glare::before {
  content: ''; position: absolute; top: -40%; bottom: -40%; left: 0; width: 46%;
  background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, 0.07) 35%, rgba(255, 255, 255, 0.17) 50%,
    rgba(255, 255, 255, 0.07) 65%, transparent);
  animation: glare-sweep 9s ease-in-out infinite;
}
/* a pausa nas pontas espaça as passagens, em vez de varrer sem parar */
@keyframes glare-sweep {
  0%, 14%   { transform: translateX(-220%) rotate(14deg); }
  58%, 100% { transform: translateX(340%) rotate(14deg); }
}

/* barra de status */
.mockup-top { display: flex; align-items: center; gap: 8px; padding: 13px 24px 8px; }
.mockup-top .time { flex: 1; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0.2px; }
.mockup-top .status-icons { flex: 1; display: flex; justify-content: flex-end; color: #fff; }
.mockup-top .status-icons svg { width: 55px; height: 14px; }
/* ilha, com a lente da câmera */
.mockup-island {
  width: 92px; height: 27px; border-radius: 99px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 7px;
}
.mockup-island .lens {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #2d3550, #06070c 68%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.mockup-cover { height: 118px; background: #101018 center/cover no-repeat; }
.mockup-body { padding: 0 18px; }
.mockup-head { display: flex; align-items: flex-end; gap: 8px; margin-top: -28px; }
.mockup-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 3px solid #05060e; background: #171727;
}
.mockup-head .spacer { flex: 1; }
.mockup-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c2d36;
  background: rgba(255, 255, 255, 0.02); color: #fff; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mockup-follow {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #2c2d36; border-radius: 8px; background: rgba(255, 255, 255, 0.02);
  color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; font-family: inherit; cursor: pointer;
}
.mockup-name { font-size: 19px; font-weight: 700; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.mockup-name .verified { font-size: 13px; }
.mockup-cat { font-size: 13px; color: #9096a0; margin-top: 2px; }
.mockup-followers { font-size: 12px; color: #6b7280; margin-top: 4px; }
.mockup-label { font-size: 14px; font-weight: 600; margin: 16px 0 10px; color: #fff; }
.mockup .vx-card { width: 100%; }
#mockup-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  max-height: 200px; overflow: hidden;
}
#mockup-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(transparent, #05060e); pointer-events: none;
}
.mockup-nav {
  display: flex; justify-content: space-around; align-items: center;
  margin-top: 18px; padding: 12px 18px 6px; border-top: 1px solid #1c1d26;
  font-size: 17px; opacity: 0.92;
}
.mockup-nav .add {
  width: 34px; height: 34px; border-radius: 50%; background: #e5ff77; color: #1a1a1a;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; line-height: 1;
}
.mockup-homebar { width: 108px; height: 5px; border-radius: 99px; background: #4a4c57; margin: 8px auto 9px; }

/* ---------- "Acreditamos em interações reais" + calendários ---------- */
.home-calendars { padding: 80px 40px; text-align: center; }
.home-calendars h2 .gold { color: #ecb615; }
.home-calendars h2 .cut { color: var(--text); text-decoration: line-through; }
.home-calendars .sub2 { font-size: 16px; color: var(--text); margin-top: 14px; }
/* laço infinito: os cards transbordam a tela pelos dois lados e recomeçam sem emenda */
.cal-marquee {
  margin: 40px -40px 36px;   /* sangra para além do respiro da seção */
  padding: 8px 0; overflow: hidden;
}
.cal-track {
  display: flex; width: max-content;
  animation: cal-marquee var(--dur, 60s) linear infinite;
}
.cal-group { display: flex; }
/* o espaçamento vem de margin, e não de gap: assim cada card ocupa sempre a mesma
   medida e andar metade do trilho cai exatamente sobre a cópia seguinte */
.cal-group .vx-cal-card { margin-right: 16px; }
@keyframes cal-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* os cards têm botão de seguir: parar no hover deixa o alvo clicável */
.cal-marquee:hover .cal-track { animation-play-state: paused; }

.vx-cal-card {
  width: 270px; flex-shrink: 0;   /* 20% mais largo que os 225px anteriores */
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  padding: 28px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg); color: var(--text);
}
.vx-cal-card.has-cover { padding-top: 0; }
.vx-cal-cover { width: calc(100% + 40px); margin: 0 -20px; height: 90px; object-fit: cover; display: block; }
.vx-cal-card .av, .vx-cal-card .ph {
  width: 80px; height: 80px; border-radius: 100px; border: 3px solid var(--bg);
  object-fit: cover; margin-bottom: 10px;
}
.vx-cal-card.has-cover .av, .vx-cal-card.has-cover .ph { margin-top: -40px; }
.vx-cal-card .ph {
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: var(--accent);
}
.vx-cal-card .nm { font-size: 20px; font-weight: 600; }
.vx-cal-card .ct { font-size: 14px; color: var(--text-2); min-height: 20px; }
.vx-cal-card .vx-attend { margin-top: 12px; }

/* ---------- "Compartilhar sua agenda" ---------- */
.home-share { text-align: center; padding: 72px 20px 40px; }
.home-share h2 .blue { color: #3086c8; }
.home-share .sub2 { font-size: 15px; color: var(--text-2); margin-top: 14px; }
.home-share .sub2 strong { color: var(--text); }

/* chips de categoria (3 linhas com parallax) */
.cat-lines { padding: 24px 0 56px; overflow: hidden; }
.cat-line {
  display: flex; gap: 14px; justify-content: center; margin-bottom: 14px;
  white-space: nowrap; will-change: transform;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 100px; padding: 18px 36px;
  font-size: 14px; color: var(--text); flex-shrink: 0;
}

/* ---------- faixa roxa marquee ---------- */
.ribbon { background: #8345d8; height: 60px; overflow: hidden; display: flex; align-items: center; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-marquee 20s linear infinite; }
.ribbon-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 600; padding: 0 26px; white-space: nowrap;
}
@keyframes ribbon-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- "Ideal para calendário de ..." + features ---------- */
.home-ideal { text-align: center; padding: 72px 20px 0; }
.home-ideal .typing2 { color: #b8d63c; }
.home-ideal .sub2 { font-size: 15px; color: var(--text-2); margin: 16px 0 48px; }
.feature-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0 48px; }
.vx-feature {
  border: 1px solid var(--border); border-radius: 8px; min-height: 230px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 22px; text-align: left; background: var(--surface);
}
.feat-icon { font-size: 38px; line-height: 1; }
.vx-feature h3 { font-size: 20px; font-weight: 600; color: var(--text); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge-breve { background: #e5ff77; color: #030712; font-size: 14px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.home-ideal .cta { margin: 36px 0 72px; }

/* ---------- cartões finais lime / rosa ----------
   Texto escuro em ambos: branco sobre lime dava contraste de 1.1:1 e sobre
   rosa 2.9:1 — ilegível. Escuro leva os dois para 16.7:1 e 5.9:1. */
.home-final { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 48px 120px; }
.final-card {
  border-radius: 24px; padding: 56px 44px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.final-card:hover { transform: translateY(-4px); }
.final-card.lime {
  background: #e5ff77; color: #12140a;
  box-shadow: 0 22px 60px -18px rgba(229, 255, 119, 0.45);
}
.final-card.pink {
  background: #fd5d95; color: #3b0518;
  box-shadow: 0 22px 60px -18px rgba(253, 93, 149, 0.45);
}
.final-card.lime:hover { box-shadow: 0 30px 70px -18px rgba(229, 255, 119, 0.6); }
.final-card.pink:hover { box-shadow: 0 30px 70px -18px rgba(253, 93, 149, 0.6); }

.final-card img { width: 128px; margin-bottom: 20px; }
.final-card h2 {
  font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -1.2px;
  line-height: 1.16; color: inherit; max-width: 15ch; margin-bottom: 12px;
}
.final-card h2 b { font-weight: 900; }
.final-card .small {
  font-size: 16px; line-height: 1.65; max-width: 44ch; margin-bottom: 24px;
}
.final-card.lime .small { color: #2b3018; }
.final-card.pink .small { color: #4a0a20; }
.final-card .btn-final { margin-top: auto; padding: 14px 30px; font-size: 15px; }
.final-card.lime .btn-final { --face: #12140a; --side: #000; --ink: #e5ff77; --edge: transparent; }
.final-card.pink .btn-final { --face: #fff; --side: #d2879f; --ink: #b8134b; --edge: transparent; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .home-section h2 { font-size: 34px; letter-spacing: -1px; }
  .home-tipos { flex-direction: column; padding: 56px 24px; gap: 40px; }
  .home-tipos .col-text { padding-top: 0; }
  .mockup { width: 100%; max-width: 360px; margin: 0 auto; }
  .feature-row { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .vx-feature { min-height: 150px; }
  .home-final { grid-template-columns: 1fr; padding: 32px 20px 80px; }
  .final-card h2 { font-size: 28px; }
  .float-emoji { display: none; }
  #carouselLineOne { margin-left: -60px; }
  #carouselLineTwo { margin-left: -1900px; }
}

@media (prefers-reduced-motion: reduce) {
  .mockup, .mockup-glare::before, .cal-track { animation: none; }
}

/* ---------- modo claro: destaques dos títulos ----------
   As cores de marca foram feitas para fundo escuro. Sobre o claro elas caíam
   para 1,5–2,4:1 (o mínimo para texto grande é 3:1), então aqui entram versões
   escurecidas da mesma matiz, todas acima de 4,5:1. O tema escuro não muda. */
[data-theme="light"] .home-calendars h2 .gold { color: #8a6400; }
[data-theme="light"] .home-tipos .typing      { color: #7b3fd4; }
[data-theme="light"] .home-ideal .typing2     { color: #5f7a0e; }
[data-theme="light"] .home-share h2 .blue     { color: #1f6ca8; }

/* o card dentro do mockup fica sobre a tela do aparelho, não sobre a página:
   mantém-se sem fundo, e a borda animada não faz sentido num aparelho estático */
.mockup .vx-card { background: transparent; }
.mockup .vx-card:hover {
  background: transparent; border-color: var(--border);
  animation: none; transform: none;
}

/* ---------- título do hero com cores em movimento ----------
   O gradiente é recortado pelo texto e desliza de um lado ao outro. As cores
   vivem em variáveis porque as da marca foram feitas para fundo escuro: no
   tema claro entram versões escurecidas, senão o título fica ilegível. */
.home-hero h1 {
  --c1: var(--text);
  --c2: #bd88f9;   /* roxo */
  --c3: #e5ff77;   /* lima */
  --c4: #67b4f0;   /* azul */
  background-image: linear-gradient(100deg,
    var(--c1) 0%, var(--c2) 24%, var(--c3) 44%, var(--c4) 64%, var(--c1) 88%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titulo-cores 9s ease-in-out infinite;
}

/* a entrada também usa `animation`: as duas precisam ser declaradas juntas,
   senão a que vier depois apaga a outra */
.home-hero h1.anim.play-fadeInDown {
  animation: fadeInDown 1s both, titulo-cores 9s ease-in-out 1s infinite;
}

@keyframes titulo-cores {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

[data-theme="light"] .home-hero h1 {
  --c2: #7b3fd4;
  --c3: #5f7a0e;
  --c4: #1f6ca8;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero h1, .home-hero h1.anim.play-fadeInDown {
    animation: none; background-image: none; color: var(--text);
  }
}
