/* Proofglint — pgl.css
   Palette: deep slate #141B26 + calibration green #22C55E
   Fonts: Manrope (display) + Inter Tight (body) + JetBrains Mono (mono)
*/

/* ===================== TOKENS ===================== */
:root {
  --pgl-dark:           #141B26;
  --pgl-dark-alt:       #1C2637;
  --pgl-light:          #F4F5F7;
  --pgl-light-alt:      #EBEEF2;
  --pgl-white:          #FFFFFF;

  --pgl-green:          #22C55E;
  --pgl-green-aa:       #15803D;

  --pgl-fg-dark-1:      #EEF2F7;
  --pgl-fg-dark-2:      #94A3B8;
  --pgl-fg-light-1:     #0F172A;
  --pgl-fg-light-2:     #4B5563;

  --pgl-border-light:   #D1D5DB;
  --pgl-border-dark:    #2E3A4E;

  --pgl-radius-card:    8px;
  --pgl-radius-btn:     6px;

  --pgl-font-display:   'Manrope', sans-serif;
  --pgl-font-body:      'Inter Tight', sans-serif;
  --pgl-font-mono:      'JetBrains Mono', monospace;

  --pgl-container:      1200px;
  --pgl-section-v:      96px;
  --pgl-section-v-sm:   64px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--pgl-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pgl-fg-light-1);
  background: var(--pgl-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ===================== LAYOUT ===================== */
.pgl-container {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 {
  font-family: var(--pgl-font-display);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.pgl-eyebrow {
  font-family: var(--pgl-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.pgl-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--pgl-fg-light-2);
  max-width: 640px;
}

/* On dark containers */
.pgl-section--dark .pgl-eyebrow,
.pgl-section--dark-alt .pgl-eyebrow { color: var(--pgl-green); }
.pgl-section--light .pgl-eyebrow,
.pgl-section--white .pgl-eyebrow,
.pgl-section--light-alt .pgl-eyebrow { color: var(--pgl-green-aa); }

.pgl-section--dark h1,
.pgl-section--dark h2,
.pgl-section--dark h3,
.pgl-section--dark-alt h1,
.pgl-section--dark-alt h2,
.pgl-section--dark-alt h3 { color: var(--pgl-fg-dark-1); }

.pgl-section--dark p,
.pgl-section--dark-alt p { color: var(--pgl-fg-dark-2); }

.pgl-section--dark .pgl-lead,
.pgl-section--dark-alt .pgl-lead { color: var(--pgl-fg-dark-2); }

.pgl-section--light h2,
.pgl-section--light h3,
.pgl-section--light-alt h2,
.pgl-section--light-alt h3,
.pgl-section--white h2,
.pgl-section--white h3 { color: var(--pgl-fg-light-1); }

/* ===================== SECTION BACKGROUNDS ===================== */
.pgl-section--dark     { background: var(--pgl-dark); }
.pgl-section--dark-alt { background: var(--pgl-dark-alt); }
.pgl-section--light    { background: var(--pgl-light); }
.pgl-section--light-alt{ background: var(--pgl-light-alt); }
.pgl-section--white    { background: var(--pgl-white); }

.pgl-section {
  padding-block: var(--pgl-section-v);
}

/* ===================== NAV ===================== */
.pgl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}
.pgl-nav--scrolled {
  background: var(--pgl-dark);
  box-shadow: 0 1px 0 var(--pgl-border-dark);
}

.pgl-nav__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.pgl-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pgl-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 200px;
}

.pgl-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 1;
  justify-content: center;
}

.pgl-nav__item { position: relative; }

.pgl-nav__link {
  font-family: var(--pgl-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pgl-fg-dark-2);
  padding: 8px 14px;
  border-radius: 5px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-family: var(--pgl-font-body);
  font-size: 0.9rem;
  font-weight: 500;
}
.pgl-nav__link:hover,
.pgl-nav__link:focus { color: var(--pgl-fg-dark-1); }

.pgl-nav__link .pgl-nav__chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.pgl-nav__item.is-open > .pgl-nav__link .pgl-nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.pgl-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--pgl-dark);
  border: 1px solid var(--pgl-border-dark);
  border-radius: var(--pgl-radius-card);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 110;
}
.pgl-nav__item.is-open > .pgl-nav__dropdown,
.pgl-nav__item:hover > .pgl-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pgl-nav__dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--pgl-fg-dark-2);
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  font-weight: 400;
}
.pgl-nav__dropdown a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--pgl-fg-dark-1);
}

