/* ==========================================================================
   M&V Informática — style.css
   Sumário:
   01. Variáveis (tokens)
   02. Reset e base
   03. Tipografia
   04. Layout e utilitários
   05. Botões e links
   06. Header e navegação
   07. Hero
   08. Monitoramento (uptime, ponto "online")
   09. Faixa de credenciais
   10. Seções e cards de serviço
   11. Planos de hospedagem
   12. Blocos "Por que a M&V"
   13. Faixa de CTA
   14. Cabeçalho das páginas internas
   15. Página de serviços
   16. Página Sobre (linha do tempo, missão)
   17. Página de contato e formulário
   18. FAQ
   19. Footer
   20. Botão flutuante do WhatsApp
   21. Página 404
   21b. Ferramentas (teclado, tela, webcam, áudio)
   22. Animações de entrada
   23. Movimento reduzido
   ========================================================================== */

/* 01. Variáveis ============================================================ */
:root {
  --bg: #0B0F14;
  --surface: #121821;
  --surface-2: #18202B;
  --border: #243041;
  --text: #E6EDF3;
  --text-muted: #9AA7B4;
  --accent: #3DDC97;
  --accent-hover: #5BE7AA;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --accent-line: rgba(61, 220, 151, 0.35);
  --on-accent: #0B0F14;
  --danger: #FF7A85;
  --danger-soft: rgba(255, 122, 133, 0.12);
  --warn: #F5C451;
  --warn-soft: rgba(245, 196, 81, 0.14);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);

  --header-h: 68px;
  --container: 1200px;
  --gutter: 16px;
  --section-y: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 96px; --header-h: 76px; }
}

/* 02. Reset e base ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img, svg { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
iframe { border: 0; display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class],
.site-nav ul, .breadcrumb ol, .contact-card ul { list-style: none; padding: 0; margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent); color: var(--on-accent); }

button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

[hidden] { display: none !important; }

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

/* 03. Tipografia =========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

/* 04. Layout e utilitários ================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 + p { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.icon { width: 24px; height: 24px; }
.icon--sm { width: 18px; height: 18px; }

/* 05. Botões e links ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 20px; height: 20px; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 220, 151, 0.22);
}

.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 06. Header e navegação =================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 15, 20, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-logo { display: block; height: 32px; width: auto; max-width: none; }
@media (max-width: 379px) { .brand-logo { height: 28px; } }
.brand--footer .brand-logo { height: 56px; max-width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta .label { display: none; }
.header-cta { padding-inline: 12px; }
@media (min-width: 480px) {
  .header-cta .label { display: inline; }
  .header-cta { padding-inline: 16px; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Mobile: sem JS o menu aparece como linha rolável; com JS vira painel */
