/* KuyaYos /go/ landing page styles.
 * Loaded after styles.css + pricing.css. Self-contained: /go/ does NOT load
 * book.css. No inline styles anywhere (CSP style-src 'self').
 *
 * Model (2026-07-02 rebuild): the whole page is a vertical "stage". One
 * persistent teal + scrolling-skyline background (.go-bg, fixed) sits behind
 * full-viewport scenes (.go-scene). Each scene's content rises into the centre
 * from below and drifts up and out as you scroll, via native CSS
 * scroll-driven animations (animation-timeline: view()). No scroll-hijacking;
 * where scroll-driven animations are unsupported, or for reduced-motion users,
 * content is simply shown statically. The lead form is a multi-step wizard
 * (js/go.js) with a no-JS fallback that shows every field at once.
 */

/* ---------- Base ------------------------------------------------------- */

body.go {
  background: var(--brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* One scene at a time: mandatory scroll-snap so the reader can't rest
   half-way between scenes; a scroll gesture settles the next/previous scene
   into view (and its content animates in as it arrives). Clean now that every
   scene is a uniform full viewport. Off for reduced-motion. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scroll-snap-type: y mandatory;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}

/* Suspend snap while a form field is focused: on mobile the keyboard resizes
   the viewport, which would otherwise re-snap to the next scene mid-typing.
   js/go.js toggles .snap-off on focus in/out of the form. */
html.snap-off { scroll-snap-type: none; }

/* Keep the sticky header + all content above the fixed background layer. */
body.go main { position: relative; z-index: 1; }

/* Landing page: no site footer (privacy stays linked from the form consent
   and the cookie banner). */
body.go .site-footer { display: none; }

/* Header minimizes after the first scroll so the eye stays on the centre of
   the stage (js/go.js toggles .is-min on scroll). */
.site-header--go,
.site-header--go .site-header__inner,
.site-header--go .brand__word {
  transition: min-height 0.28s ease, box-shadow 0.28s ease, font-size 0.28s ease;
}
.site-header--go.is-min .site-header__inner { min-height: 46px; }
.site-header--go.is-min .brand__word { font-size: 1.2rem; }
.site-header--go.is-min { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14); }
@media (prefers-reduced-motion: reduce) {
  .site-header--go,
  .site-header--go .site-header__inner,
  .site-header--go .brand__word { transition: none; }
}

/* ---------- Persistent stage background -------------------------------- */

.go-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--brand);
  overflow: hidden;
  pointer-events: none;
}

/* Reuse the global .hero__skyline-track scroller (animation + img sizing come
   from styles.css; it auto-stops under prefers-reduced-motion). */
.go-bg__skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: min(40vh, 320px);
  overflow: hidden;
  opacity: 0.2;
}

/* ---------- Scenes ----------------------------------------------------- */

.go-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 4.5rem;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.go-scene__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

/* Content rises into centre from below, holds, then drifts up and out.
   Driven by the scene's own visibility in the scrollport. Off-screen scenes
   rest at opacity 0 (fill: both). Only where scroll-driven animation is
   supported AND motion is allowed. */
/* Scene entrance: content fades and rises into the centre as each scene
   becomes the active (snapped) one. Driven by an IntersectionObserver class
   (js/go.js sets .go-anim on the body and toggles .is-in per scene) rather
   than scroll position, so the fade stays visible even when mandatory snap
   jumps between scenes in a single gesture. No-JS / reduced-motion fallback:
   scenes are simply visible (the .go-anim gate is only added when JS runs and
   motion is allowed). */
.go-anim .go-scene__inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.go-anim .go-scene.is-in .go-scene__inner {
  opacity: 1;
  transform: none;
}

/* Shared scene text (on teal, so white). Cards inside scenes keep their own
   dark-on-paper colours. */
.go-scene__title {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw + 0.8rem, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6rem;
}
.go-scene__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto 1.9rem;
}
.go-scene__note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin: 1.6rem 0 0;
}
.go-scene__note a { color: #fff; }

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

.go-eyebrow { color: var(--action); }

.go-scene--hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw + 1rem, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0.3rem 0 0.9rem;
}

.go-lede {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.2rem);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 auto 1.4rem;
}

.go-chips {
  justify-content: center;
  margin: 0 auto 1.6rem;
}

.go-cta { margin: 0 0 0.6rem; }

.go-fineprint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Cutout figures (scene elements) --------------------------- */

.go-fig {
  /* Harmonise the cutouts' different lighting into one set + ground them. */
  filter: saturate(0.9) contrast(1.03) brightness(0.98) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
}

/* Hero lineup: a collage band of the team, cutouts fading at the edges. */
.go-lineup {
  margin-top: 2.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
  height: clamp(210px, 32vh, 330px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.go-lineup .go-fig {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

/* ---------- Services scene (split) ------------------------------------ */

.go-scene__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 62rem;
  text-align: left;
}
@media (min-width: 52rem) {
  .go-scene__split { grid-template-columns: 1.15fr 0.85fr; }
}
.go-scene__split .go-scene__sub { margin-left: 0; margin-right: 0; }

.go-scene__aside {
  display: flex;
  justify-content: center;
}
.go-scene__aside .go-fig {
  height: clamp(240px, 30vh, 360px);
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

.go-services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
}
@media (min-width: 32rem) {
  .go-services { grid-template-columns: 1fr 1fr; }
}
.go-services li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
  color: #fff;
}
.go-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--action);
  border-radius: 2px;
}

