/* ============================================================
   SITES HMOSORIO - Estilos da Área Pública
   ============================================================ */

/* ─── Variáveis ──────────────────────────────────────────── */
:root {
  --primary:      #64ffda;
  --primary-dark: #48b1bf;
  --secondary:    #48b1bf;
  --accent:       #F97316;
  --accent-dark:  #EA580C;
  --success:      #10B981;
  --dark:         #020c1b;
  --dark-2:       #0a192f;
  --gray:         #8892b0;
  --light:        #e6f1ff;
  --text:         #8892b0;
  --bg-card:      rgba(10, 25, 47, 0.8);
  --border:       rgba(100, 255, 218, 0.12);
  --border-strong:rgba(100, 255, 218, 0.25);
  --gradient:     linear-gradient(135deg, #64ffda 0%, #48b1bf 100%);
  --gradient-2:   linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  --shadow-sm:    0 4px 12px rgba(2, 12, 27, 0.3);
  --shadow:       0 8px 32px rgba(2, 12, 27, 0.45);
  --shadow-lg:    0 20px 60px rgba(100, 255, 218, 0.1);
  --radius:       12px;
  --radius-lg:    20px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset e Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  background: rgba(2, 12, 27, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.06);
  transition: all .3s ease;
  padding: .9rem 0;
}

.navbar.scrolled {
  background: rgba(2, 12, 27, 1) !important;
  box-shadow: 0 4px 32px rgba(2, 12, 27, .5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: #fff !important;
}

/* Logo image no navbar */
.navbar-logo {
  height: 38px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  /* garante que a logo renderiza nítida em Retina/HiDPI */
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 374.98px) {
  .navbar-logo { height: 30px; max-width: 130px; }
}

.navbar-brand .brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.navbar-brand .brand-tag {
  display: inline-flex;
  align-items: center;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .8px;
  color: #020c1b;
  background: var(--primary);
  padding: .15rem .45rem;
  border-radius: 4px;
  margin-left: .2rem;
  vertical-align: middle;
  line-height: 1.4;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .9rem !important;
  border-radius: 8px;
  transition: all .2s;
}

.navbar-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }

.btn-nav-cta {
  background: var(--gradient);
  color: #020c1b !important;
  font-weight: 700;
  padding: .4rem 1.2rem !important;
  border-radius: 8px;
}

.btn-nav-cta:hover { opacity: .9; transform: translateY(-1px); color: #020c1b !important; }

/* ─── Hero Section ──────────────────────────────────────── */
#hero {
  min-height: 86vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(100,255,218,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(72,177,191,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(100,255,218,.07) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(100,255,218,.12);
  border: 1px solid rgba(100,255,218,.3);
  color: #64ffda;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1.1rem;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.btn-hero-primary {
  background: var(--gradient);
  color: #020c1b;
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .25s;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  width: fit-content;
}

.btn-hero-primary:hover {
  color: #020c1b;
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(100,255,218,.25);
}

.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  width: fit-content;
}

.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Hero mockup */
.hero-mockup {
  position: relative;
  padding-left: 2rem;
}

.hero-mockup-browser {
  background: #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform .4s ease;
}

.hero-mockup-browser:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.browser-bar {
  background: #0f172a;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.browser-dots { display: flex; gap: .4rem; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #EF4444; }
.browser-dot:nth-child(2) { background: #F59E0B; }
.browser-dot:nth-child(3) { background: #10B981; }

.browser-url {
  flex: 1;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  padding: .25rem .8rem;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-family: monospace;
}

.browser-content {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  padding: 0;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.browser-placeholder {
  width: 100%;
  padding: 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  min-height: 280px;
}

/* ─── Seção de Filtros e Vitrine ────────────────────────── */
#vitrine {
  padding: 6rem 0;
  background: var(--dark-2);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(100,255,218,.08);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid rgba(100,255,218,.2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--light);
  margin-bottom: .6rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Seletor de Segmento (cards de identidade) ─────────── */
.segment-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.seg-card {
  background: rgba(10, 25, 47, 0.6);
  border: 2px solid rgba(100, 255, 218, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.seg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s;
  background: var(--gradient);
}

.seg-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(100,255,218,.12);
  background: rgba(10, 25, 47, 0.85);
}

.seg-card.active {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(100,255,218,.15);
  background: rgba(10, 25, 47, 0.95);
}

.seg-card.active .seg-card-name  { color: var(--primary); font-weight: 800; }
.seg-card.active .seg-card-desc  { color: var(--primary); opacity: .7; }

/* Anel de seleção no active */
.seg-card.active::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: .65rem;
  font-weight: 900;
  background: var(--primary);
  color: #020c1b;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
}

.seg-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .25s;
}

.seg-card:hover .seg-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.seg-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: .3rem;
  line-height: 1.2;
  transition: color .2s;
}

.seg-card-desc {
  font-size: .72rem;
  color: var(--gray);
  line-height: 1.4;
  transition: color .2s;
}

/* Animação de entrada nos cards */
.seg-card { animation: segFadeIn .4s ease both; }
.seg-card:nth-child(1) { animation-delay: .05s; }
.seg-card:nth-child(2) { animation-delay: .10s; }
.seg-card:nth-child(3) { animation-delay: .15s; }
.seg-card:nth-child(4) { animation-delay: .20s; }
.seg-card:nth-child(5) { animation-delay: .25s; }
.seg-card:nth-child(6) { animation-delay: .30s; }

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

/* ─── Filtros Secundários (busca + tipo) ─────────────────── */
.filter-secondary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(10, 25, 47, 0.7);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.results-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

/* Filtros Tipo (pills secundários, menores) */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1.5px solid rgba(100,255,218,.15);
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: all .2s;
  background: rgba(255,255,255,.04);
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(100,255,218,.08);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #020c1b;
  font-weight: 700;
}

.filter-pill i { font-size: .78rem; }

/* Compatibilidade com o filtro-bar antigo (caso sobrar referências) */
.filter-bar { display: none; }
.filter-group-label { display: none; }

/* Busca */
.search-box {
  position: relative;
}

.search-box input {
  border: 1.5px solid rgba(100,255,218,.15);
  border-radius: 50px;
  padding: .5rem 1.2rem .5rem 2.8rem;
  font-size: .9rem;
  width: 100%;
  transition: all .2s;
  background: rgba(255,255,255,.05);
  color: var(--light);
}

.search-box input::placeholder { color: var(--gray); }

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(100,255,218,.1);
  background: rgba(255,255,255,.08);
}

.search-box i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
}

