:root {
  --bg-page: #070d19;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-solid: #0f172a;
  --bg-surface-alt: rgba(30, 41, 59, 0.58);
  --bg-glass: rgba(17, 25, 40, 0.62);
  --bg-glass-strong: rgba(11, 18, 32, 0.88);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(56, 189, 248, 0.42);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-2: #2dd4bf;
  --accent-2-soft: rgba(45, 212, 191, 0.14);
  --ok-color: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.15);
  --warn-color: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.16);
  --nc-color: #f87171;
  --nc-bg: rgba(248, 113, 113, 0.16);
  --shadow-glass: 0 24px 56px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-glow: 0 0 32px rgba(56, 189, 248, 0.25);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font-scale: 1;
}

/* Modo Alto Contraste (Acessibilidade) */
body.high-contrast {
  --bg-page: #000000;
  --bg-surface: #000000;
  --bg-surface-solid: #000000;
  --bg-surface-alt: #0a0a0a;
  --bg-glass: #000000;
  --bg-glass-strong: #000000;
  --border-glass: #ffffff;
  --border-highlight: #fde047;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --accent: #fde047;
  --accent-hover: #facc15;
  --accent-soft: rgba(253, 224, 71, 0.22);
  --accent-2: #38bdf8;
  --shadow-glass: none;
  --shadow-glow: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(56, 189, 248, 0.24), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(45, 212, 191, 0.22), transparent 38%),
    radial-gradient(circle at 50% 62%, rgba(99, 102, 241, 0.18), transparent 46%),
    linear-gradient(180deg, #060b16 0%, #0b1326 50%, #070d19 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Malha técnica sutil de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

body.high-contrast,
body.high-contrast::before {
  background-image: none;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  line-height: 1.22;
  margin-top: 0;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2500;
  background: var(--accent);
  color: #04101f;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Barra de Acessibilidade */
.a11y-bar {
  background: rgba(4, 8, 18, 0.92);
  color: #cbd5e1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.a11y-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 22px;
}

.a11y-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.a11y-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent);
}

/* Header Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text-main);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #04101f;
  background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

body.high-contrast .logo-mark {
  background: #fde047;
  color: #000000;
  box-shadow: none;
}

.logo-text strong {
  display: block;
  font-size: 1.05rem;
}

.logo-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 76px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(45, 212, 191, 0.16));
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.25rem);
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(120deg, #38bdf8 10%, #2dd4bf 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.high-contrast .hero h1 span {
  background: none;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-metrics {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border-glass);
}

.hero-metrics li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hero-metrics li:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.07);
}

.hero-metrics strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  transition: color 0.18s ease;
}

.hero-metrics span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-link,
.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.metric-link:hover,
.feature-link:hover {
  text-decoration: none;
}

.metric-link:hover strong,
.feature-link:hover strong {
  color: var(--accent);
}

.metric-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Superfícies Liquid Glass */
.glass-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(15, 23, 42, 0.68) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-highlight);
}

.hero-panel {
  padding: 28px;
}

.panel-header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.08);
}

.feature-list strong {
  display: block;
  font-size: 0.96rem;
  color: #f8fafc;
  transition: color 0.18s ease;
}

.feature-list span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(15, 23, 42, 0.42);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-head {
  max-width: 72ch;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  margin-bottom: 10px;
}

.section-head p {
  color: #cbd5e1;
  margin: 0;
}

.disclosure-note {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Botões com Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
  color: #031120;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.5);
}

body.high-contrast .btn-primary {
  background: #fde047;
  color: #000000;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 8px 13px;
  font-size: 0.82rem;
}

.btn-xs {
  padding: 5px 11px;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* Ferramentas */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.tool-card {
  padding: 28px;
}

.tool-card-wide {
  grid-column: 1 / -1;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-card h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.tool-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin: 12px 0 20px;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row.full,
.form-actions.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
}

input,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 14, 28, 0.75);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  outline: none;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.result-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.result-main span {
  font-weight: 600;
  color: #cbd5e1;
}