/* Light-top page: nav forced solid */
body.pgl-page--light-top .pgl-nav {
  background: var(--pgl-dark);
}
body.pgl-page--light-top .pgl-nav__dropdown {
  background: var(--pgl-dark);
  border-color: var(--pgl-border-dark);
}
body.pgl-page--light-top .pgl-nav__dropdown a { color: var(--pgl-fg-dark-2); }
body.pgl-page--light-top .pgl-nav__dropdown a:hover { color: var(--pgl-fg-dark-1); background: rgba(255,255,255,0.07); }

/* Nav CTA buttons */
.pgl-nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.pgl-btn-signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pgl-fg-dark-2);
  padding: 8px 14px;
  transition: color 0.15s;
  font-family: var(--pgl-font-body);
}
.pgl-btn-signin:hover { color: var(--pgl-fg-dark-1); }

.pgl-btn-demo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pgl-dark);
  background: var(--pgl-green);
  padding: 9px 18px;
  border-radius: var(--pgl-radius-btn);
  transition: opacity 0.15s;
  white-space: nowrap;
  font-family: var(--pgl-font-body);
}
.pgl-btn-demo:hover { opacity: 0.88; }

/* Mobile hamburger */
.pgl-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.pgl-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pgl-fg-dark-1);
  transition: transform 0.25s, opacity 0.25s;
}
.pgl-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pgl-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.pgl-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.pgl-nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--pgl-dark);
  z-index: 99;
  padding: 100px 32px 40px;
  overflow-y: auto;
}
.pgl-nav__mobile-menu.is-open { display: block; }
.pgl-nav__mobile-menu a {
  display: block;
  color: var(--pgl-fg-dark-1);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--pgl-border-dark);
  font-family: var(--pgl-font-display);
}
.pgl-nav__mobile-menu a:hover { color: var(--pgl-green); }
.pgl-nav__mobile-menu .pgl-btn-demo {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  font-size: 1rem;
}

/* ===================== BUTTONS ===================== */
.pgl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pgl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--pgl-radius-btn);
  padding: 12px 24px;
  transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.pgl-btn--primary {
  background: var(--pgl-green);
  color: var(--pgl-dark);
  border-color: var(--pgl-green);
}
.pgl-btn--primary:hover { opacity: 0.88; }

.pgl-btn--ghost {
  background: transparent;
  color: var(--pgl-fg-dark-1);
  border-color: var(--pgl-border-dark);
}
.pgl-btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--pgl-fg-dark-2);
}

/* Ghost on light sections */
.pgl-section--light .pgl-btn--ghost,
.pgl-section--white .pgl-btn--ghost,
.pgl-section--light-alt .pgl-btn--ghost {
  color: var(--pgl-fg-light-1);
  border-color: var(--pgl-border-light);
}
.pgl-section--light .pgl-btn--ghost:hover,
.pgl-section--white .pgl-btn--ghost:hover,
.pgl-section--light-alt .pgl-btn--ghost:hover {
  background: var(--pgl-light-alt);
  border-color: var(--pgl-fg-light-2);
}

.pgl-btn--outline-light {
  background: transparent;
  color: var(--pgl-fg-dark-1);
  border-color: rgba(255,255,255,0.25);
}
.pgl-btn--outline-light:hover { border-color: rgba(255,255,255,0.5); }

/* ===================== HERO ===================== */
.pgl-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--pgl-dark);
  padding-top: 68px;
}
.pgl-hero__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  padding-block: 80px 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pgl-hero__content h1 { color: var(--pgl-fg-dark-1); margin-bottom: 20px; }
.pgl-hero__content .pgl-lead { color: var(--pgl-fg-dark-2); margin-bottom: 36px; max-width: 560px; }
.pgl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pgl-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pgl-hero__visual svg { max-width: 100%; border-radius: var(--pgl-radius-card); }

/* Sub-page hero (lighter weight, not full-vh) */
.pgl-subhero {
  background: var(--pgl-dark);
  padding-top: 68px;
}
.pgl-subhero__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  padding-block: 72px 80px;
}
.pgl-subhero--centered { text-align: center; }
.pgl-subhero--centered .pgl-lead { margin-inline: auto; }
.pgl-subhero__content h1 { color: var(--pgl-fg-dark-1); margin-bottom: 16px; }
.pgl-subhero__content .pgl-lead { color: var(--pgl-fg-dark-2); margin-bottom: 32px; }
.pgl-subhero__stat-band {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--pgl-border-dark);
  flex-wrap: wrap;
}
.pgl-subhero__stat strong {
  display: block;
  font-family: var(--pgl-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pgl-green);
  line-height: 1;
}
.pgl-subhero__stat span {
  font-size: 0.8rem;
  color: var(--pgl-fg-dark-2);
  margin-top: 4px;
}

