/* how-it-works.css: the page's own layout (plan.md "## How It Works & Training"). Only places and sizes its parts, with
   system.css's tokens; the components (header base, form, prints, reviews, FAQ, close) come from components.css. */

/* ---------- 1. the header: full-bleed footage, the words centered over a soft grade, the form over its lower edge ---------- */
.ihero--full { padding: 0; }
.ihero--full .ihero__stage { position: relative; height: clamp(560px, 82svh, 820px); overflow: hidden; background: var(--c-ink); isolation: isolate; }
.ihero--full .ihero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  radial-gradient(ellipse 70% 58% at 50% 24%, color-mix(in srgb, var(--c-ink) 52%, transparent), transparent 72%),
  linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 30%, transparent), transparent 42%, transparent 70%, color-mix(in srgb, var(--c-ink) 38%, transparent)); }
.ihero--full .ihero__copy { position: absolute; z-index: 5; left: 50%; top: clamp(5.5rem, 4rem + 4vw, 8rem); width: min(92%, 52rem); translate: -50% 0; justify-items: center; text-align: center; gap: 0.9rem; }
.ihero--full .ihero__title { font-size: var(--fs-h1); max-width: 18ch; }
.ihero--full .ihero__line { max-width: 40rem; }
.ihero--full .loop--frame { --loop-inset: 14px; --loop-r: 26px; z-index: 4; }
.ihero--full .ihero__formwrap { width: min(640px, calc(100% - 2.5rem)); margin: -7.5rem auto 0; }
@media (max-width: 899px) {
  .ihero--full .ihero__stage { height: clamp(440px, 70svh, 580px); }
  .ihero--full .ihero__copy { top: 4.75rem; }
  .ihero--full .ihero__title { font-size: clamp(2.1rem, 1.5rem + 3vw, 3rem); }
  .ihero--full .ihero__line { font-size: 1.02rem; }
  .ihero--full .ihero__formwrap { width: calc(100% - 1rem); margin-top: -4.5rem; }
}

/* ---------- 2. on a lead, then free (the signature scene) ---------- */
.lessons__head { margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.lessons__stage { aspect-ratio: 16 / 9; box-shadow: var(--shadow-m); }
.lessons__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.lessons__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 679px) { .lessons__stage { aspect-ratio: 4 / 5; --lf-compact: 1; } }

/* ---------- 3. gentle on your dog ---------- */
.gentle__stage { aspect-ratio: 4 / 3.6; box-shadow: var(--shadow-m); }
.gentle__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 62% 50%; }
.gentle__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 679px) { .gentle__stage { aspect-ratio: 4 / 5.6; --gd-compact: 1; } .gentle__img { object-position: 66% 40%; } }

/* ---------- 4. day or night: a dusk band ---------- */
.answer { background: var(--c-ink); color: var(--c-on-ink); }
.answer .head__title { color: var(--c-on-ink); }
.answer .head__line { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.answer__head { margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.answer__stage { aspect-ratio: 16 / 7; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.answer__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 45%; }
.answer__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 759px) { .answer__stage { aspect-ratio: 4 / 5; } .answer__img { object-position: 68% 45%; } }

/* ---------- 5. the trainer ---------- */
.trainer__facts { display: grid; gap: 0.7rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.trainer__facts li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 1.02rem; color: var(--c-ink); }
.trainer__facts .icon { flex: none; margin-top: 0.15em; color: var(--c-cobalt); width: 1.25em; height: 1.25em; }
.trainer__media { display: grid; min-height: 420px; }
.trainer__print { grid-area: 1 / 1; margin: 0; }
.trainer__print--a { width: min(80%, 400px); justify-self: start; align-self: start; z-index: 1; }
.trainer__print--a .loop { --loop-inset: -14px; --loop-r: 16px; }
.trainer__print--b { width: min(46%, 230px); justify-self: end; align-self: end; z-index: 2; margin-bottom: -1rem; }
@media (max-width: 899px) {
  .trainer__media { min-height: 0; margin-top: 1rem; padding-bottom: 1.5rem; }
  .trainer__print--a { width: 78%; }
  .trainer__print--b { width: 44%; margin-bottom: -1.5rem; }
}
