@font-face {
  font-family: "Montserrat Planos";
  src: url("../../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

/* ========================================
   Tabela "Compare os planos" (/planos)
   Igual ao planosaabsports.com.br (lp-saab: ResumoPlanos.js).
   Valores convertidos 1:1 das classes Tailwind do componente.
   ======================================== */

/* A barra de abas fica presa no topo no celular (position: sticky).
   O body do site tem overflow-x: hidden, que vira caixa de rolagem e
   desliga o sticky; "clip" corta igual sem criar caixa de rolagem. */
@supports (overflow: clip) {
  body[data-page="planos"] {
    overflow-x: clip;
  }
}

.rp-root {
  --rp-nav-h: 0px; /* altura da navbar fixa (o JS preenche) */
  --rp-bar-h: 0px; /* altura da barra de abas presa no celular (o JS preenche) */
  --rp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: linear-gradient(130deg, #3a0000 0%, #1a0000 100%);
  color: #fff;
  font-family: "Montserrat Planos", "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.18);
}

/* Reset local: Bootstrap e styles.css não podem mexer na tabela.
   :where() deixa especificidade baixa para as classes .rp-* ganharem. */
:where(.rp-root) *,
:where(.rp-root) *::before,
:where(.rp-root) *::after {
  box-sizing: border-box;
}

:where(.rp-root) :is(h2, h3, h4, p, dl, dd, ul, li) {
  margin: 0;
  padding: 0;
}

:where(.rp-root) :is(h2, h3, h4) {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

:where(.rp-root) ul {
  list-style: none;
}

:where(.rp-root) :is(button, a) {
  font: inherit;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  text-transform: none;
  cursor: pointer;
}

:where(.rp-root) svg {
  display: block;
  vertical-align: middle;
}

.rp-anchor {
  display: block;
  height: 0;
  scroll-margin-top: var(--rp-nav-h);
}

.rp-upper {
  text-transform: uppercase;
}

.rp-hl {
  color: #ffcc00;
}

/* ── Container e título ── */
.rp-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.rp-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fdd164;
}

.rp-heading {
  margin-top: 0.5rem;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
}

/* ── Barra (abas + atalhos): presa no topo só no celular ── */
.rp-bar {
  position: sticky;
  top: var(--rp-nav-h);
  z-index: 20;
  margin: 1rem -1rem 0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #6a0f1c;
  background: rgba(42, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rp-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.rp-tabs::-webkit-scrollbar {
  display: none;
}

.rp-tab {
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #6a0f1c;
  border-radius: 9999px;
  background: #460c0c;
  padding: 0 1rem;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: var(--rp-ease);
}

.rp-tab[aria-selected="false"]:hover {
  border-color: #d12836;
}

.rp-tab[aria-selected="true"] {
  border-color: #f00000;
  background: #d12836;
  color: #fff;
}

.rp-jump {
  margin-top: 0.5rem;
}

.rp-jump ul {
  display: grid;
  grid-template-columns: repeat(var(--rp-cols, 4), minmax(0, 1fr));
  gap: 0.375rem;
}

.rp-root .rp-chip {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #6a0f1c;
  border-radius: 0.5rem;
  background: #460c0c;
  padding: 0 0.25rem;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: var(--rp-ease);
}

.rp-root .rp-chip:hover {
  color: #fff;
}

.rp-root .rp-chip[aria-current="true"],
.rp-root .rp-chip[aria-current="true"]:hover {
  border-color: #f00000;
  background: #d12836;
  color: #fff;
}

/* Foco por teclado (anel amarelo, igual ao lp) */
.rp-root :is(.rp-tab, .rp-chip, .rp-btn, .rp-close, .rp-card):focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.rp-root :is(.rp-tab, .rp-chip, .rp-btn, .rp-close):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fdd164;
}

/* ── Painel e grade ── */
.rp-subtitle {
  margin-top: 1.25rem;
  font-size: 14px;
  color: #fbe9e8;
}

.rp-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

/* ── Card ── */
.rp-card {
  --rp-divider: #6a0f1c;
  --rp-title: #fff;
  --rp-price: #fff;
  --rp-value: #fff;
  --rp-price-label: #fff;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 1.75rem 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  scroll-margin-top: calc(var(--rp-nav-h) + var(--rp-bar-h) + 1rem);
}

.rp-card--gold {
  background: rgba(90, 31, 31, 0.4);
  border-color: #6a0f1c;
  --rp-divider: #6a0f1c;
  --rp-title: #f5e9e7;
  --rp-price: #f5e9e7;
}

.rp-card--prime {
  background: rgba(139, 47, 47, 0.3);
  border-color: #d12836;
  --rp-divider: #d12836;
  --rp-title: #f5e9e7;
  --rp-price: #f5e9e7;
}

/* Mentoria Black do Triathlon: preto */
.rp-card--black {
  background: #000;
  border-color: #fbe9e8;
  --rp-divider: #fbe8e8;
  --rp-value: #fbe9e8;
}

/* Mentoria Black de Corrida/Ciclismo e Natação: vinho */
.rp-card--black-wine {
  background: rgba(90, 31, 31, 0.4);
  border-color: #fbe9e8;
  --rp-divider: #fbe8e8;
  --rp-value: #fbe9e8;
}

.rp-card--health {
  background: #000;
  border-color: #f00000;
  --rp-divider: #ef0000;
  --rp-title: #f00000;
  --rp-value: #fbe9e8;
  --rp-price-label: #fdd164;
}

/* Cabeçalho do card */
.rp-head {
  padding-bottom: 1.25rem;
  text-align: center;
}

.rp-seal-wrap {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.rp-seal {
  position: relative;
  isolation: isolate;
  margin-left: 1.75rem;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 0.875rem;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.rp-seal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid #e10c00;
  transform: skewX(-24deg);
}

.rp-seal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1.75rem;
  width: 1.25rem;
  height: 100%;
  background: #e10c00;
  transform: skewX(-28deg);
}

.rp-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--rp-title);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.rp-coach {
  margin-top: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.rp-price {
  margin-top: 1rem;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--rp-price);
  filter: drop-shadow(0 2px 12px rgba(106, 15, 28, 0.4));
}

.rp-price-label {
  margin-top: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rp-price-label);
}

.rp-semestral {
  margin-top: 1rem;
  font-size: 13px;
  color: #fff;
}

.rp-semestral-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rp-price-label);
}

