/* ============================================================
   BLACK DAS RAINHAS — Ana Lisboa · página de captura (v2)
   Direção: Black Friday "pretona". Preto absoluto + vermelho do
   logo (#A10000) + branco quente. A serifa clássica do logo
   (Cormorant Garamond) é a voz dos títulos; Rizoma nos rótulos;
   Helvetica no corpo. Humor editorial: "Fig. 1 — Freud no divã".
   Mobile-first.
   ============================================================ */

@font-face {
  font-family: "Rizoma";
  src: url("assets/fonts/RizomaM-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Local";
  src: url("assets/fonts/Helvetica.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Local";
  src: url("assets/fonts/Helvetica-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cor */
  --black:     #000000;
  --ink:       #0A0A0A;   /* painéis sobre o preto */
  --ink-2:     #141313;
  --red:       #A10000;   /* vermelho exato da faixa do logo */
  --red-deep:  #7A0000;
  --red-hot:   #E3271E;   /* só texto GRANDE sobre preto (4.5:1) */
  --white:     #F6F2EA;   /* branco quente */
  --white-80:  rgba(246, 242, 234, .80);
  --white-60:  rgba(246, 242, 234, .64);
  --white-20:  rgba(246, 242, 234, .20);
  --white-10:  rgba(246, 242, 234, .10);

  --error-on-dark: #FFB8B0;
  --error-line:    #FF6B5E;

  /* Tipografia */
  --font-serif: "Cormorant Garamond", "Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Rizoma", "Helvetica Local", Helvetica, Arial, sans-serif;
  --font-body:  "Helvetica Local", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-reveal: .9s;
  --dur-fast: .2s;

  --focus: var(--white);
  --gutter: 20px;
  --container: 1240px;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
p, h1, h2, figure, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
em { font-style: normal; }

/* Grão de filme — tile SVG fixo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 300;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ============================================================
   FAIXA ROLANTE
   ============================================================ */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--white-20);
  border-bottom: 1px solid var(--white-20);
}
.ticker__static {
  padding: 13px var(--gutter) 12px;
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white-80);
}
.ticker__static i { font-style: normal; font-size: .7em; color: var(--red-hot); margin: 0 10px; }
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 9px 0;
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white-80);
  animation: ticker 38s linear infinite;
  display: none; /* só a partir de 768px */
}
.ticker__track span { padding: 0 18px; }
.ticker__track i { font-style: normal; font-size: .7em; color: var(--red-hot); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px clamp(14px, 4.4vw, 28px);
  border: 0;
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: clamp(.7rem, 3.25vw, .84rem);
  line-height: 1.25;
  letter-spacing: clamp(.06em, 1.6vw, .14em);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap; /* texto do CTA sempre em uma linha */
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:active { transform: scale(.985); }
.btn--block { display: flex; width: 100%; }
/* telas muito estreitas: a seta sai para o texto caber numa linha */
@media (max-width: 340px) { .btn__icon { display: none; } }

.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: none;
}
/* brilho que atravessa o botão */
.btn--red::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out);
}
@media (hover: hover) {
  .btn--red:hover { background: #B80A04; }
  .btn--red:hover::after { transform: translateX(120%); }
  .btn--red:hover .btn__icon { transform: translateX(4px); }
}
.btn--red:focus-visible { outline-color: var(--white); outline-offset: 4px; }
.btn[disabled] { cursor: progress; }

.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(246, 242, 234, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   BRILHO VERMELHO — segue o mouse (JS move .glow); sem JS/toque,
   fica parado no alto à direita e "respira"
   ============================================================ */
.glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 0;
  width: 0; height: 0;
  pointer-events: none;
  transform: translate3d(74vw, 30vh, 0);
  will-change: transform;
}
.glow__orb {
  position: absolute;
  width: var(--glow-size, 620px);
  height: var(--glow-size, 620px);
  left: calc(var(--glow-size, 620px) / -2);
  top: calc(var(--glow-size, 620px) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 0, 0, .34), rgba(161, 0, 0, .1) 50%, transparent 74%);
  filter: blur(24px);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { opacity: .7; transform: scale(.94); }
  to   { opacity: 1;  transform: scale(1.06); }
}
/* conteúdo acima do brilho */
.countdown, main, .site-footer { position: relative; z-index: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px var(--gutter) 48px;
}
.hero__grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "logo"
    "headline"
    "figure"
    "sub"
    "cta";
  gap: 28px;
  text-align: center;
}

