/* pro.css — styles for pro.html upgrade page */

.pro-page { max-width: 1100px; margin: 0 auto; padding: 60px 24px 80px; }

    .pro-hero { text-align: center; margin-bottom: 60px; }
    .pro-eyebrow {
      font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--emerald); margin-bottom: 14px;
    }
    .pro-headline {
      font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem);
      font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px;
    }
    .pro-headline em { font-style: normal; color: var(--emerald); }
    .pro-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 32px; }

    /* Billing toggle */
    .billing-toggle {
      display: inline-flex; background: var(--surface); border: 1.5px solid var(--border);
      border-radius: 99px; padding: 4px; gap: 4px; margin-bottom: 40px;
    }
    .billing-btn {
      border: none; background: transparent; border-radius: 99px;
      padding: 8px 20px; font-family: var(--font-body); font-size: 0.875rem;
      font-weight: 500; cursor: pointer; color: var(--text-secondary);
      transition: all 160ms; display: flex; align-items: center; gap: 6px;
    }
    .billing-btn.active { background: var(--card-bg); color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
    .save-pill {
      background: var(--emerald); color: #fff; font-size: 0.65rem; font-weight: 700;
      border-radius: 99px; padding: 1px 7px; letter-spacing: 0.04em;
    }

    /* Pricing cards */
    .pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin: 0 auto 60px; }
    .pricing-card {
      border: 1.5px solid var(--border); border-radius: 18px; padding: 28px;
      background: var(--card-bg); position: relative; transition: box-shadow 200ms;
    }
    .pricing-card.featured {
      border-color: var(--emerald);
      box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
    }
    .featured-label {
      position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
      background: var(--emerald); color: #fff; font-size: 0.72rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.1em; border-radius: 99px; padding: 4px 14px;
      white-space: nowrap;
    }
    .plan-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
    .plan-price {
      font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
      letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px;
    }
    .plan-price sup { font-size: 1.2rem; font-weight: 600; vertical-align: super; }
    .plan-price sub { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
    .plan-billed { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 24px; }
    .plan-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
    .plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
    .feat-check { color: var(--emerald); flex-shrink: 0; font-size: 1rem; }
    .feat-x { color: var(--text-secondary); flex-shrink: 0; opacity: 0.5; }

    .plan-cta {
      width: 100%; padding: 13px; border-radius: 10px; font-family: var(--font-body);
      font-size: 0.95rem; font-weight: 700; cursor: pointer; border: none; transition: all 160ms;
    }
    .plan-cta.primary { background: var(--emerald); color: #fff; }
    .plan-cta.primary:hover { background: var(--emerald-dark); transform: translateY(-1px); }
    .plan-cta.secondary { background: var(--surface); color: var(--text-primary); border: 1.5px solid var(--border); }
    .plan-cta.secondary:hover { border-color: var(--text-primary); }

    /* Payment form */
    .checkout-section {
      max-width: 480px; margin: 0 auto 60px;
      background: var(--card-bg); border: 1.5px solid var(--border);
      border-radius: 18px; padding: 32px; display: none;
    }
    .checkout-section.visible { display: block; }
    .checkout-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
    .checkout-sub { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 24px; }
    #payment-element { margin-bottom: 20px; min-height: 48px; }
    #payment-element.loading::after {
      content: 'Loading secure payment form…';
      display: block; padding: 20px; color: var(--text-secondary); font-size: 0.85rem; text-align: center;
    }
    .checkout-submit {
      width: 100%; padding: 14px; background: var(--emerald); color: #fff;
      border: none; border-radius: 10px; font-family: var(--font-body);
      font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 160ms;
    }
    .checkout-submit:hover:not(:disabled) { background: var(--emerald-dark); }
    .checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    #payment-error { color: #EF4444; font-size: 0.82rem; margin-top: 8px; min-height: 20px; }
    .checkout-legal { text-align: center; font-size: 0.72rem; color: var(--text-secondary); margin-top: 12px; }
    .checkout-legal a { color: var(--emerald); text-decoration: none; }

    /* Feature comparison table */
    .compare-section { margin-bottom: 60px; }
    .compare-title {
      font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
      letter-spacing: -0.02em; text-align: center; margin-bottom: 28px;
    }
    .compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
    .compare-table th {
      text-align: left; padding: 10px 16px; font-family: var(--font-display);
      font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--text-secondary); border-bottom: 2px solid var(--border); background: var(--surface);
    }
    .compare-table th:nth-child(2), .compare-table th:nth-child(3) { text-align: center; width: 110px; }
    .compare-table th:nth-child(3) { color: var(--emerald); }
    .compare-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
    .compare-table td:nth-child(2), .compare-table td:nth-child(3) { text-align: center; font-size: 1rem; }
    .compare-table tr:last-child td { border-bottom: none; }
    .compare-table tr:hover td { background: var(--surface); }
    .compare-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); padding-top: 20px !important; }

    /* FAQ */
    .faq-section { max-width: 680px; margin: 0 auto 60px; }
    .faq-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 28px; }
    .faq-item { border-bottom: 1px solid var(--border); }
    .faq-q {
      width: 100%; text-align: left; background: none; border: none; padding: 16px 0;
      font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer;
      color: var(--text-primary); display: flex; justify-content: space-between; align-items: center;
    }
    .faq-q::after { content: '+'; font-size: 1.2rem; color: var(--text-secondary); }
    .faq-q.open::after { content: '−'; }
    .faq-a { font-size: 0.875rem; color: var(--text-secondary); padding-bottom: 16px; line-height: 1.7; display: none; }
    .faq-a.open { display: block; }

    @media (max-width: 640px) {
      .pricing-grid { grid-template-columns: 1fr; }
      .compare-table th:nth-child(2), .compare-table td:nth-child(2) { display: none; }
    }