/* Linhas */
.rp-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--rp-divider);
  padding: 1rem 0.25rem;
  text-align: center;
}

.rp-row dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rp-row dt .rp-icon {
  flex-shrink: 0;
}

.rp-row dd {
  margin: 0.375rem 0 0;
}

.rp-desc {
  max-width: 260px;
  margin: 0 auto 0.375rem;
  font-size: 12px;
  line-height: 1.375;
  color: #f1cec2;
}

.rp-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.375;
  color: var(--rp-value);
}

.rp-value--strong,
.rp-items strong,
.rp-value strong {
  font-weight: 700;
}

.rp-note {
  margin-top: 0.375rem;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.rp-none {
  font-size: 13px;
  font-weight: 700;
  color: #ff6b6b;
}

.rp-items {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.375;
  color: var(--rp-value);
}

.rp-item {
  display: block;
}

.rp-sep {
  display: block;
  margin: 0.25rem 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #ffcc00;
}

.rp-ou {
  font-size: 11px;
  color: #fdd164;
}

.rp-plus {
  display: block;
  margin: 0.25rem 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* Espaço vazio que alinha os botões quando um card não tem a linha */
.rp-spacer {
  display: none;
}

/* Botões */
.rp-actions {
  margin-top: 0.5rem;
}

.rp-actions > * + * {
  margin-top: 0.625rem;
}

.rp-root .rp-btn,
.rp-root .rp-btn:hover,
.rp-root .rp-btn:focus {
  color: #fff;
  text-decoration: none;
}

.rp-root .rp-btn {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rp-root .rp-btn--cta {
  background-image: linear-gradient(to right, #f00000, #9a0c32);
  transition-property: filter, transform;
  transition-duration: 0.2s;
  transition-timing-function: var(--rp-ease);
}

.rp-root .rp-btn--cta:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: no-preference) {
  .rp-root .rp-btn--cta:hover {
    transform: translateY(-0.125rem);
  }
}

.rp-root .rp-btn--ghost {
  gap: 0.375rem;
  border: 1.5px solid #f00000;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: var(--rp-ease);
}

.rp-root .rp-btn--ghost .rp-icon {
  transition: transform 0.2s var(--rp-ease);
}

.rp-root .rp-btn--ghost[aria-expanded="true"] .rp-icon {
  transform: rotate(180deg);
}

/* ── Lista "Saber mais" do Health ── */
.rp-services {
  border: 1px solid #f00000;
  border-radius: 20px;
  background: #000;
  padding: 1rem;
  scroll-margin-top: calc(var(--rp-nav-h) + var(--rp-bar-h) + 1rem);
}

.rp-services-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rp-services-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fdd164;
}

.rp-close {
  display: none;
  min-height: 36px;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #6a0f1c;
  border-radius: 8px;
  padding: 0 0.75rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 0.15s;
  transition-timing-function: var(--rp-ease);
}

.rp-close:hover {
  border-color: #f00000;
  color: #fff;
}

.rp-choose {
  margin-top: 1rem;
  border-left: 3px solid #d12836;
  border-radius: 0 8px 8px 0;
  background: rgba(40, 10, 10, 0.6);
  padding: 0.625rem 0.75rem;
}

.rp-choose-title {
  font-size: 12px;
  font-weight: 700;
  color: #fdd164;
}

.rp-choose-text {
  margin-top: 0.125rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.rp-services-cols {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.rp-col-head {
  border: 1px solid #6a0f1c;
  border-radius: 8px;
  background: rgba(40, 10, 10, 0.4);
  padding: 0.625rem 0.5rem;
  text-align: center;
}

.rp-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.rp-col-cadence {
  margin-top: 0.125rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffcc00;
}

.rp-col-list {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.rp-col-list li {
  display: flex;
  align-items: center;
  border: 1px solid #6a0f1c;
  border-radius: 8px;
  background: rgba(40, 10, 10, 0.4);
  padding: 0.5rem 0.625rem;
  font-size: 13px;
  line-height: 1.375;
  color: rgba(255, 255, 255, 0.9);
}

.rp-services-cta {
  margin-top: 1.25rem;
}

/* ── CTA geral e rodapé ── */
.rp-help {
  margin-top: 2.5rem;
  text-align: center;
}

.rp-help-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.rp-help-btn {
  max-width: 24rem;
  margin: 1rem auto 0;
}

.rp-foot {
  margin-top: 2rem;
  border-top: 1px solid #6a0f1c;
  padding-top: 1rem;
  font-size: 12px;
  color: #f1cec2;
}

/* ── Responsivo (mesmos pontos do Tailwind: 359 / 640 / 768 / 1280 / 1536) ── */
@media (max-width: 358.98px) {
  .rp-col-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .rp-services-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .rp-col-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .rp-services-cta {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .rp-container {
    padding: 4rem 2rem;
  }

  .rp-heading {
    font-size: 34px;
  }

  .rp-bar {
    position: static;
    margin: 1rem 0 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .rp-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .rp-jump {
    display: none;
  }

  .rp-grid {
    margin-top: 2.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-card,
  .rp-services {
    scroll-margin-top: calc(var(--rp-nav-h) + 1.5rem);
  }

  .rp-spacer {
    display: block;
  }

  .rp-services {
    grid-column: span 2 / span 2;
    padding: 1.25rem;
  }

  .rp-close {
    display: inline-flex;
  }
}

@media (min-width: 1280px) {
  .rp-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .rp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 4 planos: Gold/Prime 315 e Black/Health 335 */
  .rp-grid--4 {
    grid-template-columns: 315fr 315fr 335fr 335fr;
  }

  .rp-services {
    grid-column: 3 / span 2;
  }

  .rp-card {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .rp-seal { font-size: 10px; }
  .rp-title { font-size: 24px; }
  .rp-coach { font-size: 11px; }
  .rp-price { font-size: 23px; }
  .rp-price-label { font-size: 9px; }
  .rp-semestral { font-size: 11px; }
  .rp-row dt { font-size: 9.5px; }
  .rp-desc { font-size: 9.5px; }
  .rp-value,
  .rp-items { font-size: 12px; }
  .rp-note { font-size: 9.5px; }
  .rp-none { font-size: 11px; }
  .rp-sep { font-size: 16px; }
  .rp-ou { font-size: 10px; }
  .rp-root .rp-btn { min-height: 44px; font-size: 11.5px; }
  .rp-services-title { font-size: 12px; }
  .rp-choose-title { font-size: 11px; }
  .rp-choose-text { font-size: 10.5px; }
  .rp-col-title { font-size: 9.5px; }
  .rp-col-cadence { font-size: 9px; }
  .rp-col-list li { font-size: 10.5px; }
}

@media (min-width: 1536px) {
  .rp-title { font-size: 27px; }
  .rp-price { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-root *,
  .rp-root *::before,
  .rp-root *::after {
    transition: none !important;
  }
}
