/* ═══════════════════════════════════════════════════════════
   GestãoTel — página de apresentação
   ═══════════════════════════════════════════════════════════
   HTML e CSS puros, sem framework nem passo de build: a página abre
   em menos de um segundo e o Google lê o conteúdo diretamente.
   Os tokens são os mesmos da aplicação, para parecer o mesmo produto. */

:root {
  --bg: #f8f7ff;
  --surface: #ffffff;
  --surface-alt: #f3f1ff;
  --border: #e6e3f7;
  --text: #191325;
  --text-muted: #6b6478;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --success: #059669;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(23, 15, 60, 0.08), 0 1px 2px rgba(23, 15, 60, 0.06);
  --shadow-lg: 0 20px 40px rgba(23, 15, 60, 0.16), 0 6px 14px rgba(23, 15, 60, 0.08);
}

/* O claro é o padrão desta página: quem chega vem de uma pesquisa ou
   de um link, e o claro lê-se melhor à primeira, sobretudo ao sol.
   O escuro fica à distância de um toque, e a escolha é lembrada. */
:root[data-theme='dark'] {
  --bg: #0f0c1a;
  --surface: #1a1630;
  --surface-alt: #221c3d;
  --border: #332c54;
  --text: #f2eefc;
  --text-muted: #a89fc9;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.18);
  --gradient-brand: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  --success: #34d399;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Botão de alternar tema */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
}

.theme-btn:hover {
  background: var(--surface-alt);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mostra o ícone do tema para onde o botão leva, não o atual. */
:root:not([data-theme='dark']) .icon-sun,
:root[data-theme='dark'] .icon-moon {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Cabeçalho ── */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.beta-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.brand-mark {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-alt);
}

/* ── Hero ── */
.hero {
  padding: 48px 0 56px;
}

h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Secções ── */
section {
  padding: 44px 0;
}

h2 {
  font-size: clamp(23px, 3.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 620px;
}

/* ── Bloco da dor ── */
.pain {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pain-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pain-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Cartões ── */
.cards {
  display: grid;
  /* 320px força duas colunas na largura da página: com quatro cartões,
     3+1 deixa o último sozinho e parece engano. 2×2 lê-se como
     escolha. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Capturas de ecrã ──
   Os prints são de telemóvel, altos e estreitos. Em ecrã largo ficam
   lado a lado; em telemóvel passam a um carrossel horizontal, para não
   empilharem três imagens de 840px de altura. */
.shots {
  display: grid;
  /* auto-fit em vez de um número fixo: com quatro capturas ficam duas
     por linha em ecrã médio, em vez de espremer as quatro. */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.shots figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: block;
}

.shots figcaption {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .shots {
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    /* Sangra até às margens para o carrossel parecer continuar
       para lá do ecrã, convidando a arrastar. */
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .shots figure {
    scroll-snap-align: center;
  }
}

/* ── Passos ── */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Preço ── */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 420px;
}

.price-tag {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.price-trial {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

/* O bloco de preço é o ponto de decisão da página: centrado, lê-se
   como um destaque e não como mais um parágrafo. O resto da página
   continua alinhado à esquerda. */
.preco .wrap {
  text-align: center;
}

.preco .section-sub {
  margin-inline: auto;
}

.price-card {
  position: relative;
  margin-inline: auto;
}

/* Selo do desconto, encostado ao topo do cartão. */
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
}

/* Preço antigo riscado. Fica visivelmente mais pequeno e apagado: a
   função dele é servir de referência ao novo, não competir com ele. */
.price-trial s {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration-thickness: 2px;
  margin-right: 6px;
}

.price-trial span {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-beta {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.price-note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.price-card .btn {
  width: 100%;
}

.price-cancel {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Dúvidas ──
   <details> nativo: abre e fecha sem uma linha de JavaScript, e
   continua acessível ao teclado e a leitores de ecrã. */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Rodapé ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 0 40px;
  }

  section {
    padding: 34px 0;
  }

  /* Num telemóvel os botões lado a lado ficam estreitos demais */
  .hero-actions .btn {
    width: 100%;
  }
}
