/* Página de apresentação do Facyo. Estática e leve: sem biblioteca, sem script. As cores e as fontes são as do
   app (mobile/src/theme/tokens.ts). */
@font-face { font-family: 'Sora'; font-weight: 500; font-display: swap; src: url('/fontes/Sora_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('/fontes/Sora_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/fontes/DMSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/fontes/DMSans_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('/fontes/DMSans_600SemiBold.ttf') format('truetype'); }

:root {
  --ink: #16202b;
  --ground: #f1f5f9;
  --surface: #ffffff;
  --line: #d9e1ea;
  --muted: #5c6b7a;
  --accent: #2f6086;
  --accent-pressed: #1e466e;
  --accent-soft: #dce8f2;
  --brand: #1e466e;
  --brand-light: #c9dcec;
  --success: #1e6b47;
  --success-soft: #ddefe6;
  --display: 'Sora', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --body: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }

.largura { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.largura.estreita { max-width: 800px; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background-color 0.15s, border-color 0.15s; white-space: nowrap; }
.botao-principal { background: #ffffff; color: var(--brand); }
.botao-principal:hover { background: var(--accent-soft); }
.botao-contorno { border-color: rgba(255, 255, 255, 0.45); color: #ffffff; }
.botao-contorno:hover { border-color: #ffffff; }
.botao-claro { min-height: 42px; padding: 0 18px; background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.botao-claro:hover { background: rgba(255, 255, 255, 0.24); }
.botao-contorno-escuro { border-color: var(--line); color: var(--ink); background: var(--surface); }
.botao-contorno-escuro:hover { border-color: var(--accent); }
/* Sobre fundo claro, o botão principal é o azul da marca. */
.secao .botao-principal, .plano .botao-principal { background: var(--accent); color: #ffffff; }
.secao .botao-principal:hover, .plano .botao-principal:hover { background: var(--accent-pressed); }
.treino .botao-principal { background: #ffffff; color: var(--brand); }
.treino .botao-principal:hover { background: var(--accent-soft); }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--brand); }
.topo-linha { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #ffffff; font-family: var(--display); font-weight: 600; font-size: 22px; }
.marca img { border-radius: 9px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: var(--brand-light); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:hover { color: #ffffff; }

/* Abertura */
/* Abertura: o texto à esquerda, sobre o azul; à direita, ao fundo, a gravação do editor. O fundo da gravação é
   preto, então o azul da marca escurece até o preto da esquerda para a direita, e o vídeo some no azul. */
.abertura { position: relative; background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 34%, #0c1622 62%, #000 100%); color: #ffffff; overflow: hidden; }
.abertura-fundo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.abertura-fundo video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.abertura-grade { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: min(86vh, 760px); padding-top: 72px; padding-bottom: 72px; }
.abertura-texto { padding: 0; max-width: 34em; text-shadow: 0 1px 24px rgba(12, 22, 34, 0.55); }
.sobretitulo { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 14px; }
.sobretitulo.escuro { color: var(--accent); }
.apoio { margin-top: 20px; font-size: 19px; color: var(--brand-light); max-width: 34em; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nota { margin-top: 16px; font-size: 14.5px; color: var(--brand-light); }
.nota.escura { color: var(--muted); text-align: center; max-width: 46em; margin: 28px auto 0; }

/* Capturas do app, numa moldura simples */
.tela { margin: 0; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid rgba(22, 32, 43, 0.12); box-shadow: 0 24px 60px rgba(22, 32, 43, 0.22); }
/* Os três aparelhos da abertura, desenhados em CSS: computador atrás, tablet (com o vídeo) na frente e o
   celular por cima, à direita. As medidas são em % da largura do conjunto, para encolherem juntas. */
.aparelhos { position: relative; width: 100%; aspect-ratio: 100 / 68; }
.aparelhos img, .aparelhos video { display: block; width: 100%; height: 100%; object-fit: cover; }
.computador { position: absolute; left: 0; top: 0; width: 76%; filter: drop-shadow(0 24px 40px rgba(22, 32, 43, 0.28)); }
.computador-tela { aspect-ratio: 16 / 10; padding: 2.2% 2.2% 0; background: #0f151c; border-radius: 14px 14px 0 0; overflow: hidden; }
.computador-tela img { border-radius: 6px 6px 0 0; object-position: top left; }
.computador-base { height: 0; padding-bottom: 2.4%; margin: 0 -6%; background: linear-gradient(#cfd8e2, #9aa8b8); border-radius: 0 0 14px 14px; }
.tablet { position: absolute; right: 9%; bottom: 0; width: 66%; aspect-ratio: 16 / 10; padding: 1.6%; background: #0f151c; border-radius: 22px; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tablet video { border-radius: 12px; background: #000; }
.celular { position: absolute; right: 0; bottom: -3%; width: 22%; aspect-ratio: 10 / 17.2; padding: 1%; background: #0f151c; border-radius: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.celular img { border-radius: 16px; object-position: top center; }

/* Faixa "feito para" */
.faixa { background: var(--ground); border-bottom: 1px solid var(--line); }
.faixa-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; color: var(--muted); }
.faixa-linha span { font-weight: 600; color: var(--ink); }
.faixa-linha ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.faixa-linha li { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* Seções */
.secao { padding: 84px 0; }
.secao.clara { background: var(--ground); }
.secao > .largura > h2 { max-width: 22em; }

/* Passos */
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.passos li { padding: 22px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); }
.passos h3 { margin: 14px 0 6px; }
.passos p { color: var(--muted); font-size: 16px; }
.numero { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #ffffff; font-family: var(--display); font-weight: 600; }

/* Recursos */
.recurso { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: center; margin-top: 64px; }
.recurso.invertido { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.recurso.invertido .recurso-texto { order: 2; }
.recurso-texto h3 { font-size: 26px; margin-bottom: 12px; }
.recurso-texto p { color: var(--muted); }
.observacao { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 15px; }
.lista { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lista li { position: relative; padding-left: 20px; color: var(--ink); font-size: 16px; }
.lista li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.cartoes.dois { grid-template-columns: repeat(2, 1fr); }
.aparelhos-grade { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.texto-secao { color: var(--muted); max-width: 34em; }
.cartao { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cartao h3 { margin-bottom: 8px; }
.cartao p { color: var(--muted); font-size: 16px; }

/* Treino */
.treino { background: var(--brand); color: #ffffff; }
.treino-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.treino p:not(.sobretitulo) { color: var(--brand-light); margin-bottom: 26px; max-width: 34em; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks.escuros li { font-size: 16px; }
.checks.escuros li::before { background-color: var(--success-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }

/* Preços */
.planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: stretch; }
.plano { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); }
.plano.destaque { border-color: var(--accent); box-shadow: 0 16px 40px rgba(47, 96, 134, 0.16); }
.selo { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.preco { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 38px; letter-spacing: -0.02em; line-height: 1.1; }
.periodo { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plano .checks { margin-bottom: 26px; }
.plano .botao { margin-top: auto; }

/* Confiança */
.confianca { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.confianca-itens { display: grid; gap: 22px; }
.confianca-itens h3 { margin-bottom: 6px; }
.confianca-itens p { color: var(--muted); font-size: 16px; }

/* Dúvidas */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary { cursor: pointer; padding: 20px 34px 20px 0; font-family: var(--display); font-weight: 500; font-size: 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 22px; color: var(--muted); }

/* Chamada final */
.final { background: var(--brand); color: #ffffff; padding: 72px 0; }
.final-conteudo { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final-conteudo img { border-radius: 18px; }
.final h2 { margin: 0; }

/* Rodapé */
.rodape { background: #16202b; color: #9aa8b8; padding: 40px 0 34px; font-size: 14.5px; }
.rodape strong { font-family: var(--display); font-size: 20px; color: #ffffff; }
.rodape-linha { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.rodape p { margin-top: 6px; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.rodape a { color: #c9dcec; text-decoration: none; }
.rodape a:hover { color: #ffffff; text-decoration: underline; }
.miudo { margin-top: 26px; padding-top: 20px; border-top: 1px solid #2a3644; font-size: 13px; max-width: 70em; }

/* Telas médias e pequenas */
@media (max-width: 960px) {
  .menu { display: none; }
  .topo-linha { justify-content: space-between; }
  .abertura-grade, .recurso, .recurso.invertido, .treino-grade, .confianca, .aparelhos-grade { grid-template-columns: 1fr; gap: 28px; }
  .cartoes.dois { grid-template-columns: 1fr; }
  /* Tela estreita: o vídeo fica em cima, logo abaixo do cabeçalho, e some no azul; o texto sobe um pouco sobre
     o pé dele. */
  .abertura { display: flex; flex-direction: column; background: linear-gradient(180deg, #000 0%, #0c1622 34%, var(--brand) 58%); }
  .abertura-fundo { position: relative; width: 100%; aspect-ratio: 900 / 700; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); }
  .abertura-fundo video { object-position: center 30%; }
  .abertura-grade { min-height: 0; margin-top: -84px; padding-top: 0; padding-bottom: 44px; }
  .abertura-texto { padding-bottom: 8px; }
  .recurso.invertido .recurso-texto { order: 0; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .cartoes, .planos { grid-template-columns: 1fr; }
  .secao { padding: 60px 0; }
  .recurso { margin-top: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Só os lados: o atalho `padding` zeraria o respiro de cima e de baixo de quem também é .largura. */
  .largura { padding-left: 18px; padding-right: 18px; }
  .passos { grid-template-columns: 1fr; }
  .acoes .botao { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
