/* =============================================
   DOUGLAS BRAZ — LINK NA BIO
   style.css
   ============================================= */

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

[hidden], .category-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0b2808;
  background-image: linear-gradient(rgba(11, 40, 8, 0.85), rgba(11, 40, 8, 0.95)), url('../../assets/bg_linktree.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: #D5E3D3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- ACCESSIBILITY ---- */
.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;
}

/* ---- APP WRAPPER (mobile-first column, max 480px centered) ---- */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #11390C;
  position: relative;
  overflow: hidden;
}

/* Subtle top glow */
.app-wrapper::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(44, 99, 37, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   HEADER — PROFILE
   ============================================= */
.profile-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 32px;
  text-align: center;
  gap: 0;
}

/* Avatar */
.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin-bottom: 18px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #2C6325;
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(44, 99, 37, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(44, 99, 37, 0);
  }
}

.profile-avatar-zoom {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #083302;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  transform-origin: center 20%;
  display: block;
}

/* Profile text */
.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.profile-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8DBF87;
  margin-bottom: 12px;
  letter-spacing: 0.1px;
  line-height: 1.55;
}

.profile-bio {
  font-size: 0.875rem;
  color: #D5E3D3;
  line-height: 1.65;
  max-width: 340px;
  opacity: 0.9;
}

/* =============================================
   SECTIONS
   ============================================= */
main {
  position: relative;
  z-index: 1;
  padding: 0 0 16px;
}

.section {
  padding: 24px 0 8px;
}

