/* ============================================================
   PolicyDoctor — Premium Pricing Page (approved desktop design)
   Page-specific stylesheet loaded only on the /pricing route.
   Scoped under .pd-pricing to avoid affecting other pages.
   ============================================================ */

.pd-pricing {
  --p-bg: #050a12;
  --p-bg-2: #070d18;
  --p-panel: #0d1626;
  --p-panel-2: #101c30;
  --p-panel-3: #0b1322;
  --p-border: rgba(120, 160, 210, 0.10);
  --p-border-green: rgba(62, 207, 142, 0.22);
  --p-border-green-soft: rgba(62, 207, 142, 0.12);
  --p-green: #3ecf8e;
  --p-green-bright: #4ade80;
  --p-green-dim: #2ea876;
  --p-green-glow: rgba(62, 207, 142, 0.10);
  --p-text: #f2f5f9;
  --p-text-soft: #c3ccd8;
  --p-text-mute: #8b98ab;
  --p-text-faint: #64718a;
  --p-amber: #e8b54d;
  --p-radius: 14px;
  --p-radius-lg: 20px;
  --p-font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  width: 100%;
  font-family: var(--p-font);
  background: var(--p-bg);
  color: var(--p-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;

  /* ambient background gradients */
  position: relative;
}

.pd-pricing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 50% -120px, rgba(30, 58, 95, 0.32), transparent 62%),
    radial-gradient(900px 500px at 85% 8%, rgba(20, 44, 74, 0.20), transparent 60%),
    linear-gradient(180deg, #050a12 0%, #060b14 40%, #050a12 100%);
}

.pd-pricing *,
.pd-pricing *::before,
.pd-pricing *::after {
  box-sizing: border-box;
}

.pd-pricing a { color: inherit; text-decoration: none; }

/* ---------- Wrap ---------- */
.pd-pricing .pdp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Eyebrow ---------- */
.pd-pricing .pdp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-green);
}

.pd-pricing .pdp-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-green);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.7);
}

/* ---------- Sections & Dividers ---------- */
.pd-pricing .pdp-section {
  padding: 88px 0;
}

.pd-pricing .pdp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-border) 20%, var(--p-border) 80%, transparent);
  max-width: 1180px;
  margin: 0 auto;
}

.pd-pricing .pdp-section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.pd-pricing .pdp-section-head.pdp-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pd-pricing .pdp-section-head h2 {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--p-text);
}

.pd-pricing .pdp-section-head p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--p-text-mute);
}

/* ---------- Pill ---------- */
.pd-pricing .pdp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--p-text-soft);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.06);
  border: 1px solid var(--p-border-green-soft);
}

.pd-pricing .pdp-pill .pdp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-green);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.6);
}

.pd-pricing .pdp-pill.pdp-muted {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--p-border);
  color: var(--p-text-mute);
}

.pd-pricing .pdp-pill.pdp-muted .pdp-dot {
  background: #5a6a82;
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.pd-pricing .pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--p-font);
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .18s ease, border-color .18s ease;
  border: none;
}

.pd-pricing .pdp-btn-primary {
  font-size: 14px;
  color: #04150c;
  padding: 9px 20px;
  background: linear-gradient(180deg, #56e39a, #38c982);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 22px rgba(62, 207, 142, 0.22);
}

.pd-pricing .pdp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 28px rgba(62, 207, 142, 0.30);
}

.pd-pricing .pdp-btn-lg {
  font-size: 16px;
  padding: 16px 34px;
  border-radius: 12px;
}

.pd-pricing .pdp-btn-block {
  width: 100%;
}

.pd-pricing .pdp-btn-ghost {
  font-size: 14px;
  color: var(--p-text-soft);
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--p-border);
}

.pd-pricing .pdp-btn-ghost:hover {
  border-color: rgba(120, 160, 210, 0.25);
  color: var(--p-text);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Hero ---------- */
.pd-pricing .pdp-hero {
  padding: 104px 0 88px;
  text-align: center;
  position: relative;
}

.pd-pricing .pdp-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  width: 760px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.07), transparent 70%);
}

.pd-pricing .pdp-hero h1 {
  margin: 22px auto 18px;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 760px;
  color: var(--p-text);
}

.pd-pricing .pdp-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #e9f7f0, #9fe8c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-pricing .pdp-hero p {
  font-size: 17.5px;
  color: var(--p-text-mute);
  max-width: 640px;
  margin: 0 auto;
}

.pd-pricing .pdp-hero-badges {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Offer Layout ---------- */
.pd-pricing .pdp-offer {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}

.pd-pricing .pdp-offer-copy h3 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--p-text);
}

.pd-pricing .pdp-offer-copy p {
  color: var(--p-text-mute);
  font-size: 16px;
  margin-bottom: 14px;
}

.pd-pricing .pdp-offer-note {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--p-panel-3);
  border: 1px solid var(--p-border);
  font-size: 14.5px;
  color: var(--p-text-soft);
}

.pd-pricing .pdp-offer-note strong {
  color: var(--p-green);
  font-weight: 600;
}

