/* Base */
:root{
  --ptm-font: "Outfit", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --ptm-c-primary: #24BDC0;
  --ptm-c-secondary: #B3E1E2;
  --ptm-c-text: #1B2440;
  --ptm-c-accent: #8A2BE2;
  --ptm-c-muted: #F7F9FA;
  --ptm-c-border: rgba(0,0,0,0.08);
  --ptm-radius-lg: 20px;
  --ptm-shadow: 0 10px 30px rgba(27,36,64,0.10);
  --ptm-shadow-strong: 0 16px 40px rgba(27,36,64,0.20);
}

.ptm-plans{
  font-family: var(--ptm-font);
  color: var(--ptm-c-text);
}

/* =========================================================
   PLANS GRID (DESKTOP DEFAULT)
   - 4 cards em uma única linha
   - cards não estouram, nem “esticam” conteúdo
========================================================= */
.ptm-plans__grid{
  display: grid;
  gap: 24px;
  align-items: stretch;

  /* ✅ 4 colunas no desktop (1 linha) */
  grid-template-columns: repeat(4, minmax(0, 1fr));

  /* evita overflow por conteúdo */
  min-width: 0;
}

/* garante que o card respeite a coluna */
.ptm-plans__grid > .ptm-card{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Proteção contra conteúdo estourar (URLs, textos longos) */
.ptm-plans__grid .ptm-card,
.ptm-plans__grid .ptm-card *{
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* TABLET: 2 colunas */
@media (max-width: 1024px){
  .ptm-plans__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE: 1 coluna */
@media (max-width: 640px){
  .ptm-plans__grid{
    grid-template-columns: 1fr;
  }
}

/* Card */
.ptm-card{
  background: #fff;
  border: 1px solid var(--ptm-c-border);
  border-radius: var(--ptm-radius-lg);
  box-shadow: var(--ptm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ptm-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--ptm-shadow-strong);
}

/* Header */
.ptm-card__head{
  padding: 20px 24px 12px 24px;
}
.ptm-card__title{
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .2px;
}
.ptm-card__badge{
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ptm-c-accent);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
}

/* Featured (card do meio) */
.ptm-card.is-featured{
  border-color: transparent;
  background: linear-gradient(180deg, var(--ptm-c-secondary) 0%, #ffffff 40%);
  outline: 3px solid rgba(36,189,192,0.20);
}

/* Price area */
.ptm-card__price{
  padding: 10px 24px 0 24px;
}
.ptm-price__wrap{
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ptm-price__currency{
  font-size: 18px;
  font-weight: 600;
  color: var(--ptm-c-text);
}
.ptm-price__value{
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: var(--ptm-c-text);
  letter-spacing: -.5px;
}
.ptm-price__period{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(27,36,64,0.75);
}

/* CTA */
.ptm-card__cta{
  padding: 18px 24px 6px 24px;
}
.ptm-btn{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--ptm-c-primary);
  background: var(--ptm-c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease;
}
.ptm-btn:hover{ background: #19a7aa; border-color: #19a7aa; color: #fff; }
.ptm-btn:active{ transform: translateY(1px); }

/* Features */
.ptm-card__features{
  padding: 18px 24px 24px 24px;
  margin-top: 6px;
}
.ptm-features__title{
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 700;
}
.ptm-features__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ptm-features__item{
    position: relative;
    padding-left: 26px;
}

.ptm-features__item::before{
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    color: #8a2be2;
    font-weight: 700;
}

/* Vazios / estados */
.ptm-plans-empty{
  font-family: var(--ptm-font);
  padding: 24px;
  border-radius: var(--ptm-radius-lg);
  background: var(--ptm-c-muted);
  color: var(--ptm-c-text);
}

/* Descrição curta abaixo do título */
.ptm-card__desc{
  margin: 8px 0 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(27,36,64,0.78);
}

/* Subnote (Acesso até ...) — opcional mas recomendado para ficar bonito */
.ptm-card__subnote{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(27,36,64,0.70);
}

.ptm-founder-counter {
    max-width: 520px;
    margin: 0 auto 22px;
    padding: 18px 20px;
    background: #f7f9fb;
    border: 1px solid #dbe7ee;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(27, 36, 64, 0.05);
    font-family: "Outfit", sans-serif;
}

.ptm-founder-counter--ended {
    border-color: rgba(180, 35, 24, 0.18);
    background: #fff7f6;
}

.ptm-founder-counter__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ptm-founder-counter__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #8A2BE2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.ptm-founder-counter--ended .ptm-founder-counter__badge {
    background: #b42318;
}

.ptm-founder-counter__numbers {
    font-size: 14px;
    font-weight: 700;
    color: #1B2440;
}

.ptm-founder-counter__title {
    margin-bottom: 6px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #1B2440;
}

.ptm-founder-counter__text {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #5b647a;
}

.ptm-founder-counter__progress {
    width: 100%;
    height: 12px;
    background: #e7eef3;
    border-radius: 999px;
    overflow: hidden;
}

.ptm-founder-counter__progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #24BDC0 0%, #8A2BE2 100%);
    transition: width 0.35s ease;
}

.ptm-founder-counter--ended .ptm-founder-counter__progress-bar {
    background: linear-gradient(90deg, #ff7a59 0%, #b42318 100%);
}

.ptm-founder-counter__footer {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1B2440;
}

@media (max-width: 640px) {
    .ptm-founder-counter {
        padding: 16px;
        border-radius: 16px;
    }

    .ptm-founder-counter__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .ptm-founder-counter__title {
        font-size: 20px;
    }

    .ptm-founder-counter__text,
    .ptm-founder-counter__footer,
    .ptm-founder-counter__numbers {
        font-size: 14px;
    }
}

.ptm-plans--founder-mode {
    max-width: 1200px;
    margin: 0 auto;
}

.ptm-plans--founder-mode .ptm-plans__grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.ptm-plans--founder-mode .ptm-plan-card,
.ptm-plans--founder-mode .ptm-plan,
.ptm-plans--founder-mode .ptm-plans__item {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.ptm-plans--founder-mode .ptm-founder-counter {
    max-width: 560px;
    margin: 0 auto 28px;
}

.ptm-plans--founder-mode .ptm-plan-card__content,
.ptm-plans--founder-mode .ptm-plan__content {
    min-height: 100%;
}

@media (max-width: 980px) {
    .ptm-plans--founder-mode .ptm-plan-card,
    .ptm-plans--founder-mode .ptm-plan,
    .ptm-plans--founder-mode .ptm-plans__item {
        max-width: 100%;
    }

    .ptm-plans--founder-mode .ptm-founder-counter {
        max-width: 100%;
    }
}