/* COMTOOLS — Identidade visual v2.0 adaptada ao tema escuro.
   Paleta, símbolo, tipografia e textura conforme Brand Kit oficial. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  /* Paleta institucional */
  --navy: #0B1E3C;
  --navy-deep: #061225;
  --navy-raised: #102B52;
  --blue: #0E7BFF;
  --blue-soft: #64B5FF;
  --orange: #FF7A00;
  --orange-soft: #FFB26B;
  --green: #00D46A;
  --light: #F3F6FA;

  /* Tokens de interface */
  --ink: var(--light);
  --muted: #B8CAE3;
  --line: rgba(137, 180, 235, .22);
  --line-strong: rgba(100, 181, 255, .42);
  --surface: rgba(11, 30, 60, .78);
  --surface-raised: rgba(16, 43, 82, .74);
  --surface-sunken: rgba(6, 18, 37, .78);
  --focus: #FFC21A;
  --success: #00D46A;
  --success-text: #7BF0B2;
  --success-bg: rgba(0, 212, 106, .12);
  --danger: #FF8A8A;
  --danger-text: #FFB3B3;
  --danger-bg: rgba(255, 90, 90, .13);
  --warning-bg: rgba(255, 194, 26, .10);
  --radius: 14px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .28);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 75% 55% at 8% -8%, rgba(14, 123, 255, .26), transparent 68%),
    radial-gradient(ellipse 55% 45% at 102% 4%, rgba(255, 122, 0, .12), transparent 62%),
    linear-gradient(180deg, #07162B 0%, var(--navy-deep) 58%, #050E1C 100%);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Malha hexagonal oficial: textura dominante, concentrada nas bordas. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/brand/texture-hex.png') repeat;
  background-size: 600px 400px;
  opacity: .10;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, transparent 18%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 42%, transparent 18%, #000 100%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; }
ul, ol { padding-left: 1.25rem; }
code, .mono { font-family: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace; font-size: .95em; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--navy); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 37, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14, 123, 255, .30);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .30);
}
.header-inner {
  min-height: 100px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand:hover { filter: brightness(1.12); }
.brand-logo { display: block; width: 234px; height: auto; }
/* Ações do cabeçalho: dropdown (home) ou retorno (demais páginas) e, por fim, idioma. */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-nav { display: flex; align-items: center; gap: 10px; }
.page-nav .btn { white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: 0 0 auto; }

/* Dropdown hierárquico de uma coluna — apenas na landing page. */
.tools-menu { position: relative; }
.tools-menu > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer; user-select: none;
  padding: 11px 16px; border-radius: 10px;
  border: 2px solid #FFD54F;
  background: #B3261E;
  color: #FFE082; font: 750 1.03rem/1.2 'Inter', sans-serif;
  animation: cta-blink 1.6s ease-in-out infinite;
}
.tools-menu > summary::-webkit-details-marker { display: none; }
.tools-menu > summary:hover,
.tools-menu[open] > summary { background: #8F1D18; color: #FFF176; border-color: #FFF176; }
@keyframes cta-blink {
  0%, 100% { border-color: #FFD54F; box-shadow: 0 0 0 0 rgba(255, 213, 79, .45); }
  50% { border-color: #FFF176; box-shadow: 0 0 0 6px rgba(255, 213, 79, 0), 0 0 18px rgba(255, 213, 79, .50); }
}
.tools-menu-chevron {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.tools-menu[open] .tools-menu-chevron { transform: rotate(225deg) translateY(-1px); }

.tools-menu-panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 60;
  width: 320px; max-height: min(72vh, 640px); overflow-y: auto;
  padding: 18px 18px 14px;
  background: rgba(6, 18, 37, .98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.tools-menu-title {
  margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--orange-soft);
  font: 800 .72rem/1.2 'Montserrat', sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
}
.tools-menu-list, .tools-menu-group ul { list-style: none; margin: 0; padding: 0; }
.tools-menu-list { display: grid; gap: 12px; }
.tools-menu-group + .tools-menu-group { border-top: 1px solid var(--line); padding-top: 12px; }
.tools-menu-category {
  display: block; margin-bottom: 5px;
  color: #BFE0FF; text-decoration: none;
  font: 700 .76rem/1.3 'Montserrat', sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
}
.tools-menu-category:hover { color: #fff; text-decoration: underline; }
.tools-menu-group ul { display: grid; gap: 2px; margin-left: 8px; border-left: 1px solid rgba(14, 123, 255, .34); }
.tools-menu-group ul a {
  display: block; padding: 5px 8px; border-radius: 5px;
  color: #D5E4F8; text-decoration: none; font-size: .82rem;
}
.tools-menu-group ul a:hover { background: rgba(14, 123, 255, .18); color: #fff; }
.lang-switch { display: flex; gap: 2px; border: 1px solid rgba(140, 190, 245, .28); border-radius: 7px; padding: 2px; }
.lang-switch a {
  color: #D8E6FA; text-decoration: none; font-size: .78rem; font-weight: 700;
  padding: 5px 8px; border-radius: 5px;
}
.lang-switch a:hover { color: #fff; background: rgba(14, 123, 255, .20); }
.lang-switch a.active { background: var(--orange); color: var(--navy); }

/* Breadcrumbs */
.breadcrumbs { background: rgba(11, 30, 60, .52); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: #7791B4; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-soft); text-decoration: underline; }

/* Hero e seções */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 45% 90% at 92% 12%, rgba(14, 123, 255, .30), transparent 70%),
    radial-gradient(ellipse 32% 70% at 100% 96%, rgba(255, 122, 0, .16), transparent 70%),
    repeating-radial-gradient(ellipse 120% 190% at 104% 48%, transparent 0 46px, rgba(14, 123, 255, .09) 47px 49px, transparent 50px 92px),
    linear-gradient(180deg, rgba(16, 43, 82, .52), rgba(6, 18, 37, 0));
}
/* Emblema oficial em baixa opacidade: reforço de marca sem competir com o texto. */
.hero::before {
  content: '';
  position: absolute;
  right: 3%;
  top: 50%;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url('/assets/brand/symbol.svg') center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}

/* Onda laranja: contraponto de impulso sobre o azul. */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 18%;
  width: 460px;
  height: 240px;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 122, 0, .42) 47%, rgba(255, 194, 26, .26) 53%, transparent 72%);
  filter: blur(2px);
  transform: rotate(-12deg);
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 832px; }
.eyebrow {
  color: var(--orange-soft);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 16ch; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin-bottom: 18px; }
/* Faixa de destaque sobre os ícones, com o mesmo CTA do dropdown. */
.hero-banner {
  width: 100%;
  max-width: 832px;
  margin: 8px auto 0;
  padding: 4px 14px;
  border-radius: 8px;
  background: #B3261E;
  color: #FFE082;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 18px rgba(179, 38, 30, .28);
}

/* Ícones de categoria localizados, logo abaixo da tagline da hero. */
.hero-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 3px;
  max-width: 832px;
  margin: 0 0 4px;
}
.hero-category {
  display: block;
  position: relative;
  border-radius: 10px;
  transition: transform .18s ease, filter .18s ease;
}
.hero-category img { display: block; width: 100%; height: auto; border-radius: 10px; pointer-events: none; }
.hero-category:hover,
.hero-category:focus-visible {
  z-index: 10;
  transform: translateY(-3px);
  filter: brightness(1.06) drop-shadow(0 0 8px rgba(255, 194, 26, .35));
}
.hero-category:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; }
.hero-category-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(6, 18, 37, .97);
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.hero-category:hover .hero-category-tip,
.hero-category:focus-visible .hero-category-tip { opacity: 1; visibility: visible; }
.hero-category:first-child .hero-category-tip { left: 0; transform: none; }
.hero-category:last-child .hero-category-tip { left: auto; right: 0; transform: none; }

/* Seta reta ampliada, posicionada exatamente abaixo do CTA do cabeçalho. */
.hero-callout {
  position: absolute; top: 2px; right: 95px;
  width: 180px; pointer-events: none; z-index: 3;
}
.hero-callout-es { right: 81px; }
.hero-arrow {
  display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(179, 38, 30, .34));
}
.hero-arrow-label {
  position: absolute;
  left: calc(64% + 8px);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

/* Anúncios: um banner de conteúdo por página e o Social Bar fora do fluxo. */
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px auto;
  text-align: center;
}
.ad-label {
  margin: 0;
  color: #8FA6C5;
  font: 700 .62rem/1.2 'Inter', system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-ad-slot {
  width: 100%;
  max-width: 832px;
  min-height: 150px;
  margin-top: 18px;
}
.ad-native {
  width: 100%;
  min-height: 150px;
  display: flex;
  justify-content: center;
}
.ad-native > * { max-width: 100%; }
.category-ad-slot,
.tool-ad-slot {
  width: min(300px, 100%);
  min-height: 250px;
  margin-block: 26px;
}
.ad-rect {
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  display: flex;
  justify-content: center;
}
.ad-slot-failed { display: none !important; }

.hero-search { display: flex; gap: 10px; max-width: 640px; }
.hero-search input {
  flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface-sunken); color: var(--ink); font: inherit;
  box-shadow: 0 0 0 4px rgba(14, 123, 255, .07);
}
.hero-search input::placeholder { color: #93AAC9; }
.hero-search.compact { margin-top: 16px; }
.hero-search.compact input { padding: 11px 14px; }
.live-results { margin-top: 14px; max-width: 760px; display: grid; gap: 10px; }
.live-results:not([hidden]) {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.live-results .placeholder { grid-column: 1 / -1; }
.section { padding: 44px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(14, 123, 255, .06), rgba(6, 18, 37, .35));
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 24px; }
.section-head h2::after {
  content: ''; display: block; width: 54px; height: 3px; margin-top: 10px;
  border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--orange));
}
.section-head p, .page-head p { color: var(--muted); max-width: 72ch; }
.page-head { padding: 38px 0 20px; }
.page-head .lead { font-size: 1.08rem; }
.grid { display: grid; gap: 18px; }
.grid-tools { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Cartões */
.tool-card, .diff-card, .card {
  background: linear-gradient(155deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-card, .diff-card { padding: 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tool-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.tool-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38), 0 0 0 1px rgba(14, 123, 255, .14);
}
.tool-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }

/* Ícones em hexágono — geometria da marca. */
.tool-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: #9CD2FF; margin-bottom: 14px;
  background: linear-gradient(150deg, rgba(14, 123, 255, .52), rgba(11, 30, 60, .92));
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  filter: drop-shadow(0 0 10px rgba(14, 123, 255, .30));
}
.tool-icon .icon { width: 22px; height: 22px; }
.tool-card-head { display: flex; align-items: center; gap: 12px; }
.tool-card-head .tool-icon { margin-bottom: 0; width: 38px; height: 38px; }
.tool-card-head .icon { width: 19px; height: 19px; }
.tool-category { color: var(--orange-soft); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tool-card h3 { margin: 14px 0 8px; }
.tool-card p, .diff-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-link { font-size: .87rem; font-weight: 700; margin-top: 14px; text-decoration: none; color: var(--blue-soft); }
.card-link:hover { color: #fff; text-decoration: underline; }
.compact-card { padding: 16px; }
.diff-card h3 { color: var(--ink); }

/* Ferramentas */
.tool-workspace { padding: 26px; margin-top: 12px; }
.tool-form { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field:has(textarea) { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .9rem; color: #E4EEFC; }
.required { color: var(--danger); }
.field-help { margin: 0; font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(140, 190, 245, .30); border-radius: 8px;
  background: var(--surface-sunken); color: var(--ink); font: inherit; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 110px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88rem; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8FA6C5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(14, 123, 255, .20);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field select:disabled, .field input:disabled { opacity: .55; cursor: not-allowed; }
.field-checkbox { justify-content: flex-end; }
.checkbox-field { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.checkbox-field input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0; flex: 0 0 auto; accent-color: var(--orange);
}
.checkbox-field label { cursor: pointer; }
.checkbox-field input:disabled + label { opacity: .55; cursor: not-allowed; }
.field:has(.filter-buttons) { grid-column: 1 / -1; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  padding: 9px 13px; border: 1px solid rgba(140, 190, 245, .30); border-radius: 999px;
  background: var(--surface-sunken); color: var(--muted); cursor: pointer;
  font: 650 .82rem/1.3 'Inter', system-ui, sans-serif;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.filter-button:hover { background: rgba(14, 123, 255, .14); color: #E4EEFC; }
.filter-button[aria-pressed="true"] {
  border-color: var(--orange); background: rgba(255, 122, 48, .18);
  color: #FFD9C2; box-shadow: 0 0 0 2px rgba(255, 122, 48, .12);
}
.filter-button:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.form-actions .field-checkbox { justify-content: flex-start; align-self: center; margin-left: auto; }
.form-actions .checkbox-field { min-height: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font: 700 .9rem/1.2 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-primary:hover { background: #FF9A33; color: var(--navy); border-color: #FF9A33; }
.btn-ghost { background: transparent; color: #DCEBFF; border-color: rgba(140, 190, 245, .32); }
.btn-ghost:hover { border-color: var(--blue-soft); color: #fff; background: rgba(14, 123, 255, .16); }
.btn-small { padding: 6px 10px; font-size: .78rem; background: rgba(14, 123, 255, .13); color: #BFE0FF; border-color: rgba(14, 123, 255, .32); }
.btn-small:hover { background: rgba(14, 123, 255, .25); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.notice { padding: 10px 14px; border-radius: 8px; font-size: .9rem; margin-top: 16px; }
.notice-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(255, 138, 138, .42); }
.notice-note { background: rgba(14, 123, 255, .10); color: #CFE4FF; border: 1px solid rgba(100, 181, 255, .32); }
.results-panel { padding: 26px; margin-top: 18px; background: var(--surface-sunken); border-color: var(--line-strong); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.results-head h2 { margin: 0; }
.placeholder { color: var(--muted); font-style: italic; padding: 18px 0 0; }
.result-row { border-top: 1px solid var(--line); padding: 14px 0; }
.result-row:first-child { border-top: 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.result-label { font-weight: 700; color: #E4EEFC; font-size: .88rem; }
.result-body { display: flex; align-items: flex-start; gap: 10px; }
.result-value { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #EAF3FF; }
.result-value.mono { background: #050F20; border: 1px solid rgba(14, 123, 255, .34); border-radius: 7px; padding: 10px 12px; color: #A8E6FF; }
.copy-btn { flex: 0 0 auto; }
.uuid-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.uuid-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.uuid-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(11, 30, 60, .72); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }

.diff-block { margin-top: 18px; }
.diff-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 10px; }
.diff-table th, .diff-table td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff-table th { background: rgba(14, 123, 255, .10); color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.diff-num { width: 46px; color: #8EA6C4; text-align: right; font-variant-numeric: tabular-nums; }
.diff-cell { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.diff-added .diff-cell:first-of-type { background: var(--success-bg); color: var(--success-text); }
.diff-removed .diff-cell:last-of-type { background: var(--danger-bg); color: var(--danger-text); }
.diff-changed .diff-cell { background: var(--warning-bg); }
.diff-equal { color: var(--muted); }
.diff-table tr:not(.diff-equal) td:first-child { font-weight: 700; }

/* Resultados estruturados (tabelas, listas, blocos, cores e QR) */
.structured-block {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  min-width: 0;
}
.structured-block:first-child { border-top: 0; }
.table-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td {
  text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line);
  vertical-align: top; overflow-wrap: anywhere;
}
.data-table th { background: rgba(14, 123, 255, .10); color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.result-list li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: rgba(11, 30, 60, .66); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
}
.result-list-label { color: var(--muted); font-size: .84rem; }
.result-list-value { text-align: right; overflow-wrap: anywhere; color: #EAF3FF; }
.result-code, .result-highlight {
  margin: 0; padding: 10px 12px; border: 1px solid rgba(14, 123, 255, .34);
  border-radius: 7px; background: #050F20; color: #A8E6FF;
  overflow: auto; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere;
}
.match-highlight { background: #FFE082; color: #0B1E3C; border-radius: 3px; }
.color-swatch {
  display: flex; align-items: center; justify-content: center; min-height: 84px;
  border: 1px solid var(--line-strong); border-radius: 9px;
}
.color-swatch-label { font-weight: 700; font-family: ui-monospace, Consolas, monospace; text-shadow: 0 1px 3px rgba(0, 0, 0, .65); }
.qr-block { display: grid; gap: 10px; justify-items: start; }
.qr-preview { background: #fff; padding: 12px; border-radius: 9px; border: 1px solid var(--line-strong); overflow: auto; max-width: 100%; }
.qr-preview svg { width: min(320px, 100%); height: auto; display: block; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Conteúdo editorial */
.prose h2 { margin-bottom: 12px; }
.prose p { max-width: 85ch; color: #D8E6FA; }
.assumption {
  border-left: 3px solid var(--orange);
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 122, 0, .06);
  border-radius: 0 8px 8px 0;
}
.example-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
  background: rgba(6, 18, 37, .62); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.example-values { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.example-box p { margin: 0; overflow-wrap: anywhere; color: #CFE4FF; }
.faq-list { display: grid; gap: 10px; max-width: 90ch; }
.faq-item { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 650; color: #E4EEFC; }
.faq-item summary::marker { color: var(--orange); }
.faq-item p { padding: 0 16px 14px; color: var(--muted); margin: 0; }
.legal p { max-width: 80ch; }

/* Rodapé */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #061528, #040D19);
  border-top: 1px solid rgba(14, 123, 255, .28);
  margin-top: 30px;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/brand/texture-hex.png') repeat;
  background-size: 600px 400px;
  opacity: .07;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding: 48px 0 32px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #C8D6E8; text-decoration: none; font-size: .86rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-footer .brand-logo { width: 215px; }
.footer-slogan { color: #fff; font-weight: 650; margin-top: 14px; }
.footer-grid p { font-size: .86rem; }
.footer-grid .muted { color: #94A8C1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .78rem; margin: 0; }

.clipboard-helper { position: fixed; opacity: 0; }

/* Gate de navegação e proteção anti-cópia. */
.noscript-notice {
  margin: 0; padding: 12px 18px; text-align: center;
  background: #B3261E; color: #FFF176; font-weight: 700;
}
body.comtools-locked:not(.comtools-verified) main,
body.comtools-locked:not(.comtools-verified) .site-footer,
body.comtools-locked:not(.comtools-verified) .header-actions,
body.comtools-denied main,
body.comtools-denied .site-footer,
body.comtools-denied .header-actions { visibility: hidden; }
body.comtools-protected main { user-select: none; -webkit-user-select: none; }
body.comtools-protected input,
body.comtools-protected textarea { user-select: text; -webkit-user-select: text; }

.guard-blocked {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-content: center; justify-items: center;
  gap: 14px; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #102B52, #050E1C 70%);
}
.guard-blocked h2 { margin: 0; color: #FFE082; }
.guard-blocked p { max-width: 52ch; color: var(--muted); }
.guard-blocked .btn { text-decoration: none; }

.guard-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 220;
  transform: translateX(-50%); padding: 10px 16px;
  border: 1px solid rgba(255, 138, 138, .55); border-radius: 8px;
  background: #3A1015; color: var(--danger-text); font-weight: 700;
  pointer-events: none;
}
.guard-print-notice { display: none; }

@media print {
  body.comtools-protected * { visibility: hidden !important; }
  body.comtools-protected .guard-print-notice {
    display: block !important; visibility: visible !important;
    position: fixed; inset: 20mm 0 auto; text-align: center;
    font: 700 18px/1.4 sans-serif; color: #000;
  }
}

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; gap: 10px; }
  .header-actions { gap: 8px; }
  .page-nav { order: 4; flex-basis: 100%; }
  .hero::before { display: none; }
  .hero-callout { right: 111px; top: 2px; width: 140px; opacity: .92; }
  .hero-callout-es { right: 97px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-logo { width: 195px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .tools-menu-panel { width: min(320px, calc(100vw - 28px)); }
  .page-nav .btn { flex: 1 1 auto; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-callout { right: 126px; top: 2px; width: 110px; opacity: .9; }
  .hero-callout-es { right: 112px; }
  .hero-ad-slot { min-height: 120px; margin-top: 12px; }
  .category-ad-slot, .tool-ad-slot { margin-block: 20px; }
  .section { padding: 32px 0; }
  .tool-workspace, .results-panel { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .result-body { flex-direction: column; }
  .diff-table { font-size: .78rem; }
}

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