.hero__logo { grid-area: logo; }
.hero__logo img {
  width: min(90vw, 460px);
  height: auto;
  margin: 0 auto;
}

/* "Até Freud vai / enlouquecer!" */
.hero__headline {
  grid-area: headline;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-serif);
  line-height: .9;
  margin-top: -4px;
}
.hero__headline-pre {
  font-weight: 500;
  font-size: clamp(1.15rem, 5.4vw, 2rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-right: -.18em; /* compensa o tracking no centro */
}
.hero__headline-word {
  position: relative;
  display: inline-block;
  margin-top: .12em;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 17vw, 8.4rem);
  letter-spacing: -.02em;
  color: var(--red-hot);
}
/* "surto" tipográfico: camadas deslocadas que piscam de tempos em tempos */
.hero__headline-word::before,
.hero__headline-word::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero__headline-word::before { color: var(--white); }
.hero__headline-word::after  { color: var(--red); }

.hero__figure { grid-area: figure; }
.hero__frame {
  position: relative;
  margin: 0 auto;
  border: 1px solid var(--white-20);
}
.hero__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: var(--ink-2);
}
.hero__sticker {
  position: absolute;
  bottom: -26px;
  right: -10px;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  text-align: center;
  line-height: 1;
  transform: rotate(10deg);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8);
}
.hero__sticker-day { font-family: var(--font-serif); font-weight: 600; font-size: 2.1rem; line-height: .85; }
.hero__sticker-month { font-family: var(--font-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }
.hero__sticker-live {
  font-family: var(--font-label);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 3px 6px 2px;
  margin-top: 5px;
}
.hero__caption {
  margin-top: 18px;
  padding-right: 84px; /* não colide com o selo */
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--white-60);
}
.hero__caption span {
  font-family: var(--font-label);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--white);
  margin-right: 8px;
  vertical-align: 2px;
}

.hero__sub {
  grid-area: sub;
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  line-height: 1.4;
  color: var(--white-80);
  text-wrap: balance; /* mobile: sem palavra isolada na última linha */
}
.hero__sub em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.22em;
  color: var(--white);
  background: linear-gradient(transparent 62%, rgba(161, 0, 0, .85) 62%, rgba(161, 0, 0, .85) 92%, transparent 92%);
  padding: 0 .08em;
  white-space: nowrap;
}

.hero__cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__cta .btn { width: 100%; max-width: 420px; }
.hero__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-label);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white-60);
}
.hero__when strong { font-weight: 400; color: var(--white); }
.hero__when i { font-style: normal; color: var(--red-hot); margin: 0 6px; }

/* ============================================================
   CONTADOR — topo da página
   ============================================================ */
