/* ============================================================
   PAYROLLDECODED — Homepage Styles v3.0
   Approach: solid section backgrounds (inspired by solardecoded.com)
   Dark hero → light tools → white states → light articles → dark how-it-works
   ============================================================ */

/* ── Fix Ghost white wrapper on homepage only ── */
body.home-template {
  background: #f4f5f7 !important;
}
body.home-template .site-main,
body.home-template .site-content,
body.home-template .post-content,
body.home-template .gh-content,
body.home-template .gh-article,
body.home-template .kg-html-card {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.home-template .gh-content > * + * {
  margin-top: 0 !important;
}
body.home-template .page-template .gh-article-header {
  display: none !important;
}

/* ── Base wrapper ── */
.pd-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── SHARED CONTAINERS ── */
.pd-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pd-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.pd-section-h2 { font-size: 36px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.pd-section-sub { font-size: 18px; margin: 0 0 48px; max-width: 580px; line-height: 1.6; }

/* ================================================================
   HERO — dark charcoal
   ================================================================ */
.pd-hero {
  background: #1e2533;
  color: #e8eef4;
  padding: 100px 24px 88px;
}
.pd-hero .pd-label { color: #6699bb; }
.pd-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,127,165,0.12);
  border: 1px solid rgba(74,127,165,0.3);
  color: #6699bb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.pd-hero-h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #e8eef4;
  margin: 0 0 24px;
}
.pd-hero-em { color: #6699bb; font-style: italic; display: block; }
.pd-hero-sub { font-size: 18px; line-height: 1.65; color: #8a9fb5; margin: 0 0 36px; max-width: 480px; }
.pd-hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pd-btn-hero {
  display: inline-block;
  background: #4a7fa5;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(74,127,165,0.4);
}
.pd-btn-hero:hover { background: #5a8fb5; transform: translateY(-2px); }
.pd-link-hero { color: #6699bb !important; font-size: 16px; font-weight: 600; text-decoration: none !important; }
.pd-link-hero:hover { color: #88b5d4 !important; }

.pd-example-card {
  background: rgba(15, 25, 45, 0.8);
  border: 1px solid rgba(74,127,165,0.3);
  border-top-color: rgba(74,127,165,0.6);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 6px 24px rgba(74,127,165,0.2);
}
.pd-example-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, #4a7fa5 40%, #6699bb 60%, transparent 100%); border-radius: 18px 18px 0 0; }
.pd-example-label { font-size: 11px; font-weight: 700; color: #6699bb; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 24px; }
.pd-example-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 17px; color: #8a9fb5; }
.pd-example-row span:last-child { font-weight: 600; color: #c0d0e0; }
.pd-example-total { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 0; font-size: 20px; font-weight: 800; color: #e8eef4; }
.pd-example-total span:last-child { color: #6699bb; }

/* ================================================================
   TOOLS — light grey
   ================================================================ */
.pd-tools {
  background: #f4f5f7;
  padding: 80px 24px;
}
.pd-tools .pd-label { color: #3b82f6; }
.pd-tools .pd-section-h2 { color: #1a2333; }
.pd-tools .pd-section-sub { color: #556070; }

.pd-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pd-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pd-tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.pd-tool-live { border-top-color: #4a7fa5 !important; }
.pd-tool-icon { font-size: 28px; margin-bottom: 12px; line-height: 1; }
.pd-tool-badge-live { display: inline-block; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; align-self: flex-start; }
.pd-tool-badge-soon { display: inline-block; background: #f1f5f9; border: 1px solid #cbd5e1; color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; align-self: flex-start; }
.pd-tool-card h3 { font-size: 20px; font-weight: 700; color: #1a2333; margin: 0 0 10px; }
.pd-tool-card p { font-size: 16px; line-height: 1.6; color: #556070; margin: 0 0 24px; flex-grow: 1; }
.pd-btn-primary { display: inline-block; background: #4a7fa5; color: #fff !important; font-size: 15px; font-weight: 700; padding: 12px 22px; border-radius: 8px; text-decoration: none !important; transition: all 0.2s; box-shadow: 0 3px 10px rgba(74,127,165,0.3); align-self: flex-start; }
.pd-btn-primary:hover { background: #3a6f95; transform: translateY(-1px); }
.pd-btn-soon { display: inline-block; background: #f1f5f9; border: 1px solid #e2e8f0; color: #94a3b8; font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 8px; cursor: default; align-self: flex-start; }

/* ================================================================
   STATES — white
   ================================================================ */
.pd-states {
  background: #ffffff;
  padding: 72px 24px;
}
.pd-states .pd-label { color: #3b82f6; }
.pd-states .pd-section-h2 { color: #1a2333; }
.pd-states .pd-section-sub { color: #556070; }

.pd-states-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pd-state-card {
  background: #f4f5f7;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 26px;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pd-state-card:hover { border-color: #4a7fa5 !important; box-shadow: 0 6px 20px rgba(74,127,165,0.15); transform: translateY(-2px); }
.pd-state-card h3 { font-size: 19px; font-weight: 700; color: #1a2333; margin: 0 0 6px; }
.pd-state-card p { font-size: 15px; color: #6b7f96; margin: 0; line-height: 1.4; }

/* ================================================================
   ARTICLES — light grey-blue
   ================================================================ */
.pd-articles {
  background: #f0f4f8;
  padding: 80px 24px;
}
.pd-articles .pd-label { color: #3b82f6; }
.pd-articles .pd-section-h2 { color: #1a2333; }

.pd-articles-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.pd-articles-header-left .pd-section-h2 { margin-bottom: 0; }
.pd-articles-link { color: #4a7fa5 !important; font-size: 15px; font-weight: 600; text-decoration: none !important; white-space: nowrap; transition: color 0.2s; }
.pd-articles-link:hover { color: #3a6f95 !important; }

.pd-articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pd-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 30px;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pd-article-card:hover { border-color: #4a7fa5 !important; box-shadow: 0 8px 24px rgba(74,127,165,0.15); transform: translateY(-2px); }
.pd-article-tag { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; }
.pd-article-card h3 { font-size: 18px; font-weight: 700; color: #1a2333; margin: 0 0 10px; line-height: 1.35; }
.pd-article-card p { font-size: 15px; line-height: 1.6; color: #556070; margin: 0 0 18px; }
.pd-article-meta { font-size: 13px; color: #94a3b8; }

/* ================================================================
   HOW IT WORKS — dark charcoal (mirrors hero)
   ================================================================ */
.pd-how {
  background: #1e2533;
  padding: 72px 24px 88px;
}
.pd-how .pd-label { color: #6699bb; }
.pd-how .pd-section-h2 { color: #e8eef4; }

.pd-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.pd-how-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid rgba(74,127,165,0.5);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.pd-how-card:hover { transform: translateY(-3px); }
.pd-how-icon { font-size: 26px; margin-bottom: 14px; line-height: 1; }
.pd-how-card h3 { font-size: 17px; font-weight: 700; color: #e8eef4; margin: 0 0 10px; line-height: 1.2; }
.pd-how-card p { font-size: 15px; line-height: 1.65; color: #8a9fb5; margin: 0; flex-grow: 1; }
.pd-how-link { color: #6699bb !important; text-decoration: underline !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pd-tools-grid, .pd-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pd-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .pd-hero-h1 { font-size: 36px; }
  .pd-hero { padding: 64px 24px 56px; }
  .pd-tools-grid, .pd-states-grid, .pd-articles-grid, .pd-how-grid { grid-template-columns: 1fr; }
  .pd-articles-header { flex-direction: column; align-items: flex-start; }
  .pd-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pd-how-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   STATS STRIP — blue accent bar under hero (like solardecoded amber strip)
   ================================================================ */
.pd-stats {
  background: #2563eb;
  padding: 0;
}
.pd-stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pd-stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.pd-stat-item:last-child {
  border-right: none;
}
.pd-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.pd-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
}
@media (max-width: 640px) {
  .pd-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .pd-stat-item:nth-child(2) { border-right: none; }
  .pd-stat-item:nth-child(3) { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.18); }
}

/* ── FOOTER: always visible ── */
.gh-foot {
  background: #ffffff !important;
  color: #6b7280 !important;
}
.gh-foot-inner {
  background: #ffffff !important;
}
.gh-foot a,
.gh-foot .gh-copyright,
.gh-foot .nav a {
  color: #6b7280 !important;
}
.gh-foot a:hover,
.gh-foot .nav a:hover {
  color: #374151 !important;
  opacity: 1 !important;
}

/* ── FOOTER LAYOUT FIX ── */
.gh-foot {
  white-space: normal !important;
}
.gh-foot-inner {
  white-space: normal !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 16px 32px !important;
  grid-template-columns: unset !important;
}
.pd-footer-note {
  width: 100% !important;
  order: 3 !important;
  margin-top: 12px !important;
}
.gh-copyright {
  order: 1;
  white-space: nowrap;
}
.gh-foot-menu {
  order: 2;
}
.gh-foot-menu .nav {
  flex-wrap: wrap !important;
  white-space: normal !important;
}
.gh-powered-by {
  display: none;
}

/* ── FOOTER CENTERED & SIZED ── */
.gh-foot-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
  grid-template-columns: unset !important;
}
.gh-copyright {
  font-size: 14px !important;
  order: 1;
}
.gh-foot-menu {
  order: 2;
}
.gh-foot-menu .nav {
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4px 0 !important;
}
.gh-foot-menu .nav li a {
  font-size: 14px !important;
}
.pd-footer-note {
  font-size: 13px !important;
  max-width: 720px !important;
  width: 100% !important;
  order: 3 !important;
  margin-top: 4px !important;
}

/* ── FOOTER NAV LINKS — bigger, more clickable ── */
.gh-foot-menu .nav li a {
  font-size: 16px !important;
  padding: 4px 6px !important;
}

/* ── FOOTER: copyright below nav ── */
.gh-copyright {
  order: 3 !important;
  font-size: 13px !important;
  color: #9ca3af !important;
}
.gh-foot-menu {
  order: 1 !important;
}
.pd-footer-note {
  order: 4 !important;
}
