/* Ported from Demo UI subscription.html — HeyLeads marketing design system */

/* ═══════════════════════════════════════════════════════════
   SECTION 1: HERO HEADER & CURRENCY SWITCHER
   ═══════════════════════════════════════════════════════════ */
    /* Open page hero — no hard card box; soft glow only */
    .hero-plan-banner {
      background: transparent;
      border: none;
      border-radius: 0;
      padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 clamp(1rem, 2vw, 1.35rem);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1.25rem 2rem;
      flex-wrap: wrap;
      box-shadow: none;
      min-height: 0;
    }

    .hero-plan-banner::before {
      content: "";
      position: absolute;
      left: -6%;
      top: -40%;
      width: min(420px, 65%);
      height: 140%;
      max-height: 220px;
      background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.14) 0%,
        rgba(99, 102, 241, 0.05) 35%,
        transparent 70%
      );
      filter: blur(8px);
      pointer-events: none;
      z-index: 0;
    }

    .hero-plan-banner::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.35) 0%,
        var(--border-subtle) 42%,
        transparent 100%
      );
      pointer-events: none;
    }

    [data-theme="light"] .hero-plan-banner::before {
      background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.04) 35%,
        transparent 70%
      );
    }

    .hero-content-col {
      max-width: 720px;
      position: relative;
      z-index: 2;
    }

    .hero-tag-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.3rem 0.7rem;
      border-radius: var(--radius-full);
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.22);
      color: #818cf8;
      font-size: 0.6875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.85rem;
    }

    .hero-heading {
      font-size: clamp(1.75rem, 3.5vw, 2.25rem);
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin-bottom: 0.65rem;
    }

    .hero-subtext {
      font-size: 0.9375rem;
      color: var(--text-body);
      line-height: 1.6;
      max-width: 54ch;
    }

    /* Currency Segmented Track */
    .currency-selector-box {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.5rem;
    }

    .currency-track {
      background: var(--color-base-300);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      padding: 4px;
      display: inline-flex;
      align-items: center;
      position: relative;
    }

    .currency-pill-btn {
      padding: 0.4rem 1rem;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-subtle);
      border: none;
      background: transparent;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .currency-pill-btn:active {
      transform: scale(0.97);
    }

    .currency-pill-btn.active {
      background: var(--color-primary);
      color: #ffffff;
      box-shadow: 0 2px 10px rgba(99, 102, 241, 0.45);
    }

    [data-theme="light"] .currency-pill-btn.active {
      background: #4338ca;
      box-shadow: 0 2px 8px rgba(67, 56, 202, 0.3);
    }

    .currency-pill-btn:not(.active):hover {
      color: var(--text-heading);
    }

    /* ═══════════════════════════════════════════════════════════
       SECTION 2: 4 TIER PRICING CARDS MATRIX
       ═══════════════════════════════════════════════════════════ */
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
      align-items: stretch;
      overflow: visible;
      padding-bottom: 1.25rem;
    }

    @media (max-width: 1100px) {
      .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 640px) {
      .pricing-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Standard Option Card with Bottom Fading Gradient Underline */
    .option-card {
      position: relative;
      background: var(--color-base-200);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      padding: 1.5rem 1.25rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
      min-height: 0;
      overflow: visible;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  background 0.3s ease;
      box-shadow: var(--shadow-card);
      cursor: default;
    }

    a.option-card,
    .option-card.is-link {
      cursor: pointer;
    }

    .option-card .plan-card-footer {
      margin-top: auto;
    }

    /* Ambient Inner Glow Backdrop on Hover */
    .option-card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
      z-index: 0;
    }

    .option-card > * {
      position: relative;
      z-index: 1;
    }

    /* Dynamic Pop-Out Lift & Multi-Tier Neon Shadow (pointer devices only) */
    @media (hover: hover) and (pointer: fine) {
      .option-card:hover {
        transform: translateY(-4px);
        z-index: 10;
      }

      .option-card:hover::before {
        opacity: 1;
      }

      .pricing-grid .option-card:hover {
        transform: translateY(-6px) scale(1.015);
      }
    }

    /* TIER 1: BASIC (Sky Blue Glow) */
    .option-card.card-basic::before {
      background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.03) 65%, transparent 100%);
    }
    .option-card.card-basic:hover {
      border-color: rgba(56, 189, 248, 0.65);
      box-shadow: 0 16px 36px -6px rgba(56, 189, 248, 0.28), 0 0 20px -2px rgba(56, 189, 248, 0.22);
    }

    /* TIER 2: GROWTH (Emerald Green Glow) */
    .option-card.card-growth::before {
      background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 65%, transparent 100%);
    }
    .option-card.card-growth:hover {
      border-color: rgba(16, 185, 129, 0.75);
      box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.32), 0 0 22px -2px rgba(16, 185, 129, 0.25);
    }

    /* TIER 3: PRO (Royal Purple Glow) */
    .option-card.card-pro::before {
      background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.04) 65%, transparent 100%);
    }
    .option-card.card-pro:hover {
      border-color: rgba(168, 85, 247, 0.75);
      box-shadow: 0 16px 36px -6px rgba(168, 85, 247, 0.35), 0 0 22px -2px rgba(168, 85, 247, 0.26);
    }

    /* TIER 4: CUSTOM ENTERPRISE (Orange Amber Glow) */
    .option-card.card-custom::before {
      background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.04) 65%, transparent 100%);
    }
    .option-card.card-custom:hover {
      border-color: rgba(249, 115, 22, 0.75);
      box-shadow: 0 16px 36px -6px rgba(249, 115, 22, 0.32), 0 0 22px -2px rgba(249, 115, 22, 0.24);
    }

    /* Light Mode hover parity */
    [data-theme="light"] .option-card.card-basic:hover {
      box-shadow: 0 16px 32px -4px rgba(2, 132, 199, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
      border-color: #0284c7;
    }
    [data-theme="light"] .option-card.card-growth:hover {
      box-shadow: 0 16px 32px -4px rgba(5, 150, 105, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
      border-color: #059669;
    }
    [data-theme="light"] .option-card.card-pro:hover {
      box-shadow: 0 16px 32px -4px rgba(126, 34, 206, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
      border-color: #7e22ce;
    }
    [data-theme="light"] .option-card.card-custom:hover {
      box-shadow: 0 16px 32px -4px rgba(234, 88, 12, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
      border-color: #ea580c;
    }

    /* The signature Bottom Highlight Line from Design Guideline Section 8.4 */
    .option-card::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 10%;
      right: 10%;
      height: 2px;
      background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.85) 50%, transparent 100%);
      border-radius: 9999px;
      opacity: 0.4;
      transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease, height 0.3s ease;
      z-index: 2;
    }

    .option-card:hover::after,
    .option-card.selected::after {
      opacity: 1;
      left: 4%;
      right: 4%;
      height: 3px;
    }

    /* Card Variant Bottom Underlines */
    .option-card.card-basic::after {
      background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.95) 50%, transparent 100%);
    }
    .option-card.card-growth::after {
      background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.95) 50%, transparent 100%);
    }
    .option-card.card-pro::after {
      background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.95) 50%, transparent 100%);
    }
    .option-card.card-custom::after {
      background: linear-gradient(90deg, transparent 0%, rgba(249, 115, 22, 0.95) 50%, transparent 100%);
    }

    /* Featured / Popular Badge */
    .popular-ribbon {
      position: absolute;
      top: 1rem;
      right: 1rem;
      padding: 0.2rem 0.55rem;
      border-radius: var(--radius-full);
      font-size: 0.625rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.35);
      color: #34d399;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .plan-card-header {
      margin-bottom: 1.25rem;
    }

    .plan-badge-icon {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-curvy);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--icon-size-primary);
      margin-bottom: 0.85rem;
    }

    .plan-name {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: -0.01em;
    }

    .plan-target {
      font-size: 0.6875rem;
      color: var(--text-subtle);
      margin-top: 0.2rem;
    }

    .plan-price-wrap {
      margin: 1.15rem 0;
      padding-bottom: 1.15rem;
      border-bottom: 1px solid var(--border-subtle);
    }

    .price-value-row {
      display: flex;
      align-items: baseline;
      gap: 0.3rem;
    }

    .price-currency {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-heading);
    }

    .price-amount {
      font-size: 1.85rem;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: -0.02em;
      font-family: var(--font-sans);
    }

    .price-frequency {
      font-size: 0.72rem;
      color: var(--text-subtle);
      font-weight: 500;
    }

    .plan-seat-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin-top: 0.5rem;
      padding: 0.2rem 0.55rem;
      border-radius: var(--radius-sm);
      font-size: 0.6875rem;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-heading);
      font-family: var(--font-mono);
    }

    .plan-features-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      margin-bottom: 1.5rem;
    }

    .plan-feature-item {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: var(--text-body);
      line-height: 1.35;
    }

    .plan-feature-item i {
      font-size: 0.875rem;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .plan-feature-item i.check-success {
      color: var(--color-success);
    }

    .plan-feature-item i.cross-disabled {
      color: var(--text-subtle);
      opacity: 0.45;
    }

    .plan-feature-item.muted {
      color: var(--text-subtle);
      opacity: 0.65;
    }

    .plan-card-footer {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .plan-tier-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.625rem;
      color: var(--text-subtle);
      font-family: var(--font-mono);
      margin-top: 0.25rem;
    }

    /* ═══════════════════════════════════════════════════════════

       SECTION 3: COMPARISON MATRIX TABLE
       ═══════════════════════════════════════════════════════════ */
    .comparison-table-card {
      background: var(--color-base-200);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card);
    }

    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.75rem;
    }

    .comparison-table th {
      padding: 0.85rem 1rem;
      background: var(--color-base-300);
      font-weight: 700;
      font-size: 0.6875rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-subtle);
      border-bottom: 1px solid var(--border-subtle);
    }

    .comparison-table th:first-child {
      width: 32%;
    }

    .comparison-table td {
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-body);
      vertical-align: middle;
    }

    .comparison-table tr:last-child td {
      border-bottom: none;
    }

    .comparison-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    .feature-title-cell {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 600;
      color: var(--text-heading);
    }

    .feature-title-cell i {
      font-size: 0.875rem;
      color: var(--color-primary);
    }

    .table-check {
      color: var(--color-success);
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
    }

    .table-dash {
      color: var(--text-subtle);
      opacity: 0.4;
      font-size: 1rem;
    }

    .badge-pill-table {
      display: inline-flex;
      align-items: center;
      padding: 0.15rem 0.5rem;
      border-radius: var(--radius-full);
      font-size: 0.6875rem;
      font-weight: 600;
    }

    /* ── Interactive Info Tooltip ("i" button) ── */
    .info-tip-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
      margin-left: 0.35rem;
    }

    .info-tip-btn {
      width: 17px;
      height: 17px;
      border-radius: 50%;
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.35);
      color: var(--color-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
      line-height: 1;
    }

    .info-tip-btn:active {
      transform: scale(0.97);
    }

    .info-tip-btn:hover,
    .info-tip-btn:focus,
    .info-tip-wrap:hover .info-tip-btn {
      background: var(--color-primary);
      color: #ffffff;
      border-color: var(--color-primary);
      box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
      transform: scale(1.08);
    }

    .info-tip-popover {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(18, 18, 22, 0.98);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(99, 102, 241, 0.4);
      border-radius: var(--radius-md);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
      color: var(--text-body);
      font-size: 0.725rem;
      font-weight: 450;
      line-height: 1.45;
      padding: 0.65rem 0.85rem;
      width: max-content;
      max-width: 250px;
      white-space: normal;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      z-index: 9999;
      text-align: left;
    }

    /* Option card info tooltip positioning so it doesn't cross right or left boundary */
    .option-card .info-tip-popover {
      left: auto;
      right: -8px;
      transform: translateY(4px);
    }

    .option-card .info-tip-popover::after {
      left: auto;
      right: 12px;
      transform: none;
    }

    .info-tip-popover::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 5px;
      border-style: solid;
      border-color: rgba(18, 18, 22, 0.98) transparent transparent transparent;
    }

    .info-tip-wrap:hover .info-tip-popover,
    .info-tip-btn:focus + .info-tip-popover {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    .option-card .info-tip-wrap:hover .info-tip-popover,
    .option-card .info-tip-btn:focus + .info-tip-popover {
      transform: translateY(0);
    }

    [data-theme="light"] .info-tip-popover {
      background: #ffffff;
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
      color: var(--text-heading);
    }

    [data-theme="light"] .info-tip-popover::after {
      border-color: #ffffff transparent transparent transparent;
    }

/* —— Marketing QA: hero + table overflow —— */
@media (max-width: 720px) {
  .hero-plan-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 0 1.15rem;
    gap: 1.25rem;
  }
  .currency-selector-box {
    align-items: stretch;
    width: 100%;
  }
  .currency-track {
    width: 100%;
    justify-content: stretch;
  }
  .currency-pill-btn {
    flex: 1;
    justify-content: center;
  }
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
}

.comparison-table-card {
  min-width: 720px;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.section-stack > section {
  min-width: 0;
}

.section-stack--page {
  padding: var(--page-stack-pad-y) 0 3.5rem;
}

.section-stack--page-top {
  padding: var(--page-stack-pad-y) 0 0;
}
