/* Pricing Section */
.plan-section {
      padding: 60px 0;
      background: var(--bg, #f6f6f7);
}

.plan-header {
      text-align: center;
      margin-bottom: 50px;
}

.plan-section h2 {
      color: var(--text);
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 12px;
      letter-spacing: -0.03em;
}

.section-subtitle {
      text-align: center;
      color: var(--text-2, #52525b);
      margin-bottom: 32px;
      font-size: 1rem;
      font-weight: 400;
}

.plan-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
      gap: 32px;
      max-width: 1000px;
      margin: 0 auto 60px;
}

.plan-card {
      background: var(--card);
      border-radius: 16px;
      padding: 32px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid var(--border, #e4e4e7);
      position: relative;
      transition: border-color 0.15s;
      display: flex;
      flex-direction: column;
}

.plan-card:hover {
      border-color: var(--border-2, #d1d1d6);
}

html.dark-mode .plan-card,
body[data-theme="dark"] .plan-card {
      background: var(--card);
      border-color: var(--border, #3f3f46);
}

.plan-highlight {
      border: 2px solid var(--text, #09090b);
}

.plan-highlight:hover {
      border-color: var(--text, #09090b);
}

html.dark-mode .plan-highlight {
      border-color: var(--text, #fafafa);
}

.plan-badge {
      position: absolute;
      top: -10px;
      left: 20px;
      background: var(--surface-2, #f1f1f3);
      color: var(--text-2, #52525b);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      border: 1px solid var(--border, #e4e4e7);
}

.plan-badge.best-value {
      background: var(--text, #09090b);
      color: var(--accent-fg, #ffffff);
      border-color: var(--text, #09090b);
      left: auto;
      right: 20px;
}

.plan-title-section {
      margin-bottom: 20px;
      padding-top: 8px;
}

.plan-card h3 {
      color: var(--text);
      font-size: 1.6rem;
      margin-bottom: 8px;
      font-weight: 700;
}

.plan-description {
      color: var(--muted);
      font-size: 0.95rem;
      margin: 0;
      opacity: 0.8;
}

.plan-price-section {
      margin-bottom: 24px;
}

.plan-price {
      font-size: 2.4rem;
      font-weight: 700;
      color: var(--text, #09090b);
      margin-bottom: 6px;
      letter-spacing: -0.03em;
}

.plan-period {
      font-size: 1.1rem;
      color: var(--muted);
      font-weight: 500;
}

.plan-note {
      font-size: 0.9rem;
      color: var(--muted);
      margin: 8px 0 0 0;
}

.plan-saving {
      color: var(--success);
      font-weight: 600;
      font-size: 1rem;
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
}

.plan-saving i {
      animation: bounce 2s infinite;
}

@keyframes bounce {

      0%,
      100% {
            transform: translateY(0);
      }

      50% {
            transform: translateY(-4px);
      }
}

.btn-plan {
      padding: 12px 20px;
      font-size: 0.95rem;
      font-weight: 600;
      width: 100%;
      box-shadow: none;
}

.btn-plan.btn-primary {
      background: var(--text, #09090b);
      color: var(--accent-fg, #ffffff);
      border-color: var(--text, #09090b);
}

.btn-plan.btn-primary:hover {
      background: var(--accent-hover, #27272a);
      color: var(--accent-fg, #ffffff);
      border-color: var(--accent-hover, #27272a);
}

.btn-plan i {
      font-size: 1rem;
}

.plan-primary {
      background: var(--surface-2, #f1f1f3);
      color: var(--text-2, #52525b);
      border-color: var(--border, #e4e4e7);
}

.plan-primary:hover {
      opacity: 0.8;
}

.plan-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
      margin: 24px 0;
}

.plan-features {
      flex-grow: 1;
      margin-bottom: 24px;
}

.plan-features h4 {
      color: var(--text);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
}

.plan-features ul {
      list-style: none;
      padding: 0;
      margin: 0;
}

.plan-features li {
      display: flex;
      gap: 12px;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features li:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
}

.plan-features i {
      color: var(--success);
      font-size: 1.2rem;
      flex-shrink: 0;
      margin-top: 2px;
}

html.dark-mode .plan-features li,
body[data-theme="dark"] .plan-features li {
      border-bottom-color: rgba(148, 163, 184, 0.1);
}

.plan-features div {
      display: flex;
      flex-direction: column;
      gap: 2px;
}

.plan-features strong {
      color: var(--text);
      font-size: 0.95rem;
      font-weight: 600;

}

.plan-features span {
      color: var(--muted);
      font-size: 0.85rem;
      font-weight: 400;
}


.billing-note {
      font-size: 0.85rem;
      color: var(--muted);
      margin: 0;
}

/* ── Comparison Section ─────────────────────────────────────── */
.plan-comparison {
      margin: 60px auto;
      max-width: 1000px;
      width: 100%;
}

.plan-comparison h3 {
      color: var(--text);
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 6px;
      text-align: center;
      letter-spacing: -0.02em;
}

.plan-comparison-subtitle {
      text-align: center;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 32px;
}

/* Table wrapper with horizontal scroll */
.comparison-table-wrap {
      background: var(--card);
      border-radius: 18px;
      box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
      border: 1px solid rgba(0, 0, 0, 0.06);
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
}

html.dark-mode .comparison-table-wrap,
body[data-theme="dark"] .comparison-table-wrap {
      border-color: rgba(255, 255, 255, 0.06);
      box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.comparison-table {
      width: 100%;
      min-width: 560px;
      border-collapse: collapse;
      table-layout: auto;
}

/* Header row */
.comparison-table thead th {
      padding: 0;
      text-align: center;
      font-weight: 700;
      border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

html.dark-mode .comparison-table thead th,
body[data-theme="dark"] .comparison-table thead th {
      border-bottom-color: rgba(255, 255, 255, 0.07);
}

.comparison-table thead th:first-child {
      text-align: left;
      width: 52%;
}

.comparison-table thead th:not(:first-child) {
      width: 24%;
      min-width: 130px;
}

/* Header inner wrapper — adds padding & colored top strip */
.th-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px 16px 16px;
      gap: 6px;
}

.comparison-table thead th:first-child .th-inner {
      align-items: flex-start;
      padding-left: 28px;
}

.th-plan-tag {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 20px;
}

.th-plan-tag.monthly {
      background: rgba(100, 116, 139, 0.12);
      color: #475569;
}

html.dark-mode .th-plan-tag.monthly,
body[data-theme="dark"] .th-plan-tag.monthly {
      background: rgba(100, 116, 139, 0.2);
      color: #94a3b8;
}

.th-plan-tag.annual {
      background: rgba(37, 99, 235, 0.1);
      color: #2563eb;
}

html.dark-mode .th-plan-tag.annual,
body[data-theme="dark"] .th-plan-tag.annual {
      background: rgba(37, 99, 235, 0.18);
      color: #60a5fa;
}

.th-price {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--text);
      line-height: 1;
}

.th-period {
      font-size: 0.75rem;
      font-weight: 400;
      color: var(--muted);
}

/* Anual column highlight */
.comparison-table thead th.col-annual {
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
      position: relative;
}

.comparison-table thead th.col-annual::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #2563eb, #60a5fa);
      border-radius: 0;
}

.comparison-table tbody td.col-annual {
      background: rgba(37, 99, 235, 0.03);
}

html.dark-mode .comparison-table tbody td.col-annual,
body[data-theme="dark"] .comparison-table tbody td.col-annual {
      background: rgba(37, 99, 235, 0.07);
}

/* Body rows */
.comparison-table tbody tr {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      transition: background 0.15s;
}

.comparison-table tbody tr:last-child {
      border-bottom: none;
}

html.dark-mode .comparison-table tbody tr,
body[data-theme="dark"] .comparison-table tbody tr {
      border-bottom-color: rgba(255, 255, 255, 0.05);
}

.comparison-table tbody tr:hover td {
      background: rgba(37, 99, 235, 0.04) !important;
}

/* Cells */
.comparison-table td {
      padding: 15px 16px;
      color: var(--text);
      font-size: 0.92rem;
      text-align: center;
      vertical-align: middle;
}

.comparison-table td:first-child {
      text-align: left;
      padding-left: 28px;
      font-weight: 500;
      color: var(--text);
}

.comparison-table td:first-child strong {
      font-weight: 600;
}

/* Check icon */
.comparison-table .text-success {
      color: #16a34a;
      font-size: 1.15rem;
}

/* Dash / unavailable */
.comparison-table td:not(:first-child):not(.col-annual) .fa-check,
.comparison-table td:not(:first-child) {
      font-size: 0.92rem;
}

/* "Melhor valor" footer badge */
.comparison-best-badge {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 20px;
      font-size: 0.82rem;
      color: #2563eb;
      font-weight: 600;
}

html.dark-mode .comparison-best-badge,
body[data-theme="dark"] .comparison-best-badge {
      color: #60a5fa;
}

.comparison-best-badge i {
      font-size: 0.85rem;
}

.text-success {
      color: var(--success);
}

a {
      text-decoration: none;
      color: white;
}

/* FAQ Section */
.plan-faq {
      margin: 60px 0;
}

.plan-faq h3 {
      color: var(--text);
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 32px;
      text-align: center;
}

.faq-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
}

.faq-item {
      background: var(--card);
      border-radius: 12px;
      padding: 24px;
      border: 1px solid rgba(11, 105, 255, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(11, 105, 255, 0.1);
}

html.dark-mode .faq-item,
body[data-theme="dark"] .faq-item {
      border-color: rgba(11, 105, 255, 0.12);

}

.faq-item h4 {
      color: var(--text);
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
}

.faq-item h4 i {
      color: var(--brand);
      font-size: 1.3rem;
}

.faq-item p {
      color: var(--muted);
      font-size: 0.95rem;
      margin: 0;
      line-height: 1.6;
}

/* CTA Section */
.plan-cta {
      text-align: center;
      padding: 40px;
      background: linear-gradient(135deg, rgba(11, 105, 255, 0.08), rgba(23, 162, 184, 0.05));
      border-radius: 16px;
      border: 1px solid var(--brand);
      margin: 40px 0;
}

.plan-cta .payment-note {
      font-size: 1rem;
      font-weight: 500;
      color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
      .plan-grid {
            grid-template-columns: 1fr;
            gap: 24px;
      }

      .plan-highlight {
            transform: scale(1);
      }

      .plan-highlight:hover {
            transform: translateY(-8px);
      }

      .plan-section h2 {
            font-size: 2rem;
      }

      .plan-comparison {
            margin: 40px 0;
      }

      .comparison-table-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
      }

      .comparison-table td,
      .comparison-table th {
            font-size: 0.85rem;
      }

      .comparison-table td:first-child {
            padding-left: 16px;
      }

      .comparison-table thead th:first-child .th-inner {
            padding-left: 16px;
      }

      .faq-grid {
            grid-template-columns: 1fr;
      }
}

/* ==========================
   Responsive: assinatura.css
   Mobile-first: celulares (<=599px), tablets (600-991px), notebooks (>=992px)
   Ajustes para: pricing cards, comparison table, FAQs e CTAs
   ========================== */

/* Small devices - celulares */
@media (max-width: 599px) {
      .plan-section {
            padding: 40px 0;
      }

      .plan-section h2 {
            font-size: 1.6rem;
      }

      .section-subtitle {
            font-size: 0.95rem;
      }

      .plan-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 40px;
      }

      /* Esconder a tabela de comparação em telas móveis */
      .plan-comparison {
            display: none;
      }

      .plan-card {
            padding: 20px;
      }

      .plan-price {
            font-size: 2.2rem;
      }

      .btn-plan {
            width: 100%;
            padding: 12px 16px;
            font-size: 0.95rem;
      }

      .plan-comparison {
            padding: 20px 12px;
            margin: 40px 0;
      }

      .plan-comparison h3 {
            font-size: 1.4rem;
      }

      .comparison-table {
            font-size: 0.85rem;
      }

      .comparison-table td,
      .comparison-table th {
            padding: 10px 8px;
            word-break: break-word;
      }

      .faq-grid {
            grid-template-columns: 1fr;
            gap: 16px;
      }

      .faq-item {
            padding: 16px;
      }

      .plan-cta {
            padding: 24px 16px;
      }
}

/* Medium devices - tablets / pequenos notebooks */
@media (min-width: 600px) and (max-width: 991px) {
      .plan-section h2 {
            font-size: 2rem;
      }

      .plan-comparison {
            display: none;
      }

      .plan-grid {
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
      }

      .plan-card {
            padding: 24px;
      }

      .plan-price {
            font-size: 2.6rem;
      }

      .comparison-table {
            font-size: 0.9rem;
      }

      .faq-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      }

      .plan-cta {
            padding: 32px 24px;
      }
}

/* Large devices - notebooks e desktops */
@media (min-width: 992px) {
      .plan-section h2 {
            font-size: 2.5rem;
      }

      .plan-grid {
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
      }

      .comparison-table {
            font-size: 0.95rem;
      }
}

/* Utilities */
.text-center-mobile {
      text-align: center;
}

@media (min-width: 600px) {
      .text-center-mobile {
            text-align: left;
      }
}

.full-width-mobile {
      width: 100%;
}

@media (min-width: 600px) {
      .full-width-mobile {
            width: auto;
      }
}