.countdown {
  --cd-size: clamp(2.1rem, 10.5vw, 2.8rem);
  padding: 14px var(--gutter) 12px;
  border-bottom: 1px solid var(--white-10);
  background:
    linear-gradient(90deg, rgba(161, 0, 0, 0), rgba(161, 0, 0, .14) 50%, rgba(161, 0, 0, 0)),
    rgba(0, 0, 0, .55);
}
.countdown__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.countdown__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
}
.countdown__live {
  width: 8px; height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 0 0 rgba(227, 39, 30, .7);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 39, 30, .7); }
  80%  { box-shadow: 0 0 0 10px rgba(227, 39, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 39, 30, 0); }
}
.countdown__clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 4vw, 22px);
}
.countdown__clock[hidden] { display: none; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-num {
  display: flex;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--cd-size);
  line-height: .95;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--white);
}
.cd-digit { display: inline-block; min-width: .52em; text-align: center; }
.cd-digit.is-changing { animation: digitIn .5s var(--ease-out); }
@keyframes digitIn {
  from { opacity: 0; transform: translateY(-.25em); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.cd-cap {
  margin-top: 3px;
  font-family: var(--font-label);
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white-60);
}
/* separador: losango vermelho, centrado na altura dos dígitos */
.cd-sep {
  width: 6px; height: 6px;
  margin-top: calc(var(--cd-size) * .42);
  background: var(--red-hot);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.countdown.is-live { padding-block: 16px; }
.countdown.is-live .countdown__label { font-size: .8rem; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  padding: 72px var(--gutter) 88px;
  overflow: hidden;
}
.manifesto__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}
/* lockup no desenho do logo: versal espaçada em cima, faixa vermelha
   da MESMA largura embaixo, itálico centrado */
.manifesto__stamp {
  display: grid;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  font-weight: 400;
  text-align: center;
}
.manifesto__no {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 7.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: .12em;
  margin-right: -.12em; /* compensa o tracking da última letra */
  text-transform: uppercase;
  white-space: nowrap;
}
.manifesto__rest {
  margin-top: .02em;
  color: var(--red-hot);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 12.4vw, 7.6rem);
  line-height: 1.02;
  white-space: nowrap;
}
.manifesto__body {
  display: grid;
  gap: 40px;
  padding-top: 44px;
  border-top: 1px solid var(--white-10);
}
.manifesto__statement {
  max-width: 24ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 6.4vw, 2.5rem);
  line-height: 1.22;
  color: var(--white-80);
  text-wrap: pretty;
}
.manifesto__statement em {
  font-style: italic;
  font-weight: 600;
  color: var(--red-hot);
}
.manifesto__statement strong {
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent 70%, rgba(161, 0, 0, .9) 70%, rgba(161, 0, 0, .9) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.manifesto__detail {
  max-width: 38ch;
  margin-top: 26px;
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--white-80);
}
.manifesto__detail strong {
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(transparent 72%, rgba(161, 0, 0, .9) 72%, rgba(161, 0, 0, .9) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.manifesto__aside { display: grid; gap: 32px; align-content: start; }
.manifesto__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--white-20);
}
.manifesto__facts > div {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--white-20);
}
.manifesto__facts > div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--white-20); }
.manifesto__facts > div:nth-child(even) { padding-left: 16px; }
.manifesto__facts dt {
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--white-60);
}
.manifesto__facts dd {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
}
.manifesto__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.manifesto__cta .btn { width: 100%; }

/* ============================================================
   RODAPÉ — padrão rodape-altis
   ============================================================ */
/* Assinatura final: logo vertical Black Sistêmica das Rainhas */
.signature {
  display: flex;
  justify-content: center;
  padding: 72px var(--gutter) 80px;
}
.signature img { width: min(72vw, 380px); height: auto; }

