/* ============================================
   Subpage Styles — Unit Vent & LSAP
   ============================================ */

/* --- Subpage Hero (shorter) --- */
.subpage-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--container-px) 3rem;
  overflow: hidden;
  min-height: auto;
}

.subpage-hero .hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.subpage-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subpage-hero .hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.subpage-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Active nav link --- */
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Content Sections --- */
.content-section {
  padding: var(--section-py) 0;
}

.content-section.alt-bg {
  background: var(--gray-50);
}

.content-section.navy-bg {
  background: var(--navy);
}

.navy-bg h2, .navy-bg h3, .navy-bg h4, .navy-bg strong {
  color: var(--white);
}

.navy-bg p, .navy-bg li {
  color: rgba(255, 255, 255, 0.7);
}

.navy-bg .section-tag {
  color: var(--blue-light);
}

.navy-bg .section-header h2 {
  color: var(--white);
}

.navy-bg .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.navy-bg .content-list li strong {
  color: var(--white);
}

.navy-bg .check-list li::before {
  color: var(--green);
}

.navy-bg .data-source {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Two Column Layout --- */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- Content Lists --- */
.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  padding: 0.625rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.content-list li strong {
  color: var(--navy);
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.con-list li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}

.compact li {
  padding: 0.375rem 0;
  padding-left: 1.75rem;
  font-size: 0.875rem;
}

/* --- How It Works Grid --- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hiw-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.hiw-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.hiw-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.hiw-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- System Components --- */
.system-components {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.system-components h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.system-components > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.component-card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.component-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.component-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Benefits Detail Grid --- */
.benefits-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-detail-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.benefit-detail-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.benefit-detail-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Case Studies --- */
.case-study-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.case-study-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.case-study-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.case-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-study-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.case-study-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.case-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.case-stats div {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.case-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent);
}

.installation-note {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.installation-note p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Advantage Grid --- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.advantage-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.advantage-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-top: 2rem;
}

.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Funding CTA --- */
.funding-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.funding-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* --- Qualify Grid --- */
.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qualify-item {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.qualify-item.active-item {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

.qualify-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.qualify-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- LSAP Process Flow --- */
.process-flow {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.flow-card.highlight-card {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.03);
}

.flow-card.accent-card {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.03);
}

.flow-num {
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
}

.accent-card .flow-num {
  background: var(--accent);
}

.highlight-card .flow-num {
  background: var(--green);
}

.flow-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.flow-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-time {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* --- Key Statutes --- */
.key-statutes {
  margin-top: 2rem;
}

.key-statutes h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}

.statute-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.statute-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.statute-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.375rem;
  font-weight: 700;
}

.statute-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Wisconsin Process --- */
.wi-process {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wi-step {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.wi-step strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.wi-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.wi-note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
}

.wi-note p {
  font-size: 0.8125rem;
  color: var(--navy);
  line-height: 1.6;
}

/* --- Rapid Comparison --- */
.rapid-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.rapid-col {
  border-radius: 14px;
  padding: 1.5rem;
}

.rapid-col.traditional {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rapid-col.roberts {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.rapid-col h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-align: center;
}

.rapid-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rapid-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.rapid-step.accent {
  background: rgba(37, 99, 235, 0.15);
  color: var(--white);
  font-weight: 600;
}

.rapid-step span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.rapid-step.accent span {
  color: var(--blue-light);
}

.rapid-total {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.rapid-total.highlight {
  color: var(--green);
  font-weight: 600;
}

.rapid-savings {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green);
  padding: 0.5rem;
}

/* --- Three Pillars --- */
.three-pillars {
  margin-top: 2rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.pillar-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 0.75rem;
}

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- Eligible Agencies --- */
.eligible-agencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.agency-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.agency-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.agency-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- State Tabs --- */
.state-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.state-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
}

.state-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

.state-tab.active-tab {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.state-tab.active-tab:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* --- Other States Grid --- */
.other-states-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.other-state-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.other-state-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.other-state-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Speed Comparison --- */
.speed-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.speed-card {
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.speed-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.speed-traditional {
  background: var(--gray-50);
}

.speed-traditional h3 {
  color: var(--text-secondary);
}

.speed-coop {
  background: rgba(37, 99, 235, 0.04);
  border-color: var(--accent);
}

.speed-coop h3 {
  color: var(--accent);
}

.speed-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.speed-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}

.speed-coop .speed-step {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

.speed-step-label {
  color: var(--navy);
  font-weight: 500;
}

.speed-step-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.75rem;
}

.speed-coop .speed-step-time {
  color: var(--accent);
}

.speed-total {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.speed-time {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.speed-traditional .speed-time {
  color: var(--text-secondary);
}

.speed-coop .speed-time {
  color: var(--green);
}

.speed-cost {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.speed-coop .speed-cost {
  color: var(--green);
  font-weight: 600;
}

/* --- Eligible Entities Grid --- */
.eligible-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.eligible-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.eligible-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.eligible-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item[open] {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.03);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .component-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .case-study-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .statute-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr; }
  .eligible-agencies-grid { grid-template-columns: repeat(2, 1fr); }
  .eligible-grid { grid-template-columns: repeat(2, 1fr); }
  .other-states-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .state-tabs { flex-direction: column; align-items: center; }
  .state-tab { width: 100%; max-width: 300px; }
  .subpage-hero { padding: 5.5rem var(--container-px) 2rem; }
  .content-two-col { grid-template-columns: 1fr; }
  .how-it-works-grid { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: 1fr; }
  .benefits-detail-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .rapid-comparison { grid-template-columns: 1fr; }
  .statute-grid { grid-template-columns: 1fr; }
  .eligible-agencies-grid { grid-template-columns: 1fr; }
  .eligible-grid { grid-template-columns: 1fr; }
  .speed-compare { grid-template-columns: 1fr; }
  .qualify-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .flow-card { padding-left: 3.5rem; }
  .flow-num { left: 0.75rem; }
}
