/* ==========================================================================
   GEO — estilos compartilhados (index.html + captura.html)
   Estética "museu" (Apple-like): um único acento de cor, superfícies planas,
   sem sombra, sem gradiente, sem ruído decorativo.
   ========================================================================== */

/* 1) TOKENS -------------------------------------------------------------- */
:root {
  /* cor */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --on-dark: #ffffff;
  --body-muted-dark: #cccccc;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-dark: #272729;
  --tile-dark-2: #2a2a2c;
  --black: #000000;
  --hairline: #e0e0e0;
  --divider: #f0f0f0;
  --placeholder-color: #6e6e73;
  --fine-print-dark: #a1a1a6;
  --error: #ff6961;

  /* raio */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 17px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;

  /* tipografia */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* movimento */
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2) RESET MÍNIMO --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* rolagem suave para âncoras (só quando o usuário não reduz movimento) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* garante que [hidden] vença qualquer display definido por classe */
[hidden] {
  display: none !important;
}

/* 3) BASE / TIPOGRAFIA ----------------------------------------------------- */
body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.374px;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

/* 4) COMPONENTES ------------------------------------------------------------ */

/* botão / CTA primário (pill, Action Blue, sem sombra) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 120ms ease-out;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-primary:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
}

/* campos de formulário */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.form-field label {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
}

.form-field input {
  min-height: 48px;
  padding: 12px 16px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.form-field input::placeholder {
  color: var(--placeholder-color);
}

.form-field input:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.form-field input.input-error {
  border-color: var(--error);
}

.field-hint {
  font-size: 14px;
  color: var(--body-muted-dark);
}

.field-error {
  font-size: 14px;
  color: var(--error);
}

/* o slot de erro só ocupa espaço quando há mensagem */
.field-error:empty {
  display: none;
}

/* fine print */
.fine-print {
  font-size: 12px;
  color: var(--fine-print-dark);
}

/* placeholders de imagem (sem sombra, borda tracejada) */
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  text-align: center;
  border: 1px dashed var(--hairline);
  color: var(--placeholder-color);
  font-size: 14px;
}

.image-placeholder small {
  font-size: 12px;
  color: var(--placeholder-color);
}

/* 5) PÁGINA BIO (index.html) ------------------------------------------------ */
body.bio-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  background: var(--tile-dark);
  padding: var(--space-6) var(--space-5);
}

.bio-content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.bio-logo {
  width: clamp(120px, 34vw, 150px);
  height: auto;
}

.bio-headline {
  font-size: 21px;
  font-weight: 600;
  color: var(--on-dark);
}

.bio-support {
  font-size: 17px;
  font-weight: 400;
  color: var(--body-muted-dark);
  max-width: 440px;
}

.bio-proof {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--on-dark);
}

/* lista de links da bio: cartões empilhados, prontos para receber mais links */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 420px;
  margin-top: var(--space-2);
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform 120ms ease-out;
}

.bio-link:active {
  transform: scale(0.98);
}

.bio-link-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.bio-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-link-title {
  font-size: 17px;
  font-weight: 600;
}

.bio-link-subtitle {
  font-size: 14px;
  font-weight: 400;
}

.bio-footer {
  text-align: center;
}

/* coreografia de entrada — logo, headline, apoio, prova e links */
.bio-logo,
.bio-headline,
.bio-support,
.bio-proof,
.bio-links {
  animation: fade-up-in 600ms var(--ease-apple) both;
}

.bio-logo { animation-delay: 0ms; }
.bio-headline { animation-delay: 90ms; }
.bio-support { animation-delay: 180ms; }
.bio-proof { animation-delay: 270ms; }
.bio-links { animation-delay: 360ms; }

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6) PÁGINA CAPTURA (captura.html) ------------------------------------------ */

/* barra superior */
.top-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.top-bar-logo {
  width: 72px;
  height: auto;
}

/* seções em "tiles" edge-to-edge */
.section {
  padding-block: var(--space-8);
  padding-inline: var(--space-5);
}

.section-inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

/* herói */
.hero {
  background: var(--canvas);
}

/* no mobile, o wrapper de texto é transparente ao flex do container */
.hero-copy {
  display: contents;
}

.hero-meta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--placeholder-color);
}

.hero-cta {
  width: auto;
}

.hero-heading {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  color: var(--ink);
}

.hero-lead {
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  max-width: 620px;
}

.hero-heading,
.hero-lead,
.hero-meta,
.hero-cta,
.hero-mockup {
  animation: fade-up-in 600ms var(--ease-apple) both;
}

.hero-heading { animation-delay: 0ms; }
.hero-lead { animation-delay: 90ms; }
.hero-meta { animation-delay: 180ms; }
.hero-cta { animation-delay: 270ms; }
.hero-mockup { animation-delay: 180ms; }

.hero-mockup {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-lg);
}

.spy-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* seção de conteúdo do PDF */
.features {
  background: var(--parchment);
}

.features-heading {
  font-size: 28px;
  color: var(--ink);
}

.feature-list {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 17px;
  color: var(--ink);
}

.feature-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}

.spy-heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-6);
}

.spy-caption {
  font-size: 14px;
  color: var(--placeholder-color);
  margin-top: calc(-1 * var(--space-4));
}

