/* ==========================================================================
   RVRA. — Link-in-Bio Premium (Streetwear Nova Serrana / MG)
   Paleta: Tons Derivados da Identidade Preto & Branco Oficial
   Superfície Contínua · Arestas Iluminadas (Luz Superior) · Zero Caixas Cinzas
   ========================================================================== */

:root {
  /* Tons Puros da Marca (Preto Profundo & Neutros — Sem Tinta Azul) */
  --bg-void:           #050505;
  --bg-base:           #0a0a0a;
  --bg-surface:        #101010;

  /* Caixas e Painéis: Gradiente Sutilíssimo com Fio de Luz (Padrão João Pedro Laia) */
  --panel-bg:          linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.008) 100%);
  --panel-bg-hover:    linear-gradient(180deg, rgba(255, 255, 255, 0.070) 0%, rgba(255, 255, 255, 0.015) 100%);
  
  /* Arestas de Luz (Aresta Superior Iluminada de Cima para Baixo) */
  --border-top-light:    rgba(255, 255, 255, 0.28);   /* Aresta superior iluminada */
  --border-side-light:   rgba(255, 255, 255, 0.08);   /* Laterais sutis */
  --border-bottom-light: rgba(255, 255, 255, 0.04);   /* Base suave */
  --border-highlight:    rgba(255, 255, 255, 0.45);   /* Hover / Foco */

  /* Tipografia Monocromática da Marca */
  --white-pure:        #ffffff;
  --text-primary:      #f5f5f5;
  --text-secondary:    #d1d1d1;
  --text-muted:        #8e8e8e;
  --text-dim:          #5e5e5e;
  --text-inverse:      #050505;

  /* Atmosfera & Efeitos Luminosos */
  --glow-ambient:      rgba(255, 255, 255, 0.05);

  /* Sombras & Profundidade Física Real */
  --panel-shadow:       inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.7);
  --panel-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.85);

  /* Geometria e Motion */
  --radius-pill:       9999px;
  --radius-card:       16px;
  --ease-smooth:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   0.22s var(--ease-smooth);
  --transition-base:   0.32s var(--ease-smooth);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #141414 0%, var(--bg-base) 45%, var(--bg-void) 100%);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmosfera de Luz Streetwear Contínua */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 540px);
  height: 380px;
  background: radial-gradient(circle at 50% 15%, var(--glow-ambient) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container Central Travado em Coluna Única */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 32px;
  gap: 20px;
}

/* ==========================================================================
   1. BARRA DO TOPO: ESTEIRA CONTÍNUA EM LOOP (Sem quebra de linha)
   ========================================================================== */
.ticker-bar {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 38px;
  display: flex;
  align-items: center;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.ticker-viewport {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: tickerMarquee 24s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-divider {
  color: var(--border-top-light);
  font-size: 0.75rem;
  opacity: 0.7;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--white-pure);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--white-pure);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes tickerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pausa no Hover e no Toque */
.ticker-bar:hover .ticker-track,
.ticker-bar:active .ticker-track {
  animation-play-state: paused;
}

/* ==========================================================================
   2. BLOCO DE MARCA (Streetwear Nova Serrana / MG)
   ========================================================================== */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-top: 4px;
}

.logo-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(180deg, var(--border-top-light) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(0, 0, 0, 0.65);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background-color: #000;
}

.brand-title {
  font-size: 2.25rem; /* 36px */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white-pure);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.brand-positioning {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 380px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Prova Real do Perfil (1.455 posts · 10,8 mil seguidores · 7.396 seguindo) */
.social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding: 10px 18px;
  width: 100%;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.proof-value {
  font-size: 1rem; /* 16px */
  font-weight: 800;
  color: var(--white-pure);
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-muted);
}

.proof-strip-dot {
  width: 3px;
  height: 3px;
  background: var(--border-top-light);
  border-radius: 50%;
}

/* ==========================================================================
   3. AÇÃO PRINCIPAL DOMINANTE (WhatsApp com Volume Físico & Shiny Sweep)
   ========================================================================== */
.primary-action-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-primary-action {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--white-pure);
  color: var(--text-inverse);
  font-size: 1.0625rem; /* 17px */
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  overflow: hidden;
  border: none;
  box-shadow: inset 0 1.5px 0 #ffffff, inset 0 -2px 0 rgba(0, 0, 0, 0.20), 0 8px 30px rgba(255, 255, 255, 0.18), 0 16px 45px rgba(0, 0, 0, 0.85);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

