/* Everglow Eternize · base compartilhada (site, área do cliente e painel).
   Tokens, tipografia, botões, links e as animações de entrada. */
@import url("/vendor/newsreader/opsz.css");
@import url("/vendor/newsreader/opsz-italic.css");
@import url("/vendor/geist/wght.css");
@import url("/vendor/geist-mono/wght.css");

:root {
  /* papel e tinta: creme quente, tinta de cacau */
  --pagina: #f1ebe3;
  --papel: #f8f4ee;
  --branco: #fff;
  --tinta: #1d1714;
  --tinta-2: #645850;
  --tinta-3: #9a8e84;
  --fio: #1d171414;
  --fio-forte: #1d171426;

  /* brilho (o "glow"): âmbar de fim de tarde até cacau */
  --glow-900: #4a2b1d;
  --glow-700: #9b5a34;
  --glow-500: #d38c4f;
  --glow-300: #edc497;
  --glow-200: #f6dcc0;
  --glow-100: #fbefe2;
  --rosa-300: #e6bfb3;
  --rosa-100: #f7e7e1;
  --verm-600: #b8443a;
  --ok-600: #4f7a43;
  --ok-100: #e6efdf;

  --vidro: #ffffff29;
  --vidro-forte: #ffffff3d;
  --vidro-borda: #ffffff5c;
  --vidro-blur: blur(22px) saturate(1.35);

  --serifa: "Newsreader Variable", "Iowan Old Style", Georgia, serif;
  --sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "SF Mono", Menlo, monospace;

  --f-hero: clamp(42px, min(5.3vw, 8.9vh), 104px);
  --f-h2: clamp(34px, 3.75vw, 64px);
  --f-h3: clamp(25px, 2.05vw, 33px);
  --f-lead: clamp(16px, 1.16vw, 18.5px);
  --f-corpo: 16px;

  --margem: 8px;
  --gutter: clamp(20px, 3.3vw, 48px);
  --largura: 1328px;
  --r-card: 28px;
  --r-dentro: 20px;
  --r-app: 16px;
  --r-campo: 14px;
  --r-pilula: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-entra: 1.1s;
  --t-estado: 0.6s;
  --t-micro: 0.32s;

  --sombra-app: 0 1px 1px #1d17140a, 0 24px 60px -18px #3a221659;
  --sombra-leve: 0 1px 2px #1d17140d, 0 8px 24px -12px #1d17142e;
}
@media (max-width: 760px) {
  :root {
    --margem: 6px;
    --r-card: 22px;
    --r-dentro: 16px;
    --r-app: 14px;
  }
}

*, :before, :after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  background: var(--pagina);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--f-corpo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  line-height: 1.5;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: 0 0; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--glow-200); color: var(--glow-900); }