.section-header {
  padding: 0 20px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* =============================================
   SEARCH INPUT
   ============================================= */
.search-wrap {
  padding: 0 20px;
  margin-bottom: 16px;
}

.category-tabs {
  padding: 0 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.tabs-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tabs-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(8, 51, 2, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(84, 142, 76, 0.4);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  line-height: 1;
}

.tabs-scroll-btn:hover {
  background: #2C6325;
  border-color: #8DBF87;
  transform: translateY(-50%) scale(1.1);
}

.tabs-scroll-btn.prev { left: 4px; }
.tabs-scroll-btn.next { right: 4px; }

.tabs-scroll-btn[style*="display: none"] {
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 768px) {
  .tabs-scroll-btn { display: none !important; }
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  background: transparent;
  color: #D5E3D3;
  border: 1px solid rgba(213, 227, 211, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab.active {
  background: #2C6325;
  color: #fff;
  border-color: #548E4C;
}

.category-tab:hover:not(.active) {
  border-color: rgba(213, 227, 211, 0.6);
  background: rgba(213, 227, 211, 0.05);
}

.search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #548E4C;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: #083302;
  border: 1px solid #2C6325;
  border-radius: 8px;
  color: #D5E3D3;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.search-input::placeholder {
  color: #548E4C;
}

.search-input:focus {
  border-color: #8DBF87;
  box-shadow: 0 0 0 3px rgba(141, 191, 135, 0.12);
}

.search-input:focus+.search-icon,
.search-inner:focus-within .search-icon {
  color: #8DBF87;
}

/* Remove native search cancel button */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Charger Autocomplete List */
.charger-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #083302;
  border: 1px solid #548E4C;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.charger-autocomplete-list li {
  padding: 10px 14px;
  cursor: pointer;
  color: #D5E3D3;
  font-size: 0.875rem;
  border-bottom: 1px solid #1a4d14;
}

.charger-autocomplete-list li:last-child {
  border-bottom: none;
}

.charger-autocomplete-list li:hover {
  background-color: #2C6325;
}


/* =============================================
   CARDS SCROLL CONTAINER
   ============================================= */
.cards-scroll {
  display: flex;
  gap: 16px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.cards-scroll::after {
  content: '';
  min-width: 1px;
  flex-shrink: 0;
}

.cards-scroll:active {
  cursor: grabbing;
}

/* Hide scrollbar */
.cards-scroll::-webkit-scrollbar {
  display: none;
}

.cards-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* When search is active, switch to flex-wrap grid */
.cards-scroll.is-filtered {
  flex-wrap: wrap;
  overflow-x: visible;
  cursor: default;
  scroll-snap-type: none;
}

/* =============================================
   CARD
   ============================================= */
.card {
  flex: 0 0 280px;
  min-width: 280px;
  scroll-snap-align: start;
  background: #083302;
  border: 1px solid #2C6325;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

@media (hover: hover) {
  .card:hover {
    border-color: #548E4C;
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

/* Card image */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #072a01;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

/* Emoji placeholder shown when image fails */
.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(135deg, #083302 0%, #0f2b0a 100%);
}

.card-img-wrap.img-fallback .card-img {
  opacity: 0;
}

.card-img-wrap.img-fallback .card-img-placeholder {
  opacity: 1;
}

/* Card body */
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-launch {
  font-size: 0.7rem;
  color: #8DBF87;
  font-weight: 500;
  opacity: 0.85;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.8rem;
  color: #8DBF87;
  line-height: 1.45;
  flex: 1;
}

/* Price */
.card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-old {
  font-size: 0.78rem;
  color: #548E4C;
  text-decoration: line-through;
  opacity: 0.8;
}

.price-new {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8DBF87;
}

.price-soon {
  font-size: 0.8rem;
  color: #548E4C;
  font-style: italic;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-prevenda {
  background: #C4880D;
  color: #fff;
}

.badge-embreve {
  background: #548E4C;
  color: #D5E3D3;
}

.badge-disponivel {
  background: #1a4d14;
  color: #8DBF87;
  border: 1px solid #2C6325;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
  width: 100%;
  text-align: center;
  letter-spacing: 0.1px;
  margin-top: auto;
}

.btn-primary {
  background: #2C6325;
  color: #D5E3D3;
}

.btn-primary:hover {
  background: #548E4C;
  box-shadow: 0 4px 12px rgba(84, 142, 76, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-disabled {
  background: #1a1a1a;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
}

/* =============================================
   PRODUTOS / CURSOS — VERTICAL LIST
   ============================================= */
.produtos-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 16px;
}

/* Scroll variant — shows limited items with vertical scroll */
.produtos-lista--scroll {
  /* Default: 3 items visible (each item ~84px + 12px gap) */
  max-height: calc(84px * 3 + 12px * 2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mostrar e estilizar o scrollbar */
.produtos-lista--scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.produtos-lista--scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.produtos-lista--scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary, rgba(44, 99, 37, 0.4));
  border-radius: 4px;
}

.produtos-lista--scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark, rgba(8, 51, 2, 0.6));
}

.produtos-lista--scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary, rgba(44, 99, 37, 0.4)) transparent;
}

/* Variant to show 4 items */
.produtos-lista--4 {
  max-height: calc(84px * 4 + 12px * 3);
}

/* Variant to show 6 items */
.produtos-lista--6 {
  max-height: calc(84px * 6 + 12px * 5);
}

.produto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F5F5F0;
  border: 1px solid #D5E3D3;
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
  .produto-item:hover {
    border-color: #548E4C;
    transform: scale(1.01);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
}

.produto-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E8E8E2;
  border: 1.5px solid #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.produto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.produto-nome {
  color: #1a2e18;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produto-desc {
  color: #5a7a55;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produto-acao {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.produto-preco {
  color: #8DBF87;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-comprar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2C6325;
  color: #D5E3D3;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-comprar-sm:hover {
  background: #548E4C;
  transform: translateY(-1px);
}

.btn-comprar-sm:active {
  transform: translateY(0);
}

.btn-comprar-disabled {
  background: #1a1a1a;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-comprar-disabled:hover {
  background: #1a1a1a;
  transform: none;
}

.produto-item[hidden] {
  display: none;
}

/* =============================================
   NO RESULTS
   ============================================= */
.no-results {
  padding: 20px 20px;
  color: #548E4C;
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
}

.no-results[hidden] {
  display: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #2C6325;
  opacity: 0.6;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8DBF87;
  border-radius: 50%;
  padding: 6px;
  transition: color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
}

.social-link:hover {
  color: #D5E3D3;
  transform: translateY(-3px) scale(1.1);
}

.social-link:active {
  transform: scale(0.96);
}

.social-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

/* Instagram icon uses stroke, not fill */
.social-link:nth-child(3) .social-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-copy {
  font-size: 0.75rem;
  color: #548E4C;
  text-align: center;
  line-height: 1.5;
}

/* =============================================
   SCROLL DRAG INTERACTION (desktop)
   ============================================= */
.cards-scroll.dragging {
  scroll-behavior: auto;
}

/* =============================================
   ENTRANCE ANIMATIONS
   ============================================= */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header {
  animation: fade-up 0.6s ease both;
}

.section:nth-child(1) {
  animation: fade-up 0.6s 0.15s ease both;
}

.section:nth-child(2) {
  animation: fade-up 0.6s 0.3s ease both;
}

.site-footer {
  animation: fade-up 0.6s 0.4s ease both;
}

/* =============================================
   TABLET (481px – 768px)
   ============================================= */
@media (min-width: 481px) {
  .card {
    flex: 0 0 300px;
    min-width: 300px;
  }
}

/* =============================================
   DESKTOP (769px+)
   ============================================= */
@media (min-width: 769px) {
  .app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  /* Na versão desktop, transformamos a lista vertical em um grid espaçoso */
  .produtos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 0 40px 32px;
  }

  /* Remove o limite de altura e scroll no desktop apenas para IA/Sistemas, Produtos mantém o scroll */
  #ia-lista.produtos-lista--scroll, 
  #ia-lista.produtos-lista--4 {
    max-height: none;
    overflow-y: visible;
  }
  
  /* Ajuste do max-height no desktop para mostrar apenas 2 linhas de produtos */
  #produtos-lista.produtos-lista--6 {
    max-height: calc(190px * 2 + 24px); /* Aproximadamente 2 linhas de cards desktop */
  }

  .section-header, .search-wrap, .category-tabs {
    padding: 0 40px;
  }

  .profile-bio {
    max-width: 600px;
    font-size: 1rem;
  }
  
  .profile-name {
    font-size: 2.5rem;
  }

  /* Layout de Cartão Desktop (Informações à esquerda, Imagem à direita) */
  .produto-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 12px;
    align-items: center;
    text-align: left;
    padding: 28px 32px;
    background: #F5F5F0;
    border: 1px solid #D5E3D3;
    border-radius: 16px;
  }

  .produto-img {
    grid-column: 2;
    grid-row: 1 / 3; /* Ocupa as duas linhas do lado direito */
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 0;
    object-fit: cover;
  }

  .produto-info {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .produto-nome {
    font-size: 1.25rem;
    color: #1a2e18;
    line-height: 1.2;
  }

  .produto-desc {
    font-size: 0.95rem;
    color: #5a7a55;
    line-height: 1.5;
    display: block;
    -webkit-line-clamp: initial;
  }

  .produto-acao {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    margin-top: 0;
    align-items: flex-start; /* Botão alinhado à esquerda */
  }

  .btn-comprar-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 8px;
    width: auto;
    min-width: 160px;
  }
}

