/* ==========================================================================
   GennomX — em-breve.css
   Pré-lançamento da GennomX 2.0 (D-018). Página isolada, carregada depois de main.css.
   Linguagem do site: campo escuro chapado, título monumental com linha vazada,
   um único elemento vivo (a régua da transição) e formulário como instrumento.
   Sem estilos inline (CSP).
   ========================================================================== */

body.pag-em-breve {
  background: var(--ink-950);
  color: var(--ink-050);
}

.soon {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: clamp(20px, 4vw, 72px);
  padding-top: calc(clamp(20px, 3vh, 36px) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(20px, 3vh, 32px) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

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

/* --- Topo ---------------------------------------------------------------- */
.soon-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.soon-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-300);
}

.soon-kicker__mark { color: var(--signal); }

/* --- Abertura ------------------------------------------------------------ */
.soon-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding-block: clamp(48px, 8vh, 96px);
}

.soon-main:focus { outline: none; }

.soon-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink-050);
  text-wrap: balance;
}

.soon-title__contour {
  color: transparent;
  -webkit-text-stroke: max(1px, 0.012em) var(--ink-050);
}

.soon-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.soon-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
  max-width: 640px;
}

.soon-lede {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-300);
  max-width: 56ch;
}

/* --- Formulário como instrumento ----------------------------------------- */
.soon-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.soon-form__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-300);
}

.soon-form__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.soon-input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 8px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-500);
  border-radius: 0;
  color: var(--ink-050);
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.3vw, 20px);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.soon-input::placeholder { color: var(--ink-500); opacity: 1; }

.soon-input:focus {
  border-bottom-color: var(--ink-050);
  box-shadow: 0 1px 0 var(--signal);
}

.soon-input[aria-invalid="true"],
.soon-input:user-invalid { border-bottom-color: var(--danger); }

.soon-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 clamp(20px, 2.4vw, 32px);
  background: var(--ink-850);
  border: 1px solid var(--ink-600);
  border-bottom: 2px solid var(--signal);
  border-radius: 0;
  color: var(--ink-050);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.soon-submit::after {
  content: "→";
  color: var(--ink-300);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.soon-submit:hover { background: var(--ink-800); border-color: var(--ink-300); border-bottom-color: var(--signal); }
.soon-submit:hover::after { transform: translateX(4px); color: var(--ink-050); }
.soon-submit:disabled { opacity: 0.55; cursor: wait; }

.soon-submit__beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(255, 79, 143, 0.7);
}

.soon-consent {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 44px;
  padding-block: 12px 0;
  cursor: pointer;
}

.soon-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.soon-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-500);
  background: var(--ink-950);
  box-sizing: border-box;
}

.soon-checkbox:checked + .soon-check { border-color: var(--ink-050); background: var(--ink-850); }
.soon-checkbox:checked + .soon-check::after { content: ""; width: 8px; height: 8px; background: var(--signal); }
.soon-checkbox:focus-visible + .soon-check { outline: 2px solid var(--signal); outline-offset: 3px; }
.soon-checkbox[aria-invalid="true"] + .soon-check { border-color: var(--danger); }

.soon-consent__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-300);
}

.soon-link {
  position: relative;
  color: var(--ink-200);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-600);
}

/* Área de toque de 44px sem mudar o desenho do link */
.soon-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.soon-link:hover,
.soon-link:focus-visible { color: var(--signal); text-decoration-color: var(--signal); }

.soon-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}

.soon-status:empty { display: none; }

.soon-status {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  border-top: 1px solid var(--ink-800);
}

.soon-status.is-error { color: var(--danger); background: rgba(255, 92, 122, 0.08); border-top-color: rgba(255, 92, 122, 0.24); }
.soon-status.is-success { color: var(--success); background: rgba(66, 211, 146, 0.08); border-top-color: rgba(66, 211, 146, 0.24); }

/* --- Gesto: régua da transição ------------------------------------------- */
.soon-gesture {
  display: flex;
  justify-content: flex-end;
}

.soon-gesture__svg {
  width: 100%;
  max-width: 620px;
  height: auto;
  overflow: visible;
}

.soon-gesture__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.soon-gesture__label--next {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.soon-beam {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: soonBeam 2.4s var(--ease) 0.3s forwards;
}

.soon-comet {
  opacity: 0;
  animation: soonComet 4.2s ease-in-out 2.8s infinite;
}

.soon-halo,
.soon-ring,
.soon-core {
  transform-box: fill-box;
  transform-origin: center;
}

.soon-halo {
  opacity: 0;
  animation: soonHalo 3.6s ease-in-out 2.6s infinite alternate;
}

.soon-ring {
  opacity: 0;
  animation: soonReveal 0.6s var(--ease) 2.4s forwards;
}

.soon-core {
  opacity: 0;
  animation: soonReveal 0.4s var(--ease) 2.5s forwards;
}

@keyframes soonBeam {
  to { stroke-dashoffset: 0; }
}

@keyframes soonComet {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(380px); }
}

@keyframes soonHalo {
  from { opacity: 0.08; transform: scale(0.85); }
  to { opacity: 0.22; transform: scale(1.15); }
}

@keyframes soonReveal {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Rodapé mínimo ------------------------------------------------------- */
.soon-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-800);
  font-size: 13px;
  color: var(--ink-500);
}

.soon-foot p { margin: 0; }

.soon-direct { color: var(--ink-300); }

.soon-legal { display: flex; gap: 24px; }

.soon-foot__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-300);
  text-decoration: none;
}

.soon-foot__link:hover,
.soon-foot__link:focus-visible { color: var(--signal); }

/* --- Responsivo ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .soon-body { grid-template-columns: 1fr; }
  .soon-gesture { justify-content: flex-start; order: -1; }
  .soon-gesture__svg { max-width: 460px; }
  .soon-gesture__label { font-size: 16px; }
  .soon-gesture__label--next { font-size: 26px; }
}

@media (max-width: 640px) {
  .soon-main { padding-block: 32px; }
  .soon-form__row { flex-direction: column; align-items: stretch; }
  .soon-submit { justify-content: center; }
  /* SVG escala com a largura: rótulos maiores em unidades do desenho para ficarem legíveis */
  .soon-gesture__label { font-size: 20px; letter-spacing: 0.08em; }
  .soon-gesture__label--next { font-size: 30px; }
  .soon-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-beam { animation: none; stroke-dashoffset: 0; }
  .soon-comet { animation: none; opacity: 0; }
  .soon-halo { animation: none; opacity: 0.16; }
  .soon-ring,
  .soon-core { animation: none; opacity: 1; }
  .soon-submit,
  .soon-submit::after,
  .soon-input { transition: none; }
}