/* Template Cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.template-card {
  background: rgba(10, 25, 47, 0.75);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(100,255,218,.12);
  border-color: rgba(100,255,218,.3);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #0a192f, #020c1b);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.template-card:hover .card-thumbnail img {
  transform: scale(1.04);
}

.card-thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(100,255,218,.12), rgba(72,177,191,.08));
  gap: .5rem;
}

.card-thumbnail-placeholder i {
  font-size: 2.5rem;
  color: #64ffda;
  opacity: .6;
}

.card-thumbnail-placeholder span {
  font-size: .8rem;
  color: #64ffda;
  font-weight: 600;
  opacity: .7;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  opacity: 0;
  transition: opacity .3s;
}

.template-card:hover .card-overlay { opacity: 1; }

.card-badges {
  position: absolute;
  top: .8rem;
  left: .8rem;
  display: flex;
  gap: .4rem;
}

.card-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
}

.card-badge-cat {
  background: rgba(100,255,218,.85);
  color: #020c1b;
}

.card-badge-featured {
  background: rgba(249,115,22,.9);
  color: #fff;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-segment {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: .4rem;
  line-height: 1.3;
}

.card-description {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .8rem;
}

.feature-tag {
  font-size: .7rem;
  padding: .15rem .5rem;
  background: rgba(100,255,218,.08);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 500;
}

.card-footer-custom {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-price { display: flex; flex-direction: column; }

.price-label {
  font-size: .7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.price-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--light);
  letter-spacing: -0.5px;
}

.price-value small {
  font-size: .65rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0;
}

.card-actions {
  display: flex;
  gap: .4rem;
}

.btn-preview, .btn-comprar {
  padding: .45rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
}

.btn-preview {
  background: rgba(255,255,255,.06);
  color: var(--light);
  border: 1.5px solid rgba(100,255,218,.15);
}

.btn-preview:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

.btn-comprar {
  background: var(--gradient);
  color: #020c1b;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(100,255,218,.2);
}

.btn-comprar:hover {
  color: #020c1b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(100,255,218,.3);
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.empty-state p  { font-size: .9rem; }

/* ─── Seção Como Funciona ───────────────────────────────── */
#como-funciona {
  padding: 6rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#como-funciona::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(100,255,218,.07) 0%, transparent 70%);
}

