/* ==========================================================================
   Habitus - CSS Global (Mobile First)
   Base styles = mobile (< 480px). Cada media query com min-width adiciona
   progressivamente estilos para telas maiores (480 → 600 → 768 → 1024).
   ========================================================================== */

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

:root {
  /* Primary — Lime (from Habitus) */
  --color-primary: #a3e635;
  --color-primary-hover: #84cc16;
  --color-primary-focus: #65a30d;
  --color-primary-dim: rgba(163, 230, 53, 0.55);
  --color-primary-glow: rgba(163, 230, 53, 0.08);
  --color-primary-tab: rgba(163, 230, 53, 0.12);

  /* Secondary — Purple */
  --color-secondary: #9333ea;
  --color-secondary-dim: rgba(147, 51, 234, 0.12);

  /* Danger */
  --color-danger: #EB445A;
  --color-danger-dim: rgba(235, 68, 90, 0.12);
  --color-danger-glow: rgba(235, 68, 90, 0.06);

  /* Backgrounds — Zinc neutrals (dark theme) */
  --bg-body: #09090a;
  --bg-card: #18181b;
  --bg-card-border: #27272a;
  --bg-elevated: #27272a;
  --bg-tab: rgba(255, 255, 255, 0.04);

  /* Text — Zinc scale */
  --color-text: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #52525b;

  /* Borders */
  --color-border: #27272a;

  /* Links */
  --color-link: #a3e635;

  /* Radii */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  /* Shadows & transitions */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(163, 230, 53, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* For main page to prevent horizontal scroll */
body:not(.subpage) {
  overflow-x: hidden;
}

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

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

/* ── Subpages Common Setup (Privacy / Delete Account) ────────────────────── */
body.subpage {
  min-height: 100vh;
}

body.subpage::before {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-color, var(--color-primary-glow)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-privacy {
  --glow-color: var(--color-primary-glow);
}

.page-delete-account {
  --glow-color: var(--color-danger-glow);
}

/* ── Container (Main Page) ──────────────────────────────────────────────── */
/* Mobile base: padding mais enxuto para telas pequenas */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 480px) {
  .container {
    padding: 0 24px;
  }
}

/* ── Wrapper (Subpages Layout) ──────────────────────────────────────────── */
/* Mobile base */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

@media (min-width: 768px) {
  .wrapper {
    padding: 48px 24px 80px;
  }
}

/* ── Header (Subpages) ──────────────────────────────────────────────────── */
/* Mobile base */
.header {
  text-align: center;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .header {
    margin-bottom: 40px;
  }
}

.header__brand-link:hover {
  opacity: 0.85;
}

.header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #a3e635 0%, #65a30d 100%);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.25);
}

.header__icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Mobile base */
.header__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .header__title {
    font-size: 1.75rem;
  }
}

.header__subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ── Nav (Main Page) ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(9, 9, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-normal);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav__logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

/* Mobile base: menu em tela cheia deslizando da direita */
.nav__links {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 99;
  padding: 80px 24px;
}

.nav__links.open {
  right: 0;
}

@media (min-width: 768px) {
  .nav__links {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    transition: none;
    z-index: auto;
  }

  /* Reset do dropdown mobile quando o menu horizontal desktop assume */
  .nav__links.open {
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
  }
}

.nav__links a {
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  padding: 8px 16px;
}

@media (min-width: 768px) {
  .nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-secondary);
    padding: 0;
  }
}

.nav__links a:hover { 
  color: var(--color-text); 
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .nav__links a:hover {
    transform: none;
  }
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px !important;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #09090a !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .nav__cta {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
  }
}

.nav__cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(163, 230, 53, 0.3);
}

.nav__cta svg {
  width: 16px;
  height: 16px;
  fill: #09090a;
}

/* ── Mobile Nav Toggle (Main Page) ──────────────────────────────────────── */
/* Mobile base: hambúrguer visível */
.nav__toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 100;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero (Main Page) ───────────────────────────────────────────────────── */
/* Mobile base: padding vertical reduzido */
.hero {
  position: relative;
  padding: 130px 0 60px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 160px 0 100px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-30%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary-glow);
  border: 1px solid rgba(163, 230, 53, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 28px;
}

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

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

/* clamp() já adapta o tamanho fluidamente entre mobile e desktop */
.hero__title {
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 50%, #65a30d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile base */
.hero__subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.8;
  }
}

/* Mobile base: botões empilhados e em largura total */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* Mobile base: botões ocupam toda a largura disponível */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #09090a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 480px) {
  .btn-primary,
  .btn-secondary {
    width: auto;
  }
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: #09090a;
}

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

/* ── Why Habits (Main Page) ──────────────────────────────────────────────── */
/* Mobile base: padding vertical reduzido */
.why {
  padding: 56px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .why {
    padding: 80px 0;
  }
}

