/*
  SECTIONS — the shared building blocks every newer layout is made of
  (local-lead, vsl, app, saas, bundle, sales-letter). Structure only:
  colours and fonts come from brand.css tokens. Synced to every funnel by scripts/sync-core.sh.
  A layout's own layout.css (loaded after this) only adds what is unique to it.
*/

/* ---------- Page frame ---------- */

main.page { max-width: none; padding: 0 0 4rem; }
main.page > section, main.page > .band { margin-top: 4.5rem; }
main.page > :first-child { margin-top: 0; }
.wide { max-width: calc(68rem + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.col { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-header.wide { max-width: calc(68rem + 2 * var(--gutter)); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .header-cta { padding: 0.6rem 1rem; font-size: 0.95rem; }
.center { text-align: center; }
.center .actions, .center .buy { justify-content: center; }
.band { background: var(--card); padding-top: 3.5rem; padding-bottom: 3.5rem; }
main.page > section > h2:first-child, .band h2:first-child, .wide > h2:first-child, .col > h2:first-child { margin-top: 0; }
.kicker { font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.section-lede { color: var(--muted); max-width: 40rem; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); margin-top: 1.1rem; max-width: 36rem; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Visible placeholder for an image, screenshot, video or logo */
.ph {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--card) 0 12px, var(--paper) 12px 24px);
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 1rem;
  min-height: 10rem;
}

/* ---------- Announcement bar / dated banner ---------- */

.announce { background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 0.9rem; font-weight: 600; text-align: center; padding: 0.6rem var(--gutter); }
.announce a { color: inherit; }

/* ---------- Hero ---------- */

.hero { display: grid; gap: 2rem; align-items: center; padding-top: 2.5rem; }
@media (min-width: 56rem) { .hero.split { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; padding-top: 3.5rem; } }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); line-height: 1.02; }
.hero .art { width: 100%; max-width: 28rem; justify-self: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.actions .button { padding: 1.05rem 1.7rem; font-size: 1.08rem; }
.assure { margin-top: 0.85rem; font-size: 0.95rem; color: var(--muted); }
.rating-line { font-family: var(--display); font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-top: 0.75rem; }
.rating-line .stars { color: var(--star, #d99a12); letter-spacing: 0.08em; margin-right: 0.35rem; }

/* ---------- Price ---------- */

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; margin-top: 1.5rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.was { font-family: var(--display); font-size: 1.15rem; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 0.4rem; }
.save { display: inline-block; font-family: var(--display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.3rem 0.75rem; }

/* ---------- Video ---------- */

.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .ph { position: absolute; inset: 0; min-height: 0; border-radius: 0; background: var(--ink); color: var(--paper); border: 0; }
.play { width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 0.75rem; }

/* ---------- Stats row ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.95rem; color: var(--muted); }

/* ---------- Trust strip / logos ---------- */

.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; font-family: var(--display); font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-top: 1.5rem; }
.trust li { list-style: none; }
.trust { padding: 0; }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.logos .ph { min-height: 4rem; }

/* ---------- Cards: features, pains, benefits ---------- */

.grid { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 1.25rem; }
.band .card { background: var(--paper); }
.card h3 { font-size: 1.08rem; }
.card p { margin-top: 0.4rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; margin-bottom: 0.75rem; }

/* Concern prompts: "start here if you feel…" */
.concerns { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.concerns li { background: var(--card); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 1.05rem; line-height: 1.5; }
.band .concerns li { background: var(--paper); }

/* ---------- Steps: a real sequence, so numbered ---------- */

.steps { list-style: none; counter-reset: st; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: st; background: var(--card); border-radius: var(--radius); padding: 1.25rem; }
.band .steps li { background: var(--paper); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 0.35rem; font-size: 1rem; color: var(--muted); }

/* ---------- Feature rows: text beside a screenshot, alternating ---------- */

.feature-row { display: grid; gap: 1.5rem; align-items: center; margin-top: 3rem; }
@media (min-width: 52rem) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-row:nth-of-type(even) > :first-child { order: 2; }
}
.feature-row .ph { min-height: 16rem; }

/* ---------- Phone frames (app screenshots) ---------- */

.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin-top: 1.75rem; justify-items: center; }
.phone { width: 100%; max-width: 15rem; aspect-ratio: 9 / 19; border-radius: 2rem; border: 0.55rem solid var(--ink); background: var(--card); overflow: hidden; }
.phone .ph { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.phone-caption { text-align: center; font-family: var(--display); font-weight: 700; font-size: 0.95rem; margin-top: 0.6rem; }

/* ---------- Store badges (replace with the official badge artwork) ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.center .stores { justify-content: center; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 10.5rem; padding: 0.55rem 1.1rem; border-radius: 0.6rem; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--display); line-height: 1.15; }
.store small { font-size: 0.72rem; font-weight: 500; }
.store b { font-size: 1.15rem; font-weight: 800; }

/* ---------- Old way vs new way / before vs after ---------- */

.compare { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 44rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--card); }
.compare .old { opacity: 0.85; }
.compare .new { box-shadow: inset 0 0 0 2px var(--signal); }
.compare ul { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.compare li { position: relative; padding-left: 1.6rem; margin-top: 0.5rem; font-size: 1rem; line-height: 1.55; }
.compare li::before { position: absolute; left: 0; font-family: var(--display); font-weight: 800; }
.compare .old li::before { content: "✕"; color: var(--no); }
.compare .new li::before { content: "✓"; color: var(--yes); }

/* For / not for */
.fit { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 40rem) { .fit { grid-template-columns: 1fr 1fr; } }
.fit ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.fit li { position: relative; padding-left: 1.6rem; margin-top: 0.55rem; font-size: 1rem; line-height: 1.55; }
.fit li::before { position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 800; }
.fit .yes li::before { content: "✓"; color: var(--yes); }
.fit .no li::before { content: "✕"; color: var(--no); }

/* ---------- Guarantee ---------- */

.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: center; background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.5rem; }
.guarantee .seal { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.75rem; line-height: 1.1; padding: 0.4rem; }
.guarantee h3 { font-size: 1.15rem; }
.guarantee p { margin-top: 0.35rem; font-size: 1rem; color: var(--muted); }

/* ---------- Repeated CTA block (sales letter) ---------- */

.cta-block { background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.75rem 1.5rem; text-align: center; margin-top: 2.5rem; }
.cta-block h3 { font-size: 1.3rem; }
.cta-block .actions { justify-content: center; margin-top: 1.1rem; }
.cta-block .scarcity { font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }

/* ---------- Pricing table ---------- */

.billing { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--card); margin-top: 1.25rem; }
.billing button { font: inherit; font-family: var(--display); font-weight: 700; font-size: 0.95rem; border: 0; border-radius: 999px; padding: 0.5rem 1.1rem; background: transparent; color: var(--ink); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; gap: 1rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); text-align: left; }
.plan { background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--signal); }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0.25rem 0 0.5rem; flex: 1; }
.plan li { position: relative; padding-left: 1.6rem; margin-top: 0.45rem; font-size: 1rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-family: var(--display); font-weight: 800; color: var(--yes); }
[data-billing="monthly"] .yearly, [data-billing="yearly"] .monthly { display: none; }

