/* ──────────────────────────────────────────────
   ProcureDesk PK — Landing Page Styles
   Extends /assets/css/styles.css
   Color system:
     --pd-green:  #047857  (emerald, primary action)
     --pd-green-2:#059669
     --pd-green-light: #d1fae5
     --navy: inherited #082b5f
     --gold:  inherited #d9961f
   ────────────────────────────────────────────── */

:root {
  --pd-green:       #047857;
  --pd-green-2:     #059669;
  --pd-green-light: #ecfdf5;
  --pd-green-glow:  rgba(4, 120, 87, 0.15);
  --pd-dark:        #061f46;
}

/* ── Nav badge for ProcureDesk link ── */
a.pd-nav-link {
  color: var(--pd-green) !important;
  border-bottom-color: var(--pd-green) !important;
}

/* ── Buttons ── */
.pd-btn-demo {
  background: var(--pd-green);
  color: #fff;
  font-size: 0.9rem;
}
.pd-btn-demo:hover,
.pd-btn-demo:focus {
  background: var(--pd-green-2);
}

.pd-btn-cta {
  background: var(--pd-green);
  color: #fff;
  font-weight: 800;
  gap: 8px;
}
.pd-btn-cta:hover,
.pd-btn-cta:focus {
  background: var(--pd-green-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(4, 120, 87, 0.3);
}

/* ── HERO ── */
.pd-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #061f46 0%, #082b5f 45%, #0a3570 100%);
  color: #fff;
  padding: 90px 0 100px;
}

.pd-hero-bg-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 50%, rgba(4, 120, 87, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217, 150, 31, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pd-hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.pd-hero-content p {
  color: #c8d9ef;
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 32px;
}

.pd-eyebrow {
  color: #6ee7b7 !important;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* Trust row stats */
.pd-trust-row {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pd-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #6ee7b7;
  line-height: 1;
}

.pd-stat-label {
  font-size: 0.8rem;
  color: #9ab4d2;
  font-weight: 600;
}

/* Hero visual — browser frame */
.pd-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-browser-frame {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 40px 80px rgba(4, 30, 70, 0.55),
    0 0 0 6px rgba(255,255,255,0.06);
  overflow: hidden;
  width: 100%;
  max-width: 580px;
  animation: pd-float 6s ease-in-out infinite;
}

@keyframes pd-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.pd-browser-bar {
  background: #f0f4f8;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dfe5ee;
}

.pd-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.pd-dot-r { background: #ff5f57; }
.pd-dot-y { background: #febc2e; }
.pd-dot-g { background: #28c840; }

.pd-url-bar {
  flex: 1;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #637083;
  margin-left: 6px;
}

.pd-browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── PROBLEM STRIP ── */
.pd-problem-strip {
  background: var(--navy);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pd-problem-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-problem-label {
  color: #9ab4d2;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin: 0;
}

.pd-problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-problem-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #c8d9ef;
  font-weight: 600;
}

/* ── FEATURES ── */
.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pd-feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(8, 43, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pd-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(8, 43, 95, 0.12);
  border-color: rgba(4, 120, 87, 0.35);
}

.pd-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--pd-green-light);
  color: var(--pd-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pd-feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.pd-feature-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.pd-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pd-feature-list li {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-feature-list li::before {
  content: "✓";
  color: var(--pd-green);
  font-weight: 900;
  font-size: 1rem;
}

/* ── HOW IT WORKS STEPS ── */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.pd-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 22px;
  position: relative;
  box-shadow: 0 4px 16px rgba(8, 43, 95, 0.06);
  margin: 0 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-step:first-child { margin-left: 0; }
.pd-step:last-child  { margin-right: 0; }

.pd-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(8, 43, 95, 0.1);
}

.pd-step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pd-green);
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.pd-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.pd-step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Connector arrow between steps */
.pd-step-connector {
  position: absolute;
  right: -20px;
  top: 36px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--pd-green), rgba(4,120,87,0.3));
  z-index: 2;
}

.pd-step-connector::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: rgba(4,120,87,0.5);
}

/* ── WHO IT'S FOR ── */
.pd-audience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: 0 4px 16px rgba(8, 43, 95, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pd-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(8, 43, 95, 0.1);
  border-color: rgba(4, 120, 87, 0.3);
}

.pd-audience-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 14px;
}

.pd-audience-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.pd-audience-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── WHY PANEL ── */
.pd-why-panel {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.pd-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pd-metric {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.pd-metric-val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #6ee7b7;
  line-height: 1.1;
  margin-bottom: 6px;
}

.pd-metric-desc {
  font-size: 0.82rem;
  color: #9ab4d2;
  line-height: 1.4;
}

/* ── PRICING ── */
.pd-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.pd-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(8, 43, 95, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(8, 43, 95, 0.12);
}

.pd-plan-featured {
  border-color: var(--pd-green);
  box-shadow: 0 0 0 2px var(--pd-green-light), 0 20px 50px rgba(4, 120, 87, 0.15);
}

.pd-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}

.pd-badge-starter   { background: var(--soft); color: var(--navy); }
.pd-badge-business  { background: var(--pd-green-light); color: var(--pd-green); }
.pd-badge-enterprise{ background: rgba(8,43,95,0.07); color: var(--navy); }

.pd-popular {
  background: var(--pd-green);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.pd-plan-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.pd-plan-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}

.pd-plan-price span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.pd-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.pd-plan-features li {
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-plan-features li::before {
  content: "✓";
  color: var(--pd-green);
  font-weight: 900;
}

.pd-plan-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ── CTA BAND ── */
.pd-cta-band {
  background: linear-gradient(130deg, #041526 0%, var(--pd-green) 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.pd-cta-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.pd-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.pd-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.pd-cta-inner p {
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-size: 1.05rem;
}

.pd-cta-inner .btn-outline {
  border-color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pd-hero {
    padding: 70px 0 80px;
  }
  .pd-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pd-step { margin: 0; }
  .pd-step-connector { display: none; }
  .pd-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pd-features-grid {
    grid-template-columns: 1fr;
  }
  .pd-steps {
    grid-template-columns: 1fr;
  }
  .pd-pricing-grid {
    grid-template-columns: 1fr;
  }
  .pd-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .pd-metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pd-problem-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-trust-row {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .pd-hero {
    padding: 54px 0 64px;
  }
  .pd-browser-frame {
    max-width: 100%;
  }
  .pd-metric-grid {
    grid-template-columns: 1fr;
  }
  .pd-pricing-grid {
    grid-template-columns: 1fr;
  }
  .pd-plan-featured {
    order: -1;
  }
}
