/* ============================================================
   Walkthrough — steps beside an HTML phone (wordpress-app-site
   skill, assets/walkthrough/). Rename `gf` to the site prefix and
   map the --gf-* fallbacks onto the theme's own tokens.

   The phone is a 320 × 695 canvas (a 640 × 1391 capture at half
   size) scaled into the device frame by ONE factor, --k. Positions
   inside scenes are read straight off the real captures at half size.
   ============================================================ */

/* ---------- hero grid: copy + steps on the left, phone on the right ---------- */
.gf-walk__grid{
	display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
	grid-template-areas:"copy phone" "tour phone";column-gap:40px;align-items:center;
}
.gf-walk__copy{grid-area:copy;align-self:end}
.gf-walk__phone{grid-area:phone;position:relative;display:grid;place-items:center;min-height:700px}
.gf-tour{grid-area:tour;align-self:start;min-width:0;max-width:520px;margin-top:34px}

/* ---------- the steps: all in one cell, so switching never moves the page ---------- */
.gf-tour__eyebrow{margin:0;font-weight:900;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:var(--gf-text-faint,#8a7f95)}
.gf-tour__list{display:grid;margin:14px 0 0;padding:0;list-style:none}
.gf-tour__item{
	grid-area:1 / 1;display:flex;gap:16px;align-items:flex-start;
	opacity:0;transform:translateY(8px);pointer-events:none;
	transition:opacity .35s ease,transform .35s ease;
}
.gf-tour__item.is-active{opacity:1;transform:none;pointer-events:auto}
.gf-tour__num{flex:none;min-width:52px;font-size:40px;line-height:1;font-weight:900;color:var(--gf-heading,#222)}
.gf-tour__text{min-width:0}
/* A highlighter stroke under the title, like a note in the margin. */
.gf-tour__title{
	display:inline;font-size:26px;line-height:1.3;color:var(--gf-heading,#222);
	background:linear-gradient(transparent 58%, var(--gf-marker,#FFE08A) 58%, var(--gf-marker,#FFE08A) 92%, transparent 92%);
	-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 4px;margin:0 -4px;
}
.gf-tour__desc{display:block;margin-top:8px;font-size:15.5px;line-height:1.6;color:var(--gf-text,#555)}

/* ---------- step results (tags) ----------
   Hidden until the phone gets there — but only once the engine is live,
   so without JS they read as plain text. .is-flying hands the motion to
   the scripted flight (a CSS transition would win the cascade) and lifts
   the tag over the phone for the trip. */
.gf-tour__tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.gf-tour__tag{
	display:inline-flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;max-width:100%;
	padding:6px 12px;border:2px solid var(--gf-ink,#222);border-radius:12px;
	background:var(--gf-surface,#fff);font-weight:800;font-size:13.5px;line-height:1.35;color:var(--gf-text,#555);
}
.gf-tour__tag b{font-size:15px;color:var(--gf-heading,#222)}
.gf-tour.is-live .gf-tour__tag{opacity:0;transform:translateY(6px) scale(.92)}
.gf-tour.is-live .gf-tour__tag.is-in{opacity:1;transform:none;transition:opacity .3s ease,transform .35s cubic-bezier(.34,1.56,.64,1)}
.gf-tour__tag.is-flying{position:relative;z-index:6;transition:none}
/* The phone element a tag comes from: one ring, outward. outline, not
   box-shadow — a card's own hard shadow would vanish for the animation. */
.gf-app .is-spot{animation:gf-spot 1.5s ease-out}
@keyframes gf-spot{
	0%{outline:3px solid rgba(255,194,74,.95);outline-offset:0}
	100%{outline:3px solid rgba(255,194,74,0);outline-offset:12px}
}

/* ---------- rail + pause ---------- */
.gf-tour__controls{display:flex;align-items:center;gap:14px;margin-top:22px}
.gf-tour__rail{flex:1;display:grid;grid-template-columns:repeat(var(--steps,6),minmax(0,1fr));gap:10px}
.gf-tour__dot{
	appearance:none;display:flex;flex-direction:column;gap:7px;min-width:0;padding:6px 0;margin:0;
	border:0;background:none;cursor:pointer;text-align:left;
	font-family:inherit;font-weight:900;font-size:13px;line-height:1;color:var(--gf-text-faint,#8a7f95);
}
.gf-tour__dot:hover,.gf-tour__dot[aria-current="step"]{color:var(--gf-heading,#222)}
.gf-tour__dot-bar{display:block;height:5px;border-radius:3px;background:var(--gf-hairline,#e6ddd0);overflow:hidden}
.gf-tour__dot-bar i{display:block;width:100%;height:100%;background:var(--gf-ink,#222);transform:scaleX(0);transform-origin:0 50%}
.gf-tour__dot.is-done .gf-tour__dot-bar i{transform:none}
.gf-tour__pause{
	flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;cursor:pointer;
	border:2px solid var(--gf-ink,#222);border-radius:12px;background:var(--gf-surface,#fff);color:var(--gf-heading,#222);
}
/* Pause bars ↔ play triangle, drawn so no icon font is needed. */
.gf-tour__pause-i{position:relative;display:block;width:12px;height:14px}
.gf-tour__pause-i::before,.gf-tour__pause-i::after{content:"";position:absolute;top:0;width:4px;height:14px;border-radius:1.5px;background:currentColor}
.gf-tour__pause-i::before{left:0}
.gf-tour__pause-i::after{right:0}
.gf-tour__pause[aria-pressed="true"] .gf-tour__pause-i::before{
	left:2px;width:0;height:0;border-radius:0;background:none;
	border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent currentColor;
}
.gf-tour__pause[aria-pressed="true"] .gf-tour__pause-i::after{display:none}
.gf-tour.is-static .gf-tour__pause{display:none} /* nothing plays under reduced motion */
.gf-tour__note{margin:14px 0 0;font-weight:800;font-size:12px;color:var(--gf-text-faint,#8a7f95)}

/* ---------- the device ---------- */
.gf-walk__phone,.gf-tour__device{--pw:304}
.gf-tour__device{
	position:relative;z-index:1;flex:none;width:calc(var(--pw) * 1px);padding:6px;
	background:#12161C;border-radius:calc(var(--pw) * 1px / 7.2);
	box-shadow:0 0 0 3px #1B222C,0 18px 40px rgba(20,11,34,.24);
}
.gf-tour__screen{
	--k:calc((var(--pw) - 12) / 320);
	position:relative;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:640 / 1391;
	border-radius:calc(var(--pw) * 1px / 8.4);background:var(--app-bg,#fff);
}
.gf-app{
	position:absolute;left:0;top:0;width:320px;height:695px;
	transform-origin:0 0;transform:scale(var(--k));overflow:hidden;
	-webkit-user-select:none;user-select:none;
}
.gf-app p{margin:0}

/* Screens are stacked; the engine marks the current one .is-shown. */
.gf-scr{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s linear .35s}
.gf-scr.is-shown{opacity:1;visibility:visible;transition:opacity .35s ease,visibility 0s}

.is-pressed{transform:scale(.96)}

/* One-line labels the engine may shrink ([data-fit]); ellipsis only past the floor.
   Give them letter-spacing in em so it shrinks with the text. */
.gf-app [data-fit]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* The visitor's finger. */
.gf-app__finger{
	position:absolute;left:0;top:0;z-index:40;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;
	background:rgba(255,255,255,.55);border:2px solid rgba(0,0,0,.28);box-shadow:0 4px 12px rgba(0,0,0,.18);
	transform:translate(var(--fx,160px),var(--fy,400px)) scale(.6);opacity:0;pointer-events:none;
	transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .2s;
}
.gf-app__finger.is-on{opacity:1;transform:translate(var(--fx),var(--fy)) scale(1)}
.gf-app__finger.is-down{transform:translate(var(--fx),var(--fy)) scale(.82)}

/* Confetti the engine drops for a celebration. */
.gf-confetti{position:absolute;inset:0;z-index:38;overflow:hidden;pointer-events:none}
.gf-confetti i{position:absolute;width:7px;height:10px;border-radius:2px;animation:gf-fall var(--fall) ease-in var(--delay) forwards}
@keyframes gf-fall{to{transform:translate(var(--drift),var(--drop)) rotate(var(--spin));opacity:0}}

/* ---------- smaller screens ---------- */
@media (max-width:1100px){
	.gf-walk__phone,.gf-tour__device{--pw:286}
}
@media (max-width:900px){
	.gf-walk__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "phone" "tour"}
	.gf-walk__copy{align-self:auto}
	.gf-walk__phone{min-height:0;padding:10px 0 6px}
	.gf-walk__phone,.gf-tour__device{--pw:264}
	.gf-tour{margin-top:18px;max-width:none}
	.gf-tour__num{font-size:32px;min-width:42px}
	.gf-tour__title{font-size:22px}
	.gf-tour__rail{gap:7px}
}
@media (max-width:380px){
	.gf-walk__phone,.gf-tour__device{--pw:244}
}
@media (prefers-reduced-motion:reduce){
	.gf-tour__item,.gf-tour__tag,.gf-scr{transition:none}
	.gf-app__finger{display:none}
}

/* Real capture inside a scene: the phone shows the app's own pixels. */
.gf-scr{background:var(--app-bg,#fff)}
.gf-scr__img{display:block;width:100%;height:100%;object-fit:cover}
