/* ==========================================================================
   Homepage closing section (home-more.js): the closing CTA. About ChromeGuard
   sits in the support section (world.js); answers are in answers.css.
   Built on tokens.css; loaded by index.html.
   ========================================================================== */
/* --- Closing CTA: three routes by readiness ----------------------------------- */
/* One block with the footer: the photo layer runs on behind it (--foot-h, set by initEnd)
   and fades to transparent at the bottom, so the page ends on black. */
.end { --foot-h: 0px; position: relative; isolation: isolate; padding-block: calc(var(--section-y) * 1.1) var(--s-10); }
.end__bg { position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: calc(100% + var(--foot-h)); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--foot-h) - 80px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--foot-h) - 80px), transparent 100%); }
.end__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 0; }
.end__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.45) 100%),
  linear-gradient(to top, rgba(0,0,0,0.78) 0, rgba(0,0,0,0.7) calc(var(--foot-h) + 6%), rgba(0,0,0,0) calc(var(--foot-h) + 50%)); }
.end__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); align-items: start; }
.end__title { max-width: 24ch; text-wrap: balance; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform); letter-spacing: var(--display-tracking); font-size: calc(clamp(3rem, 1.8rem + 4vw, 6rem) * var(--display-scale)); line-height: 0.92; }
.end__lead { margin-top: var(--s-5); max-width: 44ch; font-size: var(--t-lead); line-height: 1.5; color: var(--n-200); }
.end__routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); margin-top: var(--s-9); }
.end__routes li { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-3); padding-top: var(--s-5); border-top: 2px solid rgba(255,255,255,0.45); }
.end__routes li.is-main { border-top-color: var(--cg-yellow); }
.end__stage { font-size: 0.9375rem; color: var(--n-300); }
.end__routes h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: var(--display-tracking); font-size: calc(clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem) * var(--display-scale)); line-height: 1; }
.end__routes p { max-width: 36ch; line-height: 1.5; color: var(--n-200); }
.end__routes .btn { justify-self: start; margin-top: var(--s-3); }
.end__phone { display: grid; justify-items: end; gap: var(--s-3); text-align: right; }
.end__phone small { font-family: var(--font-label); font-stretch: var(--label-stretch); font-size: 0.75rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-300); }
.end__phone b { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-data); font-weight: 700; font-size: calc(clamp(2rem, 1.2rem + 2vw, 3.5rem) * var(--data-scale)); line-height: 1; white-space: nowrap; }
/* Homepage footer inside the merged block */
.has-end-merge .site-footer { background: transparent; }
.has-end-merge .site-footer__top { padding-top: var(--s-8); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.has-end-merge .site-footer__brand .btn { display: none; }
.end__phone .icon { width: 26px; height: 26px; color: var(--cg-yellow); }
.end__phone:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* --- About ChromeGuard, inside the support section (world.js) ----------------- */
.world-about { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-7); align-items: center; margin-bottom: var(--s-8); padding: var(--s-5) 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.world-about__k { line-height: 1.35; font-size: 0.9375rem; font-weight: 600; color: var(--cg-white); }
.world-about ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.world-about li { padding-left: var(--s-4); border-left: 1px solid var(--rule-dark); font-size: 0.9375rem; line-height: 1.3; color: var(--n-200); }
.world-about__go { font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.world-about__go:hover { text-decoration-thickness: 2px; }
.world-about__go .icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.world-about__go:hover .icon { transform: translateX(3px); }

/* --- responsive ------------------------------------------------------------------ */
@media (max-width: 1279px) {
  .world-about { grid-template-columns: minmax(0, 1fr) auto; }
  .world-about__k { grid-column: 1 / -1; width: auto; }
  .world-about ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .end__routes { grid-template-columns: 1fr; gap: var(--s-6); }
  .end__head { grid-template-columns: 1fr; gap: var(--s-7); }
  .end__phone { justify-items: start; text-align: left; padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .world-about { grid-template-columns: 1fr; gap: var(--s-4); }
  .world-about ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-about__go { justify-self: start; }
}
@media (max-width: 767px) {
  .world-about ul { grid-template-columns: 1fr; }
  .end__phone b { font-size: calc(2rem * var(--data-scale)); }
}

/* --- Eyebrows: small labels that sit before a heading share the uppercase style --- */
.pf-kicker, .end__stage, .world-about__k, .xray-step .t-label { font-family: var(--font-label); font-stretch: var(--label-stretch); font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
.pf-trial__copy .chapter-label { max-width: none; font-size: 0.75rem; line-height: 1.2; color: var(--n-300); }   /* beats .pf-trial__copy p */