.sr {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.serifa {
  font-family: var(--serifa);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.032em;
  font-weight: 400;
  line-height: 1.02;
}
.h2 { font-size: var(--f-h2); }
.lead { font-size: var(--f-lead); color: var(--tinta-2); text-wrap: balance; line-height: 1.55; }
p { text-wrap: pretty; }
em.brilho, .brilho {
  color: var(--glow-700);
  font-style: italic;
  letter-spacing: -0.02em;
  padding-right: 0.04em;
}

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

/* ---------- marca: arco da eternidade + faísca de luz ---------- */
.marca { width: 38px; height: 38px; overflow: visible; color: var(--tinta); }
.marca .marca__arco { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.marca .marca__luz { fill: var(--glow-500); }
.marca path, .marca circle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.7s var(--ease);
}

/* ---------- botões: o preenchimento sobe em arco no hover, a seta troca de lugar ---------- */
.btn {
  --alt: 46px;
  height: var(--alt);
  border-radius: var(--r-pilula);
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  transition:
    transform var(--t-micro) var(--ease),
    box-shadow var(--t-estado) var(--ease),
    background-color var(--t-estado) var(--ease),
    opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}
.btn:before {
  content: "";
  z-index: -1;
  transition: transform 0.62s var(--ease);
  border-radius: 50% 50% 0 0 / 30px 30px 0 0;
  position: absolute;
  inset: -60% -14% -2px;
  transform: translateY(102%);
}
.btn--escuro { background: var(--tinta); color: #fff; }
.btn--escuro:before { background: var(--glow-900); }
.btn--claro { color: var(--tinta); background: #fff; box-shadow: 0 1px 2px #1d17140f; }
.btn--claro:before { background: var(--glow-100); }
.btn--vidro {
  background: var(--vidro-forte);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--vidro-borda);
  -webkit-backdrop-filter: var(--vidro-blur);
  backdrop-filter: var(--vidro-blur);
}
.btn--vidro:before { background: #ffffff38; }
.btn--perigo { background: var(--verm-600); color: #fff; }
.btn--perigo:before { background: #8e2f27; }
.btn--mini { --alt: 36px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
.btn[disabled], .btn.is-ocupado { opacity: 0.55; pointer-events: none; }

.seta { flex: none; width: 16px; height: 16px; position: relative; overflow: hidden; }
.seta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease);
  position: absolute;
  inset: 0;
}
.seta svg + svg { transform: translate(-120%); }

@media (hover: hover) {
  :where(html:not(.is-scrolling)) .btn:hover:before { transform: translateY(0); }
  :where(html:not(.is-scrolling)) .btn:hover .seta svg:first-child { transform: translate(120%); }
  :where(html:not(.is-scrolling)) .btn:hover .seta svg + svg { transform: translate(0); }
  :where(html:not(.is-scrolling)) .btn--claro:hover { box-shadow: 0 6px 18px -8px #1d171447; }
}
.btn:active { transform: scale(0.97); }
.btn:active:before { transition-duration: 0.28s; transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-pilula); }

/* link com sublinhado que corre da esquerda para a direita */
.link {
  transition: background-size 0.5s var(--ease);
  background: linear-gradient(currentColor, currentColor) right 100% / 0 1px no-repeat;
  padding-bottom: 2px;
}
@media (hover: hover) {
  :where(html:not(.is-scrolling)) .link:hover { background-position: 0 100%; background-size: 100% 1px; }
}
.link:active { opacity: 0.7; }

/* ---------- entrada ao rolar ---------- */
.js .entra { opacity: 0; transform: translateY(22px); }
.js .entra.is-in {
  opacity: 1;
  transition: opacity 0.9s var(--ease), transform var(--t-entra) var(--ease);
  transition-delay: var(--atraso, 0s);
  transform: none;
}
.linha { margin: -0.06em 0 -0.16em; padding: 0.06em 0 0.16em; display: block; overflow: hidden; }
.linha > span { display: block; }
.js .entra-linhas .linha > span { transform: translateY(calc(100% + 0.32em)); }
.js .entra-linhas.is-in .linha > span {
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--atraso, 0s) + var(--i, 0) * 80ms);
  transform: none;
}

/* ---------- campo de formulário ---------- */
.campo { display: grid; gap: 7px; }
.campo > span { font-size: 13px; font-weight: 500; color: var(--tinta-2); }
.campo input, .campo select, .campo textarea {
  height: 50px;
  border-radius: var(--r-campo);
  background: #fff;
  border: 0;
  padding: 0 16px;
  font-size: 16px;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--fio-forte);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  width: 100%;
}
.campo select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23645850' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--glow-700), 0 0 0 5px #d38c4f2e;
}
.campo input::placeholder { color: var(--tinta-3); }
.campo small { color: var(--tinta-3); font-size: 12.5px; }

@keyframes treme {
  0%, to { transform: none; }
  25% { transform: translate(-6px); }
  50% { transform: translate(5px); }
  75% { transform: translate(-3px); }
}
@keyframes risca { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gira { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .entra, .js .entra-linhas .linha > span { opacity: 1; transition: none; transform: none; }
  .btn, .btn:before, .seta svg, .link, .marca path, .marca circle { transition: none; }
}
