/* ==========================================================================
   ASHBORN PARTNERS — STATE LANDING PAGES
   Used only by state landing pages (pennsylvania.html and future states).
   Builds on styles.css; nothing here changes any other page.
   ========================================================================== */

/* ---- simplified header ---- */
.lp-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
}
.lp-header .brand-logo { height: 52px; }
.lp-header .header-inner > .brand { order: 0; grid-column: auto; }
.lp-header .header-inner > .lp-header-actions { order: 1; grid-column: auto; margin-left: auto; }
.lp-header-actions { display: flex; align-items: center; gap: 10px; }
.lp-header-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

/* ---- hero ---- */
.lp-hero {
  position: relative;
  color: var(--text-on-dark);
  background-color: var(--dark);
  background-size: cover;
  background-position: center 40%;
  padding: 80px 0 88px;
}
.lp-hero--pa {
  background-image:
    linear-gradient(100deg, rgba(9, 20, 15, 0.92) 0%, rgba(9, 20, 15, 0.80) 48%, rgba(9, 20, 15, 0.45) 100%),
    url('../blog-pennsylvania-home.jpg');
}
.lp-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.lp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lp-hero h1 {
  color: var(--text-on-dark);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 20ch;
}
.lp-hero-sub {
  color: var(--text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 28px;
}
.lp-hero-sub strong { color: var(--text-on-dark); font-weight: 600; }
.lp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.lp-cta-note { font-size: 0.92rem; color: var(--text-on-dark-muted); margin: 0; }
.lp-cta-note a { color: var(--text-on-dark); font-weight: 600; }

.lp-stat-card {
  background: rgba(16, 36, 28, 0.78);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 26px 26px 20px;
  backdrop-filter: blur(6px);
}
.lp-stat-card .lp-stat-big {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.lp-stat-card .lp-stat-big small { font-size: 1.1rem; font-weight: 600; color: var(--text-on-dark-muted); }
.lp-stat-card p { color: var(--text-on-dark-muted); font-size: 0.92rem; margin: 8px 0 0; }
.lp-stat-rows { margin-top: 18px; border-top: 1px solid var(--border-on-dark); }
.lp-stat-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-on-dark);
  font-size: 0.95rem; color: var(--text-on-dark-muted);
}
.lp-stat-row strong { color: var(--text-on-dark); font-weight: 600; white-space: nowrap; }
.lp-stat-source { font-size: 0.78rem !important; margin-top: 12px !important; }

/* ---- generic sections ---- */
.lp-section { padding: 88px 0; }
.lp-section--alt { background: var(--bg-alt); }
.lp-section .section-heading { margin-bottom: 40px; }

.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.lp-card h3 { font-size: 1.15rem; }
.lp-card p { font-size: 0.97rem; margin-bottom: 0.8em; }
.lp-card p:last-child { margin-bottom: 0; }
.lp-card .btn { margin-top: auto; align-self: flex-start; }
.lp-card-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.lp-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--dark); margin-bottom: 12px;
}
.lp-cite { font-size: 0.8rem; color: var(--text-muted); }
.lp-cite a { color: var(--text-muted); }

/* ---- PTC table ---- */
.lp-details {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.lp-details summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: inside;
}
.lp-table-wrap { overflow-x: auto; padding-bottom: 16px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.lp-table th, .lp-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.lp-table th { font-weight: 600; color: var(--text); background: var(--bg); }
.lp-table td:not(:first-child), .lp-table th:not(:first-child) { text-align: right; white-space: nowrap; }

/* ---- Act 129 band ---- */
.lp-band {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark) 100%);
  color: var(--text-on-dark);
}
.lp-band h2 { color: var(--text-on-dark); }
.lp-band p { color: var(--text-on-dark-muted); }
.lp-band-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 28px; align-items: start; }
.lp-band-stat {
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 24px;
}
.lp-band-stat .lp-num { color: var(--accent); }
.lp-band-stat p { margin: 0; }
.lp-band .lp-disclaimer {
  font-size: 0.85rem; margin-top: 24px; max-width: 90ch;
  color: rgba(244, 245, 241, 0.62);
}
.lp-band a { color: var(--text-on-dark); }

