/* Sales page extras (homepage, pricing, plug-in, Who it's for, hardware, savings, About, contact and
   live till pages). Kept in its own file so site.css and its cache version stay as they are.
   Rules these support (CLAUDE.md and the page checks): one main button per section, anything else
   a text link; the first screen on a phone shows the headline, one line of proof, one main button
   and the live till; the common questions sit next to the prices. */

/* Text links: every action that is not the section's main button. */
.text-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.text-link:hover { color: var(--ink); }
.text-link::after { content: "\2192"; text-decoration: none; }
button.text-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
button.text-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
button.text-link:disabled::after { content: none; }
.hero__actions .text-link, .cta .text-link { align-self: center; }
.plan .text-link { margin-top: auto; padding-top: .4rem; }
.section-link { margin: 1.4rem 0 0; text-align: center; }

/* One line of proof under the headline. */
.hero__proof { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1.1rem; color: var(--text); font-size: .95rem; font-weight: 600; }
.hero__proof::before { content: "\2713"; color: var(--accent-deep); font-weight: 900; }
.hero .lead { margin-bottom: .8rem; }
.page-hero .hero__proof { justify-content: center; max-width: 720px; margin: .8rem auto 0; }
/* Savings: the calculator is the first screen, so the heading above it stays short. */
.sv-hero { padding-bottom: 1rem; }
.sv-hero .lead { margin-top: .4rem; }

/* site.css underlines every link in a page hero; the main button is not a link to underline. */
.page-hero a.btn { text-decoration: none; }
.page-hero a.btn--primary { color: #fff; }

/* The live till demo, drawn at desktop size and scaled to fit (assets/js/features/live-till.js). */
.live-till { margin: 0; }
.live-till__screen { --live-till-scale: .4; position: relative; overflow: hidden; aspect-ratio: 1280 / 800; background: #e8ebee; }
.live-till .live-till__screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--live-till-scale)); transform-origin: 0 0; }
.live-till__caption { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; align-items: center; padding: .65rem 1rem; background: #fff; color: var(--muted); font-size: .82rem; }
.hero--pricing { padding-bottom: 2.5rem; }
.hero--pricing h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

/* A marked photo slot as the first-screen product view (includes/page-parts.php). */
.hero__visual .photo-slot { min-height: 300px; border: 2px dashed var(--line); border-radius: var(--radius-lg); text-align: center; padding: 1rem; }

/* Questions answered right beside the prices (includes/page-parts.php). */
.price-questions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; max-width: 1040px; margin: 2rem auto 0; }
.price-questions div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.price-questions dt { margin: 0 0 .35rem; color: var(--ink); font-weight: 800; }
.price-questions dd { margin: 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 540px) {
  .hero .hero__actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
  .hero .hero__actions .btn { width: auto; padding: .8rem 1.3rem; font-size: .95rem; }
  .hero__proof { font-size: .88rem; margin-bottom: .9rem; }
  .hero .lead { font-size: .95rem; margin: .6rem 0 .7rem; }
  .live-till__caption { font-size: .78rem; padding: .55rem .8rem; }
  .hero__visual .photo-slot { min-height: 190px; }
  .hero .eyebrow { margin-bottom: .2rem; }
}
