/* Cause Sounds — landing de pré-lançamento
   Tokens: Visual Bible v1.2 / handoff Cause Unit. Sem radius, sombra ou gradiente. */

:root {
  --bg: #0b0b0b;
  --surface: #121212;
  --texture: #1a1a1a;
  --line: #202020;
  --text: #e9e9e9;
  --text-dim: rgba(233, 233, 233, .6);
  --accent: #b61a1a;

  --font-display: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-tech: "Eurostile Extended", "Eurostile", "Helvetica Neue", Arial, sans-serif;

  --margin: 6vw;
}

/* Webfonts self-hosted entram aqui quando a licença estiver confirmada:
@font-face { font-family: "Neue Haas Grotesk Display Pro"; src: url("../fonts/NHaasGroteskDSPro-95Blk.woff2") format("woff2"); font-weight: 900; font-display: swap; }
...
*/

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

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

:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px var(--margin) 96px;
  background-color: var(--bg);
  isolation: isolate;
  overflow: hidden;
}

/* Fallback sem foto: preto chapado + ruído #1a1a1a a 6% */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--bg);
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .102 0 0 0 0 .102 0 0 0 0 .102 0 0 0 1.6 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(11, 11, 11, .55); }
.hero:not(:has(.hero__media)) .hero__overlay { display: none; }

/* ---------- Lockup ---------- */
.lockup a { display: inline-block; }
.lockup__h { height: 40px; width: auto; }
.lockup__s { display: none; height: 40px; width: auto; }

/* ---------- Conteúdo ---------- */
.content { max-width: calc((100vw - 2 * var(--margin) - 11 * 24px) / 12 * 9 + 8 * 24px); }

.status {
  margin: 0 0 24px;
  font-family: var(--font-tech);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.status::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

.headline {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.description {
  margin: 0 0 40px;
  max-width: 34em;
  font-size: 20px;
  line-height: 1.45;
}

/* ---------- Formulário ---------- */
.signup { max-width: calc((100vw - 2 * var(--margin) - 11 * 24px) / 12 * 6 + 5 * 24px); }
.signup__row { display: flex; }
.signup__input {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-right: 0; border-radius: 0;
  font: inherit; font-size: 16px;
}
.signup__input::placeholder { color: var(--text-dim); }
.signup__input[aria-invalid="true"] { border-color: var(--accent); }
.signup__button {
  height: 56px; padding: 0 24px;
  background: transparent; color: var(--text);
  border: 1px solid var(--text); border-radius: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background-color 120ms, color 120ms;
}
.signup__button span { display: inline-block; margin-left: 8px; transition: color 120ms; }
.signup__button:hover { background: var(--text); color: var(--bg); }
.signup__button:hover span { color: var(--accent); }
.signup__msg { min-height: 0; margin: 8px 0 0; font-size: 13px; }
.signup__msg:empty { display: none; }
.signup__consent { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); max-width: 46em; }
.signup.is-done .signup__row, .signup.is-done .signup__consent { display: none; }
.signup.is-done .signup__msg { font-size: 17px; margin: 0; }

/* ---------- Rodapé ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 0 var(--margin);
  border-top: 1px solid var(--line); background: var(--bg);
  font-size: 13px; color: var(--text-dim);
}
.footer p { margin: 0; }
.footer__legal { order: 2; }
.footer__copy { order: 1; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Sonic Sculpture (mockup) ---------- */
.hero__art { position: absolute; z-index: 0; top: 0; right: -6vw; bottom: 0; left: 22vw; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.lockup, .content { position: relative; z-index: 1; }

/* O vídeo fica invisível sobre a imagem parada e só aparece quando começa a tocar.
   Se não tocar (iPhone em modo de pouca energia, economia de dados, erro), a imagem fica. */
.hero__video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: 0; transition: opacity .8s ease; }
.hero.has-video .hero__video { opacity: 1; }
.motion-toggle {
  position: absolute; right: var(--margin); bottom: 32px; z-index: 2;
  padding: 8px 12px; background: transparent; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  font: 500 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
}
.motion-toggle:hover { color: var(--text); border-color: var(--text-dim); }


/* Desktop: texto centralizado no espaço abaixo do logo (antes ficava preso no rodapé da tela) */
@media (min-width: 768px) {
  .hero { justify-content: flex-start; }
  .hero .content { margin-top: auto; margin-bottom: auto; padding-top: 48px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  /* Conteúdo segue o lockup com respiro proporcional à altura da tela,
     em vez de ficar ancorado na base de uma tela cheia. */
  .hero { justify-content: flex-start; padding: 24px 24px 48px; }
  .content { margin-top: 0; }
  .hero__art { position: relative; z-index: 0; right: auto; top: auto; left: auto; bottom: auto; width: auto; -webkit-mask-image: none; mask-image: none; margin: clamp(12px, 2svh, 24px) -24px clamp(8px, 2svh, 20px); }
  .hero__art img { height: clamp(150px, 26svh, 250px); width: 100%; object-fit: cover; object-position: 55% 50%; }
  .hero__video { object-position: 55% 50%; }
  .motion-toggle { display: none !important; } /* sem botão no celular (decisão da Bee, 29/10) */
  .lockup__h { display: none; }
  .lockup__s { display: block; height: 40px; }
  .content, .signup { max-width: none; }
  .status { font-size: 11px; margin-bottom: 16px; }
  .headline { font-size: min(52px, 11vw); margin-bottom: 20px; overflow-wrap: anywhere; }
  .description { font-size: 17px; margin-bottom: 32px; }
  .signup__row { flex-direction: column; gap: 8px; }
  .signup__input { flex: none; height: 48px; border-right: 1px solid var(--line); }
  .signup__button { height: 48px; width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 16px 24px; font-size: 12px; }
  .footer__legal { order: 1; }
  .footer__copy { order: 2; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Páginas legais ---------- */
.legal-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-header { display: flex; justify-content: space-between; align-items: center; padding: 48px var(--margin) 0; }
.legal-header .lockup__h { height: 34px; }
.legal-back { font-size: 13px; color: var(--text-dim); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; }
.legal-back:hover { color: var(--text); }
.legal { flex: 1; max-width: 46rem; padding: 96px var(--margin) 96px; }
.legal h1 { margin: 0 0 48px; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.legal h2 { margin: 48px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.legal h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; }
.legal p, .legal li { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: rgba(233, 233, 233, .85); }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { color: var(--text); }
.legal address { font-style: normal; }
.legal .legal-meta { margin-top: 48px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 767px) {
  .legal-header { padding: 24px 24px 0; }
  .legal-header .lockup__h { display: block; height: 22px; }
  .legal { padding: 64px 24px; }
}
