/* =========================================
   Samudra LMS — Plans & Pricing Page
   (header/footer rendered by Astra theme)
   ========================================= */

:root {
  --pp-primary:      #0f2385;
  --pp-primary-dark: #0a1a6a;
  --pp-ink:          #0f172a;
  --pp-body:         #475569;
  --pp-muted:        #64748b;
  --pp-faint:        #cbd5e1;
  --pp-border:       #e5e7eb;
  --pp-line:         #eef1f5;
  --pp-bg:           #ffffff;
  --pp-bg-soft:      #eff6ff;
  --pp-tint:         rgba(15, 35, 133, .045);
  --pp-radius:       14px;
  --pp-radius-sm:    10px;
}

/* ── Astra container override ───────────────────────────── */
body.pp-page #content,
body.pp-page #content.site-content { padding: 0 !important; width: 100% !important; }
body.pp-page .ast-container,
body.pp-page .site-content .ast-container,
body.pp-page #content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  display: block !important;
}
body.pp-page {
  overflow-x: hidden;
  background: var(--pp-bg);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scoped reset — beats Astra + Elementor global type ──── */
.pp-wrap { width: 100%; display: block; color: var(--pp-body); line-height: 1.55; }
.pp-wrap *, .pp-wrap *::before, .pp-wrap *::after { box-sizing: border-box; }
.pp-wrap a  { text-decoration: none; color: inherit; }
.pp-wrap ul { list-style: none; margin: 0; padding: 0; }
.pp-wrap h1, .pp-wrap h2, .pp-wrap h3, .pp-wrap p { margin: 0 !important; padding: 0; }
.pp-wrap h1, .pp-wrap h2, .pp-wrap h3 { color: var(--pp-ink); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }

.pp-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ══ HERO ═══════════════════════════════════════════════════ */

.pp-hero {
  background: var(--pp-bg-soft);
  border-bottom: 1px solid var(--pp-border);
  padding: 44px 0;
  text-align: center;
}
.pp-hero-title { font-size: clamp(28px, 3.4vw, 40px) !important; }
p.pp-hero-sub {
  margin: 12px auto 0 !important;
  max-width: 560px;
  font-size: 15px;
  color: var(--pp-muted);
}
.pp-hero > .pp-container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.pp-main { padding: 56px 0 80px; }
.pp-empty { padding: 48px 0; text-align: center; color: var(--pp-muted); }

/* ══ PLAN CARDS ════════════════════════════════════════════ */
.pp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 30px 26px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.pp-card.is-featured {
  border-color: var(--pp-primary);
  box-shadow: 0 12px 40px -14px rgba(15, 35, 133, .30);
  z-index: 1;
}
.pp-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pp-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.pp-card-head { min-height: 92px; }
.pp-card-name { font-size: 19px !important; font-weight: 700 !important; }
.pp-card-blurb {
  margin-top: 8px !important;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pp-muted);
}

.pp-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--pp-line);
}
.pp-card-amount { font-size: 38px !important; font-weight: 800; color: var(--pp-ink); line-height: 1; }
.pp-card-period { font-size: 13px; font-weight: 500; color: var(--pp-muted); }

.pp-card-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--pp-radius-sm);
  border: 1px solid var(--pp-primary);
  color: var(--pp-primary);
  background: var(--pp-bg);
  margin-bottom: 22px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.pp-card-btn:hover { background: var(--pp-primary); color: #fff; }
.pp-card-btn.is-primary { background: var(--pp-primary); color: #fff; }
.pp-card-btn.is-primary:hover {
  background: var(--pp-primary-dark);
  border-color: var(--pp-primary-dark);
  box-shadow: 0 8px 20px -6px rgba(15, 35, 133, .45);
}

.pp-card-list {
  margin-top: 22px;
  padding-top: 18px;
  /* border-top: 1px solid var(--pp-line); */
}
.pp-card-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 13.5px;
  color: var(--pp-muted);
}
.pp-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--pp-tint);
}
.pp-card-list li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  width: 12px;
  height: 4px;
  border-left: 1.6px solid var(--pp-primary);
  border-bottom: 1.6px solid var(--pp-primary);
  transform: rotate(-45deg);
}
.pp-card-list strong { color: var(--pp-ink); font-weight: 700; }

/* ══ FREE TRIAL BANNER ═══════════════════════════════════════ */
.pp-trial {
  margin-top: 48px;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--pp-bg-soft) 0%, #e4edfd 100%);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  text-align: center;
}
.pp-trial-title { font-size: 22px !important; font-weight: 800 !important; }
p.pp-trial-sub {
  margin: 10px auto 0 !important;
  /* max-width: 380px; */
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--pp-muted);
}
/* Specificity, not !important: .pp-wrap a's color:inherit is a class+element selector
   (0,1,1), which otherwise outranks a single-class .pp-trial-btn (0,1,0) and silently
   turned the button text the same navy as its own background. */
.pp-wrap .pp-trial-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--pp-radius-sm);
  background: var(--pp-primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 35, 133, .45);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pp-wrap .pp-trial-btn:hover {
  background: var(--pp-primary-dark);
  box-shadow: 0 8px 20px -6px rgba(15, 35, 133, .55);
  transform: translateY(-1px);
}

/* ══ COMPARE ═══════════════════════════════════════════════ */
.pp-compare { margin-top: 48px; }
.pp-compare-head { margin-bottom: 20px; }
.pp-compare-title { font-size: 24px !important; font-weight: 800 !important; }
.pp-compare-sub { margin-top: 6px !important; font-size: 14px; color: var(--pp-muted); }

.pp-table-wrap {
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  overflow: hidden;
}
.pp-table-scroll { overflow-x: auto; }
.pp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.pp-table th, .pp-table td {
  padding: 14px 18px;
  text-align: center;
  vertical-align: middle;
}
.pp-table thead th {
  background: var(--pp-bg);
  color: var(--pp-ink);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--pp-border);
}
.pp-table thead th.pp-th-label {
  text-align: left;
  width: 34%;
  color: var(--pp-muted);
  font-weight: 600;
}
.pp-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--pp-ink);
}
.pp-table tbody tr:not(.pp-row-group) > * { border-bottom: 1px solid var(--pp-line); }
.pp-table tbody tr:last-child > * { border-bottom: 0; }
.pp-table tbody tr:not(.pp-row-group):hover td:not(.is-col-featured),
.pp-table tbody tr:not(.pp-row-group):hover th { background: #fafbff; }

.pp-row-group th {
  background: var(--pp-primary);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pp-bg);
  padding: 10px 18px;
  border-bottom: 1px solid var(--pp-border);
}

.pp-table .is-col-featured { background: var(--pp-bg-soft); }
.pp-table thead th.is-col-featured { box-shadow: inset 0 3px 0 var(--pp-primary); }

.pp-tick { color: var(--pp-primary); font-weight: 700; font-size: 15px; }
.pp-dash { color: #f87171; font-weight: 700; font-size: 13px; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (min-width: 981px) {
  .pp-card.is-featured { transform: translateY(-10px); }
}
@media (max-width: 900px) {
  .pp-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pp-card-head { min-height: 0; }
  .pp-main { padding: 44px 0 64px; }
}
