:root {
  --azul-fibralink: #0047BB;
  --azul-escuro: #003A99;
  --azul-claro: #E6EEFB;
  --azul-deep-1: #001E5C;
  --azul-deep-2: #000A24;
  --azul-deep-3: #00040F;
  --vermelho-fibralink: #DF3135;
  --cinza-texto: #475569;
  --cinza-claro: #F7F9FC;
  --cinza-borda: #E2E8F0;
  --alerta-bg: #FFF8E6;
  --alerta-borda: #F0B429;
  --alerta-texto: #744210;
  --branco: #FFFFFF;
  --texto-forte: #0F172A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--texto-forte);
  background: var(--azul-deep-3);
  background-image:
    radial-gradient(ellipse 80% 60% at 35% 35%, rgba(0, 71, 187, 0.35) 0%, rgba(0, 30, 92, 0) 60%),
    radial-gradient(ellipse 100% 80% at 70% 80%, rgba(0, 71, 187, 0.18) 0%, rgba(0, 10, 36, 0) 70%),
    linear-gradient(180deg, var(--azul-deep-2) 0%, var(--azul-deep-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

/* =========================================================
   MOBILE FIRST
   ========================================================= */

/* ============ TOPBAR ============ */
.topbar {
  background: transparent;
  padding: 14px 16px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 38px;
  width: auto;
}

.topbar-help {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.topbar-help:hover,
.topbar-help:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--branco);
}

/* ============ MAIN ============ */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.card {
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding: 32px 24px 32px;
  position: relative;
}

/* ============ MOCKUP STICKER (TOPO) ============ */
.mockup-sticker {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, #E6EEFB 0%, #F7F9FC 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 10px 0;
  overflow: hidden;
  box-shadow:
    0 16px 32px rgba(0, 71, 187, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotate(-4deg);
}

.mockup-sticker img {
  width: 82%;
  height: auto;
  margin-bottom: -4px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.mockup-sticker::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  background: #22C55E;
  border-radius: 50%;
  border: 3px solid var(--branco);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(4deg);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul-claro);
  color: var(--azul-fibralink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 auto 14px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.card-top {
  text-align: center;
  margin-bottom: 24px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--texto-forte);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

h1 .destaque { color: var(--azul-fibralink); }

.subtitle {
  font-size: 15px;
  color: var(--cinza-texto);
  line-height: 1.6;
}

.subtitle strong {
  color: var(--texto-forte);
  font-weight: 600;
}

/* ============ CTA STORES (PRIORIDADE) ============ */
.cta-block {
  margin-bottom: 22px;
}

.cta-label {
  font-size: 12px;
  color: var(--cinza-texto);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-align: center;
}

.stores {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
  line-height: 0;
  flex: 1 1 0;
  max-width: 220px;
  min-width: 140px;
}

.store-btn:hover,
.store-btn:focus {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.store-btn img {
  height: 52px;
  width: 100%;
  object-fit: contain;
}

/* ============ ALERTA ============ */
.alerta {
  background: var(--alerta-bg);
  border-left: 4px solid var(--alerta-borda);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alerta-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--alerta-borda);
  margin-top: 1px;
}

.alerta-texto {
  font-size: 13.5px;
  color: var(--alerta-texto);
  line-height: 1.5;
}

.alerta-texto strong {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  color: #5F3A07;
}

/* ============ WEB INDISPONÍVEL ============ */
.web-indisponivel {
  background: var(--cinza-claro);
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.web-indisponivel-icon {
  width: 20px;
  height: 20px;
  color: #94A3B8;
  flex-shrink: 0;
}

.web-indisponivel-texto {
  font-size: 13.5px;
  color: var(--cinza-texto);
  line-height: 1.5;
}

.web-indisponivel-texto strong {
  color: #334155;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer a {
  color: #7FB5FF;
  text-decoration: none;
  font-weight: 600;
}

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

/* =========================================================
   TABLET/DESKTOP ( >= 640px )
   ========================================================= */
@media (min-width: 640px) {
  .topbar { padding: 16px 24px; }
  .logo-link img { height: 44px; }
  .topbar-help { font-size: 14px; padding: 8px 14px; }

  main {
    max-width: 680px;
    padding: 48px 24px 48px;
  }

  .card {
    padding: 44px 48px 44px;
    border-radius: 20px;
  }

  .mockup-sticker {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 24px;
    padding: 12px 12px 0;
  }

  .mockup-sticker::after {
    width: 36px;
    height: 36px;
    background-size: 20px 20px;
    top: -10px;
    right: -10px;
  }

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

  h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .subtitle { font-size: 16.5px; }

  .badge { font-size: 13px; padding: 6px 14px; margin-bottom: 18px; }

  .cta-block { margin-bottom: 28px; }
  .cta-label { font-size: 13px; margin-bottom: 14px; }
  .stores { gap: 14px; }
  .store-btn img { height: 58px; }

  .alerta { padding: 16px 18px; margin-bottom: 24px; }
  .alerta-texto { font-size: 14px; }

  .web-indisponivel { padding: 16px 18px; }
  .web-indisponivel-texto { font-size: 14px; }

  .footer { padding: 0 24px 48px; font-size: 13px; max-width: 680px; }
}
