/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
.hero--sub { padding: 2.5rem 0 2rem; }
.updated-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(14,124,134,0.09);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.lede { font-size: 1.1rem; color: var(--color-text); max-width: 780px; }

/* Icon lists */
.icon-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.icon-list .icon { margin-top: 3px; }

.icon-steps { margin: 0 0 1.25rem 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.icon-steps li { padding-left: 0.3rem; }

/* Comparison table */
.table-container { margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
thead tr { background: var(--color-text); }
thead th { color: #fff; padding: 0.85rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
thead th:first-child { width: 48px; min-width: 48px; }
thead th:nth-child(2) { min-width: 160px; }
tbody tr { border-bottom: 1px solid var(--color-border); }
tbody tr:nth-child(even) { background: var(--color-bg-alt); }
td { padding: 0.85rem 1rem; vertical-align: top; color: var(--color-text-muted); }
td:first-child { color: var(--color-primary-dark); font-weight: 700; }
td:nth-child(2) { color: var(--color-text); font-weight: 600; }
.table-footnote { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.75rem; }

/* Ranked tool entries */
.tool-entry {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.tool-entry:last-of-type { border-bottom: none; }
.tool-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.tool-cta {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: var(--color-text);
  padding: 0.7rem 0.9rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}
.tool-cta a { font-weight: 600; }

/* CTA banner (strengthened final CTA) */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 3rem 0;
  margin: 2.5rem 0;
}
.cta-banner__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 640px;
}
.cta-banner__icon {
  width: 40px;
  height: 40px;
  background-color: #fff;
  margin-bottom: 0.25rem;
}
.cta-banner__heading { color: #fff; margin: 0; }
.cta-banner__text { color: rgba(255,255,255,0.9); margin: 0 0 0.5rem; }
.cta-banner__button {
  display: inline-block;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.cta-banner__button:hover, .cta-banner__button:focus-visible {
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  width: 108px;
}
.flow-step .icon { width: 26px; height: 26px; }
.flow-step--clean .icon { background-color: var(--color-primary); }
.flow-arrow {
  width: 20px;
  height: 2px;
  background: var(--color-border);
  flex-shrink: 0;
  position: relative;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-border);
  border-top: 2px solid var(--color-border);
  transform: rotate(45deg);
}

/* SLA chart */
.sla-chart { margin: 1.5rem 0 0.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.sla-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 0.75rem; }
.sla-label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.sla-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.sla-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--pct);
  background: var(--color-primary);
  border-radius: 999px;
}
.sla-value { font-size: 0.82rem; color: var(--color-text-muted); white-space: nowrap; }

/* CTA cards */
.cta-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.cta-card .icon { margin-top: 3px; }
.cta-card p { margin: 0; color: var(--color-text); }
.cta-card a { font-weight: 600; }
.cta-card--final { border-left-color: var(--color-primary-dark); }

/* FAQ */
#faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
#faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  list-style: none;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  color: var(--color-primary);
  font-weight: 700;
}
#faq details[open] summary::before { content: '\2212'; }
#faq details p { margin: 0.75rem 0 0 1.2em; }
