/* ===================================
   Controle o Bolso - Landing Page CSS
   =================================== */

/* CSS Variables */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 20%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 10%);
  --primary: hsl(152, 60%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 15%, 96%);
  --secondary-foreground: hsl(220, 20%, 20%);
  --muted: hsl(220, 15%, 96%);
  --muted-foreground: hsl(220, 10%, 50%);
  --accent: hsl(152, 50%, 95%);
  --accent-foreground: hsl(152, 60%, 30%);
  --destructive: hsl(0, 72%, 51%);
  --success: hsl(152, 60%, 40%);
  --warning: hsl(38, 92%, 50%);
  --border: hsl(220, 13%, 91%);
  --radius: 0.75rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  z-index: 100;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hidden {
  display: none;
}

.download-app {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.download-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.download-text {
  flex: 1;
  min-width: 280px;
}

.download-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.download-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #cbd5e1;
}

.btn-download {
  display: inline-block;
  padding: 14px 28px;
  background: #22c55e;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-download:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.download-qr {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 280px;
}

.qr-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  max-width: 260px;
}

.qr-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.qr-card span {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

/* Responsivo */
@media (max-width: 768px) {
  .download-content {
    flex-direction: column;
    text-align: center;
  }

  .download-text h2 {
    font-size: 1.6rem;
  }
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #4dc201;
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(152, 60%, 35%);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

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

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

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    /* margin-right: 10px; */
    padding-right: 14px;
    background-color: #4dc201;
    text-decoration: none;
    color: hsl(0, 0%, 100%);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

/* CONTROLE REAL do tamanho da imagem */
.logo-img {
  height: 32px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.header-cta {
  display: none;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-desktop, .header-cta {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, hsla(152, 60%, 40%, 0.1), var(--background), hsla(152, 50%, 95%, 0.2));
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-success {
  color: var(--success);
}

.text-destructive {
  color: var(--destructive);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
}

.mockup-card {
  background-color: var(--card);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  padding: 1.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

.mockup-balance {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.mockup-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: hsla(152, 60%, 40%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  padding: 1rem;
  border-radius: 0.75rem;
}

.summary-income {
  background-color: hsla(152, 60%, 40%, 0.1);
}

.summary-expense {
  background-color: hsla(0, 72%, 51%, 0.1);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.summary-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.transactions-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.transaction-item:last-child {
  border-bottom: none;
}

.floating-card {
  display: none;
  position: absolute;
  top: -1rem;
  right: -1rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  padding: 0.75rem;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease-out;
}

@media (min-width: 1024px) {
  .floating-card {
    display: flex;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: hsla(152, 60%, 40%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.floating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

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

/* Comparison Section */
.comparison {
  padding: 5rem 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--secondary);
  font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table .highlight {
  background-color: var(--accent);
}

.check {
  color: var(--success);
  font-weight: bold;
}

.cross {
  color: var(--destructive);
  font-weight: bold;
}

.partial {
  color: var(--warning);
  font-weight: bold;
}

/* How it Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

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

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

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

/* Stats Section */
.stats {
  padding: 4rem 0;
  background-color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.8);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.testimonial-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.quote-icon {
  font-size: 2rem;
  color: hsla(152, 60%, 40%, 0.3);
  margin-bottom: 0.5rem;
}

.testimonial-content {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.stars {
  color: var(--warning);
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsla(152, 60%, 40%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.author-name {
  font-weight: 500;
}

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

/* Pricing Section */
.pricing {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.price {
  text-align: center;
  margin-bottom: 0.5rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.price-period {
  color: var(--muted-foreground);
}

.pricing-description {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features .check {
  color: var(--success);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

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

.faq-item p {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.7);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-text {
  color: var(--background);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: hsla(0, 0%, 100%, 0.7);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--background);
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cookie-banner a {
  color: var(--primary);
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}