.step-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all .3s;
}

.step-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(100,255,218,.25);
  transform: translateY(-4px);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #020c1b;
  margin: 0 auto 1.2rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #64ffda;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.step-text {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ─── Seção de Depoimentos ──────────────────────────────── */
#depoimentos {
  padding: 6rem 0;
  background: var(--dark);
}

/* Mantém compat. se ainda existir alguma referência antiga */
.testimonial-card { display: none; }

/* ─── tcard — Cards de Depoimento (novo design) ─────────── */
.tcard {
  background: rgba(10, 25, 47, 0.75);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 2px 16px rgba(2,12,27,.3);
  border: 1px solid rgba(100,255,218,.1);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.tcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(100,255,218,.1);
  border-color: rgba(100,255,218,.2);
}

/* Aspas decorativas */
.tcard-quote {
  position: absolute;
  top: .6rem;
  right: 1.2rem;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: .07;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Estrelas */
.tcard-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: .9rem;
}
.tcard-stars .bi-star { color: #cbd5e1; }
.tcard-stars-sm { font-size: .85rem; margin-bottom: .6rem; }

/* Texto do depoimento */
.tcard-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-style: italic;
  flex: 1;
}
.tcard-text-sm {
  font-size: .83rem;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge de resultado */
.tcard-result {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  border: 1.5px solid;
  border-radius: 20px;
  padding: .25rem .75rem;
  margin-bottom: 1.2rem;
  background: transparent;
}
.tcard-result-inline {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Autor */
.tcard-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.tcard-avatar-sm { width: 36px; height: 36px; font-size: .9rem; }

.tcard-name  { font-size: .88rem; font-weight: 700; color: var(--light); line-height: 1.2; }
.tcard-role  { font-size: .75rem; color: var(--gray); }

/* Badge de segmento */
.tcard-seg {
  font-size: .68rem;
  font-weight: 600;
  background: rgba(100,255,218,.08);
  color: var(--primary);
  border: 1px solid rgba(100,255,218,.15);
  border-radius: 20px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

/* Variante compacta (2ª linha) */
.tcard-compact { padding: 1.2rem 1.4rem; }

/* ─── Barra de Confiança ────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(10, 25, 47, 0.75);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .5rem 2.5rem;
  text-align: center;
}

.trust-bar-item i {
  font-size: 1.4rem;
  margin-bottom: .2rem;
}

.trust-bar-item strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--light);
  line-height: 1;
}

.trust-bar-item span {
  font-size: .72rem;
  color: var(--gray);
  white-space: nowrap;
}

.trust-bar-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .trust-bar { gap: .5rem; padding: 1rem; }
  .trust-bar-item { padding: .5rem 1rem; }
  .trust-bar-divider { display: none; }
  .tcard-seg { display: none; }
  .tcard-result-inline { display: none; }
}

/* ─── Seção CTA Final ───────────────────────────────────── */
#cta-final {
  padding: 6rem 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

/* Botão secundário sobre o gradient teal — sem jarring Bootstrap hover */
.btn-cta-dark {
  background: #020c1b;
  border: 2px solid #020c1b;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: .6rem 1.8rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .25s;
  text-decoration: none;
}
.btn-cta-dark:hover {
  background: rgba(2,12,27,.8);
  color: #fff;
  border-color: rgba(2,12,27,.8);
  transform: translateY(-1px);
}

.btn-cta-outline {
  background: rgba(2,12,27,.12);
  border: 2px solid rgba(2,12,27,.35);
  color: #020c1b;
  font-weight: 600;
  border-radius: 12px;
  padding: .6rem 1.8rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .25s;
  text-decoration: none;
}
.btn-cta-outline:hover {
  background: rgba(2,12,27,.22);
  border-color: rgba(2,12,27,.55);
  color: #020c1b;
  transform: translateY(-1px);
}

#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-text {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-top: .5rem;
}

.footer-links h6 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  padding: .2rem 0;
  transition: color .2s;
}

.footer-links a:hover { color: #fff; }

.footer-divider {
  border-color: rgba(255,255,255,.08);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ─── Botão Voltar ao Topo ──────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #020c1b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(100,255,218,.3);
}

#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px); }

/* ─── Loading Skeleton ──────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(10,25,47,.8) 25%, rgba(100,255,218,.06) 50%, rgba(10,25,47,.8) 75%);
  background-size: 400% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Toast Notifications ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

/* ─── Responsividade ────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-mockup { display: none; }
  #hero { min-height: auto; padding: 7.5rem 0 3.5rem; }
}

@media (max-width: 767.98px) {
  .template-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .card-footer-custom { flex-direction: column; align-items: flex-start; }
  .card-actions { width: 100%; }
  .btn-preview, .btn-comprar { flex: 1; justify-content: center; }

  /* Segmento selector em mobile: 2 colunas */
  .segment-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
  }
  /* "Ver Todos" ocupa a largura toda em mobile */
  .segment-selector .seg-card:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: .85rem 1rem;
  }
  .segment-selector .seg-card:first-child .seg-card-icon {
    width: 44px; height: 44px; min-width: 44px; margin: 0;
    font-size: 1.2rem; border-radius: 12px;
  }
  .segment-selector .seg-card:first-child .seg-card-desc { display: none; }

  .filter-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem;
  }
  .filter-secondary .search-box { width: 100%; max-width: 100% !important; }
  .results-badge { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; width: 100%; }

  .segment-selector { gap: .5rem; }
  .seg-card { padding: .9rem .75rem; }
  .seg-card-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; margin-bottom: .6rem; }
  .seg-card-name { font-size: .82rem; }
  .seg-card-desc { display: none; }

  /* Hero */
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-subtitle { font-size: .95rem; }
  .hero-stat-value { font-size: 1.6rem; }
  #hero { padding: 6.5rem 0 2.5rem; }

  /* Trust bar */
  .trust-bar { gap: .75rem; }
  .trust-item { font-size: .78rem; }

  /* CTA section */
  .cta-section h2 { font-size: 1.5rem; }

  /* Template cards */
  .template-card .tcard-price { font-size: 1.3rem; }

  /* Filter */
  .filter-pill { font-size: .78rem; padding: .35rem .7rem; }
}

