:root {
  --black: #080507;
  --wine: #3d0710;
  --gold: #d7a944;
  --gold-soft: rgba(215, 169, 68, 0.55);
  --cream: #fff7ed;
  --cta-top: #17b34c;
  --cta-bottom: #0c8a38;
  --cta-hover-top: #18b84e;
  --cta-hover-bottom: #0e963d;
  --danger-bg: rgba(61, 7, 16, 0.88);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Landing ---------- */

.lp {
  overflow-x: hidden;
}

/* Telas largas: o próprio fundo, desfocado e escurecido, preenche as laterais da coluna central. */
.lp__backdrop {
  position: fixed;
  inset: -48px;
  z-index: -1;
  background: var(--black) url('/assets/fundo-blur.webp') center / cover no-repeat;
  filter: blur(28px) saturate(1.15) brightness(0.45);
}

/*
 * Palco no formato da arte (9:16). No celular ocupa a tela toda e a foto cobre pela altura,
 * então as posições verticais (logo no topo, botão sobre o vestido) seguem a composição original.
 */
.stage {
  position: relative;
  isolation: isolate;
  width: min(100vw, max(360px, calc(100vh * 0.5625)));
  width: min(100vw, max(360px, calc(100svh * 0.5625)));
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--black);
}

.stage__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stage__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* Leve escurecimento no topo (legibilidade do logo) e na base (botão e textos). O rosto fica intacto. */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 5, 7, 0.55) 0%,
    rgba(8, 5, 7, 0.12) 20%,
    rgba(8, 5, 7, 0) 30%,
    rgba(8, 5, 7, 0) 64%,
    rgba(8, 5, 7, 0.55) 80%,
    rgba(8, 5, 7, 0.88) 100%
  );
}

/* Logo no topo, acima do rosto: altura limitada a uma faixa fixa da arte. */
.stage__brand {
  position: absolute;
  top: calc(var(--safe-top) + 2.5%);
  left: 0;
  right: 0;
  height: 23%;
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.stage__brand picture {
  display: contents;
}

.stage__logo {
  height: 100%;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}

.hero__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 18px calc(16px + var(--safe-bottom));
  text-align: center;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 60px;
  padding: 14px 48px 14px 20px;
  border: 2px solid rgba(160, 255, 190, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-top) 0%, var(--cta-bottom) 100%);
  color: #fff;
  font: 800 clamp(1rem, 4.6vw, 1.1875rem)/1.2 var(--font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(37, 211, 102, 0.45),
    0 12px 28px -10px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta:hover {
  background: linear-gradient(180deg, var(--cta-hover-top) 0%, var(--cta-hover-bottom) 100%);
  box-shadow:
    0 0 32px rgba(37, 211, 102, 0.6),
    0 12px 28px -10px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.cta__icon {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.cta__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
}

.cta__spinner {
  display: none;
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.cta[data-state='loading'],
.cta[data-state='redirecting'] {
  cursor: progress;
}

.cta[data-state='loading'] .cta__icon,
.cta[data-state='redirecting'] .cta__icon,
.cta[data-state='loading'] .cta__arrow,
.cta[data-state='redirecting'] .cta__arrow {
  display: none;
}

.cta[data-state='loading'] .cta__spinner,
.cta[data-state='redirecting'] .cta__spinner {
  display: inline-block;
}

.cta[aria-disabled='true'] {
  opacity: 0.9;
}

.cta-status {
  margin: 0;
  max-width: 420px;
  font-size: 0.9375rem;
  color: var(--cream);
}

.cta-status:not(:empty) {
  padding: 10px 14px;
  border: 1px solid rgba(215, 169, 68, 0.35);
  border-radius: 12px;
  background: var(--danger-bg);
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero__lock {
  width: 20px;
  height: 20px;
  flex: none;
}

.hero__privacy {
  font-size: 0.75rem;
  color: rgba(255, 247, 237, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
}

.hero__privacy:hover,
.hero__privacy:focus-visible {
  color: var(--cream);
}

.hero__privacy:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero__privacy--button {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: -10px;
}

/* Aviso de cookies: no fluxo, abaixo do botão — nunca sobre o logo, o rosto ou o CTA. */
.consent {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 169, 68, 0.35);
  border-radius: 14px;
  background: rgba(8, 5, 7, 0.88);
  text-align: left;
}

.consent[hidden] {
  display: none;
}

.consent__text {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 247, 237, 0.85);
}

.consent__text a {
  color: var(--gold);
  text-underline-offset: 2px;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.consent__btn {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 600 0.875rem/1.2 var(--font-sans);
  cursor: pointer;
}

.consent__btn:hover {
  background: rgba(215, 169, 68, 0.12);
}

.consent__btn:focus-visible,
.consent__text a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.noscript {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--wine);
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Telas maiores: coluna central com moldura discreta ---------- */

@media (min-width: 600px) {
  .stage {
    box-shadow:
      0 0 0 1px rgba(215, 169, 68, 0.22),
      0 30px 80px rgba(0, 0, 0, 0.75);
  }
}

@media (max-width: 359px) {
  .hero__actions {
    padding-inline: 12px;
  }

  .cta {
    gap: 8px;
    padding: 12px 38px 12px 14px;
    font-size: 0.9375rem;
  }

  .cta__icon {
    width: 24px;
    height: 24px;
  }

  .cta__arrow {
    right: 12px;
  }
}

/* Telas baixas (ex.: celular deitado): logo menor para não encostar no rosto. */
@media (max-height: 620px) {
  .stage__brand {
    height: 19%;
  }

  .hero__actions {
    gap: 6px;
  }

  .cta {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cta__spinner {
    animation: spin 1.6s linear infinite !important;
  }
}

@media (forced-colors: active) {
  .cta {
    border: 2px solid ButtonText;
  }
}

/* ---------- Páginas de texto (privacidade, 404) ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px calc(48px + var(--safe-bottom));
}

.page h1,
.page h2 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.2;
}

.page h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.page h2 {
  font-size: 1.35rem;
  margin: 32px 0 8px;
}

.page p,
.page li {
  color: rgba(255, 247, 237, 0.88);
}

.page a {
  color: var(--gold);
}

.page a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page .back {
  display: inline-block;
  margin-bottom: 24px;
}

.page .muted {
  color: rgba(255, 247, 237, 0.6);
  font-size: 0.875rem;
}