/* ---- steps ---- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: lpstep; }
.lp-step { position: relative; padding-top: 56px; }
.lp-step::before {
  counter-increment: lpstep;
  content: counter(lpstep);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- FAQ (native details, works without JavaScript) ---- */
.lp-faq { max-width: 820px; }
.lp-faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.lp-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 36px 18px 0;
  list-style: none;
  position: relative;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 14px;
  font-size: 1.5rem; font-weight: 400; color: var(--text-muted);
}
.lp-faq details[open] summary::after { content: '\2212'; }
.lp-faq details p { padding-right: 36px; }

/* ---- final CTA ---- */
.lp-final .lp-cta-row { justify-content: center; }
.lp-final .lp-cta-note a { color: var(--text-on-dark); }

/* ---- sources + disclaimer ---- */
.lp-sources { padding: 56px 0; font-size: 0.88rem; }
.lp-sources h2 { font-size: 1.2rem; }
.lp-sources ol { padding-left: 20px; margin: 0 0 24px; color: var(--text-muted); }
.lp-sources li { margin-bottom: 6px; }
.lp-sources a { color: var(--text-muted); overflow-wrap: anywhere; }
.lp-sources .lp-disclaimer { color: var(--text-muted); max-width: 100ch; }

/* ---- utility question inside the existing form ---- */
.choice-grid.choice-grid-utility { grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid-utility .choice-card { padding: 13px 12px; font-size: 0.93rem; }

/* ---- sticky mobile button ---- */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 246, 241, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -16px rgba(16, 36, 28, 0.35);
  transform: translateY(110%);
  transition: transform 0.25s var(--ease);
}
.lp-sticky .btn { flex: 1; padding: 13px 12px; }
.lp-sticky .btn-outline { flex: 0 0 auto; }
.lp-sticky.show { transform: translateY(0); }


/* ---- centered layout (landing pages read best centered) ---- */
.lp-section .section-heading,
.lp-faq .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}
.lp-card { text-align: center; align-items: center; }
.lp-card .btn { align-self: center; }
.lp-steps { text-align: center; }
.lp-step { padding-top: 60px; }
.lp-step::before { left: 50%; transform: translateX(-50%); }
.lp-step p { max-width: 34ch; margin-left: auto; margin-right: auto; }
.lp-details summary { text-align: center; }
.lp-band-grid { grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; text-align: center; }
.lp-band-grid > :last-child { grid-column: 1 / -1; max-width: 680px; margin: 0 auto; }
.lp-band .lp-disclaimer { text-align: center; margin-left: auto; margin-right: auto; }
.lp-sources .section-inner { max-width: 920px; }
.lp-sources h2 { text-align: center; }
.lp-sources .lp-disclaimer { margin: 0 auto; }
/* final call to action: button and phone line stacked and centered */
.lp-final .lp-cta-row { flex-direction: column; justify-content: center; gap: 14px; }
.lp-final .lp-cta-row .lp-cta-note { margin: 0; max-width: none; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-band-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-cards--3, .lp-steps { grid-template-columns: 1fr; }
  .lp-step { padding-top: 56px; padding-left: 0; }
}
@media (max-width: 720px) {
  .lp-header .header-inner { padding: 10px 16px; }
  .lp-header .brand-logo { height: 42px; }
  .lp-header-cta { display: none; }
  /* Keeps the mobile header to just Call Now, same as Find My Savings above —
     Analyze My Bill is still reachable from the footer and from within the
     lead form itself, so it isn't lost, just not fighting for header space
     on small screens. */
  .lp-header-analyze { display: none; }
  .lp-header .header-inner { justify-content: space-between; }
  .site-header.lp-header .brand { position: static; transform: none; }
  .lp-hero { padding: 48px 0 56px; background-position: 70% 40%; }
  .lp-hero-inner, .section-inner { padding: 0 16px; }
  .lp-hero-sub { font-size: 1.05rem; }
  .lp-cta-row .btn { width: 100%; }
  .lp-section { padding: 60px 0; }
  .lp-cards, .lp-band-grid { grid-template-columns: 1fr; }
  .lp-sticky { display: flex; }
  body.lp-page { padding-bottom: 76px; }
  .lp-details { padding: 2px 14px; }
  .lp-table { font-size: 0.86rem; }
  .lp-table th, .lp-table td { padding: 8px 6px; }
}
@media (max-width: 380px) {
  .choice-grid.choice-grid-utility { grid-template-columns: 1fr 1fr; }
  .choice-grid-utility .choice-card { font-size: 0.86rem; padding: 12px 8px; }
}
/* ==========================================================================
   2026-10-02 Pennsylvania page refresh: consultation offer, Ashborn's role,
   and the shorter form (ZIP + homeownership first, step counter).
   ========================================================================== */