/* =============================================
   VERY LARGE SCREENS
   ============================================= */
@media (min-width: 1200px) {
  body {
    background: #09200a;
  }

  .app-wrapper {
    border-radius: 24px;
    margin: 32px auto;
    min-height: calc(100vh - 64px);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  }
}

/* =============================================
   CURSOS — BANNER CARDS (handoff hi-fi)
   ============================================= */
:root {
  --green-900: #051a02;
  --green-800: #083302;
  --green-700: #0c4a08;
  --green-600: #11390C;
  --green-500: #1a6614;
  --green-300: #4ade50;
  --green-200: #86efac;
  --neon: #7dff5e;
  --cream: #f5f1e8;
  --gold: #e8c97a;
  --muted: rgba(245, 241, 232, 0.7);
}

.cursos-banners {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 16px 16px;
}

.banner {
  width: 100%;
  aspect-ratio: 1200 / 400;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 8px 24px -8px rgba(0,0,0,0.4);
  font-family: 'Inter', system-ui, sans-serif;
}

.banner-bg, .banner-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.banner-bg { z-index: 1; }
.banner-fx { z-index: 2; }

.banner-inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
  width: 100%;
  align-items: center;
}

.banner-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.banner-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: banner-pulse 2s ease-in-out infinite;
}
@keyframes banner-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(28px, 3.6vw, 46px);
  color: var(--cream);
}
.banner-title .accent {
  color: var(--neon);
  font-style: italic;
  font-weight: 500;
}

.banner-sub {
  color: rgba(245,241,232,0.78);
  font-size: 15px;
  line-height: 1.5;
  max-width: 380px;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--neon);
  color: var(--green-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(125,255,94,0.4), 0 8px 24px -8px var(--neon);
  margin-top: 6px;
  font-family: inherit;
}
.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(125,255,94,0.6), 0 12px 32px -8px var(--neon);
}
.banner-cta .arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-900);
  color: var(--neon);
  border-radius: 50%;
  font-size: 11px;
}
.banner-cta.ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,241,232,0.4);
  box-shadow: none;
}
.banner-cta.ghost .arrow {
  background: rgba(245,241,232,0.15);
  color: var(--cream);
}

.banner-photo {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.banner-photo img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: right 30%;
}
.banner-photo--vertical img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: right top;
  right: 0;
  top: 0;
  transform: translateY(-30%);
}