.result-main strong {
  font-size: 1.9rem;
  background: linear-gradient(120deg, #38bdf8, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.high-contrast .result-main strong {
  background: none;
  color: var(--accent);
}

.result-diag {
  margin: 0 0 14px;
  font-size: 0.89rem;
  color: #cbd5e1;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kpi-mini-grid > div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.kpi-mini-grid small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-mini-grid strong {
  font-size: 1.05rem;
  color: #ffffff;
}

/* GUT List */
.gut-list-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}

.gut-list-wrap h4 {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.gut-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.gut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gut-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gut-item strong {
  display: block;
  font-size: 0.92rem;
}

.gut-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gut-score-badge {
  background: linear-gradient(135deg, #38bdf8, #2dd4bf);
  color: #04101f;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Checklist ISO 9001:2015 */
.iso-progress-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}

.iso-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.iso-progress-top strong {
  display: block;
  font-size: 1rem;
}

.iso-counts {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.iso-rate-badge {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  transition: width 0.25s ease;
}

.iso-export-feedback {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  min-height: 1.2em;
}

.iso-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.iso-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #38bdf8, #2dd4bf);
  color: #04101f;
  border-color: transparent;
}

.iso-add-form {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.iso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.iso-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
}

.iso-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.iso-clause-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-right: 8px;
}

.iso-req-text {
  font-weight: 600;
  font-size: 0.94rem;
}

.iso-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iso-status-select {
  width: auto;
  min-width: 170px;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-conforme {
  background: var(--ok-bg);
  color: var(--ok-color);
}

.status-observacao {
  background: var(--warn-bg);
  color: var(--warn-color);
}

.status-nao_conforme {
  background: var(--nc-bg);
  color: var(--nc-color);
}

.status-pendente {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.iso-note-input {
  padding: 8px 12px;
  font-size: 0.84rem;
  flex: 1 1 260px;
}

/* Plano de Ação 5W2H */
.w5h2-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.w5h2-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 28, 0.72);
}

.w5h2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.w5h2-table th,
.w5h2-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  vertical-align: top;
}

.w5h2-table th {
  background: rgba(30, 41, 59, 0.7);
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.w5h2-status-select {
  min-width: 132px;
  padding: 6px 8px;
  font-size: 0.8rem;
}

/* Cards de Guias e Certificações */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.pill {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.info-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 10px;
  display: inline-block;
}

/* Footer */
.site-footer {
  background: #040812;
  color: #cbd5e1;
  padding: 52px 0 34px;
  margin-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 64ch;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-bottom {
  padding-top: 18px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Barrinha Fina de Consentimento LGPD (Encostada na base) */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(6, 11, 22, 0.94);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--border-highlight);
  box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.45);
}

.lgpd-banner[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.lgpd-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lgpd-banner-text {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.lgpd-banner-text strong {
  color: #ffffff;
}

.lgpd-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.lgpd-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Modal de Preferências LGPD */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-surface-solid);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-glass);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.icon-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-intro {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.consent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  margin-top: 12px;
}

.consent-item p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-fixed {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

/* Responsividade */
@media (max-width: 960px) {
  .w5h2-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .tools-grid,
  .cards-3,
  .footer-grid,
  .iso-add-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .lgpd-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 8px;
  }

  .lgpd-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .hero-metrics,
  .tool-form,
  .w5h2-form,
  .kpi-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Impressão / Exportação PDF limpa */
@media print {
  .a11y-bar,
  .site-header,
  .hero,
  #guias,
  #certificacoes,
  .site-footer,
  .lgpd-banner,
  .modal-backdrop,
  .btn,
  .filter-chip,
  #gut-form,
  #iso-add-form,
  #w5h2-form,
  .w5h2-table th:last-child,
  .w5h2-table td:last-child {
    display: none !important;
  }

  body,
  body::before {
    background: #ffffff !important;
    color: #000000 !important;
  }

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

  .glass-card,
  .result-box,
  .iso-item,
  .gut-item,
  .w5h2-table-wrap {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    backdrop-filter: none !important;
  }
}