/* Sub-hero split variant */
.pgl-subhero--split .pgl-subhero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Sub-hero visual column (inline SVG / decorative graphic) */
.pgl-subhero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pgl-subhero__visual svg {
  max-width: 100%;
  border-radius: var(--pgl-radius-card);
  opacity: 0.85;
}

/* ===================== CUSTOMER SIGNAL BAR ===================== */
.pgl-stats-bar {
  background: var(--pgl-dark-alt);
  border-top: 1px solid var(--pgl-border-dark);
  border-bottom: 1px solid var(--pgl-border-dark);
}
.pgl-stats-bar__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  padding-block: 36px;
  display: flex;
  justify-content: center;
  gap: 0;
}
.pgl-stats-bar__item {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding-inline: 40px;
  position: relative;
}
.pgl-stats-bar__item + .pgl-stats-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--pgl-border-dark);
}
.pgl-stats-bar__number {
  font-family: var(--pgl-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--pgl-green);
  line-height: 1;
  display: block;
}
.pgl-stats-bar__label {
  font-size: 0.8rem;
  color: var(--pgl-fg-dark-2);
  margin-top: 6px;
  display: block;
  letter-spacing: 0.03em;
}

/* ===================== CARDS ===================== */
.pgl-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 28px;
}
.pgl-card--dark {
  background: var(--pgl-dark-alt);
  border-color: var(--pgl-border-dark);
}
.pgl-card--dark h3, .pgl-card--dark h4 { color: var(--pgl-fg-dark-1); }
.pgl-card--dark p { color: var(--pgl-fg-dark-2); }

/* ===================== PLATFORM OVERVIEW ===================== */
.pgl-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pgl-module-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.pgl-module-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pgl-module-card__icon {
  width: 44px;
  height: 44px;
  background: #EBF9F1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--pgl-green-aa);
  font-size: 1.1rem;
}
.pgl-module-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  margin-bottom: 10px;
}
.pgl-module-card p {
  font-size: 0.875rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.65;
}

/* ===================== TWO-COLUMN FEATURE ===================== */
.pgl-feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pgl-feature-split--reversed { direction: rtl; }
.pgl-feature-split--reversed > * { direction: ltr; }

.pgl-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pgl-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pgl-feature-item__icon {
  width: 36px;
  height: 36px;
  background: #EBF9F1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pgl-green-aa);
  font-size: 0.95rem;
}
.pgl-feature-item__text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  margin-bottom: 4px;
}
.pgl-feature-item__text p {
  font-size: 0.875rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.65;
}

/* Dark section feature items */
.pgl-section--dark .pgl-feature-item__icon { background: rgba(34,197,94,0.12); color: var(--pgl-green); }
.pgl-section--dark .pgl-feature-item__text h4 { color: var(--pgl-fg-dark-1); }
.pgl-section--dark .pgl-feature-item__text p { color: var(--pgl-fg-dark-2); }

.pgl-feature-cta { margin-top: 32px; }
.pgl-feature-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pgl-green-aa);
  transition: gap 0.2s;
}
.pgl-feature-cta a:hover { gap: 12px; }
.pgl-section--dark .pgl-feature-cta a { color: var(--pgl-green); }

/* ===================== PROCESS STEPS ===================== */
.pgl-steps {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.pgl-steps--4col { grid-template-columns: repeat(4, 1fr); }
.pgl-steps--3col { grid-template-columns: repeat(3, 1fr); }

.pgl-step {
  position: relative;
  padding: 28px;
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
}
.pgl-step__number {
  font-family: var(--pgl-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--pgl-green-aa);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.pgl-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  margin-bottom: 8px;
}
.pgl-step p {
  font-size: 0.85rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.65;
}

/* ===================== INTEGRATION TILES ===================== */
.pgl-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.pgl-integration-tile {
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 18px 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  background: var(--pgl-white);
  transition: box-shadow 0.2s;
}
.pgl-integration-tile:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.pgl-integration-tile__abbr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pgl-light-alt);
  border-radius: 6px;
  margin: 0 auto 10px;
  font-family: var(--pgl-font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--pgl-fg-light-2);
}

/* ===================== TESTIMONIALS ===================== */
.pgl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pgl-testimonial-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pgl-testimonial-card blockquote {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--pgl-fg-light-1);
  flex: 1;
}
.pgl-testimonial-card blockquote::before {
  content: '"';
  font-family: var(--pgl-font-display);
  font-size: 2rem;
  color: var(--pgl-green-aa);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 2px;
}
.pgl-testimonial-attribution strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
}
.pgl-testimonial-attribution span {
  font-size: 0.8rem;
  color: var(--pgl-fg-light-2);
}

