@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800;900&display=swap');

/* IFP Design System — Premium Pricing Theme */
:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --muted: #6b7280;
    --text: #111827;
    --line: #e5e7eb;
    /* More marked for better definition */
    --line-active: #d1d5db;
    --brand: #111827;

    /* Premium Shadows — Soft & Diffuse */
    --shadow-base: 0 1px 3px rgba(17, 24, 39, .07);
    --shadow-md: 0 6px 16px rgba(17, 24, 39, .06);
    --shadow-lg: 0 10px 40px rgba(17, 24, 39, .1);

    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pricing-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.container {
    width: min(1520px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header — Glassmorphism & Pro */
.pricing-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

.logo i {
    font-size: 1.5rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--muted);
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

/* Pricing Hero — Pro & Compact */
.pricing-hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--muted);
    margin: 0 auto 32px;
    max-width: 520px;
}

/* Billing Toggle — Minimalist */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 700;
}

.save-badge {
    background: #fff;
    color: var(--brand);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--line-active);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f3f4f6;
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--line);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--brand);
    border-color: var(--brand);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Pricing Cards — Premium Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 80px;
    align-items: start;
}

.pricing-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-active);
}

.pricing-card.popular {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.pricing-card.popular:hover {
    transform: translateY(-14px);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
}

.card-header {
    margin-bottom: 24px;
    text-align: center;
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.price-box {
    margin-bottom: 8px;
}

.amount {
    font-size: 38px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

.period {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15.5px;
    color: var(--text);
}

.feature i {
    color: var(--brand);
    font-size: 14px;
}

/* Plan Buttons */
.btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-plan-primary {
    background: var(--brand);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-plan-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-plan-outline {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
}

.btn-plan-outline:hover {
    background: #f9fafb;
    border-color: var(--brand);
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        margin: 0 auto;
    }
}

/* ===== POD Intelligence pricing layout fix ===== */
.pricing-section .container {
  max-width: 1440px;
}

.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.pricing-card {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

/* ===== POD pricing compact desktop refinement ===== */
@media (min-width: 1201px) {
  .pricing-grid {
    gap: 18px !important;
  }

  .pricing-card {
    padding: 34px 22px !important;
    border-radius: 14px !important;
  }

  .pricing-card.popular {
    transform: translateY(-6px) !important;
  }

  .pricing-card.popular:hover {
    transform: translateY(-10px) !important;
  }

  .plan-name {
    font-size: 28px !important;
  }

  .price-box .amount {
    font-size: 44px !important;
    line-height: 1 !important;
  }

  .price-box .period {
    font-size: 15px !important;
  }

  .features-list {
    gap: 10px !important;
  }

  .feature {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .btn-plan {
    min-height: 46px !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
}

/* ===== FINAL desktop no-overlap pricing fix ===== */
@media (min-width: 1201px) {
  .pricing-section .container {
    max-width: 1600px !important;
    width: min(1600px, calc(100% - 48px)) !important;
  }

  .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .pricing-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 18px !important;
    box-sizing: border-box !important;
  }

  .pricing-card.popular {
    transform: none !important;
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px) !important;
  }

  .card-header,
  .features-list,
  .btn-plan {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .price-box .amount {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .plan-name {
    font-size: 16px !important;
  }

  .feature {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .btn-plan {
    padding: 10px 12px !important;
    font-size: 13px !important;
    min-height: 42px !important;
  }
}