/* ---------- Price Card ---------- */
.pd-pricing .pdp-price-card {
  position: relative;
  border-radius: var(--p-radius-lg);
  background: linear-gradient(180deg, var(--p-panel-2), var(--p-panel) 55%);
  border: 1px solid var(--p-border-green);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.04), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(62, 207, 142, 0.05);
  padding: 42px 44px;
  overflow: hidden;
}

.pd-pricing .pdp-price-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 142, 0.55), transparent);
}

.pd-pricing .pdp-price-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.09), transparent 70%);
  pointer-events: none;
}

.pd-pricing .pdp-price-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pd-pricing .pdp-price {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 18px;
  color: var(--p-text);
}

.pd-pricing .pdp-price-sub {
  font-size: 15px;
  color: var(--p-text-mute);
  margin-top: 10px;
}

.pd-pricing .pdp-price-hr {
  height: 1px;
  background: var(--p-border);
  margin: 26px 0;
}

.pd-pricing .pdp-renewal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.pd-pricing .pdp-renewal-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--p-text-soft);
}

.pd-pricing .pdp-renewal-row .pdp-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--p-green-glow);
  border: 1px solid var(--p-border-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-green);
  align-self: center;
}

.pd-pricing .pdp-renewal-row .pdp-check svg {
  width: 10px;
  height: 10px;
}

.pd-pricing .pdp-renewal-row strong {
  color: var(--p-text);
  font-weight: 600;
}

.pd-pricing .pdp-price-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--p-text-faint);
}

.pd-pricing .pdp-price-foot a {
  color: var(--p-text-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(139, 152, 171, 0.4);
}

.pd-pricing .pdp-price-foot a:hover {
  color: var(--p-text);
}

/* ---------- Included Grid ---------- */
.pd-pricing .pdp-included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pd-pricing .pdp-inc-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--p-radius);
  background: linear-gradient(180deg, var(--p-panel), var(--p-panel-3));
  border: 1px solid var(--p-border);
  transition: border-color .2s ease, transform .18s ease, box-shadow .25s ease;
}

.pd-pricing .pdp-inc-row:hover {
  border-color: var(--p-border-green-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.pd-pricing .pdp-inc-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(62, 207, 142, 0.14), rgba(62, 207, 142, 0.04));
  border: 1px solid var(--p-border-green-soft);
  color: var(--p-green);
}

.pd-pricing .pdp-inc-icon svg {
  width: 18px;
  height: 18px;
}

.pd-pricing .pdp-inc-row h4 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 5px;
  color: var(--p-text);
}

.pd-pricing .pdp-inc-row p {
  font-size: 14px;
  color: var(--p-text-mute);
}

.pd-pricing .pdp-inc-status {
  margin-left: auto;
  flex: none;
  align-self: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--p-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--p-green-glow);
  border: 1px solid var(--p-border-green-soft);
  white-space: nowrap;
}

.pd-pricing .pdp-inc-status .pdp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-green);
}

/* ---------- Process Steps ---------- */
.pd-pricing .pdp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pd-pricing .pdp-step {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--p-radius);
  background: linear-gradient(180deg, var(--p-panel), var(--p-panel-3));
  border: 1px solid var(--p-border);
}

.pd-pricing .pdp-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--p-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-pricing .pdp-step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--p-border-green-soft);
}

.pd-pricing .pdp-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--p-text);
}

.pd-pricing .pdp-step p {
  font-size: 13px;
  color: var(--p-text-mute);
}

/* ---------- Why Structured ---------- */
.pd-pricing .pdp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pd-pricing .pdp-why-card {
  padding: 28px 26px;
  border-radius: var(--p-radius);
  background: linear-gradient(180deg, var(--p-panel), var(--p-panel-3));
  border: 1px solid var(--p-border);
}

.pd-pricing .pdp-why-card .pdp-inc-icon {
  margin-bottom: 18px;
}

.pd-pricing .pdp-why-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--p-text);
}

.pd-pricing .pdp-why-card p {
  font-size: 14px;
  color: var(--p-text-mute);
}

/* ---------- Billing Clarity ---------- */
.pd-pricing .pdp-billing-panel {
  border-radius: var(--p-radius-lg);
  background: linear-gradient(180deg, var(--p-panel-2), var(--p-panel) 60%);
  border: 1px solid var(--p-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pd-pricing .pdp-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  border-bottom: 1px solid var(--p-border);
  background: rgba(255, 255, 255, 0.015);
}

.pd-pricing .pdp-billing-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--p-text);
}

.pd-pricing .pdp-billing-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.pd-pricing .pdp-bill-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 34px;
  border-bottom: 1px solid var(--p-border);
}

.pd-pricing .pdp-bill-row:nth-child(odd) {
  border-right: 1px solid var(--p-border);
}

.pd-pricing .pdp-bill-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.pd-pricing .pdp-bill-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-green-glow);
  border: 1px solid var(--p-border-green-soft);
  color: var(--p-green);
}

