/* =========================================================
   Pontua.me — Landing page (site estático)
   Paleta e tokens espelham app/globals.css do app principal.
   ========================================================= */

:root {
  /* Paleta da marca */
  --brand-navy: #16214A;
  --brand-blue: #3B82F6;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-violet-deep: #6D28D9;
  --brand-cyan: #22D3EE;

  --color-primary: var(--brand-indigo);
  --color-primary-dark: #4338ca;
  --color-accent: var(--brand-violet);

  --gradient-primary: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-violet) 100%);
  --gradient-surface: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  --gradient-hero-glow: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.14), transparent 55%),
                        radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.16), transparent 45%),
                        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 55%);

  --text-main: var(--brand-navy);
  --text-muted: #475569;
  --text-soft: #64748b;

  --bg-surface: #ffffff;
  --bg-alt: #f8fafc;

  --shadow-sm: 0 1px 2px rgba(22, 33, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 33, 74, 0.08);
  --shadow-lg: 0 20px 45px rgba(79, 70, 229, 0.16);

  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-btn: 12px;

  --max-width: 1160px;

  font-size: 16px;
}

/* -------------------- Reset básico -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--gradient-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* -------------------- Botões -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid #e0e7ff;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: #f5f4ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

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

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

.brand img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--brand-navy);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-glow);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid #e0e7ff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  animation: fade-in-up 0.6s ease both;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fade-in-up 0.6s ease 0.05s both;
}

.hero h1 .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
  animation: fade-in-up 0.6s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  animation: fade-in-up 0.6s ease 0.15s both;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  animation: fade-in-up 0.6s ease 0.2s both;
}

.hero-visual {
  position: relative;
  animation: scale-in 0.7s ease 0.1s both;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid #eef0ff;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-card-header span {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

.hero-score {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.hero-score small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
}

.hero-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 64px;
  flex-shrink: 0;
}

.hero-bar-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #eef2ff;
  overflow: hidden;
}

.hero-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  animation: grow-bar 1.2s ease both;
}

.hero-bar-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-card-footer .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* -------------------- Seções genéricas -------------------- */
section {
  padding-block: 72px;
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
  max-width: 640px;
  margin-inline: auto;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 14px auto 0;
}

.section-head {
  margin-bottom: 48px;
}

/* -------------------- Como funciona -------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef0ff;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -------------------- Recursos -------------------- */
.features-bg {
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  border: 1px solid #eef0ff;
  border-radius: var(--radius-card);
  padding: 26px 22px;
  background: var(--bg-alt);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.feature-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient-primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------- Planos -------------------- */
.pricing-head {
  margin-bottom: 12px;
}

.free-trial-banner {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin-inline: auto;
}

.price-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid #eef0ff;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  border: 2px solid var(--color-primary);
}

.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.price-plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-value .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.price-value .period {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 600;
}

.price-equivalent {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 800;
  flex-shrink: 0;
}

/* -------------------- CTA final -------------------- */
.final-cta {
  background: var(--gradient-primary);
  border-radius: var(--radius-card);
  margin-inline: 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-block: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.18), transparent 55%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.final-cta .btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: none;
}

.final-cta .btn-ghost {
  color: #fff;
}

.final-cta .btn-ghost:hover {
  color: var(--brand-cyan);
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------------------- Rodapé -------------------- */
.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 30px;
}

.footer-tagline {
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* -------------------- Animações -------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes grow-bar {
  from {
    width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------- Responsivo -------------------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid #eef0ff;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 56px 64px;
  }

  section {
    padding-block: 56px;
  }

  .final-cta {
    padding: 40px 24px;
    margin-inline: 16px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .final-cta-actions .btn {
    width: 100%;
  }
}
