/* NS-2071 /how-it-works/ (patterns/how-it-works-page.php). Builds on the shared .qjr-info-* page system in qjr.css; everything here is scoped to .qjr-hiw2. */

/* Hero: copy left, real bench photo right with the QJR mailer inset. */
.qjr-hiw2 .qjr-hiw2-hero{padding-block:clamp(56px,7vw,96px)}
.qjr-hiw2 .qjr-hiw2-hero .qjr-info-hero__inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(36px,6vw,80px)}
.qjr-hiw2 .qjr-hiw2-hero .qjr-info-hero__copy>*:first-child{margin-top:0}
.qjr-hiw2 .qjr-hiw2-hero__note{display:flex;gap:10px;align-items:flex-start;max-width:46ch;margin:28px 0 0;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--wp--preset--color--fg-inverse) 18%,transparent);color:color-mix(in srgb,var(--wp--preset--color--fg-inverse) 80%,transparent)!important;font-size:.95rem!important;line-height:1.55}
.qjr-hiw2 .qjr-hiw2-hero__note::before{content:"";flex:0 0 18px;width:18px;height:18px;margin-top:2px;background:var(--wp--preset--color--fg-accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat}
.qjr-hiw2-hero__media{position:relative;margin:0 0 28px;padding:0}
.qjr-hiw2-hero__media>img{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;object-position:60% 50%;border-radius:20px;box-shadow:0 24px 60px rgb(0 0 0 / .32)}
.qjr-hiw2-hero__inset{position:absolute;left:-28px;bottom:-28px;width:38%;max-width:220px;padding:10px;border-radius:16px;background:var(--wp--preset--color--bg-base);box-shadow:0 16px 40px rgb(0 0 0 / .28)}
.qjr-hiw2-hero__inset img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:8px}

/* Four steps: one visual per step, no card borders. */
.qjr-hiw2-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.4vw,32px);margin:0;padding:0;list-style:none;counter-reset:none}
.qjr-hiw2-step{position:relative;margin:0;padding:0}
.qjr-hiw2-step__media{overflow:hidden;aspect-ratio:4/3;border-radius:16px;background:var(--qjr-color-tint-mint-100)}
.qjr-hiw2-step__media img{display:block;width:100%;height:100%;object-fit:cover}
.qjr-hiw2-step__media--art img{object-fit:contain}
/* White-background product shots take on the panel tint. */
.qjr-hiw2-step__media--product img{object-fit:cover;mix-blend-mode:multiply}
.qjr-hiw2-step__num{display:grid;place-items:center;width:40px;height:40px;margin:-20px 0 0 18px;position:relative;border:3px solid var(--wp--preset--color--bg-base);border-radius:999px;background:var(--wp--preset--color--fg-accent);color:var(--wp--preset--color--fg-primary);font-weight:800;line-height:1}
.qjr-hiw2-step h3{margin:14px 0 8px;font-size:clamp(1.4rem,2vw,1.75rem);line-height:1.15}
.qjr-hiw2-step p{margin:0;color:var(--qjr-color-fg-tertiary);line-height:1.6}

/* Explainer video. */
.qjr-hiw2-watch{background:var(--qjr-color-tint-mint-100)}
.qjr-hiw2-watch__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,400px);align-items:center;gap:clamp(36px,7vw,96px)}
.qjr-hiw2-watch__copy h2{margin:0 0 14px;font-size:clamp(2.25rem,4vw,3.5rem);line-height:1.05}
.qjr-hiw2-watch__copy>p{max-width:46ch;color:var(--qjr-color-fg-tertiary);font-size:1.08rem}
.qjr-hiw2-points{display:grid;gap:14px;margin:28px 0 0;padding:0;list-style:none}
.qjr-hiw2-points li{display:flex;align-items:center;gap:14px;margin:0;color:var(--wp--preset--color--fg-primary);font-weight:600}
.qjr-hiw2-points svg{flex:0 0 44px;width:44px;height:44px;padding:10px;border-radius:999px;background:var(--wp--preset--color--bg-base);color:var(--wp--preset--color--bg-brand);box-sizing:border-box}
.qjr-hiw2-video{position:relative;margin:0;overflow:hidden;aspect-ratio:4/5;border-radius:20px;background:var(--wp--preset--color--bg-brand-dark);box-shadow:var(--qjr-shadow-lg)}
.qjr-hiw2-video__el{display:block;width:100%;height:100%;object-fit:cover;background:#E5E7E6}
.qjr-hiw2-video__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:8px 22px 8px 8px;border:0;border-radius:999px;background:var(--wp--preset--color--bg-brand-dark);color:var(--wp--preset--color--fg-inverse);font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 10px 28px rgb(15 41 40 / .35);transition:background-color 150ms var(--qjr-ease),transform 150ms var(--qjr-ease)}
.qjr-hiw2-video__play[hidden]{display:none}
.qjr-hiw2-video__play:hover{background:var(--wp--preset--color--bg-brand)}
.qjr-hiw2-video__play:focus-visible{outline:3px solid var(--wp--preset--color--fg-accent);outline-offset:3px}
.qjr-hiw2-video__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:999px;background:var(--wp--preset--color--fg-accent);color:var(--wp--preset--color--fg-primary)}
.qjr-hiw2-video__icon svg{margin-left:2px}
.qjr-hiw2-video__len{margin-left:4px;font-weight:600;opacity:.75}

/* Packing guide. */
.qjr-hiw2-pack{align-items:center}
.qjr-hiw2-pack__copy h2{margin:0 0 28px;font-size:clamp(2.25rem,4vw,3.5rem);line-height:1.05}
.qjr-hiw2-pack__copy h3{margin:0}
.qjr-hiw2-pack__copy .qjr-info-checklist{margin-bottom:28px}
.qjr-hiw2-pack .qjr-info-callout{background:var(--wp--preset--color--bg-base)}
.qjr-hiw2-pack__art{margin:0}
.qjr-hiw2-pack__art img{display:block;width:100%;height:auto}

@media (max-width:1100px){
	.qjr-hiw2-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
}
@media (max-width:900px){
	.qjr-hiw2 .qjr-hiw2-hero .qjr-info-hero__inner{grid-template-columns:1fr}
	.qjr-hiw2-hero__media{max-width:560px;margin:4px 0 22px 18px}
	.qjr-hiw2-hero__inset{left:-18px;bottom:-22px;width:34%}
	.qjr-hiw2-watch__inner{grid-template-columns:1fr}
	.qjr-hiw2-video{width:100%;max-width:400px;justify-self:center}
	.qjr-hiw2-pack__art{max-width:560px}
}
@media (max-width:640px){
	.qjr-hiw2-steps{grid-template-columns:1fr;row-gap:36px}
	.qjr-hiw2-step__media{aspect-ratio:16/10}
	.qjr-hiw2 .qjr-hiw2-hero__note{margin-top:22px}
	.qjr-hiw2-hero__media>img{aspect-ratio:4/3}
}
@media (prefers-reduced-motion:reduce){
	.qjr-hiw2-video__play{transition:none}
}
