/* ==========================================================================
   letsfinan — Landing page
   Identidade herdada de prototipo/tokens.css (dark industrial, grafite +
   azul elétrico). Tema escuro é o padrão do produto; suporte a claro via
   prefers-color-scheme abaixo é bônus.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Superfícies */
  --background:         #0c0e10;
  --foreground:          #f5f6f7;
  --card:                #16191d;
  --card-foreground:     #f5f6f7;
  --border:              #262a2f;
  --ring:                #3b82f6;
  --radius:              0.5rem;

  /* Marca / ação */
  --primary:             #2563eb;
  --primary-foreground:  #ffffff;
  --fn-accent-text:      #60a5fa;
  --brand:               #3b82f6;

  --secondary:           #21262c;
  --secondary-foreground:#e6e8eb;
  --muted:               #1b1f24;
  --muted-foreground:    #9aa1a9;
  --accent:              #23282e;

  /* Semânticas */
  --success:             #22c55e;
  --success-bg:          rgba(34, 197, 94, 0.14);
  --danger:              #f87171;

  /* Decorativos */
  --glow-primary-soft:   rgba(59, 130, 246, 0.10);
  --header-fade:         rgba(12, 14, 16, 0.72);
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);

  /* Tipografia */
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento — escala 4px */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
}

/* Tema claro — bônus, segue a preferência do sistema */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background:          #ffffff;
    --foreground:          #09090b;
    --card:                #ffffff;
    --card-foreground:     #09090b;
    --border:              #e4e4e7;
    --ring:                #2563eb;
    --primary:             #2563eb;
    --primary-foreground:  #ffffff;
    --fn-accent-text:      #2563eb;
    --brand:               #2563eb;
    --secondary:           #f4f4f5;
    --secondary-foreground:#18181b;
    --muted:               #f4f4f5;
    --muted-foreground:    #71717a;
    --accent:              #f4f4f5;
    --success:             #15803d;
    --success-bg:          rgba(22, 163, 74, 0.10);
    --danger:              #dc2626;
    --glow-primary-soft:   rgba(37, 99, 235, 0.05);
    --header-fade:         rgba(255, 255, 255, 0.75);
    --shadow-sm:  0 1px 2px rgba(24, 24, 27, 0.06);
    --shadow-md:  0 4px 12px rgba(24, 24, 27, 0.08), 0 1px 2px rgba(24, 24, 27, 0.06);
    --shadow-lg:  0 16px 40px rgba(24, 24, 27, 0.12), 0 2px 6px rgba(24, 24, 27, 0.06);
  }
}

/* --------------------------------------------------------------------------
   Reset mínimo
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

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

a { color: inherit; }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* --------------------------------------------------------------------------
   Acessibilidade — foco e skip link
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) { filter: brightness(0.93); }

.btn-sm {
  height: 36px;
  padding: 0 var(--space-4);
  font-size: 0.875rem;
}

.btn-lg {
  height: 48px;
  padding: 0 var(--space-8);
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-fade);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand svg {
  display: block;
  height: 30px;
  width: auto;
  color: var(--foreground);
}

.brand--small svg {
  height: 26px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  background:
    radial-gradient(60% 50% at 85% 0%, var(--glow-primary-soft), transparent 70%),
    var(--background);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 5vw + 1rem, 3rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: var(--space-5);
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

.hero-cta {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Mock de UI do caixa, decorativo */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mock-card {
  width: 100%;
  max-width: 22rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.mock-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.mock-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.mock-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fn-accent-text);
  background: var(--glow-primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.mock-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.mock-card__list li:last-child { border-bottom: none; }

.mock-item__label { color: var(--muted-foreground); }

.mock-item__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.mock-item__value--in { color: var(--success); }
.mock-item__value--out { color: var(--danger); }

.mock-card__foot {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.mock-card__balance {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   Seções gerais
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.0625rem);
}

.section-head p {
  margin-top: var(--space-3);
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Cards de grade — como funciona / módulos
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid--3, .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card, .module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: var(--space-6);
}

.feature-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--glow-primary-soft);
  color: var(--fn-accent-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
}

.feature-card h3, .module-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.feature-card p, .module-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.module-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.module-card__head h3 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge--available {
  background: var(--success-bg);
  color: var(--success);
}

.badge--soon {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* --------------------------------------------------------------------------
   Chips — segmentos
   -------------------------------------------------------------------------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-3) var(--space-5);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contato (CTA final via WhatsApp)
   -------------------------------------------------------------------------- */
.contact-inner {
  max-width: 34rem;
}

.contact-box {
  display: flex;
  justify-content: center;
}

.icon-whatsapp {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-copy {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-contact {
  color: var(--fn-accent-text);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-contact:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Breakpoints de layout maiores
   -------------------------------------------------------------------------- */
@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-visual { justify-content: flex-end; }
}