/* Efeito Shiny Sweep Glow */
.btn-primary-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.80) 50%,
    transparent 100%
  );
  transform: translateX(-150%) skewX(-25deg);
  animation: shinySweep 3.2s infinite ease-in-out;
  pointer-events: none;
  will-change: transform;
}

@keyframes shinySweep {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }
  35%, 100% {
    transform: translateX(250%) skewX(-25deg);
  }
}

.btn-primary-action:hover,
.btn-primary-action:focus-visible {
  transform: translateY(-2px) scale(1.01);
  background-color: #f7f7f7;
  box-shadow: inset 0 1.5px 0 #ffffff, inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 12px 36px rgba(255, 255, 255, 0.26), 0 20px 50px rgba(0, 0, 0, 0.90);
  outline: 2px solid var(--white-pure);
  outline-offset: 3px;
}

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

.btn-icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.primary-benefit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-muted);
}

.benefit-dot {
  opacity: 0.5;
  font-size: 0.75rem;
}

/* ==========================================================================
   4. AÇÕES SECUNDÁRIAS (Superfície Iluminada de Cima · Zero Caixa Cinza)
   ========================================================================== */
.secondary-actions-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secondary-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: var(--radius-card);
  box-shadow: var(--panel-shadow);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast), border-top-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.secondary-card:hover,
.secondary-card:focus-visible {
  transform: translateY(-2px);
  background: var(--panel-bg-hover);
  border-top-color: var(--border-highlight);
  box-shadow: var(--panel-shadow-hover);
  outline: none;
}

.secondary-card:active {
  transform: translateY(0);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white-pure);
}

.card-icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.card-title {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: var(--white-pure);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.35;
  /* Sem nowrap nem reticências: quebra naturalmente */
}

.card-arrow-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-arrow-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-card:hover .card-arrow-box {
  transform: translateX(3px);
  color: var(--white-pure);
}

/* ==========================================================================
   5. CONTEXTO DE LOJA FÍSICA & CAMINHO ÚNICO DE ROTA (Sem retângulo vazio)
   ========================================================================== */
.store-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.store-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.store-section-tag {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-address-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: var(--radius-card);
  box-shadow: var(--panel-shadow);
}

.store-address-text {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: var(--white-pure);
  line-height: 1.4;
}

.store-address-sub {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-directions {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--panel-shadow);
  color: var(--white-pure);
  font-size: 1rem; /* 16px */
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), border-top-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-directions:hover,
.btn-directions:focus-visible {
  background: var(--panel-bg-hover);
  border-top-color: var(--border-highlight);
  box-shadow: var(--panel-shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

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

/* ==========================================================================
   6. CANAL SOCIAL (Perfil Instagram)
   ========================================================================== */
.social-channels {
  width: 100%;
  display: flex;
  justify-content: center;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-top-light);
  border-left: 1px solid var(--border-side-light);
  border-right: 1px solid var(--border-side-light);
  border-bottom: 1px solid var(--border-bottom-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--panel-shadow);
  color: var(--text-primary);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-top-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.social-button:hover,
.social-button:focus-visible {
  background: var(--panel-bg-hover);
  border-top-color: var(--border-highlight);
  box-shadow: var(--panel-shadow-hover);
  color: var(--white-pure);
  outline: none;
}

.social-icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   7. RODAPÉ MÍNIMO
   ========================================================================== */
.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-side-light);
  text-align: center;
}

.footer-brand {
  font-size: 0.875rem; /* 14px */
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white-pure);
}

.footer-meta {
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  color: var(--text-muted);
}

.footer-url {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-url:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   8. ESTADOS DE PAUSA E ACESSIBILIDADE
   ========================================================================== */
body.motion-paused .btn-primary-action::after,
body.motion-paused .ticker-track {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  /* Não usar duration: 0.01ms na esteira — desligar de verdade para não cortar texto */
  .ticker-track {
    animation: none !important;
    transform: none !important;
    width: 100%;
    justify-content: center;
  }
  .ticker-group[aria-hidden="true"] {
    display: none !important;
  }
  .ticker-viewport {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .btn-primary-action::after {
    display: none !important;
  }
  .btn-primary-action,
  .secondary-card,
  .btn-directions,
  .social-button {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   9. RESPONSIVIDADE & AJUSTES DE VIEWPORT
   ========================================================================== */
@media (max-width: 360px) {
  .page-wrapper {
    gap: 16px;
    padding-top: 6px;
  }
  .brand-title {
    font-size: 1.85rem;
  }
  .logo-wrapper {
    width: 72px;
    height: 72px;
  }
  .social-proof-strip {
    gap: 10px;
    padding: 8px 12px;
  }
}

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