/* Compare plans — from proteamsQA/pricing.html §5 “FEATURE COMPARISON TABLE” (vc_custom-css) */
.feat-table-section {
  /* Export uses these tokens; scope here so we don’t rely on a second :root */
  --ink: #2c3440;
  --ink-soft: #4a5560;
  --grey-soft: #f4f5f7;
  --grey-mid: #e2e5e9;
  --white: #ffffff;
  --content-max-wide: 1280px;
  --radius-lg: 20px;
  background: var(--grey-soft) !important;
  padding: 80px 80px 60px !important;
  border-top: 1px solid var(--border);
}

.feat-table-wrap {
  max-width: var(--content-max-wide) !important;
  margin: 0 auto !important;
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--grey-mid) !important;
}

.feat-table-wrap table,
.feat-table-wrap table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  --bs-table-bg: transparent;
  --bs-table-color: inherit;
  --bs-border-width: 0;
  --bs-border-color: transparent;
  margin-bottom: 0;
  vertical-align: middle;
}

.feat-table-wrap table.table > :not(caption) > * > * {
  box-shadow: none;
}

.feat-table-wrap thead th {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 20px 16px !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  border-bottom: none !important;
  vertical-align: middle !important;
}

.feat-table-wrap thead th:first-child {
  text-align: left !important;
  min-width: 260px !important;
}

.feat-table-wrap tbody td {
  padding: 14px 16px !important;
  text-align: center !important;
  border-bottom: 1px solid var(--grey-mid) !important;
  color: var(--ink-soft) !important;
  background: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  vertical-align: middle !important;
}

.feat-table-wrap tbody td:first-child {
  text-align: left !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}

/* Accordion / section title rows (export) */
.feat-table-wrap tr.tsection td {
  background: var(--grey-soft) !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.78rem !important;
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--grey-mid) !important;
}

.feat-table-wrap tr:hover td:not([colspan]) {
  background: rgba(7, 128, 55, 0.02) !important;
}

.feat-tick {
  color: var(--green) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

.feat-dash {
  color: var(--grey-mid) !important;
  font-weight: 400 !important;
}

.feat-table-section .section-h {
  text-align: center;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 1100px;
}

.table-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.table-ctrl-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-mid);
}

.table-ctrl-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.feat-table-wrap tr[data-section-header] {
  cursor: pointer;
  user-select: none;
}

.feat-table-wrap tr[data-section-header]:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .feat-table-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Feature label + help icon: icons stack in one right-edge column */
.feat-table-wrap .feat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.feat-table-wrap .feat-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: 0;
  font-size: 0.65rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  color: #fff;
  background: var(--ink-mid);
  border-radius: 50%;
  cursor: help;
  vertical-align: middle;
  position: relative;
}

.feat-table-wrap .feat-info:hover,
.feat-table-wrap .feat-info:focus-visible {
  background: var(--green);
  outline: none;
}

.feat-table-wrap .feat-info[data-tooltip]:hover::after,
.feat-table-wrap .feat-info[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  max-width: 280px;
  padding: 8px 10px;
  background: #1a1f1c;
  color: #f4f5f3;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 5;
  pointer-events: none;
}

/* Value text (List view, Limited, Both, Email/Push, etc.) — match regular cells */
.feat-limited,
.feat-full,
.feat-multi,
.feat-none,
.feat-partial {
  color: var(--ink-soft) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.4;
}

.mobile-section-icon {
  display: inline-block;
  margin-left: 8px;
  vertical-align: -0.2em;
}

.mobile-section-icon svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--green);
  opacity: 0.9;
}

/* Summary cells — readable on desktop + mobile */
.feat-table-wrap td.feat-summary {
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--ink-soft) !important;
  max-width: 220px;
  vertical-align: top !important;
}

/* Desktop: show original plan header labels; hide picker chrome */
.feat-table-wrap thead th[data-plan] .feat-plan-desktop-label {
  display: block;
}
.feat-table-wrap thead th[data-plan] .feat-plan-select-wrap {
  display: none;
}

