/* ==========================================================================
   Desconto Terapia — Estilos Oficiais (Versão 1.0)
   Arquitetura leve: Sem dependências, mobile-first, alto contraste e acessível.
   ========================================================================== */

:root {
  --color-bg: #FBF8F5;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F6F1EB;
  --color-border: #E8DFD5;
  --color-border-hover: #D8CCC0;
  
  --color-text-main: #0A1533;
  --color-text-muted: #535C68;
  --color-text-light: #717B87;
  
  --color-brand: #C9450C;
  --color-brand-soft: #FFF0E8;
  --color-brand-dark: #A8380A;
  
  --color-whatsapp: #1E8E47;
  --color-whatsapp-hover: #177238;
  --color-telegram: #0088CC;
  --color-telegram-hover: #006FA6;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(30, 35, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 35, 42, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --container-max-w: 760px;
}

/* Reset suave e tipografia base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

/* Layout container */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   1. TOPO / HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 40px;
  padding-bottom: 28px;
  text-align: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-brand-soft);
  color: var(--color-brand-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(217, 93, 57, 0.15);
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px auto;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(253, 85, 14, 0.25);
}

.hero-title {
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 16px auto;
  line-height: 1.45;
}

.hero-stores {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.hero-stores span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   2. ESCOLHA O SEU GRUPO (CARDS)
   -------------------------------------------------------------------------- */
.section-groups {
  padding-top: 16px;
  padding-bottom: 36px;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.group-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.group-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.group-card.featured {
  border-color: rgba(217, 93, 57, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F7 100%);
}

.card-pill {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.card-pill.pill-curated {
  background-color: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

.card-pill.pill-volume {
  background-color: #EEF4FA;
  color: #1A6496;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-rhythm {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Botões de Ação Touch-Friendly (Mínimo 48px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, filter 0.15s ease;
  text-align: center;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: var(--color-whatsapp-hover);
}

.btn-telegram {
  background-color: var(--color-telegram);
  color: #FFFFFF;
}

.btn-telegram:hover, .btn-telegram:focus-visible {
  background-color: var(--color-telegram-hover);
}

.btn-disabled {
  background-color: #F0EDE8;
  color: #9AA0A6;
  cursor: not-allowed;
  border: 1px dashed #DCD6CD;
}

.btn-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. COMO FUNCIONA (3 PASSOS)
   -------------------------------------------------------------------------- */
.section-steps {
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--color-border);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

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

.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-icon-wrap {
  width: 28px;
  height: 28px;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   4. PERGUNTAS FREQUENTES (FAQ COM <DETAILS>)
   -------------------------------------------------------------------------- */
.section-faq {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--color-border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: rgba(217, 93, 57, 0.4);
}

.faq-question {
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-brand);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. RODAPÉ E AVISO LEGAL
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background-color: #F3ECE4;
  border-top: 1px solid var(--color-border);
  padding: 36px 0 28px 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.affiliate-disclaimer {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   PÁGINA DE POLÍTICA DE PRIVACIDADE
   -------------------------------------------------------------------------- */
.page-privacy {
  padding-top: 40px;
  padding-bottom: 60px;
}

.privacy-nav {
  margin-bottom: 24px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  padding: 8px 14px;
  background-color: var(--color-brand-soft);
  border-radius: var(--radius-sm);
}

.btn-back:hover {
  text-decoration: underline;
}

.privacy-article {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.privacy-article h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.privacy-meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.privacy-article h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.privacy-article p, .privacy-article ul {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.privacy-article ul {
  padding-left: 20px;
}

.privacy-article li {
  margin-bottom: 8px;
}
