/* ==========================================================================
   Ovile Alternativas (/alternativas/) — Factual Comparison Pages
   Design Tokens:
   - Primary ink: #051c2c / #0f172a
   - Neutral text: #58585e
   - Brand forest: #123f39 / #1b524a
   - Brand lime: #cce561 / #bcd94a
   ========================================================================== */

.alt-page {
  --alt-ink: #051c2c;
  --alt-text: #0f172a;
  --alt-muted: #58585e;
  --alt-forest: #123f39;
  --alt-forest-hover: #1b524a;
  --alt-lime: #cce561;
  --alt-lime-hover: #bcd94a;
  --alt-surface: #f8f9fa;
  --alt-card: #f3f3f3;
  --alt-border: #e5e7eb;
  --alt-white: #ffffff;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--alt-text);
  background: var(--alt-white);
  -webkit-font-smoothing: antialiased;
}

.alt-page main {
  padding-top: 88px;
}

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

.alt-page [hidden] {
  display: none !important;
}

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

/* ==========================================
   Buttons & Badges
   ========================================== */
.alt-lime-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--alt-lime);
  color: var(--alt-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.alt-btn-primary {
  background: var(--alt-ink);
  color: var(--alt-white);
}

.alt-btn-primary:hover {
  background: var(--alt-forest);
}

.alt-btn-outline {
  border-color: #d1d5db;
  background: var(--alt-white);
  color: var(--alt-ink);
}

.alt-btn-outline:hover {
  border-color: var(--alt-forest);
  color: var(--alt-forest);
}

.alt-btn-lime {
  background: var(--alt-lime);
  color: var(--alt-ink);
}

.alt-btn-lime:hover {
  background: var(--alt-lime-hover);
}

/* ==========================================
   Hub Hero & Grid (/alternativas/)
   ========================================== */
.alt-hub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 20px clamp(60px, 8vw, 96px);
  background: var(--alt-forest);
  color: var(--alt-white);
  text-align: center;
}

.alt-hub-hero-inner {
  width: min(100%, 880px);
  margin-inline: auto;
}

.alt-hub-hero h1 {
  margin: 0 auto 18px;
  max-width: 24ch;
  color: var(--alt-white);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.alt-hub-hero p {
  margin: 0 auto;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

.alt-hub-section {
  padding: clamp(44px, 6vw, 72px) 20px clamp(56px, 7vw, 88px);
}

.alt-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.alt-hub-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--alt-border);
  border-radius: 18px;
  background: var(--alt-white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.alt-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--alt-forest);
  box-shadow: 0 14px 32px -22px rgba(5, 28, 44, 0.25);
}