/* ===================== COMPLIANCE BAND ===================== */
.pgl-compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
.pgl-compliance-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pgl-compliance-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pgl-compliance-item__icon {
  width: 40px;
  height: 40px;
  background: var(--pgl-light-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pgl-green-aa);
  font-size: 1rem;
}
.pgl-compliance-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  margin-bottom: 4px;
}
.pgl-compliance-item p {
  font-size: 0.825rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.6;
}
.pgl-compliance-text h3 { color: var(--pgl-fg-light-1); margin-bottom: 16px; }
.pgl-compliance-text p { color: var(--pgl-fg-light-2); font-size: 0.925rem; line-height: 1.75; }

/* ===================== PRICING ===================== */
.pgl-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pgl-pricing-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pgl-pricing-card--featured {
  border-color: var(--pgl-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.pgl-pricing-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--pgl-green);
  color: var(--pgl-dark);
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  font-family: var(--pgl-font-mono);
}
.pgl-pricing-card__name {
  font-family: var(--pgl-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  margin-bottom: 8px;
}
.pgl-pricing-card__price {
  font-family: var(--pgl-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pgl-fg-light-1);
  line-height: 1;
  margin-bottom: 4px;
}
.pgl-pricing-card__price sup {
  font-size: 1.1rem;
  vertical-align: top;
  margin-top: 6px;
}
.pgl-pricing-card__price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--pgl-fg-light-2);
}
.pgl-pricing-card__desc {
  font-size: 0.85rem;
  color: var(--pgl-fg-light-2);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pgl-border-light);
}
.pgl-pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pgl-pricing-card__feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.5;
}
.pgl-pricing-card__feature i {
  color: var(--pgl-green-aa);
  font-size: 0.8rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.pgl-pricing-card .pgl-btn {
  width: 100%;
  justify-content: center;
}

/* ===================== FAQ ===================== */
.pgl-faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.pgl-faq-item {
  border-bottom: 1px solid var(--pgl-border-light);
}
.pgl-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: transparent;
  border: none;
  font-family: var(--pgl-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
.pgl-faq__question i {
  color: var(--pgl-green-aa);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pgl-faq-item.is-open .pgl-faq__question i { transform: rotate(45deg); }
.pgl-faq__answer {
  display: none;
  padding-bottom: 20px;
  font-size: 0.925rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.75;
}
.pgl-faq-item.is-open .pgl-faq__answer { display: block; }

/* ===================== BLOG ===================== */
.pgl-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.pgl-blog-grid--3col { grid-template-columns: repeat(3, 1fr); }
.pgl-blog-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.pgl-blog-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

/* img-wrap variant (links wrapping images) */
.pgl-blog-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pgl-light-alt);
}
.pgl-blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.pgl-blog-card:hover .pgl-blog-card__img-wrap img { transform: scale(1.03); }

.pgl-blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pgl-light-alt);
}
.pgl-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.pgl-blog-card:hover .pgl-blog-card__img img { transform: scale(1.03); }
.pgl-blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.pgl-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--pgl-fg-light-2);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pgl-blog-tag {
  font-family: var(--pgl-font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--pgl-green-aa);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(21,128,61,0.3);
  border-radius: 3px;
  background: rgba(21,128,61,0.05);
  flex-shrink: 0;
}
.pgl-blog-card__category {
  font-family: var(--pgl-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--pgl-green-aa);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--pgl-green-aa);
  border-radius: 3px;
}
.pgl-blog-card__title {
  font-family: var(--pgl-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  line-height: 1.4;
  margin-bottom: 10px;
}
.pgl-blog-card__title a {
  color: inherit;
  transition: color 0.15s;
}
.pgl-blog-card__title a:hover { color: var(--pgl-green-aa); }
.pgl-blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.pgl-blog-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pgl-green-aa);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: auto;
}
.pgl-blog-card__cta:hover { gap: 10px; }
.pgl-blog-card__date { }
.pgl-blog-card__read { color: var(--pgl-green-aa); font-weight: 600; }

