/* ==========================================================================
   CatulaByte — landing page
   Paleta extraída do ícone oficial da marca: #0F1628 / #00ABBD / #FFFFFF
   ========================================================================== */

:root {
  /* marca */
  --navy-950: #080D1A;
  --navy-900: #0F1628;
  --navy-850: #131C31;
  --navy-800: #18223A;
  --navy-700: #222E4B;
  --cyan-600: #0093A4;
  --cyan-500: #00ABBD;
  --cyan-400: #22C3D4;

  /* tema escuro (padrão) */
  --bg: var(--navy-900);
  --bg-alt: #0C1322;
  --surface: rgba(255, 255, 255, .034);
  --surface-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --fg: #EDF1F8;
  --fg-muted: #9AA7BF;
  --fg-dim: #6F7D96;
  --accent: var(--cyan-500);
  --accent-soft: rgba(0, 171, 189, .12);
  --accent-ring: rgba(0, 171, 189, .32);
  --on-accent: #04121A;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .72);

  /* escala */
  --wrap: 1180px;
  --gut: 24px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F7FAFD;
  --line: rgba(15, 22, 40, .1);
  --line-strong: rgba(15, 22, 40, .2);
  --fg: #0F1628;
  --fg-muted: #4F5D75;
  --fg-dim: #74819A;
  --accent: var(--cyan-600);
  --accent-soft: rgba(0, 147, 164, .1);
  --accent-ring: rgba(0, 147, 164, .28);
  --on-accent: #FFFFFF;
  --shadow: 0 20px 44px -26px rgba(15, 22, 40, .32);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -.028em;
  font-weight: 600;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- tipografia utilitária ---------- */

.kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.note {
  margin-top: 26px;
  color: var(--fg-dim);
  font-size: 13px;
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}

.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 28px -14px var(--accent-ring);
}
.btn--primary:hover {
  background: var(--cyan-400);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px var(--accent-ring);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; margin-top: 4px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-ring); }
.icon-btn .ico { grid-area: 1 / 1; }

.ico--sun { display: none; }
:root[data-theme="light"] .ico--sun { display: block; }
:root[data-theme="light"] .ico--moon { display: none; }

/* ---------- cabeçalho ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

/* O desfoque fica num pseudo-elemento, nunca no .header: um elemento com
   backdrop-filter passa a ser o bloco de referência dos filhos position:fixed,
   o que prenderia o menu de tela cheia dentro da altura do cabeçalho. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.header.is-stuck::before { opacity: 1; }

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand__mark { border-radius: 9px; }
.brand__name span { color: var(--accent); }

/* símbolo de marca registrada, sobrescrito ao nome */
.brand__name sup {
  margin-left: 1px;
  color: var(--fg-dim);
  font-size: .52em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--fg); background: var(--surface); }
.nav__links a.is-active { color: var(--accent); }

.nav__cta {
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  color: var(--fg) !important;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent) !important; }

.nav__foot { display: none; }

