/* =========================================================
   Base Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================================
   Global
   ========================================================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6; /* light neutral */
  color: #111827;      /* primary text color */
  line-height: 1.65;
  font-size: 16px;     /* solid, readable base */
}

/* Visually hidden but accessible (for SEO/assistive tech) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.pb-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pb-section {
  padding: 3.5rem 0;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.pb-header {
  background: #111827; /* dark slate bar */
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 23, 42, 0.5);
}

.pb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.pb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.pb-logo-mark {
  background: #f97316;
  color: #111827;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-block;
}

.pb-logo-text {
  font-size: 1rem;
  color: #f9fafb;
}

.pb-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pb-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.pb-nav a:hover {
  background: rgba(249, 115, 22, 0.12);
  color: #fefce8;
}

/* Show current page more clearly */
.pb-nav a[aria-current="page"] {
  background: rgba(249, 115, 22, 0.18);
  color: #fefce8;
}

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.pb-hero {
  padding-top: 4.5rem;
  background: radial-gradient(circle at top left, #ffffff 0, #f3f4f6 45%, #e5e7eb 100%);
  border-bottom: 1px solid #e5e7eb;
}

/* Default: grid, overridden by page-level flex if needed */
.pb-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.pb-hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin-bottom: 0.85rem;
  color: #111827;
}

.pb-hero-copy p {
  max-width: 34rem;
  color: #1f2933; /* darker body text */
  font-size: 1rem;
}

.pb-hero-actions {
  margin: 1.7rem 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pb-hero-subtext {
  font-size: 0.9rem;
  color: #4b5563; /* small helper text */
}

/* =========================================================
   Buttons
   ========================================================= */
.pb-btn {
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pb-btn-primary {
  background: #f97316;
  color: #111827;
  border-color: #ea580c;
}

.pb-btn-primary:hover {
  background: #ea580c;
}

.pb-btn-ghost {
  border-color: transparent;
  color: #111827;
  background: transparent;
}

.pb-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

.pb-btn-secondary {
  border-color: #f97316;
  color: #f97316;
  background: transparent;
}

.pb-btn-secondary:hover {
  background: rgba(249, 115, 22, 0.1);
}

.pb-btn-small {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

/* =========================================================
   Hero Panel
   ========================================================= */
.pb-hero-panel {
  display: flex;
  justify-content: flex-end;
}

.pb-hero-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.pb-hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #111827;
}

/* =========================================================
   Tool List (Hero)
   ========================================================= */
.pb-tool-list {
  list-style: none;
  margin-bottom: 1rem;
}

.pb-tool-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.8);
  font-size: 0.95rem;
  color: #111827;
}

.pb-tool-list li:last-child {
  border-bottom: none;
}

.pb-tool-name {
  font-weight: 600;
}

.pb-tool-tag {
  color: #4b5563;
  font-size: 0.85rem;
}

/* =========================================================
   Text Links
   ========================================================= */
.pb-link {
  color: #ea580c;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(234, 88, 12, 0.45);
}

.pb-link:hover {
  border-bottom-color: rgba(234, 88, 12, 1);
}

/* =========================================================
   Section Headers
   ========================================================= */
.pb-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

.pb-section-header h1 {
  color: #111827;
}

.pb-section-header p {
  color: #1f2933;
  font-size: 1rem;
}

/* =========================================================
   Tools Section
   ========================================================= */
.pb-tools {
  background: #f9fafb;
}

.pb-tool-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pb-tool-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  color: #111827; /* ensure readable text */
  display: block;
}

.pb-tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.pb-tool-card p {
  font-size: 0.95rem;
  color: #1f2933;
  margin-bottom: 0.75rem;
}

.pb-tool-card span {
  color: #1f2933;
}

.pb-tool-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.8rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pb-tool-card-muted {
  opacity: 0.97;
  border-style: dashed;
}

/* =========================================================
   About
   ========================================================= */
.pb-about {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.pb-about-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.pb-about-inner h2 {
  margin-bottom: 0.7rem;
  color: #111827;
}

.pb-about-inner p {
  color: #1f2933;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.pb-pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pb-pill-list li {
  background: #f9fafb;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
  color: #111827;
}

/* =========================================================
   FAQ
   ========================================================= */
.pb-faq {
  background: #f9fafb;
}

.pb-faq-item {
  margin-bottom: 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem;
  background: #ffffff;
}

.pb-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

.pb-faq-item p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  color: #1f2933;
}

/* =========================================================
   Badges (readability labels, etc.)
   ========================================================= */
.pb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.pb-badge-muted {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #4b5563;
}

.pb-badge-good {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.9);
  color: #166534;
}

.pb-badge-ok {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.9);
  color: #1d4ed8;
}

.pb-badge-warn {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.9);
  color: #854d0e;
}

.pb-badge-bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.9);
  color: #b91c1c;
}

/* =========================================================
   Stats / helper text (used in tools)
   ========================================================= */
.pb-stat-label {
  font-size: 0.8rem;
  color: #4b5563;      /* darker than before, but still secondary */
}

.pb-stat-value {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
}

.pb-stat-value-large {
  font-size: 1.05rem;
  color: #111827;
  font-weight: 700;
}

/* Tiny helper text under inputs, etc. */
.pb-helper-text {
  font-size: 0.8rem;
  color: #4b5563;
}

.pb-helper-text-secondary {
  font-size: 0.85rem;
  color: #374151;
}

/* =========================================================
   Footer
   ========================================================= */
.pb-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  background: #111827;
  padding: 1.2rem 0;
}

.pb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.pb-footer-links {
  display: flex;
  gap: 1rem;
}

.pb-footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.85rem;
}

.pb-footer-links a:hover {
  color: #f97316;
}

/* =========================================================
   Responsive Tweaks (Mobile-first UX)
   ========================================================= */
@media (max-width: 768px) {
  /* Header & nav: stacked, still usable on phones */
  .pb-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .pb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Hero: single column */
  .pb-hero-inner {
    grid-template-columns: 1fr;
  }

  /* About: stack content */
  .pb-about-inner {
    flex-direction: column;
  }

  /* Footer: stack on small screens */
  .pb-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