@media (max-width: 1099px) {
  .site-header { height: auto; min-height: var(--header-h); }
  .site-header .container { flex-wrap: wrap; padding-block: 12px; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { flex-wrap: wrap; }
  html:not(.nav-ready) .site-header { position: relative; }
  html:not(.nav-ready) body { padding-top: 0; }

  .nav-ready .site-header { height: var(--header-h); }
  .nav-ready .site-header .container { flex-wrap: nowrap; padding-block: 0; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .nav-ready .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    width: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav-ready .site-nav.is-open { display: block; }
  .nav-ready .site-nav ul { flex-direction: column; gap: 2px; }
  .nav-ready .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
}

@media (min-width: 1100px) {
  .site-nav { margin-left: auto; margin-right: 12px; }
}

/* 07. Hero ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
  isolation: isolate;
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/hero-network.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}

.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: 88px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}

.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }

.hero-art {
  position: relative;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.hero-art .sc-svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

/* Textos dentro da ilustração */
.ill-mono { font-family: var(--font-mono); }
.ill-display { font-family: var(--font-display); font-weight: 700; }

/* Vitrine do topo: 2 slides (notebook na bancada / servidor na nuvem) */
.showcase { display: grid; gap: 14px; }
.sc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  overflow: hidden;
}
.sc-tab .icon { color: currentColor; }
.sc-tab:hover { color: var(--text); border-color: var(--accent-line); }
.sc-tab[aria-selected="true"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.sc-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.showcase.is-playing .sc-tab[aria-selected="true"] .sc-progress { animation: sc-progress var(--sc-time, 7s) linear forwards; }
.showcase.is-paused .sc-tab[aria-selected="true"] .sc-progress { animation-play-state: paused; }
@keyframes sc-progress { to { transform: scaleX(1); } }

.sc-slides { display: grid; }
.sc-slide {
  grid-area: 1 / 1;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: opacity .6s ease, transform .6s ease;
}
.sc-art {
  background: radial-gradient(ellipse at 50% 40%, rgba(61, 220, 151, 0.07), transparent 70%);
  border-radius: var(--radius);
}
.sc-svg { width: 100%; height: auto; }
.sc-cap {
  display: grid; gap: 6px;
  padding: 16px 18px;
  background: rgba(18, 24, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sc-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); line-height: 1.25; }
.sc-text { color: var(--text-muted); font-size: 0.95rem; }
.sc-cap .link-arrow { margin-top: 4px; justify-self: start; }

/* Com JS: o script controla o slide ativo */
.showcase.is-js .sc-slide { opacity: 0; transform: translateY(8px); pointer-events: none; }
.showcase.is-js .sc-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
/* Sem JS: alterna sozinho só com CSS (as abas ficam ocultas) */
.showcase:not(.is-js) .sc-tabs { display: none; }
.showcase:not(.is-js) .sc-slide:nth-child(1) { animation: sc-a 14s ease-in-out infinite; }
.showcase:not(.is-js) .sc-slide:nth-child(2) { animation: sc-b 14s ease-in-out infinite; opacity: 0; }
@keyframes sc-a { 0%, 45% { opacity: 1; visibility: visible; } 50%, 95% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
@keyframes sc-b { 0%, 45% { opacity: 0; visibility: hidden; } 50%, 95% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* Slide notebook: foto real com etiquetas das peças acendendo em sequência */
.sc-photo {
  position: relative;
  aspect-ratio: 560 / 400;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
}
.sc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.sc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(11, 15, 20, 0.55));
  pointer-events: none;
}
.sc-pin {
  position: absolute;
  z-index: 1;
  transform: translate(-7px, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 5px;
  background: rgba(11, 15, 20, 0.85);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  white-space: nowrap;
}
.sc-pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.28); }
.nb-hl { animation: nb-hl 10s ease-in-out infinite; opacity: .6; }
.nb-hl-1 { animation-delay: 0s; } .nb-hl-2 { animation-delay: 2.5s; } .nb-hl-3 { animation-delay: 5s; } .nb-hl-4 { animation-delay: 7.5s; }
@keyframes nb-hl {
  0%, 25%, 100% { opacity: .6; box-shadow: none; }
  5%, 20% { opacity: 1; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18), 0 0 18px rgba(61, 220, 151, 0.45); }
}

/* Slide nuvem: arquivos indo e voltando entre a nuvem e os aparelhos */
.cl-packet { offset-rotate: 0deg; animation: cl-down 3.2s ease-in-out infinite; opacity: 0; }
.cl-packet.cl-up { animation-name: cl-up; }
@keyframes cl-down { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes cl-up { 0% { offset-distance: 100%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 0%; opacity: 0; } }
.cl-folder { animation: cl-folder 6s ease-in-out infinite; }
.cl-f2 { animation-delay: 2s; } .cl-f3 { animation-delay: 4s; }
@keyframes cl-folder { 0%, 30%, 100% { transform: none; } 10%, 20% { transform: translateY(-3px); } }
.ill-blink { animation: ill-blink 2s ease-in-out infinite; }
@keyframes ill-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }


/* 08. Monitoramento ======================================================== */
.status-dot {
  position: relative;
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.8); opacity: 0; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: .03em;
}

