/* site\assets\css\pages\solutions.css: Growth Solutions (src\pages\solutions.mjs). Places and sizes its parts; every
   component (bands, frames, footage, the doors, the picker, the FAQ, the designed ground, the inner close) is
   design\components.css's. */

/* ---------- hero: the phone lighting up, words centered, search-demo in glass under the doors ---------- */
.sh { position: relative; display: flex; align-items: center; min-height: max(700px, calc(100svh - var(--header-h))); padding-block: clamp(2.75rem, 1.5rem + 3vw, 4.5rem) clamp(1.25rem, .5rem + 1.5vw, 2.25rem); text-align: center; }
.sh__footage { inset: -1px; }
.sh__footage > video, .sh__footage > img { object-position: 50% 62%; }
.sh__footage::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 74%, transparent) 42%, color-mix(in srgb, var(--c-ink) 46%, transparent) 72%, color-mix(in srgb, var(--c-ink) 70%, transparent) 100%);
}
.sh__stop { z-index: 6; }
.sh__in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.15rem; }
.sh__title { max-width: 940px; font-size: var(--fs-h1); line-height: 1.04; }
.sh__line { max-width: 620px; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-ink-soft); }
.sh__doors { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1rem 1.5rem; margin-top: .35rem; }
.sh__doors .cta { align-items: center; text-align: center; }
.sh__scene { width: min(100%, 540px); margin-top: .1rem; }
@media (max-width: 699px) {
  /* the phone: the words on the forest, then the clip as a band under them with search-demo standing on it (a card on
     its clip at 1440 stays on it at 390); the band no taller than its poster's file draws sharp */
  .sh { display: block; min-height: 0; padding-top: 2.25rem; padding-bottom: 0; --sh-band: 500px; }
  .sh__footage { inset: auto -1px -1px; height: var(--sh-band); --pos: 50% 55%; }
  .sh__footage > video { object-position: 50% 55%; }
  .sh__footage::after { background: linear-gradient(180deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 45%, transparent) 26%, color-mix(in srgb, var(--c-ink) 30%, transparent) 100%); }
  .sh__stop { top: auto; bottom: calc(var(--sh-band) - 64px); }
  .sh__in { padding-bottom: 1.25rem; }
  .sh__scene { margin-top: 1.75rem; }
  .sh__doors { flex-direction: column; align-items: stretch; width: 100%; }
  .sh__doors .btn { width: 100%; }
}