.alt-hub-tag {
  margin: 0 0 12px;
  color: var(--alt-forest);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alt-hub-card h2 {
  margin: 0 0 10px;
  color: var(--alt-ink);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.25;
}

.alt-hub-card:hover h2 {
  color: var(--alt-forest);
}

.alt-hub-card p {
  margin: 0 0 18px;
  color: var(--alt-muted);
  font-size: 15.5px;
  line-height: 1.6;
  flex: 1;
}

.alt-hub-action {
  color: var(--alt-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.alt-hub-card:hover .alt-hub-action {
  color: var(--alt-forest);
}

/* ==========================================
   Competitor Page Split Hero
   ========================================== */
.alt-hero {
  padding: clamp(36px, 4.5vw, 60px) 20px clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--alt-border);
  background: var(--alt-surface);
}

.alt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.alt-hero h1 {
  margin: 14px 0 14px;
  color: var(--alt-ink);
  font-size: clamp(30px, 3.9vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.alt-hero-sub {
  margin: 0 0 26px;
  max-width: 54ch;
  color: var(--alt-muted);
  font-size: 17px;
  line-height: 1.55;
}

.alt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.alt-summary-card {
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--alt-border);
  border-radius: 18px;
  background: var(--alt-white);
  box-shadow: 0 14px 36px -26px rgba(5, 28, 44, 0.28);
}

.alt-summary-card h2 {
  margin: 0 0 18px;
  color: var(--alt-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.alt-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.alt-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--alt-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.alt-check-circle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--alt-forest);
  color: var(--alt-white);
}

.alt-check-circle svg {
  width: 13px;
  height: 13px;
}

/* ==========================================
   Comparison Table
   ========================================== */
.alt-compare-section {
  padding: clamp(48px, 6vw, 76px) 20px 0;
  scroll-margin-top: 100px;
}

.alt-section-heading {
  text-align: center;
  margin: 0 0 10px;
  color: var(--alt-ink);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.alt-section-sub {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 60ch;
  color: var(--alt-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.alt-table-wrap {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--alt-card);
  box-shadow: none;
}

.alt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.alt-table th,
.alt-table td {
  padding: 18px 24px;
  border: 0;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.45;
}

.alt-table thead th {
  background: transparent;
  color: var(--alt-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.alt-table thead th.is-ovile {
  background: #e6f1b4;
  color: var(--alt-ink);
}

.alt-table thead th.is-ovile img {
  display: block;
  width: auto;
  height: 36px;
}

.alt-table tbody th {
  width: 24%;
  color: var(--alt-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.alt-table tbody tr + tr > * {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.alt-table tbody tr + tr > td.is-ovile {
  border-top-color: rgba(5, 28, 44, 0.08);
}

.alt-table tbody td {
  width: 38%;
  color: var(--alt-muted);
}

.alt-table tbody td.is-ovile {
  background: #f3f9d9;
  color: var(--alt-ink);
  font-weight: 600;
}

.alt-table tbody td.is-no::before,
.alt-table tbody td.is-no::after {
  background: #aab2bd;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.alt-table tbody td.is-partial::before,
.alt-table tbody td.is-partial::after {
  background: #8c95a0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

.alt-table tbody td.is-yes::before,
.alt-table tbody td.is-yes::after,
.alt-table tbody td.is-ovile::before,
.alt-table tbody td.is-ovile::after {
  background: #4d8a1f;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 761px) {
  .alt-table tbody td {
    position: relative;
    padding-left: 52px;
  }

  .alt-table tbody td::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 21px;
    display: block;
    width: 16px;
    height: 16px;
  }

  .alt-table tbody td.is-yes::before,
  .alt-table tbody td.is-ovile::before {
    width: 18px;
    height: 18px;
    top: 20px;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .alt-table th,
  .alt-table td {
    padding: 16px 18px;
  }

  .alt-table tbody td {
    padding-left: 46px;
  }

  .alt-table tbody td::before {
    left: 18px;
    top: 19px;
  }

  .alt-table tbody td.is-yes::before,
  .alt-table tbody td.is-ovile::before {
    top: 18px;
  }
}

/* ==========================================
   When to Choose Each Platform
   ========================================== */
.alt-decision-section {
  padding: clamp(48px, 6vw, 72px) 20px 0;
}

.alt-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.alt-decision-card {
  padding: clamp(24px, 3vw, 30px);
  border-radius: 18px;
  border: 1px solid var(--alt-border);
}

.alt-decision-card.is-other {
  background: var(--alt-surface);
}

.alt-decision-card.is-ovile {
  border: 1.5px solid var(--alt-forest);
  background: var(--alt-white);
}

.alt-decision-card h3 {
  margin: 0 0 16px;
  color: var(--alt-ink);
  font-size: 20px;
  font-weight: 700;
}

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

.alt-decision-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--alt-muted);
  font-size: 15px;
  line-height: 1.5;
}

.alt-decision-card.is-ovile .alt-decision-list li {
  color: var(--alt-ink);
  font-weight: 500;
}

.alt-bullet-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

/* ==========================================
   Migration Banner
   ========================================== */
.alt-banner-section {
  padding: clamp(48px, 6vw, 68px) 20px 0;
}

.alt-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(26px, 3.6vw, 38px);
  border-radius: 20px;
  background: var(--alt-forest);
  color: var(--alt-white);
}

.alt-banner-copy h2 {
  margin: 0 0 8px;
  color: var(--alt-white);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.alt-banner-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.5;
}

.alt-banner-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.alt-banner-links a {
  color: var(--alt-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================
   Editorial FAQ Accordion (matches /guias/ & /ferramentas/)
   ========================================== */
.alt-faq-section {
  padding: clamp(48px, 6vw, 72px) 20px clamp(44px, 5vw, 64px);
}

.alt-faq-title {
  margin: 0 0 20px;
  color: var(--alt-ink);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.alt-faq-list {
  border-top: 1px solid rgba(5, 28, 44, 0.16);
}

.alt-faq-item {
  border-bottom: 1px solid rgba(5, 28, 44, 0.16);
}

.alt-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--alt-ink);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.alt-faq-item summary::-webkit-details-marker {
  display: none;
}

.alt-faq-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--alt-ink);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.alt-faq-item[open] .alt-faq-icon {
  transform: rotate(180deg);
}

.alt-faq-body {
  max-width: 68ch;
  margin: -4px 48px 24px 0;
  color: var(--alt-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}

/* ==========================================
   Sibling Comparisons Strip
   ========================================== */
.alt-others-section {
  padding: 0 20px clamp(56px, 7vw, 88px);
}

.alt-others-title {
  margin: 0 0 18px;
  color: var(--alt-ink);
  font-size: 20px;
  font-weight: 600;
}

.alt-others-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.alt-other-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--alt-border);
  border-radius: 14px;
  background: var(--alt-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.alt-other-card:hover {
  border-color: var(--alt-forest);
  background: var(--alt-white);
}

.alt-other-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--alt-ink);
  font-size: 16.5px;
}

.alt-other-card span {
  display: block;
  color: var(--alt-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 900px) {
  .alt-hero-grid,
  .alt-decision-grid,
  .alt-hub-grid,
  .alt-others-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .alt-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .alt-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .alt-table,
  .alt-table tbody,
  .alt-table tr,
  .alt-table th,
  .alt-table td {
    display: block;
    width: 100%;
  }

  .alt-table tbody tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 0;
    border-radius: 22px;
    background: var(--alt-card);
  }

  .alt-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .alt-table tbody tr + tr > *,
  .alt-table tbody tr + tr > td.is-ovile {
    border-top: 0;
  }

  .alt-table tbody th {
    padding: 2px 6px 12px;
    border: 0;
    background: transparent;
    font-size: 18px;
  }

  .alt-table tbody td {
    position: relative;
    margin-bottom: 8px;
    padding: 12px 14px 13px 48px;
    border: 0;
    border-radius: 15px;
    background: var(--alt-white);
  }

  .alt-table tbody td:last-child {
    margin-bottom: 0;
  }

  .alt-table tbody td::before {
    content: attr(data-label);
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 3px;
    background: none;
    -webkit-mask: none;
    mask: none;
    color: var(--alt-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .alt-table tbody td::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 14px;
    width: 20px;
    height: 20px;
  }

  .alt-table tbody td.is-partial::after {
    width: 18px;
    height: 18px;
  }

  .alt-table tbody td.is-ovile {
    padding-top: 12px;
    border: 1px solid #dcea9c;
    background: #f1f8cf;
  }

  .alt-table tbody td.is-ovile::before {
    background: none;
    -webkit-mask: none;
    mask: none;
    color: #4d8a1f;
  }

  .alt-faq-body {
    margin-right: 0;
  }
}