/* Blog article page (new structure from gen_blog.py) */
.pgl-article { }
.pgl-article__header {
  background: var(--pgl-dark);
  padding-top: 68px;
}
.pgl-article__header-inner {
  max-width: 800px;
  margin-inline: auto;
  padding: 64px clamp(20px, 4vw, 40px) 48px;
}
.pgl-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--pgl-fg-dark-2);
  flex-wrap: wrap;
}
.pgl-article__title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--pgl-fg-dark-1);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 760px;
}
.pgl-article__lede {
  font-size: 1.1rem;
  color: var(--pgl-fg-dark-2);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 680px;
}
.pgl-article__byline {
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
}
.pgl-article__cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--pgl-dark-alt);
}
.pgl-article__cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.pgl-article__body-wrap {
  background: var(--pgl-white);
  padding-block: 64px;
}
.pgl-article__body {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pgl-fg-light-2);
}
.pgl-article__body h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--pgl-fg-light-1); }
.pgl-article__body h3 { font-size: 1.15rem; margin: 32px 0 12px; color: var(--pgl-fg-light-1); }
.pgl-article__body p { margin-bottom: 20px; }
.pgl-article__body ul, .pgl-article__body ol { margin: 0 0 20px 24px; }
.pgl-article__body li { margin-bottom: 8px; }
.pgl-article__body blockquote {
  border-left: 3px solid var(--pgl-green-aa);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--pgl-fg-light-1);
}

/* Article nav (prev/next) */
.pgl-article-nav {
  background: var(--pgl-light-alt);
  border-top: 1px solid var(--pgl-border-light);
  padding-block: 28px;
}
.pgl-article-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pgl-article-nav__prev,
.pgl-article-nav__next {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pgl-green-aa);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
  line-height: 1.4;
}
.pgl-article-nav__prev:hover,
.pgl-article-nav__next:hover { color: var(--pgl-fg-light-1); }

/* Blog article old structure (keep for legacy) */
.pgl-article-hero {
  background: var(--pgl-dark);
  padding-top: 68px;
}
.pgl-article-hero__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding: 64px clamp(20px, 4vw, 40px) 0;
}
.pgl-article-hero__category {
  font-family: var(--pgl-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--pgl-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.pgl-article-hero h1 {
  color: var(--pgl-fg-dark-1);
  max-width: 800px;
  margin-bottom: 16px;
}
.pgl-article-hero__meta {
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
  margin-bottom: 48px;
}
.pgl-article-hero__cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--pgl-radius-card) var(--pgl-radius-card) 0 0;
  display: block;
}
.pgl-article-body {
  background: var(--pgl-white);
  padding-block: 64px;
}
.pgl-article-body__inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.pgl-article-body__inner h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--pgl-fg-light-1); }
.pgl-article-body__inner h3 { font-size: 1.15rem; margin: 32px 0 12px; color: var(--pgl-fg-light-1); }
.pgl-article-body__inner p { margin-bottom: 20px; color: var(--pgl-fg-light-2); line-height: 1.8; }
.pgl-article-body__inner ul, .pgl-article-body__inner ol { margin: 0 0 20px 24px; color: var(--pgl-fg-light-2); line-height: 1.8; }
.pgl-article-body__inner li { margin-bottom: 8px; }
.pgl-article-body__inner blockquote {
  border-left: 3px solid var(--pgl-green-aa);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--pgl-fg-light-1);
}

/* ===================== TEAM ===================== */
.pgl-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pgl-team-card {
  text-align: center;
}
.pgl-team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--pgl-light-alt);
  border: 2px solid var(--pgl-border-light);
}
.pgl-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgl-team-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  margin-bottom: 4px;
}
.pgl-team-card span {
  font-size: 0.8rem;
  color: var(--pgl-fg-light-2);
}

/* ===================== FOUNDER STORY ===================== */
.pgl-founder-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: flex-start;
  margin-top: 48px;
}
.pgl-founder-portrait {
  border-radius: var(--pgl-radius-card);
  overflow: hidden;
  border: 1px solid var(--pgl-border-light);
}
.pgl-founder-portrait img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.pgl-founder-text h3 {
  font-size: 1.4rem;
  color: var(--pgl-fg-light-1);
  margin-bottom: 16px;
}
.pgl-founder-text p {
  font-size: 0.95rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===================== FORMS ===================== */
.pgl-form { display: flex; flex-direction: column; gap: 18px; }
.pgl-form__group { display: flex; flex-direction: column; gap: 6px; }
.pgl-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  font-family: var(--pgl-font-body);
}
.pgl-form__input, .pgl-form__select, .pgl-form__textarea {
  padding: 11px 14px;
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-btn);
  font-family: var(--pgl-font-body);
  font-size: 0.9rem;
  color: var(--pgl-fg-light-1);
  background: var(--pgl-white);
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}
.pgl-form__input:focus, .pgl-form__select:focus, .pgl-form__textarea:focus {
  border-color: var(--pgl-green-aa);
}
.pgl-form__textarea { resize: vertical; min-height: 120px; }
.pgl-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pgl-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--pgl-fg-light-2);
  cursor: pointer;
}
.pgl-form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pgl-green);
  cursor: pointer;
}
/* Dark form variants */
.pgl-form--dark .pgl-form__label { color: var(--pgl-fg-dark-2); }
.pgl-form--dark .pgl-form__input,
.pgl-form--dark .pgl-form__select,
.pgl-form--dark .pgl-form__textarea {
  background: var(--pgl-dark-alt);
  border-color: var(--pgl-border-dark);
  color: var(--pgl-fg-dark-1);
}
.pgl-form--dark .pgl-form__input:focus,
.pgl-form--dark .pgl-form__select:focus,
.pgl-form--dark .pgl-form__textarea:focus { border-color: var(--pgl-green); }