/* ─── Telas muito pequenas (< 375px) ─────────────────────────── */
@media (max-width: 374.98px) {
  #hero { padding: 6rem 0 2rem; }
  .hero-title { font-size: 1.75rem; }
  .navbar-brand { font-size: 1.15rem; }
  .brand-tag { font-size: .52rem; padding: .12rem .35rem; }
  .segment-selector { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: .8rem; }
  .hero-stat { text-align: left; }
  .cta-section h2 { font-size: 1.3rem; }
}

/* ─── PWA Install Banner ──────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 25, 47, 0.97);
  border-top: 1px solid rgba(100, 255, 218, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 32px rgba(2, 12, 27, 0.6);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  /* Espaço para safe-area iOS (home indicator) */
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.pwa-banner--visible {
  transform: translateY(0);
}

.pwa-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(100, 255, 218, 0.15);
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.pwa-banner-text strong {
  font-size: .92rem;
  font-weight: 700;
  color: #e6f1ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-text span {
  font-size: .78rem;
  color: #8892b0;
  line-height: 1.35;
}

.pwa-banner-text span b {
  color: #64ffda;
  font-weight: 600;
}

.pwa-btn-install {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  background: linear-gradient(135deg, #64ffda, #48b1bf);
  color: #020c1b;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}

.pwa-btn-install:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.pwa-btn-dismiss {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #8892b0;
  font-size: .8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e6f1ff;
}

/* ─── Toast: update disponível ───────────────────────────────── */
.pwa-update-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.25rem;
  background: rgba(10, 25, 47, 0.97);
  border: 1px solid rgba(100, 255, 218, 0.25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(2, 12, 27, 0.5);
  color: #e6f1ff;
  font-size: .88rem;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.pwa-update-toast--visible {
  transform: translateX(-50%) translateY(0);
}

.pwa-btn-update {
  padding: .4rem .9rem;
  background: linear-gradient(135deg, #64ffda, #48b1bf);
  color: #020c1b;
  font-weight: 700;
  font-size: .82rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ─── PWA: mobile safe-area (iOS notch / home indicator) ─────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .navbar { padding-top: calc(.9rem + env(safe-area-inset-top)); }
  body    { padding-bottom: env(safe-area-inset-bottom); }
}

/* ─── PWA standalone: navbar sem fundo transparente ─────────── */
@media (display-mode: standalone) {
  .navbar {
    padding-top: calc(.9rem + env(safe-area-inset-top, 0px));
  }
  #hero {
    padding-top: calc(7rem + env(safe-area-inset-top, 0px));
  }
}