.pd-pricing .pdp-bill-icon svg {
  width: 15px;
  height: 15px;
}

.pd-pricing .pdp-bill-row .pdp-bill-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-text-faint);
  margin-bottom: 4px;
}

.pd-pricing .pdp-bill-row .pdp-bill-value {
  font-size: 15px;
  color: var(--p-text-soft);
}

.pd-pricing .pdp-bill-row .pdp-bill-value strong {
  color: var(--p-text);
  font-weight: 600;
}

/* ---------- Scope Panel ---------- */
.pd-pricing .pdp-scope-panel {
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border);
  background: linear-gradient(180deg, var(--p-panel-3), #080e1a);
  padding: 38px 42px;
}

.pd-pricing .pdp-scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  margin-top: 26px;
}

.pd-pricing .pdp-scope-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--p-text-soft);
}

.pd-pricing .pdp-scope-item .pdp-mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--p-border);
  color: var(--p-text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-pricing .pdp-scope-item .pdp-mark svg {
  width: 9px;
  height: 9px;
}

/* ---------- Final CTA ---------- */
.pd-pricing .pdp-final {
  text-align: center;
  padding: 110px 0;
  position: relative;
}

.pd-pricing .pdp-final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 460px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.08), transparent 70%);
}

.pd-pricing .pdp-final h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 640px;
  margin: 0 auto 18px;
  position: relative;
  color: var(--p-text);
}

.pd-pricing .pdp-final p {
  font-size: 16.5px;
  color: var(--p-text-mute);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}

.pd-pricing .pdp-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
}

.pd-pricing .pdp-final-actions .pdp-link {
  font-size: 14.5px;
  color: var(--p-text-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s;
}

.pd-pricing .pdp-final-actions .pdp-link:hover {
  color: var(--p-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .pd-pricing .pdp-offer {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-pricing .pdp-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-pricing .pdp-why-grid {
    grid-template-columns: 1fr;
  }

  .pd-pricing .pdp-included-grid {
    grid-template-columns: 1fr;
  }

  .pd-pricing .pdp-billing-rows {
    grid-template-columns: 1fr;
  }

  .pd-pricing .pdp-bill-row:nth-child(odd) {
    border-right: none;
  }

  .pd-pricing .pdp-bill-row {
    border-bottom: 1px solid var(--p-border);
  }

  .pd-pricing .pdp-bill-row:last-child {
    border-bottom: none;
  }

  .pd-pricing .pdp-scope-list {
    grid-template-columns: 1fr;
  }

  .pd-pricing .pdp-hero h1 {
    font-size: 40px;
  }
}

/* ============================================================
   Mobile — two-section pricing page
   ============================================================ */

/* Default: hide mobile, show desktop */
.pd-mobile-pricing { display: none; }

@media (max-width: 720px) {
  /* Swap visibility */
  .pd-desktop-pricing { display: none; }
  .pd-mobile-pricing { display: block; }

  /* Hide desktop dividers */
  .pd-pricing .pdp-divider { display: none; }

  /* ── Mobile section layout ── */
  .pd-pricing .pdp-m-section {
    padding: 48px 0;
  }

  .pd-pricing .pdp-m-section-alt {
    background: var(--p-bg-2);
    border-top: 1px solid var(--p-border);
    border-bottom: 1px solid var(--p-border);
  }

  .pd-pricing .pdp-m-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ── Section 1: Price and Checkout ── */
  .pd-pricing .pdp-m-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p-green);
    margin-bottom: 16px;
  }

  .pd-pricing .pdp-m-price {
    font-size: 56px;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--p-text);
    margin-bottom: 8px;
  }

  .pd-pricing .pdp-m-subhead {
    font-size: 15px;
    color: var(--p-text-soft);
    margin-bottom: 22px;
  }

  .pd-pricing .pdp-m-billing {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pd-pricing .pdp-m-billing li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--p-text-soft);
    padding: 10px 14px;
    background: var(--p-panel);
    border: 1px solid var(--p-border);
    border-radius: 10px;
  }

  .pd-pricing .pdp-m-billing li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p-green);
    flex: none;
  }

  .pd-pricing .pdp-m-legal {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--p-text-mute);
    line-height: 1.55;
  }

  .pd-pricing .pdp-m-legal a {
    color: var(--p-green);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .pd-pricing .pdp-m-legal a:hover {
    color: var(--p-green-bright);
  }

  /* ── Section 2: What Is Included ── */
  .pd-pricing .pdp-m-heading {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin-bottom: 22px;
  }

  .pd-pricing .pdp-m-include-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .pd-pricing .pdp-m-include-row {
    padding: 18px 18px;
    background: var(--p-panel);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
  }

  .pd-pricing .pdp-m-include-row h3 {
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 5px;
  }

  .pd-pricing .pdp-m-include-row p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--p-text-soft);
    margin: 0;
  }

  .pd-pricing .pdp-m-boundary {
    padding: 16px 18px;
    background: var(--p-panel-3);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    font-size: 13px;
    line-height: 1.6;
    color: var(--p-text-mute);
  }
}
