/* ============================================================
   IMPLEMENTATION PLAYBOOK (paid) — page-specific sections
   Loads AFTER theme.css. Isolated from other pages.
   ============================================================ */

/* ---------- Sales hero (centered, fits within one viewport) ---------- */
.page-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* `safe` falls back to flex-start once the content is taller than the viewport;
     plain `center` would push the opening paragraph up under the fixed header. */
  justify-content: safe center;
  padding-top: clamp(80px, 11vh, 118px);   /* clear the fixed header */
  padding-bottom: clamp(22px, 4vh, 48px);
}
/* widen only the hero's container so the big headline can run ~2 lines
   (other sections keep the theme's normal .wrap width) */
.page-hero > .wrap { max-width: min(1900px, 94vw); }
.sales-hero {
  width: 100%;
  max-width: none;                          /* let the hero use the full content width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2vh, 20px);              /* vertical rhythm scales with height */
}
.sales-hero > * { margin: 0; }              /* gap owns the spacing */
.sales-hero h1 {
  font-size: clamp(2.3rem, 4.7vw, 4.3rem);
  line-height: 1.16;
  text-transform: none;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.sales-hero .lead { max-width: 940px; }

/* lime highlight pill between description and video */
.hero-pill {
  display: inline-block;
  padding: .5em 1.25em;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .3vw, 1.1rem);
  letter-spacing: .01em;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.hero-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(218,255,0,.28);
}

/* Video sized by viewport height, always 16:9, never taller than its cap.
   The vh term used to be 32vh, from when the hero was meant to fit one
   viewport — an intent already dropped in Jul 2026 (the hero is taller than
   a laptop viewport, hence `justify-content: safe center`). Raised to 46vh
   so the video reads at a sensible size; the vh term is kept only so it
   still shrinks on genuinely short screens. */
.sales-hero__media {
  width: 100%;
  max-width: min(880px, calc(46vh * 16 / 9));
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sales-hero__media:hover {
  transform: translateY(-6px);
  border-color: rgba(218,255,0,.44);
  box-shadow: 0 22px 48px rgba(0,0,0,.36), 0 0 24px rgba(218,255,0,.1);
}
.sales-hero__media .ph__play {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.sales-hero__media:hover .ph__play {
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(218,255,0,.38);
}

/* Real intro video replaces the .ph placeholder, so the border/radius the
   placeholder used to inherit from .ph has to be restated here. */
.sales-hero__media--video {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* the placeholder lifted on hover to read as clickable; a playing video
   should not move under the cursor while you reach for its controls */
.sales-hero__media--video:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.sales-hero__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* breathing room between the video and the section title below it */
.sales-hero > .sales-hero__title { margin-top: clamp(16px, 3vh, 40px); }
.sales-hero__title h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  line-height: 1.06;
  margin-bottom: .5em;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vh, 14px);
}

/* price, stacked: "Normal Price: $983" over "This week's promo: $59 (94% off)" */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-head);
  transition: transform .24s var(--ease), filter .24s var(--ease);
}
.hero-cta:hover .price-block {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255,140,20,.2));
}
.price-block__was { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.price-block__was s { color: var(--ink-dim); }
.price-block__now { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); }
.price-block__now strong { font-size: 1.5em; }
.price-block__off { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lime); }
.hero-cta .btn,
.whofor .btn,
.head-block--center .btn {
  transition: transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.hero-cta .btn:hover,
.whofor .btn:hover {
  box-shadow: 0 16px 34px rgba(255,140,20,.2);
}

/* ---------- What you get: stacked full-width rows (icon left, copy right) ---------- */
.inside { display: grid; gap: clamp(16px, 2vw, 24px); max-width: 1040px; margin: 0 auto; }
.inside__item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}
.inside__media {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding-right: clamp(16px, 2vw, 32px);
  border-right: 1px solid rgba(218,255,0,.28);
}
.inside__icon {
  display: block;
  width: clamp(68px, 7vw, 104px);
  aspect-ratio: 1;
  color: var(--lime);
}
.inside__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(218,255,0,.16), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.inside__item > * { position: relative; z-index: 1; }
.inside__item:hover {
  transform: translateY(-8px);
  border-color: rgba(218,255,0,.42);
  background: rgba(255,255,255,.045);
  box-shadow: 0 20px 44px rgba(0,0,0,.32), 0 0 18px rgba(218,255,0,.07);
}
.inside__item:hover::before { opacity: 1; }
/* Bryan asked for Montserrat on these box titles, not the Anton display face */
.inside__item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.12rem, 1.4vw, 1.35rem);
  line-height: 1.25;
  margin-bottom: 12px;
}
.inside__item p { color: var(--ink-dim); margin: 0; }
.inside__item .inside__cue { margin-top: 1.05em; }
.inside__item .inside__close { margin-top: 1.05em; }