.uptime {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uptime-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.uptime-head strong { color: var(--accent); font-weight: 500; }
.uptime-bar {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  height: 26px;
}
.uptime-bar span {
  border-radius: 2px;
  background: var(--accent);
  opacity: .9;
}
.uptime-bar span:nth-child(7n+3) { opacity: .7; }
.uptime-bar span:nth-child(11n+5) { opacity: .55; }
@media (max-width: 479px) {
  .uptime-bar { grid-template-columns: repeat(20, 1fr); }
  .uptime-bar span:nth-child(n+21) { display: none; }
}

/* 09. Faixa de credenciais ================================================= */
.creds {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.creds .container { padding-block: 28px; display: grid; gap: 28px; }
.creds-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.creds-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.creds-list .icon-wrap { width: 40px; height: 40px; }
.creds-list .icon { width: 20px; height: 20px; }
@media (min-width: 960px) {
  .creds .container { grid-template-columns: 1fr 340px; align-items: center; gap: 48px; }
  .creds-list { grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; }
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

/* 10. Seções e cards ======================================================= */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.section--alt .card { background: var(--surface-2); }
.card p { color: var(--text-muted); }
.card .link-arrow { margin-top: auto; padding-top: 4px; }
.card--hover:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.services-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .services-grid > * { grid-column: span 2; }
  /* último card sozinho na linha fica centralizado */
  .services-grid > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
}

/* 11. Planos de hospedagem ================================================= */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section--alt .plan { background: var(--surface-2); }
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(61, 220, 151, 0.10);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
}
.plan-price .currency { font-size: 1.1rem; color: var(--text-muted); }
.plan-price .value { font-size: 2.75rem; font-weight: 500; letter-spacing: -0.03em; }
.plan-price .period { font-size: 0.95rem; color: var(--text-muted); }

.plan-features { display: grid; gap: 12px; }
.plan-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  line-height: 1.45;
}
.plan-features strong { color: var(--text); font-weight: 500; }
.plan-features .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.plan .btn { margin-top: auto; }

.plans-footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.addons { display: grid; gap: 12px; }
@media (min-width: 768px) { .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.addon-price {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
  font-size: 0.95rem;
}
.addon-price small { display: block; color: var(--text-muted); font-size: 0.78rem; }

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.notice .icon { color: var(--accent); margin-top: 2px; }
.notice p { color: var(--text); }

.os-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface);
}

/* 12. Por que a M&V ======================================================== */
.why {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.why-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}
.why p { color: var(--text-muted); }

/* 13. Faixa de CTA ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--text-muted); margin-top: 12px; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
}
.cta-phone:hover { color: var(--accent); }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 56px; }
  .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 899px) {
  .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
}

/* 14. Cabeçalho das páginas internas ======================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .page-hero { padding-block: 80px 64px; } }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 18px; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.subnav {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.subnav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  background: var(--surface);
}
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

/* 15. Página de serviços =================================================== */
.service {
  display: grid;
  gap: 28px;
  padding-block: 56px;
  border-bottom: 1px solid var(--border);
}
.service:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .service { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding-block: 72px; }
}
.service-aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.service-index { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.service-body { display: flex; flex-direction: column; gap: 20px; }
.service-body > p { color: var(--text-muted); max-width: 68ch; }
.service-body .btn { align-self: flex-start; }

.check-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }

.benefits { display: grid; gap: 16px; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.benefit h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.benefit h3 .icon { color: var(--accent); width: 20px; height: 20px; }
.benefit p { color: var(--text-muted); font-size: 0.96rem; }
.benefit p + p { margin-top: 10px; }
.benefit strong { color: var(--text); font-weight: 500; }
@media (min-width: 768px) { .benefits--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-sub { margin-top: 12px; font-size: 1.25rem; }

.callout {
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  max-width: 72ch;
}

.trademark {
  padding-block: 8px 24px;
  font-size: 0.82rem;
  max-width: 80ch;
}

/* 16. Página Sobre ========================================================= */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.about-text p { color: var(--text-muted); }
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--text); font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fact {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fact dt { font-size: 0.85rem; color: var(--text-muted); }
.fact dd { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent); margin-top: 4px; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 36px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  /* linha que liga os nós */
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent-line), var(--border));
}
.timeline li:last-child::before { display: none; }
.timeline-node {
  position: relative;
  z-index: 1;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  display: grid;
  place-items: center;
}
.timeline-node::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-node--hollow::after { background: transparent; }
.timeline-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: -6px;
}
.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-card h3 { font-size: 1.1rem; }
.timeline-card p { color: var(--text-muted); margin-top: 6px; font-size: 0.97rem; }
.timeline li.is-now .timeline-card { border-color: var(--accent-line); }
.timeline li.is-now .timeline-node { box-shadow: 0 0 0 6px var(--accent-soft); }

