/* Endpoint Security — página unificada com tabs por tier
   Importar APÓS shared.css */

/* ===== HERO ===== */
.ep-hero {
  background: var(--bg2);
  padding: calc(var(--nav-h) + 5rem) 6% 5rem;
}
.ep-hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange-bg); border: 1px solid rgba(232,74,27,.2);
  color: var(--orange);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.ep-hero-title {
  font-size: 2.6rem; font-weight: 800;
  letter-spacing: -.025em; line-height: 1.1;
  color: var(--dark); margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUp .6s .1s ease forwards;
}
.ep-hero-title .brand { color: var(--orange); }
.ep-hero-sub {
  font-size: 1.3rem; font-weight: 600;
  color: var(--dark); line-height: 1.3;
  margin: 0 0 1.5rem; letter-spacing: -.01em;
  opacity: 0;
  animation: fadeUp .6s .25s ease forwards;
}
.ep-hero-desc {
  font-size: 1rem; font-weight: 300;
  color: var(--gray); line-height: 1.75;
  margin: 0 0 2rem; max-width: 540px;
  opacity: 0;
  animation: fadeUp .6s .4s ease forwards;
}
.ep-hero-img {
  display: flex; flex-direction: column; gap: .8rem;
  opacity: 0;
  animation: fadeUp .8s .3s ease forwards;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.hero-placeholder {
  position: relative; width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f0 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.hero-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0);
  background-size: 20px 20px; opacity: .5;
}
.hero-placeholder svg {
  width: 90%; height: auto; max-height: 90%;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.08));
}
.hero-placeholder.small { aspect-ratio: 4/3.2; }
.placeholder-note {
  text-align: center; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.placeholder-note strong { color: var(--orange); font-weight: 700; }

.ep-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-secondary {
  display: inline-block;
  padding: .85rem 1.6rem;
  border: 1px solid var(--dark);
  color: var(--dark); background: transparent;
  font-size: .9rem; font-weight: 600;
  text-decoration: none; border-radius: 4px;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--dark); color: #fff; }

/* ===== TIER TABS ===== */
.tabs-sentinel { height: 1px; }
.ep-tabs-section {
  background: #fff;
  padding: 5rem 6%;
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 50;
  transition: padding .25s ease, box-shadow .25s ease;
}
.ep-tabs-section.compact {
  padding: 1.2rem 6%;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border-bottom: 1px solid var(--border);
}
.ep-tabs-section.compact .tabs-title {
  margin: 0 auto 1rem;
}
.tabs-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--dark);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 760px;
  line-height: 1.25;
  transition: font-size .25s ease, margin .25s ease, opacity .25s ease;
}
.tier-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  max-width: 900px;
  margin: 0 auto;
}
.tier-tab {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .7rem 1.8rem;
  font-family: inherit;
  font-size: .95rem; font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all .18s;
  letter-spacing: -.005em;
  min-width: 110px;
}
.tier-tab:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.tier-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,74,27,.25);
}

/* ===== TIER PANEL (conteúdo de cada solução) ===== */
.tier-panel { display: none; }
.tier-panel.active { display: block; }

/* ===== BENEFITS ===== */
.ep-benefits {
  padding: 5rem 6%;
  background: #fff;
}
.ep-section-title {
  font-size: 2.2rem; font-weight: 800;
  letter-spacing: -.025em;
  color: var(--dark);
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 800px; line-height: 1.2;
}
.ep-section-sub {
  font-size: 1.05rem; font-weight: 300;
  color: var(--gray);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.benefit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: all .2s;
}
.benefit-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.benefit-icon {
  display: none;
}
.benefit-title {
  font-size: 1.25rem; font-weight: 700;
  color: var(--dark); letter-spacing: -.01em;
  margin: 0; line-height: 1.3;
}
.benefit-desc {
  font-size: .9rem; color: var(--muted);
  line-height: 1.65; margin: 0;
}