/* Mobile base: uma coluna só — texto acima, imagem do celular abaixo.
   Esse era o principal bug do layout mobile: sem essa regra, o grid de
   2 colunas do desktop era mantido em telas pequenas, espremendo o texto
   ao lado da imagem e quebrando a leitura. */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.why__content .section-label { margin-bottom: 12px; }

/* Mobile base */
.why__title {
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .why__title {
    margin-bottom: 18px;
  }
}

/* Mobile base */
.why__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .why__desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
  }
}

.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.why__list-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  border: 1px solid rgba(163, 230, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.why__list-icon svg {
  width: 13px;
  height: 13px;
  fill: var(--color-primary);
}

.why__list-item strong { font-weight: 700; }
.why__list-item span { color: var(--color-text-secondary); }

/* Ordem mobile: imagem entra depois do texto (segue a ordem do HTML) */
.why__media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.why__media::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Mobile base: limita a altura da imagem para não dominar a tela */
.why__mockup {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-normal);
}

@media (min-width: 768px) {
  .why__mockup {
    max-height: 480px;
  }
}

.why__mockup:hover {
  transform: translateY(-8px) rotate(1deg);
}

/* ── Features (Main Page) ───────────────────────────────────────────────── */
/* Mobile base */
.features {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .features {
    padding: 80px 0;
  }
}

/* Mobile base */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 56px;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Mobile base: 1 coluna; alarga para 2 colunas a partir do tablet */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile base: padding um pouco menor no card */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  .feature-card {
    padding: 28px;
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(163, 230, 53, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__icon--lime {
  background: var(--color-primary-glow);
  border: 1px solid rgba(163, 230, 53, 0.15);
}
.feature-card__icon--lime svg { fill: var(--color-primary); }

.feature-card__icon--purple {
  background: var(--color-secondary-dim);
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.feature-card__icon--purple svg { fill: #a855f7; }

.feature-card__icon--teal {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.feature-card__icon--teal svg { fill: #2dd4bf; }

.feature-card__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.feature-card__icon--amber svg { fill: #fbbf24; }

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ── Walkthrough Timeline (Main Page) ───────────────────────────────────── */
/* Mobile base */
.walkthrough {
  padding: 48px 0 60px;
  position: relative;
}

@media (min-width: 768px) {
  .walkthrough {
    padding: 60px 0 100px;
  }
}

/* Mobile base */
.walkthrough__header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .walkthrough__header {
    margin-bottom: 64px;
  }
}

.walkthrough__list {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* A linha vertical do timeline só faz sentido no layout alternado de
   desktop; no mobile os passos ficam empilhados, então ela some. */
.walkthrough__list::before {
  content: none;
}

@media (min-width: 768px) {
  .walkthrough__list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--bg-card-border) 6%, var(--bg-card-border) 94%, transparent);
  }
}

/* Mobile base: cada passo empilhado (badge → imagem → texto), sem grid
   de 2 colunas nem alternância — esse era o segundo grid sem tratamento
   mobile no arquivo original. */
.walkthrough__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 28px 0;
}

@media (min-width: 768px) {
  .walkthrough__step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
    gap: 56px;
    padding: 36px 0;
  }

  .walkthrough__step:nth-child(even) .walkthrough__media { order: 2; }
  .walkthrough__step:nth-child(even) .walkthrough__content { order: 1; text-align: right; }
  .walkthrough__step:nth-child(even) .walkthrough__content-inner { margin-left: auto; }
}

/* Mobile base: badge inline acima da imagem, sem posicionamento absoluto
   sobre o timeline (que só existe no desktop) */
.walkthrough__badge {
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--color-primary-glow);
}

@media (min-width: 768px) {
  .walkthrough__badge {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    box-shadow: 0 0 0 6px var(--bg-body), 0 0 24px var(--color-primary-glow);
    z-index: 2;
  }
}

.walkthrough__content-inner {
  max-width: 340px;
}

@media (min-width: 768px) {
  .walkthrough__step:nth-child(odd) .walkthrough__content-inner { margin-right: auto; }
}

.walkthrough__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.walkthrough__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .walkthrough__title {
    font-size: 1.3rem;
  }
}

.walkthrough__desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .walkthrough__desc {
    font-size: 0.95rem;
  }
}

.walkthrough__media {
  display: flex;
  justify-content: center;
}

/* Mobile base: mockup do celular um pouco menor */
.walkthrough__phone {
  width: 180px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
}

@media (min-width: 480px) {
  .walkthrough__phone {
    width: 220px;
  }
}

.walkthrough__phone:hover {
  transform: translateY(-6px) scale(1.03);
}