.site-footer {
  background: var(--black);
  color: var(--white-60);
  padding: 40px 24px 120px; /* folga para o CTA fixo no mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  font-family: var(--font-body);
  font-size: .8rem;
  border-top: 1px solid var(--white-10);
}
.footer-company { display: flex; flex-direction: column; gap: 4px; line-height: 1.6; order: 2; }
.footer-company strong { color: var(--white); font-weight: 700; font-size: .88rem; }
.footer-company .footer-copyright { margin-top: 8px; }
.footer-logo { order: 1; flex-shrink: 0; }
.footer-logo img { width: 44px; height: auto; opacity: .9; }
.footer-link {
  order: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--white-20);
  text-decoration: none;
  color: var(--white-80);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.footer-link:hover { color: var(--white); border-color: var(--red-hot); }

/* ============================================================
   CTA FIXO (mobile)
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .92) 30%);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
.sticky-cta .btn { min-height: 56px; }

/* ============================================================
   POP-UP DO FORMULÁRIO
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: fadeIn .3s var(--ease-out);
}
.modal__panel {
  --focus: var(--white);
  position: relative;
  width: 100%;
  max-height: 94svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(161, 0, 0, .12), transparent 60%),
    var(--ink);
  border-top: 4px solid var(--red);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9);
  animation: sheetIn .5s var(--ease-out);
}
.modal.is-closing .modal__panel { animation: sheetOut .25s ease-in forwards; }
.modal.is-closing .modal__backdrop { animation: fadeOut .25s ease-in forwards; }
@keyframes sheetIn  { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fadeIn   { from { opacity: 0; } }
@keyframes fadeOut  { to { opacity: 0; } }

.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white-80);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.modal__close svg { width: 22px; height: 22px; }
.modal__close:hover { background: var(--white-10); color: var(--white); }

.modal__head { text-align: center; margin-bottom: 22px; }
.modal__logo { width: 240px; height: auto; margin: 0 auto 20px; }
.modal__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.3rem);
  line-height: 1.05;
}
.modal__desc {
  max-width: 36ch;
  margin: 10px auto 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--white-60);
}

.capture__fields { display: grid; gap: 14px; margin-bottom: 18px; }
.field { position: relative; text-align: left; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white-60);
}

.iti {
  display: block;
  width: 100%;
  --iti-border-color: rgba(0, 0, 0, .12);
  --iti-dropdown-bg: var(--white);
  --iti-hover-color: rgba(161, 0, 0, .08);
  --iti-icon-color: var(--black);
  --iti-arrow-color: var(--black);
  --iti-spacer-horizontal: 14px;
}
.field__input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ≥16px: evita zoom no iOS */
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(0, 0, 0, .55); opacity: 1; }
.field__input:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 39, 30, .55);
}
.field__input[aria-invalid="true"] { border-color: var(--error-line); }
.iti__selected-country { border-radius: 2px 0 0 2px; }
.iti__selected-country-primary { padding-left: 14px; }
.iti__selected-dial-code { color: var(--black); font-family: var(--font-body); font-size: 1.0625rem; }
.iti__dropdown-content {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 4px;
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, .7);
  overflow: hidden;
  color: var(--black);
  font-family: var(--font-body);
}
.iti__search-input { font-size: 1rem; color: var(--black); background: transparent; min-height: 44px; }
.iti__country { min-height: 44px; }
.iti__country-name { color: var(--black); }
.iti__dial-code { color: rgba(0, 0, 0, .62); }
.iti__country-check { color: var(--red); }
.iti--fullscreen-popup.iti--container { background-color: rgba(0, 0, 0, .7); }
.iti--container { z-index: 1200; } /* acima do pop-up (1000) e do grão (100) */

.field__error {
  margin-top: 8px;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--error-on-dark);
}
.field__error:empty { display: none; }
.field__error::before,
.form-error::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-error {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--error-on-dark);
}
.form-error:empty { display: none; }
.form-noscript { margin-top: 12px; font-size: .9rem; color: var(--error-on-dark); }
.capture__consent {
  margin-top: 14px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--white-60);
  text-align: center;
}
.capture__consent a { color: var(--white-80); text-underline-offset: 2px; }
.capture__consent a:hover { color: var(--white); }

.success { text-align: center; padding: 8px 0 4px; animation: fadeIn .5s var(--ease-out); }
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success__crown { width: 46px; height: 32px; margin: 0 auto 12px; color: var(--red-hot); }
.success__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
}
.success__text { margin: 10px auto 0; max-width: 34ch; color: var(--white-80); }
.success .btn { margin-top: 20px; }
.success .btn[hidden] { display: none; }

/* ============================================================
   MOTION — estados iniciais só existem com JS ativo
   ============================================================ */
.js .enter {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}
.js.is-ready .enter { opacity: 1; transform: none; filter: blur(0); }