/* ===== FAQ ===== */
.ep-faq {
  padding: 5rem 6%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.faq-img { display: flex; flex-direction: column; position: sticky; top: calc(var(--nav-h,64px) + 100px); }
.faq-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--orange); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 1rem; font-weight: 600; color: var(--dark); }
.faq-toggle { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute;
  background: var(--orange);
  transition: transform .2s;
}
.faq-toggle::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-toggle::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item[open] .faq-toggle::after { transform: scaleY(0); }
.faq-a { padding: 0 1.5rem 1.5rem; font-size: .92rem; color: var(--gray); line-height: 1.7; font-weight: 300; }

/* ===== COMPARE TABLE ===== */
.ep-compare {
  padding: 5rem 6%;
  background: #fff;
}
.compare-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.compare-table thead th {
  background: var(--bg2);
  padding: .7rem 1rem;
  font-weight: 700; font-size: .9rem;
  color: var(--dark);
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.compare-table thead th.ct-feature {
  text-align: left; font-size: .85rem;
  letter-spacing: .05em; color: var(--muted);
  text-transform: uppercase;
}
.compare-table thead th.ct-tier a { color: var(--gray); text-decoration: none; transition: color .2s; }
.compare-table thead th.ct-tier a:hover { color: var(--orange); }
.compare-table tbody td {
  padding: 0 1rem;
  height: 44px;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.compare-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--dark); white-space: normal; }
.compare-table tbody td.check { color: var(--orange); font-weight: 800; font-size: 1.1rem; }
/* Esconde "—" (traços) das células onde o tier não tem o recurso */
.compare-table tbody td:not(:first-child):not(.check) { color: transparent; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #fafafa; }

/* Destaca a coluna do tier ativo */
.compare-table th.col-active {
  background: var(--orange);
  color: #fff;
  border-bottom-color: var(--orange);
}
.compare-table th.col-active a.tier-link { color: #fff; }
.compare-table td.col-active {
  background: rgba(232, 74, 27, .06);
  color: var(--dark);
  font-weight: 600;
}
.compare-table td.col-active.check {
  color: var(--orange);
  font-size: 1.1rem;
}
.compare-table tbody tr:hover td.col-active { background: rgba(232, 74, 27, .1); }

/* ===== MÉTRICAS MITRE ATT&CK ER7 (360) ===== */
.ep-metrics {
  background: var(--bg);
  padding: 5rem 6%;
  text-align: center;
}
.ep-metrics-inner { max-width: 1100px; margin: 0 auto; }
.ep-metrics-header {
  text-align: center;
}
.ep-metrics-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0;
}
.ep-metrics-btn-wrap {
  padding: 48px 0 0;
  text-align: center;
  margin: 0;
}
.ep-metrics-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  background: var(--orange);
  color: #fff;
  padding: 7px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.ep-metrics-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* Hexagons layout */
.ep-metrics-hexagons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6rem;
  padding-bottom: 56px;
  margin-top: 48px;
}
.hex-col {
  position: relative;
  width: 250px;
  height: 287px;
  overflow: visible;
}
.hex-col svg {
  display: block;
  width: 250px;
  height: 287px;
}
.hex-svg-rotated {
  transform: matrix(0.479764, -0.877397, 0.877397, 0.479764, 0, 0);
  transform-origin: 50% 50%;
}
.hex-text {
  position: absolute;
  top: 84px;
  left: 22.5px;
  width: 205px;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}