.lp-hero-how {
  color: var(--text-on-dark);
  font-size: 1rem;
  max-width: 54ch;
  margin: 18px 0 10px;
}
.lp-hero-alt { color: var(--text-on-dark-muted); font-size: 0.92rem; max-width: 60ch; margin: 0; }
.lp-hero-alt a { color: var(--text-on-dark); font-weight: 600; }
.lp-nowrap { white-space: nowrap; }
.lp-hours { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.lp-cta-note strong { color: var(--text-on-dark); font-weight: 600; }
.lp-stat-kicker {
  font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent) !important; margin: 0 0 10px !important;
}
.lp-stat-card .lp-stat-big small { display: block; margin-top: 8px; }

.lp-split {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start;
  max-width: 1040px; margin: 0 auto;
}
.lp-split h2 { margin-bottom: 18px; }
.lp-note-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card);
}
.lp-note-box h3 { font-size: 1.1rem; }
.lp-note-box p { font-size: 0.97rem; }
.lp-note-box-contact { margin: 0; }
.lp-note-box-contact a { font-weight: 600; }
.lp-note-box-contact span { font-size: 0.85rem; color: var(--text-muted); }

.lp-center-cta { text-align: center; margin-top: 40px; }
.lp-card--dark { background: var(--dark); border-color: var(--dark); }
.lp-card--dark h3 { color: var(--text-on-dark); }
.lp-card--dark p { color: var(--text-on-dark-muted); }
.lp-details-body { padding: 0 0 16px; }
.lp-details-body p { font-size: 0.97rem; }
.lp-details + .lp-details { margin-top: 14px; }
.footer-phone-label { font-size: 0.82rem; opacity: 0.75; }

/* ---- form additions (only on state landing pages) ---- */
.lp-page .funnel-topbar { flex-wrap: wrap; row-gap: 8px; }
.funnel-step-count {
  flex: 0 0 100%; order: -1; margin: 0;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.funnel-step-count:empty { display: none; }
.market-zip-group input { max-width: 220px; font-size: 1.1rem !important; letter-spacing: 0.04em; }
.market-owner-label { font-weight: 600; font-size: 0.95rem; margin: 10px 0 10px; color: var(--text); }
.lp-page .funnel-step h2:focus { outline: none; }
.lp-page .funnel-step h2:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; border-radius: 4px; }
/* keep the Continue button reachable when the phone keyboard is open */
.lp-page .funnel-modal { max-height: 88vh; max-height: 88dvh; }

@media (max-width: 860px) {
  .lp-split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .lp-hero-how { font-size: 0.98rem; }
  .lp-stat-card { padding: 22px 20px 18px; }
  .lp-stat-card .lp-stat-big { font-size: 2.6rem; }
  .lp-page .funnel-overlay { align-items: flex-start; padding-top: 12px; }
}

@media print {
  .lp-sticky, .lp-header-actions { display: none !important; }
}
