/* Home do Seruvo: uma tela só, com o anel de aletas desenhado ao vivo (home.js). Tudo é medido em
   `--u`, a unidade do frame: min(largura/1052, altura/754), ou largura/600 em telas estreitas.
   O que o Seruvo faz, os planos e as perguntas ficam em produto.html (styles.css). */

@font-face {
  font-family: 'Inter';
  src:
    url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
    url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html,
body {
  height: 100%;
  background: #000;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #ffb48c;
  outline-offset: 3px;
}

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

/* ───── Frame ───── */

.frame {
  --u: 1px;
  --shift: 0px;
  position: fixed;
  inset: 7.2vh 5vw;
  border-radius: calc(14 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ───── Navegação ───── */

.nav {
  position: absolute;
  top: calc(24 * var(--u));
  left: calc(26 * var(--u));
  right: calc(24 * var(--u));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: calc(9 * var(--u));
  font-size: calc(17.5 * var(--u));
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand svg {
  width: calc(21 * var(--u));
  height: calc(21 * var(--u));
  flex: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
}

.pill {
  display: flex;
  align-items: center;
  height: calc(29 * var(--u));
  padding: 0 calc(4 * var(--u));
  border-radius: calc(8 * var(--u));
  background: rgba(150, 150, 150, 0.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.pill a {
  padding: 0 calc(10 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(29 * var(--u));
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

.pill a:hover {
  color: #fff;
}

.connect {
  display: inline-flex;
  align-items: center;
  height: calc(29 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u));
  background: #fff;
  color: #0b0b0c;
  font-size: calc(14 * var(--u));
  font-weight: 500;
  transition: transform 0.2s ease;
}

.connect:hover {
  transform: translateY(-1px);
}

/* ───── Título ───── */

.headline {
  position: absolute;
  left: 0;
  right: 0;
  /* Topo das maiúsculas a ~447u do topo do frame (a margem negativa da palavra compensa a
     folga acima das maiúsculas da Inter com line-height 1). */
  top: calc(var(--shift) + 447 * var(--u));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.word {
  display: block;
  font-size: calc(176 * var(--u));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: -0.1365em;
  white-space: nowrap;
}

/* Palavra e cursor no tamanho que cabe (--word-scale, calculado no home.js); a linha (.word)
   mantém a altura, então o resto da página não se move quando a palavra troca. */
.word-text,
.caret {
  font-size: calc(var(--word-scale, 1) * 1em);
}

/* Inline (não flex): o fundo cobre a área de conteúdo inteira, inclusive descendentes. */
.word-text {
  background: linear-gradient(12deg, #fffaf6 28%, #ffe6d6 46%, #ffbc98 66%, #ff8f62 88%, #ff7a4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 1,6u × 124u e 7u de distância, em em (176u) para acompanhar a palavra no celular. */
.caret {
  display: inline-block;
  width: 0.0091em;
  min-width: 1px;
  height: 0.7045em;
  margin-left: 0.0398em;
  background: #ffb48c;
  vertical-align: baseline;
}

.caret.off {
  opacity: 0;
}

.sub {
  margin-top: calc(26 * var(--u));
  font-size: calc(18 * var(--u));
  line-height: calc(24 * var(--u));
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.cta {
  display: inline-flex;
  align-items: center;
  height: calc(41 * var(--u));
  margin-top: calc(19 * var(--u));
  padding: 0 calc(17 * var(--u));
  border-radius: calc(10 * var(--u));
  background: #fff;
  color: #0b0b0c;
  font-size: calc(15 * var(--u));
  font-weight: 500;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 calc(10 * var(--u)) calc(34 * var(--u)) rgba(255, 122, 60, 0.42),
    0 0 calc(14 * var(--u)) rgba(255, 150, 90, 0.28);
}

.legal {
  position: absolute;
  right: calc(24 * var(--u));
  bottom: calc(14 * var(--u));
  z-index: 2;
  display: flex;
  gap: 0.6em;
  font-size: max(11px, calc(12 * var(--u)));
  color: rgba(255, 255, 255, 0.42);
}

.legal a {
  transition: color 0.2s ease;
}

.legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ───── Contato ───── */

/* Fechado por padrão; abre pelo link (#contato, funciona sem JS) ou pela classe do home.js. */
.contact {
  position: absolute;
  top: calc(64 * var(--u));
  right: calc(24 * var(--u));
  z-index: 3;
  display: none;
  width: calc(336 * var(--u));
  padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(14 * var(--u));
  background: rgba(16, 16, 18, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(0, 0, 0, 0.55);
}

.contact:target,
.contact.is-open {
  display: block;
}

.contact h2 {
  font-size: calc(17 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact > p {
  margin-top: calc(4 * var(--u));
  font-size: calc(13.5 * var(--u));
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.contact-close {
  position: absolute;
  top: calc(10 * var(--u));
  right: calc(12 * var(--u));
  font-size: calc(20 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
}

.contact-close:hover {
  color: #fff;
}

.contact-form {
  display: flex;
  gap: calc(8 * var(--u));
  margin-top: calc(14 * var(--u));
}

.contact-form input[type='email'] {
  flex: 1;
  min-width: 0;
  height: calc(38 * var(--u));
  padding: 0 calc(12 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(9 * var(--u));
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: calc(14 * var(--u));
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.contact-form input[type='email']:focus {
  border-color: #ffb48c;
}

.contact-form button {
  height: calc(38 * var(--u));
  padding: 0 calc(14 * var(--u));
  border: 0;
  border-radius: calc(9 * var(--u));
  background: #fff;
  color: #0b0b0c;
  font: inherit;
  font-size: calc(14 * var(--u));
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
}

.contact-form button:focus-visible {
  outline: 2px solid #ffb48c;
  outline-offset: 2px;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.contact-status {
  margin-top: calc(10 * var(--u));
  font-size: calc(13 * var(--u));
  line-height: 1.4;
}

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

.contact-status.ok {
  color: #ffbc98;
}

.contact-status.err {
  color: #ff8f8f;
}

/* Relógio do modo de gravação (?rec=1): animação pausada que o gravador posiciona. */
.rec-clock {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ───── Celular ───── */

@media (max-width: 767.98px) {
  .frame {
    inset: 10px;
  }

  /* No celular o menu mostra Produto e Preços; o Contato fica na linha de baixo. */
  .pill {
    height: 32px;
    padding: 0 3px;
  }

  .pill a {
    padding: 0 9px;
    font-size: 14px;
    line-height: 32px;
  }

  .pill .pill-wide {
    display: none;
  }

  /* Com u = largura/600 o texto ficaria pequeno demais para ler e tocar. */
  .brand {
    font-size: max(16px, calc(17.5 * var(--u)));
  }

  .brand svg {
    width: max(19px, calc(21 * var(--u)));
    height: max(19px, calc(21 * var(--u)));
  }

  .connect {
    height: max(32px, calc(29 * var(--u)));
    padding: 0 12px;
    font-size: max(14px, calc(14 * var(--u)));
  }

  .word {
    font-size: min(calc(176 * var(--u)), 22vw);
  }

  .sub {
    max-width: 32ch;
    margin-top: 18px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 21px;
  }

  .sub br {
    display: none;
  }

  .cta {
    height: 44px;
    margin-top: 18px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 10px;
  }

  .legal {
    left: 0;
    right: 0;
    bottom: 12px;
    justify-content: center;
  }

  /* No celular o contato sobe de baixo, com tamanhos fixos para ler e tocar. */
  .contact {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 40px;
    width: auto;
    padding: 18px 16px 16px;
    border-radius: 14px;
  }

  .contact h2 {
    font-size: 17px;
  }

  .contact > p,
  .contact-status {
    font-size: 14px;
  }

  .contact-close {
    top: 10px;
    right: 14px;
    font-size: 22px;
  }

  .contact-form {
    gap: 8px;
    margin-top: 14px;
  }

  .contact-form input[type='email'],
  .contact-form button {
    height: 44px;
    border-radius: 10px;
    font-size: 16px;
  }

  .contact-form input[type='email'] {
    padding: 0 12px;
  }

  .contact-form button {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect,
  .cta,
  .contact-form button {
    transition: none;
  }
}