/* ---------- How scene (step cards on teal) ---------------------------- */

@media (min-width: 48rem) {
  .go-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Plans + close (reused white cards, just centred on teal) --- */

.go-qr { text-align: left; }

/* "/mo" suffix on tier prices (replaces the inline style used on /subscribe/). */
.pricing-tier__price-permo {
  font-weight: 700;
  font-size: 0.6em;
  letter-spacing: 0;
}

/* ---------- Lead form card ------------------------------------------- */

.lead-card {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
  background: var(--docket-paper, #fbf8f0);
  border: 2px solid var(--ink);
  border-radius: var(--radius, 6px);
  box-shadow: var(--docket-shadow, 8px 8px 0 0 var(--action));
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}

.lead-field { margin-bottom: 1.1rem; }

.lead-field__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.lead-field__optional {
  font-weight: 400;
  color: var(--slate-700, #45556a);
}

.lead-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper, #fff);
  border: 2px solid var(--ink);
  border-radius: var(--radius, 6px);
}
.lead-field__input:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.28);
}
.lead-field__input[aria-invalid="true"] { border-color: #b3261e; }

.lead-field__error {
  margin: 0.35rem 0 0;
  color: #b3261e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Issues checklist */
.lead-issues {
  border: none;
  margin: 0;
  padding: 0;
}
.lead-issues__list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;
}
@media (min-width: 32rem) {
  .lead-issues__list { grid-template-columns: 1fr 1fr; }
}

.lead-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
  cursor: pointer;
}
.lead-check input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.lead-field--consent { margin: 0 0 0.25rem; }

/* Honeypot: off-screen, still in the DOM + tab-skippable. */
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstile-widget { margin: 0.75rem 0; }

.lead-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.lead-risk {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-700, #45556a);
  margin: 0.7rem 0 0;
}

.lead-error {
  margin-top: 0.85rem;
  text-align: center;
}

/* ---------- Multi-step wizard ---------------------------------------- */

/* Progress dots + step nav only exist in enhanced (JS) mode. */
.wizard__dots { display: none; }
.wizard__nav { display: none; }

.wizard__legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

/* No-JS fallback: steps just stack, every field visible, single submit. */
.wizard { position: relative; }

.wizard--enhanced {
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .wizard--enhanced { transition: none; }
}

.wizard--enhanced .wizard__step {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.45s;
}
.wizard--enhanced .wizard__step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard--enhanced .wizard__step.is-prev { transform: translateX(-40px); }  /* exited left */
.wizard--enhanced .wizard__step.is-next { transform: translateX(40px); }   /* waiting right */

@media (prefers-reduced-motion: reduce) {
  .wizard--enhanced .wizard__step,
  .wizard--enhanced .wizard__step.is-active { transform: none; transition: opacity 0.2s ease, visibility 0s; }
}

/* Dots live outside .wizard (a sibling), so key them off the form class the
   enhancer adds, not off .wizard--enhanced. */
.lead-form--wizard .wizard__dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}

/* [hidden] on a .btn (e.g. step 1's "Continue") needs help: .btn sets
   display, which beats the UA [hidden] rule. */
.wizard [hidden] { display: none; }
.wizard__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--slate-200, #dde4e9);
  transition: background 0.3s ease, transform 0.3s ease;
}
.wizard__dot.is-active { background: var(--action); transform: scale(1.25); }
.wizard__dot.is-done { background: var(--brand); }

.wizard--enhanced .wizard__nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.wizard__next { margin-left: auto; }

/* ---------- Success state -------------------------------------------- */

.lead-success h2 { margin-top: 0; }
.lead-success__ref {
  font-family: var(--docket-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-weight: 700;
}
.lead-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ---------- Consent banner (js/consent.js) --------------------------- */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  box-shadow: 0 -2px 0 0 var(--action);
}
.consent-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 44rem;
}
.consent-banner__text a { color: #fff; text-decoration: underline; }
.consent-banner__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.consent-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.consent-banner .btn--ghost:hover { border-color: #fff; }

/* ---------- Mobile ---------------------------------------------------- */

@media (max-width: 40rem) {
  .go-scene { padding: 5rem 1rem 3.5rem; }
  .go-cta .btn,
  .lead-submit { width: 100%; }
  .go-lineup {
    margin-top: 1.8rem;
    height: clamp(170px, 30vh, 230px);
    gap: 0.15rem;
  }
  /* Drop the wide vanity cutout on phones so the two clean portraits (aircon +
     screwdriver) both stay visible instead of the vanity dominating. */
  .go-fig--2 { display: none; }
  .go-scene__aside { display: none; }  /* keep the services scene compact on phones */
}
