/* Shared styles for problem-solution landing pages
   (e.g. /aia-billing-software/, /subcontractor-software/, /quickbooks-construction/) */

/* Hero */
.ps-hero {
  background: #f5f3f0;
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.ps-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(196,122,26,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196,122,26,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.ps-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.ps-hero-inner.is-single { grid-template-columns: 1fr; max-width: 880px; }
.ps-title-block {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #837c70;
  text-transform: uppercase;
  background: #fbfaf7;
  border: 1.5px solid #c47a1a;
  padding: 9px 16px;
  margin-bottom: 28px;
}
.ps-title-block .div { color: #c47a1a; margin: 0 8px; }
.ps-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  color: #1a1a1a;
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ps-hero h1 em { font-style: italic; color: #c47a1a; font-weight: 500; }
.ps-hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4640;
  margin: 0 0 28px;
  max-width: 560px;
}
.ps-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c47a1a;
  color: #fff;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ps-hero-cta:hover { background: #a86515; transform: translateY(-1px); }
.ps-hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: #837c70;
  text-transform: uppercase;
}
.ps-hero-meta span::before { content: "▪"; color: #c47a1a; margin-right: 8px; }

/* Architectural-style hero panel (G702 form, schedule, etc.) */
.ps-hero-form {
  background: #fbfaf7;
  border: 1.5px solid #d6d1c8;
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(26,26,26,0.06);
  min-width: 0;
}
.ps-form-header {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: #837c70;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #1a1a1a;
  margin-bottom: 14px;
}
.ps-form-header b { color: #1a1a1a; font-weight: 600; }
.ps-form-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 4px;
}
.ps-form-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  color: #837c70;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ps-form-row {
  display: grid;
  grid-template-columns: 0.6fr 1.6fr 1fr 1fr;
  gap: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #ece8df;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #3a3a3a;
  align-items: center;
}
.ps-form-row.is-head {
  background: #1a1a1a;
  color: #fbfaf7;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 0;
}
.ps-form-row.is-total {
  background: rgba(196,122,26,0.10);
  color: #1a1a1a;
  font-weight: 600;
  border-top: 1.5px solid #c47a1a;
  border-bottom: 0;
}
.ps-form-row .num-cell { text-align: right; }
.ps-form-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: #837c70;
  text-transform: uppercase;
  text-align: center;
  padding-top: 14px;
  border-top: 1px dashed #d6d1c8;
  margin-top: 12px;
}
@media (max-width: 920px) {
  .ps-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ps-hero { padding: 80px 0 56px; }
}

/* Problem / content sections */
.ps-problem { padding: 80px 0; background: #fff; }
.ps-problem-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ps-section-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #c47a1a;
  text-transform: uppercase;
  border: 1.5px solid #c47a1a;
  padding: 7px 14px;
  margin-bottom: 22px;
}
.ps-h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ps-h2 em { font-style: italic; color: #c47a1a; }
.ps-p {
  color: #4a4640;
  line-height: 1.65;
  margin: 0 0 24px;
  font-size: 1.04rem;
  max-width: 760px;
}
.ps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.ps-card {
  background: #fbfaf7;
  border: 1.5px solid #d6d1c8;
  border-radius: 4px;
  padding: 28px 26px;
  min-width: 0;
}
.ps-card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #c47a1a;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ps-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 12px;
  font-weight: 500;
}
.ps-card p {
  color: #4a4640;
  line-height: 1.55;
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .ps-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .ps-problem { padding: 56px 0; }
}

/* Solution dark band */
.ps-solution {
  background: #1a1a1a;
  padding: 80px 0;
  color: #fbfaf7;
  position: relative;
  overflow: hidden;
}
.ps-solution::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(196,122,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196,122,26,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.ps-solution-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.ps-solution h2 { color: #fbfaf7; }
.ps-solution .ps-p { color: #b3a999; }
.ps-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.ps-step-grid.is-three { grid-template-columns: repeat(3, 1fr); }
.ps-step {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(196,122,26,0.30);
  border-radius: 4px;
  padding: 24px 22px;
  min-width: 0;
}
.ps-step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  color: #c47a1a;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.ps-step h3 {
  font-size: 1.05rem;
  color: #fbfaf7;
  margin: 0 0 10px;
  line-height: 1.3;
  font-weight: 500;
}
.ps-step p {
  color: #b3a999;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 920px) {
  .ps-step-grid,
  .ps-step-grid.is-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .ps-step-grid,
  .ps-step-grid.is-three { grid-template-columns: 1fr; }
  .ps-solution { padding: 56px 0; }
}

/* Landscape table */
.ps-landscape { padding: 80px 0; background: #f5f3f0; }
.ps-landscape-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ps-table-wrap {
  background: #fbfaf7;
  border: 1.5px solid #d6d1c8;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 32px;
}
.ps-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 0; }
.ps-table thead th {
  padding: 16px 18px;
  text-align: left;
  background: #1a1a1a;
  color: #fbfaf7;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ps-table thead th.is-us { background: #c47a1a; }
.ps-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #ece8df;
  vertical-align: top;
  color: #3a3a3a;
  line-height: 1.5;
}
.ps-table tbody tr:last-child td { border-bottom: none; }
.ps-table .row-label { font-weight: 600; color: #1a1a1a; width: 26%; }
.ps-table .cell-us { background: rgba(196,122,26,0.05); color: #1a1a1a; font-weight: 500; }
@media (max-width: 820px) {
  .ps-landscape { padding: 56px 0; }
  .ps-table thead { display: none; }
  .ps-table, .ps-table tbody, .ps-table tr, .ps-table td { display: block; width: 100%; }
  .ps-table tr { border-bottom: 1.5px solid #d6d1c8; padding: 14px 0; }
  .ps-table tbody tr:last-child { border-bottom: none; }
  .ps-table td { padding: 6px 18px; border: none; }
  .ps-table .row-label { font-size: 1rem; padding-top: 10px; padding-bottom: 4px; }
}

/* FAQ */
.ps-faq { padding: 80px 0; background: #fff; }
.ps-faq-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.ps-faq h2 { font-size: clamp(1.85rem, 3.4vw, 2.4rem); line-height: 1.2; color: #1a1a1a; margin: 0 0 36px; font-weight: 500; }
.pp-faq-item { border-top: 1.5px solid #ece8df; padding: 22px 0; }
.pp-faq-item:last-child { border-bottom: 1.5px solid #ece8df; }
.pp-faq-q { font-size: 1.13rem; color: #1a1a1a; margin: 0 0 12px; font-weight: 500; line-height: 1.35; }
.pp-faq-a { color: #4a4640; line-height: 1.65; margin: 0; }

/* Final CTA */
.ps-cta { background: #1a1a1a; padding: 72px 0; position: relative; overflow: hidden; }
.ps-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(196,122,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196,122,26,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.ps-cta-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative; z-index: 1; }
.ps-cta h2 { font-size: clamp(1.85rem, 3.4vw, 2.4rem); line-height: 1.2; color: #fbfaf7; margin: 0 0 18px; font-weight: 500; }
.ps-cta h2 em { font-style: italic; color: #c47a1a; }
.ps-cta p { color: #b3a999; line-height: 1.6; margin: 0 0 28px; font-size: 1.02rem; }