/* ---------- Bundle: offer block + product cards + bonuses ---------- */

.offer { background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.75rem 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .offer { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; padding: 2.5rem; align-items: center; } }
.offer ul { margin: 0; padding-left: 1.2rem; }
.offer li { margin-top: 0.4rem; }
.pay { font-family: var(--display); font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.products { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.product { background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.product .ph { min-height: 11rem; }
.product .price { font-size: 1.6rem; }
.product p { margin: 0; font-size: 1rem; color: var(--muted); flex: 1; }
.bonuses { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.bonuses li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; align-items: center; background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; }
.bonuses .free { font-family: var(--display); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0.25rem 0.6rem; }
.disclaimer { font-size: 0.88rem; line-height: 1.55; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 1rem; }

/* ---------- Forms: lead form inside a card ---------- */

.form-card { background: var(--card); border-radius: calc(var(--radius) * 2); padding: 1.5rem; }
.band .form-card { background: var(--paper); }
.form-card h2 { font-size: 1.35rem; margin: 0; }
.form-card .lead-form { margin-top: 0.75rem; }
.lead-form select, .lead-form textarea {
  font: inherit; font-family: var(--display); font-size: 1rem; font-weight: 400;
  padding: 0.85rem 0.9rem; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--field, #fff); color: var(--ink); width: 100%;
}
.lead-form textarea { min-height: 6rem; resize: vertical; }
.lead-form .row { display: grid; gap: 0.6rem; }
@media (min-width: 30rem) { .lead-form .row { grid-template-columns: 1fr 1fr; } }
.form-fine { font-size: 0.82rem; line-height: 1.5; color: var(--muted); margin-top: 0.75rem; }

/* ---------- Letter (long-form sales letter) ---------- */

.letter { font-size: 1.15rem; }
.letter h2 { margin-top: 3rem; }
.letter ul { padding-left: 1.2rem; }
.letter li { margin-top: 0.5rem; }
.pull { font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 1.6rem); font-weight: 700; line-height: 1.3; border-left: 4px solid var(--signal); padding-left: 1.1rem; margin-top: 2rem; }
.signature { font-style: italic; margin-top: 2rem; }

/* ---------- Reviews (real reviews only, with permission) ---------- */

.review-grid { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.review { margin: 0; background: var(--card); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.band .review { background: var(--paper); }
.review .stars { color: var(--star, #d99a12); font-size: 1.05rem; letter-spacing: 0.1em; line-height: 1; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1rem; line-height: 1.6; }
.review figcaption { margin-top: auto; font-family: var(--display); font-size: 0.9rem; font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); }
.review .ph { min-height: 9rem; }

/* ---------- FAQ ---------- */

details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
h2 + details { margin-top: 1rem; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { font-family: var(--display); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
details p { font-size: 1rem; }