/* ---------- chapters: one client, seven steps; a framed photo with its scene in glass, the solution beside it ---------- */
.chaps { display: grid; gap: clamp(3.5rem, 2rem + 5vw, 7rem); margin: 0; padding: 0; list-style: none; }
.chap { display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem); align-items: center; }
.chap__media { height: 560px; }
.chap__footage { inset: -1px; }
.chap__footage > img, .chap__footage > video { object-position: var(--pos, 50% 50%); }
.chap__stop { z-index: 6; }
.chap__stop--left { right: auto; left: 16px; }
.chap .chap__stage { top: 2%; bottom: 2%; width: min(420px, 54%); }
.chap .chap__stage--right { right: 1.5%; }
.chap .chap__stage--left { left: 1.5%; }
.chap .chap__stage--lmap { width: min(400px, 52%); }
.chap .chap__stage--funnel { width: min(360px, 44%); }
.chap .chap__stage--site-convert { width: min(400px, 50%); }
.chap .chap__stage--callbook { top: 6%; bottom: 6%; width: min(400px, 50%); }
.chap .chap__stage--leads { top: auto; bottom: 4%; height: 300px; width: min(360px, max(44%, 270px)); }
.chap .chap__stage--island { top: 4%; bottom: 4%; width: min(420px, 51%); }
.chap__body { display: grid; justify-items: start; gap: .9rem; min-width: 0; }
.chap__step { font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-text); }
.chap__title { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.35rem, 1.1rem + .7vw, 1.65rem); }
.chap .textlink { display: block; }
.chap .textlink__arrow { display: inline-block; margin-left: .35em; vertical-align: -3px; }
.chap__last { white-space: nowrap; }
.chap__icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--c-brand-light); color: var(--c-brand-dark); }
.chap__icon svg { width: 24px; height: 24px; }
.chap__line { font-size: var(--fs-lead); color: var(--c-ink-soft); }
.chap__list { display: grid; width: 100%; margin: .2rem 0 .3rem; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.chap__list li { position: relative; display: grid; gap: .12rem; padding: .7rem 0 .7rem 1.85rem; border-bottom: 1px solid var(--c-line); }
.chap__list li::before { content: ''; position: absolute; left: 0; top: .92rem; width: 16px; height: 16px; background: var(--mark-bars) no-repeat center / contain; }
.chap__list b { font-family: var(--font-ui); font-weight: 700; line-height: 1.35; }
.chap__list span { font-size: var(--fs-small); line-height: 1.4; color: var(--c-ink-soft); }
.chap__note { font-size: var(--fs-xs); color: var(--c-ink-soft); }
@media (min-width: 1360px) {
  .chap { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: clamp(3rem, 1rem + 3vw, 4.5rem); }
  .chap--flip { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .chap--flip .chap__media { order: 2; }
}
@media (min-width: 760px) {
  /* a photo whose subject sits too near its scene's side, even at its edge's crop, starts left of its frame */
  .chap__footage { left: calc(var(--shift, 0%) - 1px); }
  /* a photo with something off its story at its top (sol-ch4's stained ceiling) is drawn taller and lifted past it */
  .chap__footage > img { top: var(--d-top, 0); height: var(--d-h, 100%); }
}
@media (min-width: 760px) and (max-width: 1359px) {
  .chap__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .chap__body > * { grid-column: 1; }
  .chap__body > .chap__list, .chap__body > .chap__note { grid-column: 2; }
  .chap__body > .chap__list { grid-row: 1 / span 4; margin-top: 0; }
}
@media (max-width: 759px) {
  /* the phone: the scene stands under the photo's subject and on the photo for at least half its height (Tomer: a card
     on its photo at 1440 stays half on it at 390): the photo fills the frame's top strip (--peek, the subject's face
     clear of the card) and the stage's first --over px; a photo whose subject sits low is drawn taller and lifted
     (--m-h, --m-top) so the face comes into the strip. Values per chapter in src\pages\solutions.mjs (m). */
  .chap__media { height: auto; padding-top: var(--peek); }
  .chap__footage { inset: -1px -1px auto; height: calc(var(--peek) + var(--over) + 1px); }
  .chap__footage > img, .chap__footage > video { top: var(--m-top, 0); height: var(--m-h, 100%); object-position: var(--pos-m, 50% 50%); }
  .chap .chap__stage, .chap .chap__stage--leads { position: relative; inset: auto; width: auto; height: auto; min-height: 340px; }
  .chap .chap__stage--lmap { min-height: 490px; }
  .chap .chap__stage--funnel { min-height: 440px; }
  .chap .chap__stage--site-convert { min-height: 540px; }
  .chap .chap__stage--callbook { min-height: 300px; }
  .chap .chap__stage--leads { min-height: 260px; }
  .chap .chap__stage--island { min-height: 300px; }
  .chap__stop, .chap__stop--left { top: calc(var(--peek) - 52px); right: 12px; left: auto; }
}

/* ---------- mix: the blueprint's shares on the designed ground ---------- */
.mixp__in { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.mixp__words { display: grid; justify-items: start; gap: 1.1rem; }
.mixp__words .head { margin-bottom: .2rem; }
.mixp__lead { font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-on-ink); }
.mixp__marks { margin-bottom: .6rem; }
.mixp__pic { position: relative; height: 480px; }
.mixp__scene { height: 100%; }
.mixp__stop { top: -6px; right: -6px; }
@media (min-width: 1000px) {
  .mixp__in { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: clamp(2.5rem, 1rem + 3vw, 4.5rem); }
}
@media (max-width: 699px) {
  .mixp__pic { height: auto; }
  .mixp__scene { height: auto; }
  .mixp__stop { top: -14px; right: -4px; }
}

/* ---------- questions ---------- */
.sfaq__in { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }
.sfaq__head { justify-items: start; margin-bottom: 0; }
@media (min-width: 960px) { .sfaq__in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; } }

/* ---------- close: the full week on the owner's screen, newclients in glass at its foot ---------- */
.iclose__stop { z-index: 6; }
.sclose__footage > video { object-position: 50% 30%; }
.sclose__stage { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 7%; width: 340px; }
@media (min-width: 900px) {
  .sclose__footage { left: 30%; }
  .sclose__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 62%, transparent) 16%, color-mix(in srgb, var(--c-ink) 14%, transparent) 42%, transparent 70%); }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .sclose__footage { left: 22%; }
  .sclose__stage { width: 300px; }
}