.mvv h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 17. Contato e formulário ================================================= */
.contact-cards { display: grid; gap: 20px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card { gap: 12px; }
.contact-card ul { display: grid; gap: 8px; }
.contact-card a { font-family: var(--font-mono); font-size: 1.02rem; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card address { font-style: normal; color: var(--text-muted); }

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  height: 320px;
}
@media (min-width: 960px) { .map-wrap { height: 440px; } }
.map-wrap iframe { width: 100%; height: 100%; filter: grayscale(.3) contrast(1.05); }

.remote {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 768px) { .remote { grid-template-columns: auto 1fr auto; align-items: center; padding: 32px; } }
.remote p { color: var(--text-muted); margin-top: 6px; }

.contact-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; } }

.form {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 36px; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA7B4' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #6F7C8A; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.88rem; min-height: 0; }
.field-error:empty { display: none; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.check label { font-weight: 400; font-size: 0.92rem; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }

.form-status {
  display: none;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-status.is-visible,
.form-status:target { display: block; }
.form-status--ok { border-color: var(--accent-line); background: var(--accent-soft); }
.form-status--error { border-color: rgba(255, 122, 133, 0.4); background: var(--danger-soft); }
.form-status strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.form-status p { color: var(--text); }
.form-status .btn { margin-top: 14px; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contact-side { display: grid; gap: 20px; align-content: start; }

/* Solicitar suporte (chamados) */
.form-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.form-group + .form-group { padding-top: 20px; border-top: 1px solid var(--border); }
.form-group legend {
  padding: 0; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field .opt { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.field-hint { font-size: 0.82rem; color: var(--text-muted); }
.field input[type="file"] { padding: 9px 10px; font-size: 0.9rem; }
.field input[type="date"] { color-scheme: dark; }
.choice-group { display: grid; gap: 10px; }
@media (min-width: 720px) { .choice-group { grid-template-columns: repeat(3, minmax(0, 1fr)); } .choice-title, .choice-group .field-error { grid-column: 1 / -1; } }
.choice-title { font-weight: 500; font-size: 0.95rem; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s ease, background-color .2s ease;
}
.choice:hover { border-color: var(--accent-line); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.choice strong { display: block; font-weight: 500; }
.choice small { display: block; color: var(--text-muted); font-size: 0.82rem; }
.ticket-ok { text-align: left; }
.ticket-number { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); color: var(--accent); letter-spacing: .02em; margin: 6px 0 10px; }
.ticket-ok .btn-row { margin-top: 16px; }
.ticket-ok:focus { outline: none; }
.wa-atendentes-titulo { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-weight: 600; }
.wa-atendentes { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .wa-atendentes .btn { width: 100%; justify-content: center; } }
.steps { counter-reset: passo; list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; }
.steps > li { counter-increment: passo; position: relative; padding-left: 40px; color: var(--text-muted); }
.steps > li strong { color: var(--text); font-weight: 500; }
.steps > li::before {
  content: counter(passo);
  position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
}

/* Política de Uso (página de texto longo com índice) */
.policy-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .policy-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
  .policy-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.policy-toc {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.policy-toc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.policy-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.policy-toc ol ol { margin: 6px 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--border); gap: 4px; }
.policy-toc a { color: var(--text-muted); text-decoration: none; line-height: 1.4; display: block; }
.policy-toc > ol > li > a { color: var(--text); font-weight: 500; }
.policy-toc a:hover { color: var(--accent); }
@media (max-width: 1023px) { .policy-toc ol ol { display: none; } }

.policy { max-width: 76ch; }
.policy-sec + .policy-sec { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.policy h2 { font-size: 1.6rem; margin-bottom: 8px; }
.policy h2 .mono, .policy h3 .mono { color: var(--accent); font-weight: 500; }
.policy-item { margin-top: 28px; }
.policy h3 { font-size: 1.1rem; margin-bottom: 10px; }
.policy p, .policy li { color: var(--text-muted); }
.policy p + p { margin-top: 12px; }
.policy ol { margin: 12px 0; padding-left: 22px; display: grid; gap: 10px; }
.policy li::marker { color: var(--accent); font-family: var(--font-mono); }
.policy-end { margin-top: 48px; }
.page-hero .lead { max-width: 72ch; }

/* 18. FAQ ================================================================== */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { border-radius: var(--radius); outline-offset: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--text-muted); }

/* 19. Footer =============================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.footer-status {
  border-bottom: 1px solid var(--border);
}
.footer-status .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-status .online { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.footer-status .uptime-bar { width: min(100%, 320px); height: 14px; }

.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 40px; } }
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-about p { color: var(--text-muted); margin-top: 16px; max-width: 42ch; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-list .mono { font-size: 0.95rem; }
.site-footer address { font-style: normal; color: var(--text-muted); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.footer-remote { margin-top: 20px; }

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 96px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
@media (min-width: 768px) { .footer-bottom .container { padding-bottom: 24px; } }

/* 20. Botão flutuante do WhatsApp ========================================== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 0 rgba(61, 220, 151, .5);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--accent-hover); color: var(--on-accent); transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:focus-visible { outline-offset: 4px; border-radius: 50%; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }

/* 21. Página 404 =========================================================== */
.error-page { padding-block: 96px; text-align: center; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-page h1 { margin-top: 16px; }
.error-page .lead { margin: 16px auto 0; }
.error-page .btn-row { justify-content: center; margin-top: 32px; }
.error-page .uptime { max-width: 420px; margin: 40px auto 0; }
.uptime-bar .down { background: var(--danger); opacity: 1 !important; }

/* 21b. Ferramentas ========================================================= */

/* Página central e chamada na home */
.tool-card { gap: 12px; }
.tool-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool-card h3 a { color: var(--text); text-decoration: none; }
.tool-card:hover h3 a { color: var(--accent); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tools-note { margin-top: 28px; font-size: 0.92rem; text-align: center; }

.tools-teaser { display: grid; gap: 32px; align-items: center; }
.tools-teaser-btn { margin-top: 24px; }
.tools-teaser h2 + .lead { margin-top: 14px; }
@media (min-width: 900px) { .tools-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.tools-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tools-mini a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  transition: border-color .2s ease, transform .2s ease;
}
.tools-mini a:hover { border-color: var(--accent-line); transform: translateY(-2px); color: var(--text); }
.tools-mini .icon { color: var(--accent); width: 28px; height: 28px; }

/* Estrutura comum das páginas de ferramenta */
.section--tool { padding-top: 40px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tool-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tool-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
}
.stat-value small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.stat-sub { font-size: 0.82rem; color: var(--text-muted); overflow-wrap: anywhere; }

.tool-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--text-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.swatch--ok { background: var(--accent-soft); border-color: var(--accent-line); }
.swatch--down { background: var(--accent); border-color: var(--accent); }
.swatch--warn { background: var(--warn-soft); border-color: var(--warn); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.select-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); min-width: 0; max-width: 100%; }
.select-inline select { min-width: 0; flex: 1; }
@media (max-width: 479px) {
  .tool-actions { width: 100%; }
  .select-inline { flex: 1 1 100%; }
}
.select-inline select,
.media-side select {
  min-height: 40px;
  padding: 6px 36px 6px 12px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA7B4' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  appearance: none;
  max-width: 100%;
}
.select-inline select option, .media-side select option { background: var(--surface); }
.select-inline select:disabled, .media-side select:disabled { opacity: .6; }

.tool-msg { font-size: 0.9rem; color: var(--text-muted); min-height: 1.4em; }
.notice-privacy {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.notice-privacy .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

.tool-help { display: grid; gap: 40px; }
.tool-help h2 { font-size: 1.5rem; margin-bottom: 20px; }
@media (min-width: 960px) { .tool-help { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; } }
.other-tools ul { display: grid; gap: 10px; }
.other-tools a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.other-tools a:hover { border-color: var(--accent-line); color: var(--accent); }
.other-tools .icon { color: var(--accent); }

/* Teclado */
.kb-scroll {
  overflow-x: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
}
.kb-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kb {
  --key-h: 46px;
  display: flex;
  gap: 18px;
  min-width: 1040px;
  user-select: none;
}
.kb-block { display: grid; gap: 5px; }
.kb-main { flex: 15; }
.kb-nav { flex: 3; }
.kb-num { flex: 4; }
.key {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .08s ease;
}
.key--wide { font-size: 0.74rem; }
.key.is-tested { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.key.is-chatter { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.key.is-down {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(2px);
  box-shadow: none;
}
.key--absent { visibility: hidden; }
.key { cursor: pointer; }
.key.is-manual {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: var(--accent);
  box-shadow: none;
  opacity: 1;
}
.swatch--manual { background: var(--accent-soft); border: 1px dashed var(--accent); }
.kb-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.kb-tip strong { color: var(--text); font-weight: 500; }
.kb-tip .icon { color: var(--accent); margin-top: 3px; }
.kb-state { font-size: 0.88rem; color: var(--accent); font-family: var(--font-mono); }
.kb-state.is-paused { color: var(--warn); }
.kb-hint { font-size: 0.85rem; }
@media (min-width: 1100px) { .kb-hint { display: none; } }
.kb-side { flex: 1; max-width: 70px; }
.key--fn {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  opacity: .7;
  cursor: help;
}
.kb-extra {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.kb-extra-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.key--extra { height: var(--key-h, 46px); min-width: 64px; padding: 0 14px; }

/* Tela */
.screen-start {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.swatches span { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); }
.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
  outline: none;
}
.screen-overlay.is-idle { cursor: none; }
.screen-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  transition: opacity .4s ease;
}
.screen-overlay.is-idle .screen-hint { opacity: 0; }
html.screen-testing { overflow: hidden; }

/* Webcam e áudio */
.media-layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .media-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-stage video.is-mirrored { transform: scaleX(-1); }
.media-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 16px;
}
.media-empty .icon { width: 40px; height: 40px; color: var(--border); }
.media-side {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.media-side .field span, #audio-tool .field span { font-weight: 500; font-size: 0.92rem; }
.check-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-muted); cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.kv dt { color: var(--text-muted); }
.kv dd { text-align: right; overflow-wrap: anywhere; }
.snapshot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.snapshot img { max-width: min(100%, 420px); border-radius: var(--radius); border: 1px solid var(--border); }

#audio-tool .card { gap: 14px; }
#audio-tool .card > p { color: var(--text-muted); }
#audio-tool select {
  min-height: 40px;
  padding: 6px 36px 6px 12px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA7B4' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  appearance: none;
  width: 100%;
}
.tool-h { font-size: 1.3rem; }
.meter {
  position: relative;
  height: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width .06s linear;
}
.meter-peak { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); left: 0; }
.meter-label { font-size: 0.85rem; color: var(--text-muted); }
#mic-audio { width: 100%; }

/* 22. Animações de entrada ================================================= */
/* A classe .reveal-pending só é adicionada pelo main.js, e só em elementos
   que ainda estão fora da tela. Sem JS, tudo aparece normalmente. */
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

/* 23. Movimento reduzido =================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .status-dot::after { display: none; }
  /* Vitrine do topo: sem troca automática; as abas continuam funcionando */
  .showcase:not(.is-js) .sc-slide:nth-child(1) { opacity: 1 !important; visibility: visible !important; }
  .showcase:not(.is-js) .sc-slide:nth-child(2) { opacity: 0 !important; visibility: hidden !important; }
  .cl-packet { opacity: 0 !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