/* ===================== CTA BAND ===================== */
.pgl-cta-band {
  text-align: center;
  padding-block: var(--pgl-section-v);
}
.pgl-cta-band h2 { color: var(--pgl-fg-dark-1); margin-bottom: 16px; }
.pgl-cta-band p { color: var(--pgl-fg-dark-2); max-width: 540px; margin-inline: auto; margin-bottom: 32px; }
.pgl-cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== SECTION HEADER ===================== */
.pgl-section-header { max-width: 640px; }
.pgl-section-header--centered { max-width: 700px; margin-inline: auto; text-align: center; }
.pgl-section-header h2 { margin-bottom: 12px; }
.pgl-section-header p { font-size: 1.05rem; color: var(--pgl-fg-light-2); }
.pgl-section--dark .pgl-section-header p,
.pgl-section--dark-alt .pgl-section-header p { color: var(--pgl-fg-dark-2); }

/* ===================== CODE BLOCK ===================== */
.pgl-code-block {
  background: var(--pgl-dark);
  border: 1px solid var(--pgl-border-dark);
  border-radius: var(--pgl-radius-card);
  padding: 20px;
  overflow-x: auto;
}
.pgl-code-block pre {
  margin: 0;
  font-family: var(--pgl-font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--pgl-fg-dark-1);
  white-space: pre;
}
.pgl-code-block .pgl-code-comment { color: var(--pgl-fg-dark-2); }
.pgl-code-block .pgl-code-key { color: var(--pgl-green); }
.pgl-code-block .pgl-code-string { color: #93C5FD; }
.pgl-code-block .pgl-code-number { color: #FDA4AF; }

/* ===================== LOGIN / AUTH ===================== */
.pgl-auth-page {
  min-height: 100vh;
  background: var(--pgl-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(20px, 4vw, 40px) 40px;
}
.pgl-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--pgl-dark-alt);
  border: 1px solid var(--pgl-border-dark);
  border-radius: 12px;
  padding: 40px;
}
.pgl-auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.pgl-auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgl-fg-dark-1);
  margin-bottom: 8px;
  text-align: center;
}
.pgl-auth-card__sub {
  font-size: 0.875rem;
  color: var(--pgl-fg-dark-2);
  text-align: center;
  margin-bottom: 28px;
}
.pgl-auth-card__links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
}
.pgl-auth-card__links a { color: var(--pgl-green); }
.pgl-auth-card__links a:hover { text-decoration: underline; }
.pgl-auth-divider {
  height: 1px;
  background: var(--pgl-border-dark);
  margin: 20px 0;
}
.pgl-form--dark .pgl-form__label { color: var(--pgl-fg-dark-2); }
.pgl-auth-forgot {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--pgl-green);
  margin-top: -10px;
  margin-bottom: 8px;
}
.pgl-auth-forgot:hover { text-decoration: underline; }

/* ===================== LEGAL PAGES ===================== */
.pgl-legal-page {
  background: var(--pgl-white);
  padding-block: 64px;
}
.pgl-legal-page__inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.pgl-legal-page h2 {
  font-size: 1.4rem;
  color: var(--pgl-fg-light-1);
  margin: 40px 0 14px;
}
.pgl-legal-page h3 {
  font-size: 1.1rem;
  color: var(--pgl-fg-light-1);
  margin: 28px 0 10px;
}
.pgl-legal-page p, .pgl-legal-page li {
  font-size: 0.925rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.pgl-legal-page ul { margin: 0 0 16px 24px; }
.pgl-legal-page a { color: var(--pgl-green-aa); }
.pgl-legal-page a:hover { text-decoration: underline; }

/* .pgl-legal-body — the inner body wrapper used in legal page sections */
.pgl-legal-body {
  max-width: 760px;
  margin-inline: auto;
  padding: 8px 0 40px;
}
.pgl-legal-body h2 {
  font-family: var(--pgl-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  margin: 40px 0 14px;
}
.pgl-legal-body h3 {
  font-family: var(--pgl-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pgl-fg-light-1);
  margin: 28px 0 10px;
}
.pgl-legal-body p, .pgl-legal-body li {
  font-size: 0.925rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.pgl-legal-body ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}
.pgl-legal-body address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--pgl-fg-light-2);
  line-height: 1.8;
  padding: 16px 0;
}
.pgl-legal-body a { color: var(--pgl-green-aa); }
.pgl-legal-body a:hover { text-decoration: underline; }
.pgl-legal-intro {
  font-size: 1.05rem;
  color: var(--pgl-fg-light-1);
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pgl-border-light);
}

