/* Type-specific LP templates. Scoped to .lpg-lpt. */
.lpg-lpt__nav-space { display: none; }
.lpg-lpt__hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: 32px; padding: 56px 24px; align-items: center; }
.lpg-lpt__hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 8px 0 18px; }
.lpg-lpt__section { padding: 36px 24px; border-bottom: 1px solid var(--lpm-line); }
.lpg-lpt__copy { max-width: 720px; }
.lpg-lpt__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 24px 0 0; }
.lpg-lpt__cards li { padding: 18px; border: 1px solid var(--lpm-line); border-radius: 12px; background: var(--lpm-paper); }
.lpg-lpt__table-wrap { overflow-x: auto; margin-top: 20px; }
.lpg-lpt__table-wrap table { width: 100%; border-collapse: collapse; }
.lpg-lpt__table-wrap th, .lpg-lpt__table-wrap td { border: 1px solid var(--lpm-line); padding: 10px 12px; text-align: left; }
.lpg-lpt__faq, .lpg-lpt__final-cta, .lpg-lpt__contact { padding: 36px 24px; }
.lpg-lpt__faq details { padding: 12px 0; border-bottom: 1px solid var(--lpm-line); }
.lpg-lpt__secondary { display: inline-block; margin-left: 12px; }

/* SERVICE: consultation-led, trust rail, contact focus. */
.lpg-lpt--service .lpg-lpt__hero { background: var(--lpm-navy); color: #fff; }
.lpg-lpt--service .lpg-lpt__hero .lpg-lp__button { background: var(--lpm-orange); color: #fff; border-radius: 8px; padding: 14px 26px; }
.lpg-lpt--service .lpg-lpt__section:nth-of-type(even) { background: var(--lpm-tint); }
.lpg-lpt--service .lpg-lpt__contact { background: var(--lpm-navy); color: #fff; }
.lpg-lpt--service .lpg-lpt__contact ul { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; }

/* PRODUCT: spec/price forward, product banner. */
.lpg-lpt--product .lpg-lpt__hero { background: linear-gradient(160deg, #f6f8fb, #e9eef5); }
.lpg-lpt--product .lpg-lpt__product-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 24px; margin: 0 24px; padding: 28px; background: var(--lpm-navy); color: #fff; border-radius: 16px; }
.lpg-lpt--product .lpg-lpt__kicker { color: var(--lpm-gold); letter-spacing: .12em; font-size: 11px; }
.lpg-lpt--product .lpg-lpt__status { color: var(--lpm-gold); font-weight: 700; }
.lpg-lpt--product .lpg-lpt__specs { list-style: none; padding: 0; margin: 0; }
.lpg-lpt--product .lpg-lpt__specs li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.lpg-lpt--product .lpg-lpt__section-cta .lpg-lp__button { background: var(--lpm-orange); color: #fff; }

/* AMAZON AFFILIATE: disclosure first, analysis-led, neutral CTA. */
.lpg-lpt--amazon_affiliate .lpg-lpt__disclosure-top { padding: 12px 24px; background: #fff4e6; color: #7a3b10; border-bottom: 1px solid #f0c9a4; font-size: 13px; }
.lpg-lpt--amazon_affiliate .lpg-lpt__hero { background: #fff; }
.lpg-lpt--amazon_affiliate .lpg-lpt__quick { padding: 28px 24px; background: var(--lpm-tint); }
.lpg-lpt--amazon_affiliate .lpg-lpt__quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lpg-lpt--amazon_affiliate .lpg-lpt__quick-grid article { padding: 18px; background: #fff; border-left: 3px solid var(--lpm-orange); border-radius: 10px; }
.lpg-lpt--amazon_affiliate .lpg-lpt__final-cta { background: var(--lpm-navy); color: #fff; }
.lpg-lpt--amazon_affiliate .lpg-lpt__final-cta .lpg-lp__button { background: var(--lpm-orange); color: #fff; }

/* Dark surfaces must override the base .lpg-lp heading colour. */
.lpg-lpt--service .lpg-lpt__hero h1,
.lpg-lpt--service .lpg-lpt__hero h2,
.lpg-lpt--service .lpg-lpt__hero h3,
.lpg-lpt--service .lpg-lpt__hero p,
.lpg-lpt--service .lpg-lpt__contact h2,
.lpg-lpt--service .lpg-lpt__contact h3,
.lpg-lpt--service .lpg-lpt__contact p,
.lpg-lpt--product .lpg-lpt__product-banner h2,
.lpg-lpt--product .lpg-lpt__product-banner h3,
.lpg-lpt--product .lpg-lpt__product-banner p,
.lpg-lpt--amazon_affiliate .lpg-lpt__final-cta h2,
.lpg-lpt--amazon_affiliate .lpg-lpt__final-cta h3,
.lpg-lpt--amazon_affiliate .lpg-lpt__final-cta p { color: #fff; }
.lpg-lpt--service .lpg-lpt__hero .lpg-lp__eyebrow { color: var(--lpm-gold); }
.lpg-lpt--service .lpg-lpt__hero .lpg-lp__intro,
.lpg-lpt--service .lpg-lpt__contact p { color: rgba(255, 255, 255, .82); }
.lpg-lpt--service .lpg-lpt__contact a { color: var(--lpm-gold); }
.lpg-lpt--service .lpg-lpt__hero .lpg-lpt__secondary { color: var(--lpm-gold); }

/* AIDA sales flow: sticky proof rail + late-stage price card. */
.lpg-lpt--aida-service .lpg-lpt__hero { grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); gap: 36px; }
.lpg-lpt__hero-aside { align-self: start; position: sticky; top: 84px; }
.lpg-lpt__hero-aside .lpg-lp__gallery { margin: 0 0 16px; }
.lpg-lpt__hero-aside .lpg-lp__gallery--hero img { aspect-ratio: 4 / 3; object-fit: cover; max-height: 260px; border-radius: 14px; }
.lpg-lpt__hero-aside-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: #fff;
}
.lpg-lpt__hero-aside-card .lpg-lpt__kicker { color: var(--lpm-gold); letter-spacing: .12em; font-size: 11px; text-transform: uppercase; }
.lpg-lpt__hero-aside-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.lpg-lpt__hero-aside-card li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.5;
}
.lpg-lpt__hero-aside-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lpm-gold);
  font-weight: 700;
}
.lpg-lpt__hero-aside-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: 13px; }

.lpg-lpt__section[id], .lpg-lpt__faq[id], .lpg-lpt__price-card[id] { scroll-margin-top: 92px; }
.lpg-lpt__section-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.lpg-lpt__section-main { min-width: 0; }
.lpg-lpt__section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--lpm-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.lpg-lpt__section-media { position: relative; min-height: 180px; }
.lpg-lpt__section-media .lpg-lp__gallery { margin: 0; }
.lpg-lpt__section-media img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; }
.lpg-lpt__section-media-dot { position: absolute; inset: 0; border-radius: 16px; background: radial-gradient(circle at 30% 30%, rgba(255,107,53,.16), transparent 62%), var(--lpm-tint); }
.lpg-lpt__section:nth-of-type(even) { background: linear-gradient(90deg, var(--lpm-tint), transparent 70%); }

.lpg-lpt__support { padding: 40px 24px; border-top: 1px solid var(--lpm-line); }
.lpg-lpt__support-head { max-width: 640px; margin-bottom: 24px; }
.lpg-lpt__support-head h2 { margin: 6px 0 0; }
.lpg-lpt__support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lpg-lpt__support-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--lpm-line);
  border-radius: 14px;
  background: var(--lpm-paper);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lpg-lpt__support-card:hover { transform: translateY(-3px); border-color: var(--lpm-orange); box-shadow: 0 12px 28px rgba(23,32,51,.09); }
.lpg-lpt__support-num { color: var(--lpm-orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.lpg-lpt__support-card h3 { margin: 12px 0 10px; font-size: 17px; line-height: 1.35; }
.lpg-lpt__support-card p { margin: 0; color: var(--lpm-muted); font-size: 14px; line-height: 1.6; }
.lpg-lpt__price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
  gap: 32px;
  align-items: start;
  margin: 24px;
  padding: 36px;
  border-radius: 20px;
  background: var(--lpm-tint);
}
.lpg-lpt__price-card--tiers { grid-template-columns: 1fr; align-items: start; }
.lpg-lpt__price-head { max-width: 760px; margin-bottom: 26px; }
.lpg-lpt__price-sub { margin: 4px 0 0; color: var(--lpm-muted); font-size: 13px; }
.lpg-lpt__price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.lpg-lpt__price-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--lpm-line);
  border-radius: 16px;
  background: var(--lpm-paper);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lpg-lpt__price-tier:hover { transform: translateY(-3px); border-color: var(--lpm-orange); box-shadow: 0 12px 28px rgba(23,32,51,.09); }
.lpg-lpt__price-tier--featured { border: 2px solid var(--lpm-orange); background: #fffaf6; }
.lpg-lpt__price-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lpm-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lpg-lpt__price-tier h3 { margin: 6px 0 0; font-size: 17px; }
.lpg-lpt__price-value { margin: 0; color: var(--lpm-navy); font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.lpg-lpt__price-desc { margin: 0; color: var(--lpm-muted); font-size: 13px; line-height: 1.6; }
.lpg-lpt__price-features { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lpg-lpt__price-features li { position: relative; padding-left: 20px; color: var(--lpm-ink); font-size: 13px; line-height: 1.5; }
.lpg-lpt__price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--lpm-orange); font-weight: 800; }
.lpg-lpt__price-cta { margin-top: auto; }
.lpg-lpt__price-cta .lpg-lp__button { width: 100%; background: var(--lpm-orange); color: #fff; }
.lpg-lpt__price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; list-style: none; margin: 20px 0; padding: 0; }
.lpg-lpt__price-list li { position: relative; padding-left: 20px; color: var(--lpm-ink); font-size: 14px; }
.lpg-lpt__price-list li::before { content: "•"; position: absolute; left: 0; color: var(--lpm-orange); font-size: 20px; line-height: 1; }
.lpg-lpt__price-meta { margin: 8px 0; color: var(--lpm-muted); font-size: 13px; }
.lpg-lpt__price-box {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 16px;
  background: var(--lpm-navy);
  color: #fff;
  text-align: center;
}
.lpg-lpt__price-box > span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lpg-lpt__price-box > strong { color: #fff; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; }
.lpg-lpt__price-box .lpg-lp__button { width: 100%; background: var(--lpm-orange); color: #fff; }
.lpg-lpt__price-box small { color: rgba(255,255,255,.6); font-size: 11px; }

@media (max-width: 720px) {
  .lpg-lpt__hero,
  .lpg-lpt--aida-service .lpg-lpt__hero,
  .lpg-lpt--product .lpg-lpt__product-banner { grid-template-columns: 1fr; padding: 28px 16px; margin: 0 12px; }
  .lpg-lpt__hero-aside { position: static; }
  .lpg-lpt__section-grid { grid-template-columns: 1fr; gap: 18px; }
  .lpg-lpt__section-media { min-height: 0; }
  .lpg-lpt__section-media img { max-height: 240px; }
  .lpg-lpt__support-grid { grid-template-columns: 1fr; }
  .lpg-lpt__support { padding: 32px 16px; }
  .lpg-lpt__price-card { grid-template-columns: 1fr; gap: 20px; margin: 12px; padding: 24px; }
  .lpg-lpt__price-box { position: static; }
  .lpg-lpt__price-list { grid-template-columns: 1fr; }
  .lpg-lpt__section, .lpg-lpt__faq, .lpg-lpt__final-cta, .lpg-lpt__contact { padding: 24px 16px; }
  .lpg-lpt__secondary { display: block; margin: 12px 0 0; }
}

/* Shared media/copy cards, including existing generated markup. */
.lpg-lp { overflow: visible; --lpg-sticky-top: 0px; }
body.admin-bar .lpg-lp { --lpg-sticky-top: 32px; }
.lpg-lp .lpg-lpm__nav { top: var(--lpg-sticky-top); border-radius: 16px 16px 0 0; }
.lpg-lp [id] { scroll-margin-top: calc(var(--lpg-sticky-top) + 110px); }
.lpg-lp .lpg-lpm__brand { white-space: normal; min-width: 0; }
.lpg-lp .lpg-lpm__nav-links a { font-size: .875rem; min-height: 44px; display: flex; align-items: center; }
.lpg-lp .lpg-lpm__nav-links a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lpg-lp .lpg-lpt__section-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; gap: clamp(24px,4vw,48px); }
.lpg-lp .lpg-lpt__section-media { min-width: 0; min-height: 0; position: sticky; top: calc(var(--lpg-sticky-top) + 100px); align-self: start; padding: 12px; border: 1px solid var(--lpm-line); border-radius: 18px; background: var(--lpm-paper); box-shadow: 0 12px 32px #1720330a; }
.lpg-lp .lpg-lpt__section-media:has(.lpg-lpt__section-media-dot) { display: none; }
.lpg-lp .lpg-lpt__section-grid:has(.lpg-lpt__section-media-dot) { grid-template-columns: minmax(0,1fr); }
.lpg-lp .lpg-lpt__cards,.lpg-lp .lpg-lp__cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); }
.lpg-lp .lpg-lpt__cards > li,.lpg-lp .lpg-lp__cards > li { padding: 22px; border: 1px solid var(--lpm-line); border-radius: 14px; box-shadow: 0 6px 20px #17203306; }
.lpg-lp .lpg-lp__section--process .lpg-lp__cards > li { padding-left: 78px; }
.lpg-lp .lpg-lp__gallery { grid-template-columns: minmax(0,1fr); min-width: 0; max-width: 480px; margin-inline: auto; }
.lpg-lp .lpg-lp__gallery img { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: contain; max-height: 360px; background: var(--lpm-tint); }
.lpg-lp .lpg-lpt__hero:has(> .lpg-lp__gallery),.lpg-lp .lpg-lp__hero--split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); text-align: left; gap: 32px; }
.lpg-lp .lpg-lpt__hero:not(:has(> .lpg-lp__gallery, > .lpg-lpt__hero-aside)) { grid-template-columns: minmax(0,1fr); }
.lpg-lp .lpg-lpt__hero-aside,.lpg-lp .lpg-lpt__price-box { top: calc(var(--lpg-sticky-top) + 100px); }
/* Legacy generic sections retain their content, paired with the media column. */
.lpg-lp .lpg-lp__section:has(> .lpg-lp__gallery),.lpg-lp .lpg-lpt__section:has(> .lpg-lp__gallery) { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px 36px; align-items: start; }
.lpg-lp .lpg-lp__section:has(> .lpg-lp__gallery) > :not(.lpg-lp__gallery),.lpg-lp .lpg-lpt__section:has(> .lpg-lp__gallery) > :not(.lpg-lp__gallery) { grid-column: 1; min-width: 0; }
.lpg-lp .lpg-lp__section > .lpg-lp__gallery,.lpg-lp .lpg-lpt__section > .lpg-lp__gallery { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; position: sticky; top: calc(var(--lpg-sticky-top) + 100px); }
/* Legacy AIDA: the image accompanies the body; cards remain below the copy. */
.lpg-lp .lpg-aida__section:has([data-image-slot] img) { display: block; }
.lpg-lp .lpg-aida__section-content:has([data-image-slot] img) { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px 36px; }
.lpg-lp .lpg-aida__section-content:has([data-image-slot] img) > :not([data-image-slot]) { grid-column: 1; min-width: 0; }
.lpg-lp .lpg-aida__section-content > [data-image-slot]:has(img) { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--lpg-sticky-top) + 100px); align-self: start; }
.lpg-lp .lpg-lpm__sticky-cta { position: static; padding: 20px; }
.lpg-lp .lpg-lpm__rail { position: static; }
.lpg-lp .lpg-lpm__footer { grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr)); padding: 40px 28px; gap: 28px; border-radius: 0 0 16px 16px; font-size: .875rem; }
.lpg-lp .lpg-lpm__footer-about strong { font-size: 1.125rem; line-height: 1.4; }
.lpg-lp .lpg-lpm__footer-about p { font-size: .9375rem; line-height: 1.75; max-width: 52ch; }
.lpg-lp .lpg-lpm__footer-col > strong { font-size: 1rem; }
@media (max-width: 782px) { body.admin-bar .lpg-lp { --lpg-sticky-top: 46px; } }
@media (max-width: 760px), (max-height: 600px) {
 .lpg-lp .lpg-lpt__section-media,.lpg-lp .lpg-lpt__hero-aside,.lpg-lp .lpg-lpt__price-box,.lpg-lp .lpg-lp__section > .lpg-lp__gallery,.lpg-lp .lpg-lpt__section > .lpg-lp__gallery,.lpg-lp .lpg-aida__section-content > [data-image-slot]:has(img) { position: static; }
}
@media (max-width: 760px) {
 .lpg-lp .lpg-lpt__section-grid,.lpg-lp .lpg-lpt__hero,.lpg-lp .lpg-lpt--aida-service .lpg-lpt__hero,.lpg-lp .lpg-lpt__hero:has(> .lpg-lp__gallery),.lpg-lp .lpg-lp__hero--split,.lpg-lp .lpg-aida__hero,.lpg-lp .lpg-lp__section:has(> .lpg-lp__gallery),.lpg-lp .lpg-lpt__section:has(> .lpg-lp__gallery),.lpg-lp .lpg-aida__section-content:has([data-image-slot] img) { grid-template-columns: minmax(0,1fr); }
 .lpg-lp .lpg-lp__section > .lpg-lp__gallery,.lpg-lp .lpg-lpt__section > .lpg-lp__gallery,.lpg-lp .lpg-aida__section-content > [data-image-slot]:has(img) { grid-column: 1; grid-row: auto; }
 .lpg-lp .lpg-lp__gallery { width: 88%; max-width: 420px; }
 .lpg-lp .lpg-lpm__footer { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 28px 20px; }
 .lpg-lp .lpg-lpm__footer-about { grid-column: 1 / -1; }
 .lpg-lp .lpg-lpm__nav { position: static; }
}
@media (prefers-reduced-motion: reduce) { .lpg-lp * { scroll-behavior: auto; transition: none; } }