/* a palavra "enlouquecer!" chega tremendo e surta de novo a cada ~6s */
.js.is-ready .hero__headline-word { animation: shake .7s 1s cubic-bezier(.36, .07, .19, .97) both; }
.js.is-ready .hero__headline-word::before { animation: glitchA 6s 1.1s steps(1) infinite; }
.js.is-ready .hero__headline-word::after  { animation: glitchB 6s 1.1s steps(1) infinite; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0) rotate(-.4deg); }
  20%, 80% { transform: translate3d(3px, 0, 0) rotate(.6deg); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0) rotate(-1deg); }
  40%, 60% { transform: translate3d(5px, 0, 0) rotate(1deg); }
}
@keyframes glitchA {
  0%, 6%, 100% { opacity: 0; }
  1% { opacity: .9; transform: translate(-4px, -2px); clip-path: inset(10% 0 55% 0); }
  2% { opacity: .9; transform: translate(5px, 1px);  clip-path: inset(60% 0 12% 0); }
  3% { opacity: .9; transform: translate(-2px, 0);   clip-path: inset(35% 0 40% 0); }
  4% { opacity: 0; }
}
@keyframes glitchB {
  0%, 6%, 100% { opacity: 0; }
  1% { opacity: 1; transform: translate(4px, 2px);   clip-path: inset(50% 0 20% 0); }
  2% { opacity: 1; transform: translate(-5px, -1px); clip-path: inset(5% 0 70% 0); }
  3% { opacity: 1; transform: translate(3px, 0);     clip-path: inset(75% 0 5% 0); }
  4% { opacity: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.js .manifesto__statement.reveal { transition-delay: .08s; }
.js .manifesto__detail.reveal { transition-delay: .14s; }
.js .manifesto__facts.reveal { transition-delay: .16s; }
.js .manifesto__cta.reveal { transition-delay: .24s; }

/* ============================================================
   < 600px — celular: CTA na primeira dobra (inclusive com a barra
   do Safari, ~660px visíveis). Logo menor, imagem mais acima,
   respiros mais curtos; legenda "Fig. 1" só a partir de 600px.
   ============================================================ */
@media (max-width: 599.98px) {
  .countdown { --cd-size: clamp(1.7rem, 8.4vw, 2.2rem); padding: 9px var(--gutter) 8px; }
  .countdown__inner { gap: 3px; }
  .countdown__label { font-size: .6rem; }
  .cd-cap { font-size: .5rem; margin-top: 1px; }

  .hero { padding: 18px var(--gutter) 40px; }
  /* ordem: marca → chamada + apoio (juntos) → cena → botão → data */
  .hero__grid {
    gap: 14px;
    grid-template-areas:
      "logo"
      "headline"
      "sub"
      "figure"
      "cta";
  }
  .hero__logo { margin-bottom: 12px; } /* respiro entre marca e chamada */
  .hero__logo img { width: min(78vw, 340px); }
  .hero__headline { margin-top: 0; }
  .hero__headline-pre { font-size: clamp(.95rem, 4.4vw, 1.2rem); }
  .hero__headline-word { font-size: clamp(2.9rem, 14.2vw, 3.6rem); margin-top: -.06em; }
  .hero__figure { margin-top: 10px; }
  .hero__caption { display: none; }
  .hero__sticker { width: 50px; height: 50px; bottom: -10px; right: -4px; }
  .hero__sticker-day { font-size: 1.25rem; }
  .hero__sticker-month { font-size: .42rem; margin-top: 1px; }
  .hero__sticker-live { font-size: .36rem; padding: 2px 3px 1px; margin-top: 2px; }
  .hero__sub { font-size: clamp(1.02rem, 4.2vw, 1.15rem); line-height: 1.38; margin-top: -6px; }
  .hero__cta { gap: 12px; margin-top: 12px; }
  .hero__cta .btn { min-height: 48px; padding-block: 12px; }
}

/* ============================================================
   ≥ 600px
   ============================================================ */
@media (min-width: 600px) {
  :root { --gutter: 36px; }
  .hero { padding-top: 48px; }
  .hero__sticker { width: 104px; height: 104px; bottom: -34px; right: -22px; }
  .hero__sticker-day { font-size: 2.7rem; }
  .countdown { --cd-size: 2.9rem; }
  .manifesto__cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
  .manifesto__cta .btn { width: auto; padding-inline: 34px; }

  /* pop-up centralizado */
  .modal { align-items: center; padding: 24px; }
  .modal__panel {
    max-width: 480px;
    max-height: calc(100svh - 48px);
    padding: 40px 40px 32px;
    border-radius: 4px;
    animation: popIn .5s var(--ease-out);
  }
  .modal.is-closing .modal__panel { animation: popOut .22s ease-in forwards; }
  .modal__logo { width: 260px; }
}
@keyframes popIn  { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }

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

/* ============================================================
   ≥ 1024px — desktop: texto à esquerda, "Fig. 1" à direita
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
  .ticker__track { font-size: .74rem; padding: 12px 0; }

  .hero { padding: 56px var(--gutter) 64px; }
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "logo     figure"
      "headline figure"
      "sub      figure"
      "cta      figure";
    column-gap: clamp(48px, 5vw, 88px);
    row-gap: 30px;
    align-items: start;
    text-align: left;
  }
  /* logo = assinatura da campanha: menor, e com mais ar antes da chamada */
  .hero__logo { margin-bottom: 26px; }
  .hero__logo img { width: min(75%, 420px); margin: 0; }
  /* a coluna vira container: "enlouquecer!" (~4,2em de largura) ocupa
     ~80% dela em qualquer tela, sempre com respiro à direita */
  .hero__headline { align-items: flex-start; container-type: inline-size; }
  .hero__headline-pre { margin-right: 0; font-size: clamp(1.3rem, 1.75vw, 1.75rem); }
  /* colado no "ATÉ FREUD VAI": as duas linhas leem como uma frase só */
  .hero__headline-word { font-size: min(19cqi, 7.2rem); margin-left: -.03em; margin-top: -.08em; }
  /* apoio em duas linhas fixas, no mesmo eixo esquerdo do título,
     agrupado com a chamada */
  .hero__sub {
    margin: -18px 0 0;
    max-width: none;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    text-wrap: initial;
  }
  .hero__sub-line { display: block; white-space: nowrap; }
  .hero__cta { align-items: flex-start; }
  .hero__cta .btn { width: auto; padding-inline: 34px; }
  .hero__when { flex-direction: row; gap: 14px; }

  .hero__figure { align-self: center; }
  /* a rotação mora no quadro (o .enter da figura usa transform na entrada) */
  .hero__frame {
    transform: rotate(1.6deg);
    transition: transform .8s var(--ease-out);
  }
  .hero__frame:hover { transform: rotate(0deg) scale(1.01); }
  .hero__caption { text-align: left; padding-right: 120px; }

  .countdown { --cd-size: 3rem; padding: 12px var(--gutter); }
  .countdown__inner { flex-direction: row; justify-content: center; gap: 36px; }
  .countdown__label { font-size: .74rem; }
  .cd-unit { flex-direction: row; align-items: baseline; gap: 8px; }
  .cd-cap { margin-top: 0; }
  .cd-sep { margin-top: calc(var(--cd-size) * .36); }
  .countdown__clock { gap: 22px; }

  .manifesto { padding: 88px var(--gutter) 104px; }
  .manifesto__inner { gap: 56px; }
  .manifesto__no { font-size: clamp(3rem, 4.4vw, 4.6rem); }
  .manifesto__rest { font-size: clamp(5.2rem, 7.6vw, 8rem); }
  .manifesto__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(56px, 7vw, 120px);
    padding-top: 64px;
    align-items: start;
  }
  .manifesto__statement { font-size: clamp(2rem, 2.7vw, 2.55rem); }
  .manifesto__cta .btn { padding-inline: 30px; }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 36px max(var(--gutter), (100vw - var(--container)) / 2);
  }
  .footer-company { order: 1; }
  .footer-logo { order: 2; }
  .footer-logo img { width: 52px; }

  .sticky-cta { display: none; }
}


/* ============================================================
   Movimento reduzido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none; }
  .glow__orb { animation: none; }
  .hero__headline-word::before,
  .hero__headline-word::after { display: none; }
  .js .enter, .js .reveal { opacity: 1; transform: none; filter: none; }
}