.walkthrough__phone img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FAQ (Main Page) ────────────────────────────────────────────────────── */
/* Mobile base */
.faq {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .faq {
    padding: 80px 0;
  }
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq__item[open] {
  border-color: rgba(163, 230, 53, 0.2);
}

/* Mobile base: padding lateral menor */
.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
  .faq__question {
    padding: 20px 24px;
    font-size: 0.98rem;
  }
}

.faq__question::-webkit-details-marker { display: none; }

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.faq__icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-text-secondary);
  transition: fill var(--transition-fast);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--color-primary-glow);
}

.faq__item[open] .faq__icon svg { fill: var(--color-primary); }

/* Mobile base */
.faq__answer {
  padding: 0 18px 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

@media (min-width: 480px) {
  .faq__answer {
    padding: 0 24px 22px;
    font-size: 0.92rem;
  }
}

/* ── CTA (Main Page) ────────────────────────────────────────────────────── */
/* Mobile base */
.cta {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .cta {
    padding: 80px 0;
  }
}

/* Mobile base: padding interno reduzido */
.cta__card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta__card {
    padding: 64px 40px;
  }
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.cta__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (min-width: 768px) {
  .cta__desc {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

/* Mobile base: mesma lógica de empilhamento do hero__actions */
.cta__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 480px) {
  .cta__actions {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* ── Footer (Main Page) ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

/* Mobile base: colunas empilhadas e centralizadas */
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Mobile base: links do rodapé quebram linha se precisar, com espaço menor */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* ── Subpages Specific Styles (Tabs, Panels, Steps, Warning Box, etc) ────── */
/* ── Tabs (Privacy Page) ─────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-tab);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 36px;
}

/* Mobile base: botão de aba mais compacto */
.tabs__button {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

@media (min-width: 600px) {
  .tabs__button {
    padding: 12px 16px;
    font-size: 0.875rem;
  }
}

.tabs__button:hover {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.tabs__button.active {
  background: var(--color-primary-tab);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(163, 230, 53, 0.1);
}

/* ── Content Panels (Privacy Page) ────────────────────────────────── */
.panel {
  display: none;
  animation: fadeInPanel 0.35s ease forwards;
}

.panel.active {
  display: block;
}

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

/* ── Card (Subpages Content Container) ───────────────────────────────────── */
/* Mobile base: padding e raio menores */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .card {
    padding: 32px;
    border-radius: var(--radius-lg);
  }
}

/* Mobile base */
.card h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .card h1 {
    font-size: 1.5rem;
  }
}

.card .updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  display: block;
}

.card section {
  margin-bottom: 28px;
}

.card section:last-child {
  margin-bottom: 0;
}

/* Mobile base */
.card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

@media (min-width: 768px) {
  .card h2 {
    font-size: 1.1rem;
  }
}

.card h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: calc(100% - 6px);
  background: var(--color-primary);
  border-radius: 2px;
}

.card h2.danger::before {
  background: var(--color-danger);
}

/* Mobile base */
.card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .card p {
    font-size: 0.935rem;
  }
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

/* Mobile base */
.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .card ul li {
    font-size: 0.935rem;
  }
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-dim);
}

.card ul li strong {
  color: var(--color-text);
  font-weight: 600;
}

.card a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.card a:hover {
  border-bottom-color: var(--color-primary);
}

/* ── Steps (Delete Account Page) ────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

/* Mobile base */
.steps li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  counter-increment: step-counter;
}

@media (min-width: 768px) {
  .steps li {
    padding-left: 48px;
    font-size: 0.935rem;
  }
}

/* Mobile base */
.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  border: 1px solid rgba(163, 230, 53, 0.2);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .steps li::before {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li strong {
  color: var(--color-text);
  font-weight: 600;
}

.steps li code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--color-primary);
}

/* ── Step (generic content step, used across subpages) ──────────────────── */
/* Mobile base */
.step {
  padding: 20px 16px;
}

/* ── Screenshots (used across subpages) ──────────────────────────────────── */
/* Mobile base: miniatura menor */
.screenshots__item {
  width: 160px;
}

@media (min-width: 480px) {
  .screenshots__item {
    width: 180px;
  }
}

/* ── Warning Box (Delete Account Page) ──────────────────────────────────── */
.warning-box {
  background: var(--color-danger-dim);
  border: 1px solid rgba(235, 68, 90, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.warning-box__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.warning-box__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-danger);
}

.warning-box p {
  color: #f0a0ab;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.warning-box strong {
  color: #fbbfc7;
}

/* ── Info Box (Delete Account Page) ─────────────────────────────────────── */
.info-box {
  background: var(--color-primary-glow);
  border: 1px solid rgba(163, 230, 53, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-box__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.info-box__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

.info-box p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ── Subpages Footer Scope ──────────────────────────────────────────────── */
.wrapper .footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.wrapper .footer a {
  color: var(--color-primary-dim);
  text-decoration: none;
}

.wrapper .footer a:hover {
  text-decoration: underline;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}