.banner.style-clean .banner-bg {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(26,102,20,0.4), transparent 60%),
    linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
}
.banner.style-clean .banner-fx {
  background-image:
    linear-gradient(rgba(125,255,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,255,94,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.banner.style-clean .banner-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-800) 0%, transparent 45%);
  z-index: 2;
}
.banner.style-clean .banner-photo::after {
  content: '';
  position: absolute;
  right: -20%;
  top: 50%;
  width: 70%;
  height: 70%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(125,255,94,0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.banner.is-soon .banner-cta {
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.banner.is-soon .banner-cta .arrow {
  background: rgba(255,255,255,0.15);
  color: var(--cream);
}

.banner-tag {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}

.price-tag {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 8;
  text-align: right;
}
.price-tag .from {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.6);
  text-decoration: line-through;
}
.price-tag .now {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--neon);
  line-height: 1;
  margin-top: 2px;
}

.deco-num {
  position: absolute;
  left: -20px;
  bottom: -40px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 280px;
  line-height: 0.8;
  color: rgba(125,255,94,0.07);
  z-index: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.feature-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-pills .pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(125,255,94,0.1);
  border: 1px solid rgba(125,255,94,0.2);
  color: var(--green-200);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.spark {
  color: var(--neon);
  display: inline-block;
  transform: translateY(-2px);
}

.banner--scene .scene-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.banner--scene .scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.banner--scene .scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,26,2,0.92) 0%, rgba(5,26,2,0.75) 35%, rgba(5,26,2,0.25) 65%, rgba(5,26,2,0.55) 100%),
    linear-gradient(180deg, rgba(8,51,2,0.2) 0%, transparent 40%, rgba(5,26,2,0.5) 100%);
}
.banner--scene .scene-content {
  position: relative;
  z-index: 5;
  padding: 44px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 58%;
}
.banner--scene .banner-title { text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.banner--scene .banner-sub {
  color: rgba(245,241,232,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  max-width: 420px;
}

@media (max-width: 820px) {
  .banner-inner { grid-template-columns: 1.5fr 1fr; }
  .banner-content { padding: 28px; gap: 12px; }
  .banner-title { font-size: 26px !important; }
  .banner-sub { font-size: 13px; }
  .price-tag .now { font-size: 22px; }
  .banner--scene .scene-content { padding: 28px; max-width: 75%; }
}

@media (max-width: 768px) {
  .banner {
    aspect-ratio: auto;
  }

  /* Grid vira coluna única — foto vai pro fundo como background */
  .banner-inner {
    grid-template-columns: 1fr;
    position: static; /* Permite que a foto absolute se alinhe ao .banner */
  }

  .banner-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .banner-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .banner-bg, .deco-num {
    z-index: 0;
  }

  /* Foto vertical (banner 2): mostra o rosto/torso */
  .banner-photo--vertical img {
    height: 100%;
    width: auto;
    min-width: 100%;
    top: 0;
    transform: none;
    object-position: center 10%;
  }

  /* Overlay mais forte pra legibilidade */
  .banner.style-clean .banner-photo::before {
    background: linear-gradient(90deg, rgba(5,26,2,0.88) 0%, rgba(5,26,2,0.68) 55%, rgba(5,26,2,0.35) 100%);
  }

  /* Texto fica acima da foto */
  .banner-content {
    position: relative;
    z-index: 5;
    padding: 32px 24px;
    gap: 12px;
  }

  .banner-title {
    font-size: 22px !important;
    line-height: 1.15;
  }

  .price-tag {
    top: 14px;
    right: 14px;
  }
  .price-tag .from { font-size: 9px; }
  .price-tag .now { font-size: 20px; }

  .banner-tag {
    top: 12px;
    right: 12px;
    font-size: 9px;
    padding: 5px 10px;
  }

  .feature-pills .pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  .banner-cta {
    padding: 11px 18px;
    font-size: 13px;
  }
}

@media (min-width: 769px) {
  .cursos-banners {
    padding: 0 40px 32px;
    gap: 32px;
  }
  .banner {
    min-height: 400px;
  }
  .banner.produto-item {
    display: block; /* Banners não usam o layout flex dos outros produtos */
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    padding: 0;
    gap: 0;
    background: transparent;
    border: none;
    width: 100%;
  }
  .banner.produto-item:hover {
    transform: none;
    border-color: transparent;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.06) inset,
      0 30px 60px -20px rgba(0,0,0,0.5),
      0 8px 24px -8px rgba(0,0,0,0.4);
  }
  /* Foto estica até as bordas da coluna (topo, base e direita) */
  .banner-inner {
    align-items: stretch;
  }
  .banner-photo {
    align-self: stretch;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-badge .dot { animation: none; }
}