/* Compact sub-hero for legal pages */
.pgl-subhero--compact .pgl-subhero__inner {
  padding-block: 48px 56px;
}

/* ===================== FOOTER ===================== */
.pgl-footer {
  background: var(--pgl-dark);
  border-top: 1px solid var(--pgl-border-dark);
  padding-top: 72px;
  padding-bottom: 0;
}
.pgl-footer__inner {
  max-width: var(--pgl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.pgl-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.pgl-footer__brand .pgl-footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}
.pgl-footer__tagline {
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 280px;
}
.pgl-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pgl-footer__contact a, .pgl-footer__contact span {
  font-size: 0.8rem;
  color: var(--pgl-fg-dark-2);
  transition: color 0.15s;
  line-height: 1.6;
}
.pgl-footer__contact a:hover { color: var(--pgl-fg-dark-1); }

.pgl-footer__col-heading {
  font-family: var(--pgl-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pgl-fg-dark-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.pgl-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pgl-footer__links a {
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
  transition: color 0.15s;
  line-height: 1.5;
}
.pgl-footer__links a:hover { color: var(--pgl-fg-dark-1); }

.pgl-footer__bottom {
  border-top: 1px solid var(--pgl-border-dark);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--pgl-fg-dark-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================== COOKIE BANNER ===================== */
.pgl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--pgl-dark-alt);
  border-top: 1px solid var(--pgl-border-dark);
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.pgl-cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
  line-height: 1.6;
}
.pgl-cookie-banner__text a { color: var(--pgl-green); }
.pgl-cookie-banner__text a:hover { text-decoration: underline; }
.pgl-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.pgl-cookie-banner__accept {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--pgl-green);
  color: var(--pgl-dark);
  border: none;
  padding: 9px 18px;
  border-radius: var(--pgl-radius-btn);
  cursor: pointer;
  font-family: var(--pgl-font-body);
  transition: opacity 0.15s;
}
.pgl-cookie-banner__accept:hover { opacity: 0.88; }
.pgl-cookie-banner__essential {
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--pgl-fg-dark-2);
  border: 1px solid var(--pgl-border-dark);
  padding: 9px 14px;
  border-radius: var(--pgl-radius-btn);
  cursor: pointer;
  font-family: var(--pgl-font-body);
  transition: color 0.15s;
}
.pgl-cookie-banner__essential:hover { color: var(--pgl-fg-dark-1); }
.pgl-cookie-banner--hidden { display: none; }

body.cookie-visible { padding-bottom: 80px; }

/* ===================== 404 ===================== */
.pgl-404 {
  min-height: 100vh;
  background: var(--pgl-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px clamp(20px, 4vw, 40px) 40px;
}
.pgl-404__code {
  font-family: var(--pgl-font-mono);
  font-size: 6rem;
  font-weight: 500;
  color: var(--pgl-border-dark);
  line-height: 1;
  margin-bottom: 16px;
}
.pgl-404 h1 { color: var(--pgl-fg-dark-1); font-size: 1.75rem; margin-bottom: 12px; }
.pgl-404 p { color: var(--pgl-fg-dark-2); max-width: 420px; margin: 0 auto 32px; }

/* ===================== DEMO PAGE ===================== */
.pgl-demo-page {
  background: var(--pgl-dark);
  padding-top: 68px;
  min-height: 100vh;
}
.pgl-demo-page__inner {
  max-width: 960px;
  margin-inline: auto;
  padding: 72px clamp(20px, 4vw, 40px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.pgl-demo-page__left h1 { color: var(--pgl-fg-dark-1); margin-bottom: 16px; }
.pgl-demo-page__left p { color: var(--pgl-fg-dark-2); font-size: 0.95rem; line-height: 1.75; margin-bottom: 28px; }
.pgl-demo-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pgl-border-dark);
  border-radius: var(--pgl-radius-card);
}
.pgl-demo-trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--pgl-fg-dark-2);
}
.pgl-demo-trust-item i { color: var(--pgl-green); }
.pgl-demo-form-card {
  background: var(--pgl-dark-alt);
  border: 1px solid var(--pgl-border-dark);
  border-radius: 12px;
  padding: 36px;
}
.pgl-demo-form-card h2 {
  font-size: 1.25rem;
  color: var(--pgl-fg-dark-1);
  margin-bottom: 24px;
}
.pgl-demo-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.pgl-demo-success i {
  font-size: 2.5rem;
  color: var(--pgl-green);
  margin-bottom: 16px;
  display: block;
}
.pgl-demo-success h3 { color: var(--pgl-fg-dark-1); margin-bottom: 8px; }
.pgl-demo-success p { color: var(--pgl-fg-dark-2); font-size: 0.875rem; }

