:root {
  --bg: #000;
  --red: #b3001b;
  --red-dark: #7a0012;
  --red-bright: #e00a2c;
  --text: #fff;
  --muted: #b9b9b9;
}

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

html { background: var(--bg); }

body {
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(179, 0, 27, 0.35), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

/* Arte 1080x1920: textos posicionados em % da própria arte */
.hero { position: relative; line-height: 0; aspect-ratio: 1080 / 1920; }

.hero .bg { width: 100%; height: auto; display: block; }

.hero .p { position: absolute; height: auto; display: block; }

.p-descontos { left: 30.3%; top: 21.0%; width: 19.4%; }
.p-20        { left: 30.0%; top: 24.0%; width: 27.6%; }
.p-pct1      { left: 57.6%; top: 29.8%; width: 4.8%; }
.p-a         { left: 66.0%; top: 31.1%; width: 2.9%; }
.p-50        { left: 36.3%; top: 35.0%; width: 27.7%; }
.p-pct2      { left: 63.6%; top: 40.6%; width: 4.8%; }
.p-loja      { left: 39.4%; top: 45.5%; width: 21.1%; }
.p-bw        { left: 35.0%; top: 71.3%; width: 29.5%; }
.p-logo      { left: 41.8%; top: 85.6%; width: 15.8%; }

.cta {
  margin-top: -12%; /* aproxima o bloco da data da arte (o fim da arte é preto) */
  position: relative;
  padding: 0 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Data em destaque, sem card, no mesmo estilo tipográfico do "20% a 50%" */
.dates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding-bottom: 18px;
  margin-bottom: 4px;
  position: relative;
  font-style: italic;
}

/* filete vermelho com brilho sob a data */
.dates::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(72%, 280px);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  box-shadow: 0 0 18px 2px rgba(214, 0, 38, 0.55);
}

.dates-label {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d8d8d8;
  padding-left: 0.34em; /* compensa o letter-spacing para centralizar */
}

.dates-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  white-space: nowrap;
  line-height: 1;
}

.dates-value .n {
  font-weight: 800;
  font-size: clamp(3.6rem, 21vw, 5.6rem);
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(214, 0, 38, 0.45);
}

.dates-value .a {
  font-weight: 300;
  font-size: clamp(1.3rem, 7vw, 1.9rem);
  text-transform: uppercase;
  margin: 0 0.45em; /* respiro entre os números (o itálico invade o espaço) */
}

.dates-month {
  font-weight: 300;
  font-size: clamp(0.95rem, 4.6vw, 1.25rem);
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
}

.cta h1 {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.4rem, 6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.cta p.sub {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  position: relative;
  z-index: 0;
  border-radius: 999px; /* totalmente arredondado */
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(0.82rem, 3.9vw, 1rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(179, 0, 27, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* glow vermelho pulsante atrás do botão */
.btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--red-bright), var(--red) 70%, transparent);
  filter: blur(14px);
  opacity: 0.55;
  animation: glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98, 0.9); }
  50%      { opacity: 0.85; transform: scale(1.04, 1.25); }
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(179, 0, 27, 0.6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.note { color: var(--muted); font-size: 0.85rem; }

footer {
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 0.8rem;
  border-top: 1px solid #1d1d1d;
}

@media (min-width: 768px) and (max-width: 899px) {
  .page { box-shadow: 0 0 80px rgba(179, 0, 27, 0.25); }
}

/* Desktop: fundo paisagem 1920x1350, textos reposicionados em % dessa arte */
@media (min-width: 900px) {
  /* Duas colunas sobre a arte 1920x1350: poltronas e textos à esquerda,
     Black Week + data + CTA à direita. Tudo em % da própria arte. */
  .page {
    max-width: none;
    width: min(100%, calc(max(100vh, 640px) * 1920 / 1350));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    align-content: start;
  }

  .hero {
    grid-area: 1 / 1;
    align-self: start;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1920 / 1350;
    width: 100%;
  }
  .hero picture { display: block; width: 100%; height: 100%; }
  /* desloca o fundo para a esquerda: poltronas na coluna esquerda */
  .hero .bg { width: 100%; height: 100%; object-fit: cover; transform: translateX(-21%); }

  .p-descontos { left: 17.3%; top: 2.2%;  width: 12.0%; }
  .p-20        { left: 17.1%; top: 6.8%;  width: 17.1%; }
  .p-pct1      { left: 34.2%; top: 15.6%; width: 3.0%; }
  .p-a         { left: 39.4%; top: 17.9%; width: 1.8%; }
  .p-50        { left: 21.0%; top: 24.1%; width: 17.1%; }
  .p-pct2      { left: 37.9%; top: 32.8%; width: 3.0%; }
  .p-loja      { left: 22.9%; top: 40.4%; width: 13.1%; }
  .p-bw        { left: 65.0%; top: 19.2%; width: 16.6%; }
  .p-logo      { left: 45.5%; top: 85.4%; width: 8.9%; }

  .cta {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    margin-top: 25%;   /* % da largura: começa logo abaixo do Black Week */
    margin-left: 56%;
    width: 34%;
    padding: 0 0 24px;
  }
  .cta .dates { max-width: none; }
  .cta .btn { max-width: none; }
  .dates-value .n { font-size: clamp(3rem, 4.4vw, 5.4rem); }
  .dates-value .a { font-size: clamp(1.1rem, 1.6vw, 1.8rem); }
  .dates-month { font-size: clamp(0.9rem, 1.2vw, 1.25rem); }
  .cta h1 { font-size: clamp(1.25rem, 1.7vw, 1.9rem); }
  .cta p.sub { font-size: clamp(0.88rem, 1vw, 1rem); }

  footer { grid-area: 2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn::before { animation: none; opacity: 0.6; }
}