/* —— Mobile / narrow: 2-column table + obvious plan picker —— */
@media (max-width: 768px) {
  .feat-table-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 48px !important;
  }

  .feat-table-wrap {
    overflow-x: visible !important;
    border-radius: 14px !important;
  }

  .feat-table-wrap table,
  .feat-table-wrap table.table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
  }

  .feat-table-wrap thead th:first-child {
    min-width: 0 !important;
    width: 42%;
    padding: 14px 12px !important;
    font-size: 0.8rem !important;
  }

  .feat-table-wrap thead th[data-plan] {
    width: 58%;
    padding: 10px 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    vertical-align: middle !important;
  }

  .feat-table-wrap thead th[data-plan] .feat-plan-desktop-label {
    display: none !important;
  }

  .feat-table-wrap thead th[data-plan] .feat-plan-select-wrap {
    display: block;
  }

  .feat-table-wrap tbody td:first-child {
    width: 42%;
    padding: 12px 10px !important;
    font-size: 13px !important;
  }

  .feat-table-wrap tbody td:not(:first-child) {
    width: 58%;
    padding: 12px 10px !important;
  }

  .feat-table-wrap td.feat-summary {
    max-width: none;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .feat-table-wrap .feat-row {
    gap: 8px;
  }

  /* Only the selected plan header column is visible */
  .feat-table-wrap[data-mobile-plan="free"] thead th[data-plan="launch"],
  .feat-table-wrap[data-mobile-plan="free"] thead th[data-plan="growth"],
  .feat-table-wrap[data-mobile-plan="free"] thead th[data-plan="scale"],
  .feat-table-wrap[data-mobile-plan="launch"] thead th[data-plan="free"],
  .feat-table-wrap[data-mobile-plan="launch"] thead th[data-plan="growth"],
  .feat-table-wrap[data-mobile-plan="launch"] thead th[data-plan="scale"],
  .feat-table-wrap[data-mobile-plan="growth"] thead th[data-plan="free"],
  .feat-table-wrap[data-mobile-plan="growth"] thead th[data-plan="launch"],
  .feat-table-wrap[data-mobile-plan="growth"] thead th[data-plan="scale"],
  .feat-table-wrap[data-mobile-plan="scale"] thead th[data-plan="free"],
  .feat-table-wrap[data-mobile-plan="scale"] thead th[data-plan="launch"],
  .feat-table-wrap[data-mobile-plan="scale"] thead th[data-plan="growth"] {
    display: none !important;
  }

  /* Only the selected plan body column is visible */
  .feat-table-wrap[data-mobile-plan="free"] tbody tr:not([data-section-header]) > td:nth-child(3),
  .feat-table-wrap[data-mobile-plan="free"] tbody tr:not([data-section-header]) > td:nth-child(4),
  .feat-table-wrap[data-mobile-plan="free"] tbody tr:not([data-section-header]) > td:nth-child(5),
  .feat-table-wrap[data-mobile-plan="launch"] tbody tr:not([data-section-header]) > td:nth-child(2),
  .feat-table-wrap[data-mobile-plan="launch"] tbody tr:not([data-section-header]) > td:nth-child(4),
  .feat-table-wrap[data-mobile-plan="launch"] tbody tr:not([data-section-header]) > td:nth-child(5),
  .feat-table-wrap[data-mobile-plan="growth"] tbody tr:not([data-section-header]) > td:nth-child(2),
  .feat-table-wrap[data-mobile-plan="growth"] tbody tr:not([data-section-header]) > td:nth-child(3),
  .feat-table-wrap[data-mobile-plan="growth"] tbody tr:not([data-section-header]) > td:nth-child(5),
  .feat-table-wrap[data-mobile-plan="scale"] tbody tr:not([data-section-header]) > td:nth-child(2),
  .feat-table-wrap[data-mobile-plan="scale"] tbody tr:not([data-section-header]) > td:nth-child(3),
  .feat-table-wrap[data-mobile-plan="scale"] tbody tr:not([data-section-header]) > td:nth-child(4) {
    display: none !important;
  }

  /* Clear “this is a dropdown” control */
  .feat-plan-select-wrap {
    position: relative;
    display: block;
    text-align: left;
    min-height: 48px;
    padding: 8px 36px 8px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .feat-plan-select-hint {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 4px;
    line-height: 1.2;
    pointer-events: none;
  }

  .feat-plan-select-face {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    pointer-events: none;
  }

  .feat-plan-select-face .feat-plan-face-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
  }

  .feat-plan-select-face .feat-plan-face-price {
    display: none;
  }

  .feat-plan-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }

  .feat-plan-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px; /* iOS: avoid zoom on focus */
    border: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  .feat-plan-select-wrap:focus-within {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
  }
}