.header__actions {
  display: flex;
  gap: 10px;
}
.nav-toggle { display: none; }
.nav-toggle .ico--close { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 760px;
  transform: translateX(-46%);
  background: radial-gradient(ellipse at center, rgba(0, 171, 189, .19), transparent 66%);
  pointer-events: none;
}
:root[data-theme="light"] .hero__glow { opacity: .55; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 22%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 22%, #000 12%, transparent 78%);
  opacity: .8;
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__title {
  margin: 28px 0 0;
  font-size: clamp(2.7rem, 7.4vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  max-width: 700px;
  margin-top: 30px;
  color: var(--fg-muted);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 82px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 30px;
  background: var(--bg);
}

/* linha de cima: ícone + rótulo */
.stat dt {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--fg-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.stat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-ring);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* linha de baixo: número grande à esquerda, apoio à direita */
.stat dd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  margin-top: auto;
}

.stat__value {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.stat__note {
  max-width: 190px;
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
  text-wrap: balance;
}

.stat .plus { color: var(--accent); }
.stat__star { color: var(--accent); margin-left: 3px; }

/* ---------- seções ---------- */

.section { padding: 104px 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 660px;
  margin-bottom: 56px;
}

.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.section__lead {
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 1.04rem;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}
.section__head--row > div { max-width: 640px; }

/* ---------- cards de serviço ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 42%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border: 1px solid var(--accent-ring);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 { font-size: 1.24rem; }

.card p {
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--fg-dim);
  font-size: 12.5px;
  font-weight: 500;
}

/* ---------- aplicativos ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.app__link:hover {
  transform: translateY(-3px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow);
}

/* cabeçalho do card: ícone + nome/categoria + selo */
.app__head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app__icon {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.app__ident {
  flex: 1;
  min-width: 0;
}

.app__ident h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.app__cat {
  display: block;
  margin-top: 3px;
  color: var(--fg-dim);
  font-size: 12.5px;
  font-weight: 500;
}

.badge {
  flex: none;
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge--soft {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--fg-dim);
}

/* descrição ocupa a sobra, mantendo os rodapés alinhados entre os cards */
.app__desc {
  flex: 1;
  margin: 18px 0 20px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.app__foot {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.app__metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-width: 0;
}

.metric { min-width: 0; }

.metric small {
  display: block;
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.metric strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.metric strong.is-empty { color: var(--fg-dim); font-weight: 500; }
.metric .star { flex: none; color: var(--accent); }
.metric i {
  font-style: normal;
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 500;
}
.metric i::before { content: "("; }
.metric i::after { content: ")"; }

.app__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-dim);
  transition: transform .26s var(--ease), color .26s var(--ease),
              border-color .26s var(--ease), background .26s var(--ease);
}
.app__link:hover .app__go {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateX(3px);
}

/* ---------- sobre ---------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
}

.about__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.35rem); }

.about__text > p {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}
.about__text strong { color: var(--fg); font-weight: 600; }

.checks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.checks svg {
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  box-sizing: content-box;
}

.about__side { display: grid; gap: 14px; }

.pillar {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .26s var(--ease), transform .26s var(--ease);
}
.pillar:hover { border-color: var(--accent-ring); transform: translateX(4px); }

.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar h3 { font-size: 1.02rem; }
.pillar p {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- contato ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 64px;
  padding: 62px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-alt);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 171, 189, .18), transparent 64%);
  pointer-events: none;
}

.cta__text { position: relative; }
.cta__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.cta__text > p {
  margin-top: 18px;
  max-width: 420px;
  color: var(--fg-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact {
  position: relative;
  display: grid;
  gap: 11px;
  align-content: start;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
a.contact__item:hover { border-color: var(--accent-ring); transform: translateX(4px); }
.contact__item--static { cursor: default; }

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact__item small {
  display: block;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: .04em;
}
.contact__item strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  word-break: break-word;
}

/* ---------- rodapé ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  padding-block: 64px 48px;
}

.footer__brand p {
  margin-top: 18px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.75;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav > div { display: grid; align-content: start; gap: 11px; }

.footer__nav h3 {
  margin-bottom: 3px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__nav a,
.footer__nav span {
  color: var(--fg-muted);
  font-size: 14px;
}
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 30px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 13px;
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- modal de contato ---------- */

body.modal-aberto { overflow: hidden; }

.modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  color: var(--fg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
  overflow: visible;
}

/* o próprio dialog recebe foco ao abrir; o realce fica nos campos */
.modal:focus,
.modal:focus-visible { outline: none; }

.modal::backdrop {
  background: rgba(4, 8, 18, .74);
  backdrop-filter: blur(5px);
}

.modal[open] { animation: modalEntra .28s var(--ease); }
.modal[open]::backdrop { animation: fundoEntra .28s var(--ease); }

@keyframes modalEntra {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes fundoEntra {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__card {
  max-height: calc(100dvh - 42px);
  padding: 34px 34px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal__close:hover { color: var(--accent); border-color: var(--accent-ring); }

.modal__head { margin-bottom: 26px; }

.modal__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-ring);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.modal__head h2 {
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.modal__head p {
  max-width: 44ch;
  margin-top: 9px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- formulário ---------- */

.form { display: grid; gap: 16px; }

.form__linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.campo { display: grid; min-width: 0; }

.campo label {
  margin-bottom: 7px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.campo textarea { resize: vertical; min-height: 104px; }

.campo input::placeholder,
.campo textarea::placeholder { color: var(--fg-dim); }

.campo input:hover,
.campo textarea:hover { border-color: var(--line-strong); }

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* estado de erro, marcado pelo script após a validação */
.campo.tem-erro input,
.campo.tem-erro textarea { border-color: #E5484D; }
.campo.tem-erro input:focus,
.campo.tem-erro textarea:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .16); }

.campo__erro {
  margin-top: 6px;
  color: #FF6369;
  font-size: 12.5px;
  font-weight: 500;
}
.campo__erro:empty { display: none; }

.form__acoes {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.form__nota {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 12.5px;
  line-height: 1.5;
}
.form__nota svg { flex: none; color: var(--accent); }
.form__nota a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.form__nota a:hover { color: var(--accent); }

/* campo isca: fora da tela, mas ainda preenchível por robôs */
.isca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* resposta do servidor após o envio */
.form__aviso {
  padding: 0;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}
.form__aviso:empty { display: none; }

.form__aviso--ok {
  padding: 13px 15px;
  border: 1px solid var(--accent-ring);
  background: var(--accent-soft);
  color: var(--fg);
}
.form__aviso--erro {
  padding: 13px 15px;
  border: 1px solid rgba(229, 72, 77, .4);
  background: rgba(229, 72, 77, .1);
  color: #FF8B8F;
}

/* botão enquanto a requisição está em curso */
.btn[data-enviar] { position: relative; }
.btn[data-enviar]:disabled { cursor: progress; opacity: .8; }

.btn__carregando { display: none; }

.btn.is-carregando .btn__texto::after { content: "…"; }
.btn.is-carregando .btn__seta { display: none; }
.btn.is-carregando .btn__carregando {
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: girando .7s linear infinite;
}

@keyframes girando { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .modal { width: calc(100vw - 20px); }
  .modal__card { padding: 28px 20px 22px; }
  .modal__head h2 { font-size: 1.32rem; }
  .campo textarea { min-height: 88px; }
  .form__linha { grid-template-columns: 1fr; }
  .form__acoes { flex-direction: column-reverse; }
  .form__acoes .btn { width: 100%; }
}

/* ---------- páginas de texto (política de privacidade) ---------- */

.doc-hero {
  position: relative;
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.doc-hero .hero__glow { top: -420px; opacity: .8; }
.doc-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
}
.doc-hero__lead {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 1.06rem;
  line-height: 1.72;
}
.doc-hero .note { margin-top: 18px; }

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-block: 64px 104px;
}

.doc__toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.doc__toc p {
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.doc__toc a {
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--line);
  color: var(--fg-muted);
  line-height: 1.45;
}
.doc__toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.doc__body { max-width: 740px; }
.doc__body section + section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.doc__body h2 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
.doc__body h3 { margin-top: 26px; font-size: 1.04rem; }
.doc__body p,
.doc__body li {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.78;
}
.doc__body p { margin-top: 14px; }
.doc__body ul { margin: 14px 0 0; padding-left: 20px; }
.doc__body li + li { margin-top: 8px; }
.doc__body li::marker { color: var(--accent); }
.doc__body strong { color: var(--fg); font-weight: 600; }
.doc__body a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.doc__box {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.doc__box p { margin: 0; }
.doc__box p + p { margin-top: 6px; }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 80px; }
  .doc__toc { position: static; }
}

@media (max-width: 860px) {
  .doc-hero { padding: 116px 0 44px; }
}

/* ---------- animação de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .cta { grid-template-columns: 1fr; gap: 40px; padding: 44px 34px; }
  .footer__inner { grid-template-columns: 1fr; gap: 44px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: grid; }

  /* empurra tema + menu para a borda direita do cabeçalho e os mantém
     acima do overlay, que vive dentro do mesmo contexto de empilhamento */
  .header__actions { margin-left: auto; }
  .brand,
  .header__actions { position: relative; z-index: 2; }

  /* menu em tela cheia */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    margin: 0;
    padding: calc(74px + 32px) var(--gut) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__links a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--fg);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .nav__links a:hover { background: none; }

  .nav__cta {
    margin: 26px 0 0;
    padding: 17px 4px !important;
    border: 1px solid var(--accent) !important;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--on-accent) !important;
    font-size: 1.05rem !important;
    text-align: center;
  }

  .nav__foot {
    display: grid;
    gap: 14px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
  .nav__foot a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--fg-muted);
    font-size: 15px;
    font-weight: 500;
  }
  .nav__foot svg { flex: none; color: var(--accent); }

  .nav-toggle[aria-expanded="true"] .ico--open { display: none; }
  .nav-toggle[aria-expanded="true"] .ico--close { display: block; }

  /* trava a rolagem da página enquanto o menu está aberto */
  body.nav-aberto { overflow: hidden; }
  /* com o menu aberto o cabeçalho fica opaco e sem a linha divisória */
  .header.is-open { background: var(--bg); }
  .header.is-open::before { opacity: 0; }

  .apps { grid-template-columns: 1fr; }

  .hero { padding: 132px 0 76px; }
  .stats {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }
  .stat { gap: 18px; padding: 22px 24px; }
  .section { padding: 78px 0; }
}

@media (max-width: 480px) {
  :root { --gut: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .app__link { padding: 20px 20px 18px; }
  .app__head { gap: 13px; }
  .app__icon { width: 50px; height: 50px; border-radius: 12px; }
  .app__ident h3 { font-size: 1.02rem; }
  .app__desc { margin: 16px 0 18px; font-size: 14px; }
  .app__metrics { gap: 10px; }
  .metric small { font-size: 10px; letter-spacing: .05em; }
  .metric strong { font-size: 15px; }
  .metric i { display: none; }

  .cta { padding: 36px 22px; }
  .footer__nav { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .nav, .hero__glow, .hero__grid, .cta__glow { display: none !important; }
  body { background: #fff; color: #000; }
}