.hex-val {
  font-family: var(--font-head);
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: .3rem;
}
.hex-label {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.hex-val--gray, .hex-label--gray { color: #666; }
.hex-val--red,  .hex-label--red  { color: rgb(232, 20, 16); }
.hex-val--orange, .hex-label--orange { color: rgb(255, 131, 33); }

/* ===== VS SECTION (360) ===== */
.ep-vs {
  padding: 5rem 6%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.ep-vs-inner {
  max-width: 960px;
  margin: 0 auto;
}
.ep-vs-header {
  text-align: center;
  margin-bottom: 3rem;
}
.ep-vs-header .ep-section-title { margin-bottom: .6rem; }
.ep-vs-header .ep-section-sub { margin: 0 auto; }
.ep-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ep-vs-card {
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: #fff;
}
.ep-vs-card--wg {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.ep-vs-brand {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ep-vs-card--wg .ep-vs-brand { color: var(--orange); }
.ep-vs-desc {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.ep-vs-card--wg .ep-vs-desc { color: var(--dark); }
.ep-vs-points {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.ep-vs-point {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 500;
}
.ep-vs-point::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.ep-vs-point--no {
  color: var(--muted);
}
.ep-vs-point--no::before {
  background-color: rgba(0,0,0,.07);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='2' y1='2' x2='8' y2='8' stroke='%23aaa' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='8' y1='2' x2='2' y2='8' stroke='%23aaa' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ep-vs-point--yes {
  color: var(--dark);
}
.ep-vs-point--yes::before {
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,5 4,7.5 8,3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1600px) {
  .ep-hero { padding: calc(var(--nav-h) + 4rem) 4% 4.5rem; }
  .ep-tabs-section { padding: 4.5rem 4%; }
  .ep-benefits, .ep-faq, .ep-compare, .ep-metrics, .ep-vs { padding: 4.5rem 4%; }
}
@media (max-width: 1380px) {
  .ep-hero { padding: calc(var(--nav-h) + 3.5rem) 3% 4rem; }
  .ep-tabs-section { padding: 4rem 3%; }
  .ep-benefits, .ep-faq, .ep-compare, .ep-metrics, .ep-vs { padding: 4rem 3%; }
}
@media (max-width: 1000px) {
  .ep-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ep-hero-title { font-size: 2.4rem; }
  .ep-hero-sub { font-size: 1.15rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .faq-img { position: static; }
  .ep-section-title { font-size: 1.8rem; }
  .ep-metrics-hexagons { gap: 0; }
  .hex-col { width: 200px; height: 230px; }
  .hex-col svg { width: 200px; height: 230px; }
  .hex-text { top: 67px; left: 18px; width: 164px; }
  .hex-val { font-size: 2.4rem; }
  .ep-vs-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 640px) {
  .ep-hero { padding: calc(var(--nav-h) + 1.5rem) 4% 3rem; }
  .ep-hero-title { font-size: 2rem; }
  .ep-hero-sub { font-size: 1.05rem; }
  .ep-benefits, .ep-faq, .ep-compare, .ep-metrics, .ep-vs { padding: 4rem 4%; }
  .benefits-grid { grid-template-columns: 1fr; }
  .ep-section-title { font-size: 1.5rem; }
  .tier-tabs { gap: .4rem; }
  .tier-tab { font-size: .85rem; padding: .55rem 1.2rem; min-width: 0; }
  .ep-hero-ctas { flex-direction: column; }
  .ep-hero-ctas a { width: 100%; text-align: center; }
  .ep-metrics-hexagons { flex-direction: column; align-items: center; gap: 3rem; }
  .hex-col { width: 220px; height: 252px; }
  .hex-col svg { width: 220px; height: 252px; }
  .hex-text { top: 74px; left: 20px; width: 180px; }
  .ep-metrics-headline { font-size: 1.5rem; }
}

/* ===== COMPARE TABLE: destaque ao passar o mouse ===== */
.compare-table th, .compare-table td { transition: background-color .2s ease, color .2s ease; }
.compare-table.hovering th.col-active:not(.col-hl) { background: var(--bg2); color: var(--dark); border-bottom-color: var(--border); }
.compare-table.hovering th.col-active:not(.col-hl) a.tier-link { color: var(--gray); }
.compare-table.hovering td.col-active:not(.col-hl) { background: transparent; }
.compare-table th.col-hl { background: var(--orange); color: #fff; border-bottom-color: var(--orange); }
.compare-table th.col-hl a.tier-link { color: #fff; }
.compare-table td.col-hl { background: rgba(232, 74, 27, .06); }
.compare-table th.col-hl a.tier-link:hover,
.compare-table th.col-active a.tier-link:hover { color: #fff; }
.compare-table a.tier-link { cursor: default; }
/* Linha laranja abaixo do título acompanha o fundo na transição */
.compare-table thead th { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