/* ===================== RESOURCES HUB ===================== */
.pgl-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pgl-resource-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pgl-resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.pgl-resource-card__type {
  font-family: var(--pgl-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--pgl-green-aa);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pgl-resource-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pgl-fg-light-1);
  line-height: 1.4;
}
.pgl-resource-card p { font-size: 0.85rem; color: var(--pgl-fg-light-2); line-height: 1.65; }
.pgl-resource-card a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pgl-green-aa);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pgl-resource-card a:hover { gap: 10px; }

/* ===================== SECURITY ===================== */
.pgl-security-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pgl-security-card {
  background: var(--pgl-white);
  border: 1px solid var(--pgl-border-light);
  border-radius: var(--pgl-radius-card);
  padding: 28px;
}
.pgl-security-card__icon {
  width: 48px;
  height: 48px;
  background: #EBF9F1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pgl-green-aa);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.pgl-security-card h3 { font-size: 1rem; font-weight: 700; color: var(--pgl-fg-light-1); margin-bottom: 8px; }
.pgl-security-card p { font-size: 0.85rem; color: var(--pgl-fg-light-2); line-height: 1.65; }

/* ===================== DEMO FORM ===================== */
/* .pgl-demo-form is the actual form element inside .pgl-demo-form-card */
.pgl-demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pgl-demo-form .pgl-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===================== SCREEN-READER ONLY ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================== FADE-IN ANIMATION ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Failsafe: 1.2s auto-reveal */
@keyframes pgl-reveal {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: pgl-reveal 0s 1.2s forwards; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .pgl-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pgl-footer__grid { grid-template-columns: 1fr 1fr; }
  .pgl-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 768px) {
  :root {
    --pgl-section-v: var(--pgl-section-v-sm);
  }
  .pgl-nav__links { display: none; }
  .pgl-nav__cta { display: none; }
  .pgl-nav__hamburger { display: flex; }

  .pgl-hero__inner { grid-template-columns: 1fr; }
  .pgl-hero__visual { display: none; }

  .pgl-subhero--split .pgl-subhero__inner { grid-template-columns: 1fr; }

  .pgl-feature-split { grid-template-columns: 1fr; gap: 40px; }
  .pgl-feature-split--reversed { direction: ltr; }

  .pgl-testimonials-grid { grid-template-columns: 1fr; }
  .pgl-blog-grid,
  .pgl-blog-grid--3col { grid-template-columns: 1fr; }
  .pgl-team-grid { grid-template-columns: repeat(2, 1fr); }
  .pgl-steps--4col { grid-template-columns: 1fr 1fr; }
  .pgl-steps--3col { grid-template-columns: 1fr; }

  .pgl-compliance-grid { grid-template-columns: 1fr; }
  .pgl-security-cards { grid-template-columns: 1fr; }
  .pgl-resources-grid { grid-template-columns: 1fr; }

  .pgl-founder-split { grid-template-columns: 1fr; }

  .pgl-demo-page__inner { grid-template-columns: 1fr; }

  .pgl-stats-bar__inner { flex-direction: column; align-items: center; }
  .pgl-stats-bar__item + .pgl-stats-bar__item::before { display: none; }
  .pgl-stats-bar__item { padding: 16px 0; border-top: 1px solid var(--pgl-border-dark); width: 100%; }

  .pgl-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pgl-footer__bottom { flex-direction: column; align-items: flex-start; }

  .pgl-pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  .pgl-subhero__stat-band { gap: 24px; }
}

@media (max-width: 480px) {
  .pgl-team-grid { grid-template-columns: repeat(2, 1fr); }
  .pgl-footer__grid { grid-template-columns: 1fr; }
  .pgl-modules-grid { grid-template-columns: 1fr; }
  .pgl-steps--4col { grid-template-columns: 1fr; }
  .pgl-auth-card { padding: 28px 20px; }
  .pgl-demo-form-card { padding: 24px 20px; }
}
