/* ============================================
   ProsperBot Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --pb-primary: #1a6b3c;
  --pb-primary-hover: #155a31;
  --pb-primary-light: #e8f5ee;
  --pb-bg: #ffffff;
  --pb-bg-alt: #f8f9fa;
  --pb-text-heading: #1a1a2e;
  --pb-text-body: #555555;
  --pb-text-muted: #888888;
  --pb-border: #e0e0e0;
  --pb-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --pb-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --pb-radius: 8px;
  --pb-radius-lg: 12px;
  --pb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pb-max-width: 1140px;
}

/* --- Base Reset & Typography --- */
body {
  font-family: var(--pb-font);
  color: var(--pb-text-body);
  background: var(--pb-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pb-text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* --- Navbar --- */
.pb-navbar {
  background: var(--pb-bg);
  border-bottom: 1px solid var(--pb-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.pb-navbar .container {
  max-width: var(--pb-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pb-navbar .pb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pb-text-heading);
}

.pb-navbar .pb-logo svg {
  width: 28px;
  height: 28px;
}

.pb-navbar .pb-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pb-navbar .pb-nav-links a {
  color: var(--pb-text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.pb-navbar .pb-nav-links a:hover {
  color: var(--pb-primary);
}

/* Hamburger menu for mobile */
.pb-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--pb-text-heading);
}

@media (max-width: 768px) {
  .pb-hamburger { display: block; }
  .pb-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pb-bg);
    border-bottom: 1px solid var(--pb-border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .pb-nav-links.open { display: flex; }
}

/* --- Buttons --- */
.pb-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--pb-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.pb-btn-primary,
a.pb-btn-primary {
  background: var(--pb-primary);
  color: #fff !important;
  border-color: var(--pb-primary);
}

.pb-btn-primary:hover,
a.pb-btn-primary:hover {
  background: var(--pb-primary-hover);
  border-color: var(--pb-primary-hover);
  color: #fff !important;
  text-decoration: none;
}

.pb-btn-outline {
  background: transparent;
  color: var(--pb-primary);
  border-color: var(--pb-primary);
}

.pb-btn-outline:hover {
  background: var(--pb-primary);
  color: #fff;
  text-decoration: none;
}

.pb-btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* --- Sections --- */
.pb-section {
  padding: 5rem 1.5rem;
}

.pb-section-alt {
  background: var(--pb-bg-alt);
}

.pb-section .container {
  max-width: var(--pb-max-width);
  margin: 0 auto;
}

.pb-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pb-section-header p {
  font-size: 1.15rem;
  color: var(--pb-text-muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --- Cards --- */
.pb-card {
  background: var(--pb-bg);
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow);
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.pb-card:hover {
  box-shadow: var(--pb-shadow-hover);
}

/* --- Footer --- */
.pb-footer {
  background: var(--pb-text-heading);
  color: #ccc;
  padding: 3rem 1.5rem;
  font-size: 0.9rem;
}

.pb-footer .container {
  max-width: var(--pb-max-width);
  margin: 0 auto;
}

.pb-footer a {
  color: #ccc;
  text-decoration: underline;
}

.pb-footer a:hover {
  color: #fff;
}

.pb-footer .pb-footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pb-footer .pb-disclaimer {
  color: #999;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
}

.pb-footer-copy {
  color: #777;
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.pb-wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pb-text-heading);
}

/* --- Hero --- */
.pb-hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(165deg, #f0faf4 0%, #f8f9fa 50%, #eef2ff 100%);
}

.pb-hero .container {
  max-width: var(--pb-max-width);
  margin: 0 auto;
}

.pb-hero h1 {
  margin-bottom: 1.25rem;
}

.pb-hero p {
  font-size: 1.25rem;
  color: var(--pb-text-body);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .pb-hero { padding: 4rem 1.5rem 3rem; }
  .pb-hero p { font-size: 1.1rem; }
}

/* --- Steps --- */
.pb-steps {
  counter-reset: step;
}

.pb-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.pb-step-number {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pb-step h3 {
  margin-bottom: 0.25rem;
}

.pb-step p {
  margin: 0;
  color: var(--pb-text-muted);
}

/* --- Money Flow Diagram --- */
.pb-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pb-flow-step {
  padding: 1rem 1.25rem;
  border-radius: var(--pb-radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 140px;
}

.pb-flow-step small {
  display: block;
  font-weight: 400;
  color: var(--pb-text-muted);
  margin-top: 0.25rem;
}

.pb-flow-arrow {
  font-size: 1.5rem;
  color: var(--pb-primary);
}

@media (max-width: 768px) {
  .pb-flow { flex-direction: column; }
  .pb-flow-arrow { transform: rotate(90deg); }
}

/* --- Pricing Cards --- */
.pb-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.pb-pricing .pb-card {
  text-align: center;
  position: relative;
}

.pb-pricing .pb-card.featured {
  border: 2px solid var(--pb-primary);
}

.pb-pricing .pb-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pb-primary);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.pb-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--pb-text-muted);
}

/* --- FAQ Accordion --- */
.pb-faq-item {
  border-bottom: 1px solid var(--pb-border);
  padding: 1.25rem 0;
}

.pb-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--pb-text-heading);
  font-size: 1.05rem;
}

.pb-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--pb-primary);
  transition: transform 0.2s;
}

.pb-faq-item.open .pb-faq-q::after {
  content: '−';
}

.pb-faq-a {
  display: none;
  padding-top: 0.75rem;
  color: var(--pb-text-body);
  line-height: 1.7;
}

.pb-faq-item.open .pb-faq-a {
  display: block;
}

/* --- Testimonials --- */
.pb-testimonial {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pb-text-heading);
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--pb-primary);
}

.pb-testimonial-author {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--pb-text-muted);
  margin-top: 0.5rem;
}

/* --- Two-column layout --- */
.pb-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pb-two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Utilities --- */
.pb-text-center {
  text-align: center;
}

.pb-muted-note {
  text-align: center;
  color: var(--pb-text-muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.pb-centered-note {
  text-align: center;
  color: var(--pb-text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.pb-cta-final {
  text-align: center;
}

.pb-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pb-section-subtitle {
  font-size: 1.1rem;
  color: var(--pb-text-muted);
  margin-top: 0.5rem;
}