.spy-grid {
  width: 100%;
  max-width: 620px;
  display: grid;
  /* sempre 3 colunas: a faixa representa os slides de um carrossel */
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.spy-item {
  aspect-ratio: 1 / 1;
  background: var(--canvas);
  border-radius: var(--radius-md);
}

/* seção do formulário */
.lead-form-section {
  background: var(--tile-dark);
}

.lead-form-section .section-inner {
  max-width: 480px;
}

/* desktop: herói em duas colunas (texto à esquerda, mockup à direita)
   e faixa de slides mais generosa */
@media (min-width: 834px) {
  .hero .section-inner {
    max-width: 1060px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 64px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    flex: 1;
  }

  .hero-mockup {
    max-width: 440px;
    margin: 0;
    flex-shrink: 0;
  }

  .features .section-inner {
    max-width: 920px;
  }

  .spy-grid {
    max-width: 920px;
    gap: var(--space-4);
  }

  /* oferta da aula em duas colunas: copy à esquerda, capa à direita */
  .offer-intro .section-inner {
    max-width: 1060px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 64px;
  }

  .offer-intro .offer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    flex: 1;
  }

  .offer-intro .offer-visual {
    max-width: 380px;
    flex-shrink: 0;
  }

  .offer-content .section-inner {
    max-width: 1060px;
  }

  .process-grid {
    max-width: 1060px;
    gap: var(--space-5);
  }
}

.form-heading {
  font-size: 28px;
  color: var(--on-dark);
}

.form-support {
  font-size: 17px;
  color: var(--body-muted-dark);
}

.form-proof {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--on-dark);
}

.lead-form-section .section-inner {
  gap: var(--space-4);
}

.lead-form-region {
  margin-top: var(--space-2);
  width: 100%;
}

#lead-form {
  width: 100%;
  text-align: left;
}

.form-send-error {
  font-size: 14px;
  color: var(--error);
  text-align: center;
  margin-top: var(--space-3);
}

.form-microcopy {
  text-align: center;
  margin-top: var(--space-3);
}

/* bloco de sucesso */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  animation: fade-up-in 500ms var(--ease-apple) both;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--primary-on-dark);
}

.form-edit-link {
  background: none;
  border: none;
  padding: 12px;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--primary-on-dark);
  cursor: pointer;
}

.form-edit-link:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
}

.form-success-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--on-dark);
}

.form-success-text {
  font-size: 17px;
  color: var(--body-muted-dark);
}

/* página de obrigado / oferta da aula */
.thanks-hero {
  background: var(--canvas);
}

.thanks-check {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.thanks-heading {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--ink);
}

.thanks-lead {
  font-size: 17px;
  color: var(--ink);
  max-width: 560px;
}

.thanks-bridge {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--placeholder-color);
}

.thanks-check,
.thanks-heading,
.thanks-lead,
.thanks-bridge {
  animation: fade-up-in 600ms var(--ease-apple) both;
}

.thanks-check { animation-delay: 0ms; }
.thanks-heading { animation-delay: 90ms; }
.thanks-lead { animation-delay: 180ms; }
.thanks-bridge { animation-delay: 270ms; }

.offer-intro {
  background: var(--tile-dark);
}

/* no mobile, o wrapper de texto da oferta é transparente ao flex do container */
.offer-copy {
  display: contents;
}

.offer-visual {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.offer-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: var(--body-muted-dark);
}

.offer-heading {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  color: var(--on-dark);
}

.offer-lead {
  font-size: 21px;
  color: var(--on-dark);
  max-width: 640px;
}

.offer-support {
  font-size: 17px;
  color: var(--body-muted-dark);
  max-width: 620px;
}

.offer-content {
  background: var(--parchment);
}

/* card de bônus (página de obrigado) */
.bonus-card {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  text-align: left;
}

.bonus-card-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--primary);
}

.bonus-card-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

/* jornada do processo em 3 quadros (página de obrigado) */
.process-grid {
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.process-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.process-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink);
}

.process-num {
  color: var(--primary);
}

.offer-cta {
  background: var(--tile-dark);
}

/* cartão de oferta: o único momento "drenched" em Action Blue da página */
.offer-box {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: 40px 32px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
}

.offer-box-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}

.offer-box-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.offer-box-old {
  font-size: 17px;
}

.offer-box-old s {
  text-decoration: line-through;
}

.offer-box-now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
}

.offer-box-x {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.offer-box-cash {
  font-size: 15px;
  margin-top: 4px;
}

.offer-box-discount {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
}

.offer-box-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.offer-box-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.offer-box-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--on-dark);
}

.offer-box-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 14px 28px;
  margin-top: var(--space-2);
  background: var(--canvas);
  color: var(--primary);
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 120ms ease-out;
}

.offer-box-button:active {
  transform: scale(0.96);
}

.offer-box-button:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 3px;
}

.offer-guarantee {
  font-size: 14px;
  color: var(--body-muted-dark);
  max-width: 460px;
}

/* rodapé da captura */
.site-footer {
  background: var(--tile-dark);
  padding-block: var(--space-6);
  padding-inline: var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.site-footer .back-home {
  font-size: 14px;
  color: var(--primary-on-dark);
}

/* 7) MEDIA QUERIES / REDUCED MOTION ----------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding-block: var(--space-7);
  }
}

@media (min-width: 641px) and (max-width: 834px) {
  .section-inner {
    max-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-logo,
  .bio-headline,
  .bio-support,
  .bio-proof,
  .bio-links,
  .hero-heading,
  .hero-lead,
  .hero-meta,
  .hero-cta,
  .hero-mockup,
  .form-success {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