/* ---------- Value table ---------- */
.value-table { border: 1px solid var(--line-invert); border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.value-row {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line-invert);
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.value-row:first-child { border-top: 0; }
.value-row--head { background: #f2f2f2; font-weight: 700; }
.value-row span:last-child { text-align: right; font-weight: 600; color: var(--ink-invert); white-space: nowrap; }
.value-row:not(.value-row--head):hover {
  transform: translateX(6px);
  background: #f8f8f8;
}
.value-note { max-width: 760px; margin-top: 28px; color: var(--ink-invert-dim); }
.value-cta { max-width: 760px; margin-top: 28px; }
.value-cta .btn {
  transition: transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease);
}
.value-cta .btn:hover {
  box-shadow: 0 16px 34px rgba(255,140,20,.2);
}

/* ---------- Playbook vs Agency comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.compare__col {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,3vw,36px);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.compare__col--us { background: linear-gradient(180deg, rgba(218,255,0,.10), rgba(218,255,0,.02)); border-color: rgba(218,255,0,.4); }
.compare__col:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.compare__col--us:hover {
  border-color: rgba(218,255,0,.68);
  background: linear-gradient(180deg, rgba(218,255,0,.16), rgba(218,255,0,.035));
}
.compare__col--them:hover { border-color: rgba(255,255,255,.24); }
.compare__head { font-size: 1.5rem; margin-bottom: 20px; }
.compare__col--us .compare__head { color: var(--lime); }
.compare__col ul { list-style: none; margin: 0; padding: 0; }
.compare__col li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-dim); }
.compare__col li:first-child { border-top: 0; }
.compare__col--us li { color: var(--ink); }
.compare__col li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border-radius: 50%; }
.compare__col--us li::before { background: var(--lime); }
.compare__col--them li::before { border: 2px solid var(--ink-dim); top: 16px; }

/* ---------- Who this is for ---------- */
/* Bryan 2026-07-25: heading moved into the left column with the cover directly
   beneath it, so both columns start at the same top edge (was: centred figure
   left / heading+copy right). */
.whofor { align-items: start; }
.whofor__lead h2 { margin-top: 0; }
.whofor__lead .whofor__media { margin-top: clamp(20px, 3vw, 44px); }
.whofor__body > :first-child { margin-top: 0; }
.whofor__media {
  min-height: 320px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.whofor__media:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: rgba(218,255,0,.42);
  box-shadow: 0 22px 48px rgba(0,0,0,.34), 0 0 20px rgba(218,255,0,.08);
}
/* real cover render (transparent bg) — no card box, just the floating book */
.whofor__media--img { margin: 0; min-height: 0; overflow: visible; }
.whofor__media--img img {
  display: block; width: min(72%, 400px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 26px 48px rgba(0,0,0,.5));
}
.whofor__media--img:hover { border-color: transparent; box-shadow: none; }
.whofor .btn { margin-top: 22px; }

/* ---------- Free fallback offer ---------- */
.free-offer {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  color: var(--ink);
  text-align: center;
}
.free-offer__headline {
  margin: 0 auto 28px;
  max-width: 860px;
}
.free-offer__headline p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
  line-height: 1.55;
  font-weight: 600;
  text-transform: none;
}
.free-offer h2 {
  margin: 0 auto 24px;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  text-transform: none;
}
.free-offer h2 span {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-decoration-color: var(--lime);
  text-underline-offset: .08em;
}
.free-offer__body {
  max-width: 760px;
  margin: 0 auto 30px;
}
.free-offer__body p {
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}
.free-offer__body strong {
  color: var(--ink);
}
.free-offer .btn {
  min-width: min(100%, 360px);
  box-shadow: 0 14px 30px rgba(218,255,0,.22);
}

/* ---------- Enquiry form polish on this page ---------- */
.chip span {
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover span {
  transform: translateY(-2px);
  border-color: rgba(255,140,20,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* ---------- Table → stacked cards on mobile ---------- */
@media (max-width: 760px) {
  .value-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .value-row span:last-child { text-align: left; white-space: normal; color: var(--ink-invert); }
  .value-row--head { display: none; }
  .compare { grid-template-columns: 1fr; }

  /* rows stack: icon sits above the copy, the divider moves under it */
  .inside__item { grid-template-columns: 1fr; gap: clamp(16px, 4vw, 24px); }
  .inside__media {
    justify-items: start;
    padding: 0 0 clamp(14px, 3vw, 20px);
    border-right: 0;
    border-bottom: 1px solid rgba(218,255,0,.28);
  }
}

@media (max-width: 640px) {
  .sales-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
    line-height: 1.12;
  }

  .hero-pill:hover,
  .sales-hero__media:hover,
  .hero-cta:hover .price-block__nums,
  .inside__item:hover,
  .value-row:not(.value-row--head):hover,
  .compare__col:hover,
  .whofor__media:hover,
  .chip:hover span {
    transform: none;
  }

  .free-offer {
    text-align: left;
  }

  .free-offer__headline p,
  .free-offer h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .free-offer__headline p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .free-offer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sales-hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: 1.14;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pill, .sales-hero__media, .sales-hero__media .ph__play,
  .price-block__nums, .hero-cta .btn,
  .whofor .btn, .head-block--center .btn, .free-offer .btn, .inside__item, .inside__item::before,
  .value-row, .compare__col, .whofor__media, .chip span {
    transition: none;
  }
  .hero-pill:hover, .sales-hero__media:hover, .sales-hero__media:hover .ph__play,
  .hero-cta:hover .price-block__nums, .inside__item:hover,
  .value-row:not(.value-row--head):hover,
  .compare__col:hover, .whofor__media:hover, .chip:hover span {
    transform: none;
  }
}
