/* ---------- Scroll story: "Fig. 1 · How your website works for you" ---------- */
.story-sec { background: var(--stone); padding-bottom: 0; }
.story-head { margin-bottom: clamp(1rem, 3vw, 2rem); }
.story {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  width: min(100% - 2.5rem, 80rem); margin-inline: auto;
}
.stage-wrap { grid-column: 2; grid-row: 1; position: relative; }
.st-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 18px 0 22px;
  --pw: min(100%, 720px, calc((100svh - var(--header-h) - 132px) * 1.12));
}
.plate-head, .rail { width: var(--pw); }
.plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.fig-cap { white-space: nowrap; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: .65rem; }
.fig-cap::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.fig-tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* the plate: everything inside scales with its width (cqw) */
.plate {
  position: relative; margin: 0; width: var(--pw); aspect-ratio: 1.12 / 1;
  container-type: inline-size;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--line-strong) 70%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plate::after { /* soft vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 70% 40%, transparent 55%, color-mix(in srgb, var(--stone) 70%, transparent));
}

/* ---- shared mini-site bits ---- */
.pp-tile { display: inline-grid; place-items: center; flex: none; background: #1d7a50; color: #fff; font-family: var(--serif); font-weight: 600; letter-spacing: .02em; }
.stars { display: inline-block; flex: none; aspect-ratio: 5 / 1; background: #c98b1a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cg%3E%3Cpath id='s' d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.8l-5.2 2.8 1-5.8L1.5 7.7l5.9-.8z'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' x='80'/%3E%3C/g%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 100 20'%3E%3Cg%3E%3Cpath id='s' d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.8l-5.2 2.8 1-5.8L1.5 7.7l5.9-.8z'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' x='80'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.wipe-line {
  position: absolute; left: 0; right: 0; top: calc(var(--wipe) * 100%); height: 2px; z-index: 6;
  background: #1d7a50; box-shadow: 0 0 0 4px rgba(29,122,80,.12), 0 6px 18px rgba(29,122,80,.35);
  opacity: calc(var(--wipe) * 40 * (1 - var(--wipe)) ); pointer-events: none;
}

/* ---- browser (laptop) ---- */
.br {
  position: absolute; left: 4%; top: 7%; width: 64%; aspect-ratio: 16 / 10.4;
  background: #fff; border: 1px solid #c9d2c3; border-radius: 1.6cqw; overflow: hidden;
  box-shadow: 0 2cqw 5cqw -2cqw rgba(31,43,51,.25);
  display: flex; flex-direction: column;
  transition: transform .9s var(--ease), opacity .6s;
}
.br-bar { flex: none; height: 4.4cqw; display: flex; align-items: center; gap: 2cqw; padding: 0 1.6cqw; background: #f1f3ee; border-bottom: 1px solid #dfe4da; }
.br-dots { display: flex; gap: .7cqw; } .br-dots i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #c9d2c3; }
.br-url { flex: 1; height: 2.6cqw; border-radius: 99px; background: #fff; border: 1px solid #dfe4da; font-size: 1.35cqw; color: #5d6b73; display: flex; align-items: center; gap: .9cqw; padding: 0 1.2cqw; }
.br-live { display: inline-flex; align-items: center; gap: .5cqw; color: #1d7a50; font-weight: 700; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .6s var(--ease), opacity .4s; white-space: nowrap; }
.br-live i, .ps-live i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #1d7a50; box-shadow: 0 0 0 .4cqw rgba(29,122,80,.18); }
.br-screen { position: relative; flex: 1; overflow: hidden; container-type: inline-size; background: #fcfcf9; }
.br-site { position: absolute; inset: 0; padding: 0 4cqw; display: flex; flex-direction: column; }
.bs-top { display: flex; align-items: center; gap: 1.6cqw; height: 9cqw; border-bottom: 1px solid #e9efe4; }
.bs-top .pp-tile { width: 4.6cqw; height: 4.6cqw; border-radius: 1.1cqw; font-size: 2cqw; }
.bs-name { display: flex; flex-direction: column; line-height: 1.1; color: #1f2b33; }
.bs-name b { font-size: 2.1cqw; } .bs-name small { font-size: 1.5cqw; color: #5d6b73; }
.bs-nav { margin-left: auto; display: flex; gap: 2cqw; } .bs-nav i { width: 6cqw; height: 1cqw; border-radius: 99px; background: #dfe4da; }
.bs-call { margin-left: 2cqw; font-size: 1.6cqw; font-weight: 700; color: #fff; background: #1f2b33; border-radius: 99px; padding: 1cqw 2.2cqw; }
.bs-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4cqw; align-items: center; padding-top: 5cqw; }
.bs-copy { display: flex; flex-direction: column; gap: 1.4cqw; }
.bs-eyebrow { font-size: 1.5cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1d7a50; }
.bs-h { font-family: var(--serif); font-size: 4.6cqw; line-height: 1.08; color: #1f2b33; letter-spacing: -.015em; }
.bs-stars { display: flex; align-items: center; gap: 1cqw; font-size: 1.6cqw; color: #485862; } .bs-stars .stars { height: 1.8cqw; }
.bs-btns { display: flex; gap: 1.2cqw; margin-top: .6cqw; }
.bs-b1, .bs-b2 { font-size: 1.6cqw; font-weight: 700; border-radius: 99px; padding: 1.2cqw 2.4cqw; }
.bs-b1 { background: #1f2b33; color: #fff; } .bs-b2 { border: 1px solid #c9d2c3; color: #1f2b33; }
.bs-photo { aspect-ratio: 4 / 3.1; border-radius: 2cqw; background: url("/assets/saskatoon-hero-900.jpg") 60% 60% / cover; }
.bs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 4.5cqw; }
.bs-row i { height: 9cqw; border-radius: 1.6cqw; background: #e9efe4; }
.br-old {
  position: absolute; inset: 0; z-index: 4; background: #ece9e1; font-family: "Times New Roman", Times, serif; color: #555;
  clip-path: inset(calc(var(--wipe) * 100%) 0 0 0);
}
.bo-banner { background: #8a8f86; color: #f3f1ea; font-size: 2.6cqw; text-align: center; padding: 1.6cqw; letter-spacing: .02em; }
.bo-cols { display: grid; grid-template-columns: 18cqw 1fr; gap: 2cqw; padding: 2cqw; }
.bo-side { display: grid; gap: 1.2cqw; align-content: start; } .bo-side i { height: 2.6cqw; background: #d6d2c7; border: 1px solid #c4bfb2; }
.bo-img { height: 22cqw; display: grid; place-items: center; font-size: 1.6cqw; color: #8b877c;
  background: repeating-linear-gradient(45deg, #dedad0 0 6px, #e7e3da 6px 12px); border: 1px solid #c4bfb2; }
.bo-lines { display: grid; gap: 1cqw; margin: 2cqw 0; } .bo-lines i { height: .9cqw; background: #cfcbbf; } .bo-lines i:nth-child(3n) { width: 70%; }
.bo-tiny { font-size: 1cqw; color: #9a968b; }

/* ---- phone ---- */
.ph {
  position: absolute; right: 4%; top: 4.5%; width: 33cqw; aspect-ratio: 9 / 19;
  background: #1f2b33; border-radius: 5.4cqw; padding: 1.05cqw;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 3cqw 6cqw -2cqw rgba(31,43,51,.45), 0 1cqw 2cqw -1cqw rgba(31,43,51,.3);
  z-index: 3;
}
.ph::before { content: ""; position: absolute; left: 50%; top: 2.1cqw; width: 8cqw; height: 2cqw; translate: -50% 0; border-radius: 99px; background: #1f2b33; z-index: 9; }
.ph-screen { position: relative; height: 100%; border-radius: 4.5cqw; overflow: hidden; background: #fcfcf9; container-type: inline-size; color: #1f2b33; }
.ph-status { position: relative; z-index: 5; height: 11cqw; display: flex; justify-content: space-between; align-items: center; padding: 1cqw 8cqw 0; font-size: 4.2cqw; font-weight: 700; color: #1f2b33; }
.ph-sig { display: flex; gap: 1cqw; align-items: flex-end; } .ph-sig i { width: 1.4cqw; border-radius: 1px; background: #1f2b33; } .ph-sig i:nth-child(1){height:2cqw}.ph-sig i:nth-child(2){height:3cqw}.ph-sig i:nth-child(3){height:4cqw}
.ps { position: absolute; inset: 11cqw 0 0; padding: 0 6cqw; display: flex; flex-direction: column; }
.ps-head { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 0 3.5cqw; }
.ps-head .pp-tile { width: 10.5cqw; height: 10.5cqw; border-radius: 2.6cqw; font-size: 4.4cqw; }
.ps-name { display: flex; flex-direction: column; line-height: 1.12; } .ps-name b { font-size: 4.8cqw; } .ps-name small { font-size: 3.4cqw; color: #5d6b73; }
.ps-callic { margin-left: auto; width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; background: #dcebe0; color: #145c3c; } .ps-callic svg { width: 4.6cqw; }
.ps-photo { aspect-ratio: 16 / 9.5; border-radius: 3.6cqw; background: url("/assets/saskatoon-hero-900.jpg") 62% 62% / cover; }
.ps-eyebrow { margin-top: 5cqw; font-size: 3.2cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1d7a50; }
.ps-h { margin: 1.6cqw 0 4cqw; font-family: var(--serif); font-size: 9cqw; line-height: 1.06; letter-spacing: -.02em; color: #1f2b33; font-weight: 500; }
.ps-body { display: grid; }
.ps-real, .ps-skel { grid-area: 1 / 1; }
.ps-real { display: grid; gap: 2.8cqw; align-content: start; }
.ps-skel { display: grid; gap: 3cqw; align-content: start; transition: opacity .5s; }
.ps-skel i { height: 5cqw; border-radius: 99px; background: #e9efe4; } .ps-skel i:nth-child(1){width:70%} .ps-skel i:nth-child(2){height:13cqw} .ps-skel i:nth-child(3){height:11.5cqw} .ps-skel i:nth-child(n+4){height:8cqw;border-radius:2cqw}
.ps-stars { display: flex; align-items: center; gap: 1.8cqw; font-size: 3.6cqw; color: #485862; } .ps-stars .stars { height: 3.6cqw; } .ps-stars b { color: #1f2b33; }
.ps-call, .ps-quote { position: relative; display: flex; align-items: center; justify-content: center; gap: 2cqw; height: 13cqw; border-radius: 99px; font-size: 4.6cqw; font-weight: 700; }
.ps-call { background: #1f2b33; color: #fff; } .ps-call svg { width: 4.6cqw; }
.ps-quote { border: 1px solid #c9d2c3; color: #1f2b33; background: #fff; height: 11.5cqw; font-size: 4.2cqw; }
.ps-areas { font-size: 3.3cqw; color: #5d6b73; text-align: center; }
.ps-list { display: grid; margin-top: 2cqw; border-top: 1px solid #e9efe4; }
.ps-list span { display: flex; justify-content: space-between; align-items: center; padding: 3cqw 1cqw; border-bottom: 1px solid #e9efe4; font-size: 3.7cqw; font-weight: 600; color: #1f2b33; }
.ps-list span::after { content: ""; width: 1.8cqw; height: 1.8cqw; border-top: 2px solid #1d7a50; border-right: 2px solid #1d7a50; rotate: 45deg; }
.pulse { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tap { position: absolute; left: 50%; top: 50%; width: 12cqw; height: 12cqw; margin: -6cqw 0 0 -6cqw; border-radius: 50%; background: rgba(29,122,80,.35); border: 2px solid rgba(255,255,255,.85); box-shadow: 0 0 0 0 rgba(29,122,80,.45); opacity: 0; scale: .4; transition: opacity .3s, scale .4s var(--ease); }
.ps-quote .tap { left: 70%; }
.ps-toast { position: absolute; z-index: 6; left: 5cqw; right: 5cqw; top: 12cqw; display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 4cqw; border-radius: 5cqw; background: #1f2b33; color: #fff; box-shadow: 0 4cqw 8cqw -3cqw rgba(31,43,51,.55); opacity: 0; translate: 0 -6cqw; transition: opacity .4s, translate .6s var(--ease); }
.ps-toast b { display: block; font-size: 4cqw; } .ps-toast small { font-size: 3.4cqw; color: #c6d0cc; }
.toast-dot { width: 3cqw; height: 3cqw; border-radius: 50%; background: #7fd3a6; box-shadow: 0 0 0 1.4cqw rgba(127,211,166,.2); flex: none; }
.ps-live { position: absolute; z-index: 6; left: 50%; bottom: 5cqw; display: inline-flex; align-items: center; gap: 2cqw; padding: 1.8cqw 3.6cqw; border-radius: 99px; background: #fff; border: 1px solid #dcebe0; color: #145c3c; font-size: 3.6cqw; font-weight: 700; white-space: nowrap; box-shadow: 0 2cqw 5cqw -2cqw rgba(31,43,51,.3); opacity: 0; translate: -50% 5cqw; transition: opacity .4s, translate .6s var(--ease); }
.ps-live i { width: 2.2cqw; height: 2.2cqw; box-shadow: 0 0 0 1cqw rgba(29,122,80,.16); }
.ps-sheet { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; padding: 3cqw 6cqw 7cqw; display: flex; flex-direction: column; gap: 2.4cqw; background: #fff; border-radius: 6cqw 6cqw 0 0; box-shadow: 0 -4cqw 10cqw -4cqw rgba(31,43,51,.35); translate: 0 104%; transition: translate .7s var(--ease); }
.sh-grab { align-self: center; width: 11cqw; height: 1.2cqw; border-radius: 99px; background: #dfe4da; margin-bottom: 1cqw; }
.sh-title { font-family: var(--serif); font-size: 6.4cqw; font-weight: 500; line-height: 1.1; }
.sh-sub { font-size: 3.2cqw; color: #5d6b73; margin-top: -1.6cqw; }
.sh-field { display: flex; flex-direction: column; gap: .6cqw; padding: 2cqw 3.4cqw; border: 1px solid #dfe4da; border-radius: 3cqw; transition: border-color .3s; }
.sh-field small { font-size: 2.8cqw; color: #5d6b73; }
.sh-val { min-height: 5.4cqw; font-size: 4cqw; font-weight: 600; color: #1f2b33; white-space: nowrap; overflow: hidden; }
.sh-field.typing { border-color: #1d7a50; } .sh-field.typing .sh-val::after { content: ""; display: inline-block; width: 2px; height: 4cqw; margin-left: 2px; vertical-align: -.5cqw; background: #1d7a50; animation: caret 1s steps(1) infinite; }
.sh-send { position: relative; height: 12cqw; border-radius: 99px; background: #1f2b33; color: #fff; font-size: 4.2cqw; font-weight: 700; display: grid; place-items: center; overflow: hidden; transition: background .4s; }
.sh-send > span { grid-area: 1 / 1; transition: opacity .3s, translate .5s var(--ease); }
.sh-send-b { opacity: 0; translate: 0 100%; }
.po { position: absolute; inset: 11cqw 0 0; z-index: 4; padding: 0 3cqw; background: #ece9e1; color: #6b675e; font-family: "Times New Roman", Times, serif; clip-path: inset(calc(var(--wipe) * 100%) 0 0 0); display: flex; flex-direction: column; gap: 2.4cqw; }
.po-banner { margin: 0 -3cqw; padding: 2.4cqw; background: #8a8f86; color: #f3f1ea; font-size: 3.6cqw; text-align: center; }
.po-img { height: 34cqw; display: grid; place-items: center; font-size: 3cqw; color: #8b877c; background: repeating-linear-gradient(45deg, #dedad0 0 6px, #e7e3da 6px 12px); border: 1px solid #c4bfb2; }
.po-h { font-size: 3.4cqw; line-height: 1.25; color: #6b675e; }
.po-lines { display: grid; gap: 1.6cqw; margin: 0; } .po-lines i { height: 1.4cqw; background: #cfcbbf; } .po-lines i:nth-child(4n) { width: 62%; }
.po-tiny { margin-top: auto; margin-bottom: 4cqw; font-size: 2cqw; color: #a29e93; }
.po-spin { position: absolute; left: 50%; top: 17cqw; width: 6cqw; height: 6cqw; margin-left: -3cqw; border-radius: 50%; border: .9cqw solid #cfcbbf; border-top-color: #8a8f86; animation: spin 1.1s linear infinite; }

/* ---- side slot cards ---- */
.slot { position: absolute; left: 4%; bottom: 5%; width: 54%; height: 31%; z-index: 4; }
.card-s {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.5cqw;
  padding: 2.4cqw 2.8cqw; border-radius: 2.2cqw; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2cqw 4cqw -2cqw rgba(31,43,51,.22);
  opacity: 0; translate: 0 2cqw; pointer-events: none;
  transition: opacity .45s, translate .7s var(--ease);
}
.cs-k { font-size: 1.55cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5cqw 1.5cqw; }
.m-l { font-size: 1.85cqw; color: var(--ink); font-weight: 600; }
.m-v { position: relative; display: grid; font-size: 1.6cqw; font-weight: 700; text-align: right; }
.m-v > span { grid-area: 1 / 1; transition: opacity .35s; } .m-b { opacity: 0; color: var(--green); } .m-a { color: #a0603a; }
.m-bar { grid-column: 1 / -1; height: .9cqw; border-radius: 99px; background: var(--line); overflow: hidden; }
.m-bar i { position: relative; display: block; height: 100%; border-radius: inherit; width: calc((var(--from) + (var(--to) - var(--from)) * var(--wipe)) * 100%); background: #1d7a50; overflow: hidden; }
.m-bar i::after { content: ""; position: absolute; inset: 0; background: #b0703f; opacity: calc(1 - var(--wipe)); }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw 2cqw; }
.cs-list li { display: flex; align-items: center; gap: 1.2cqw; font-size: 1.9cqw; color: var(--ink); font-weight: 600; line-height: 1.2; opacity: 0; translate: 0 1cqw; transition: opacity .4s, translate .6s var(--ease); }
.cs-list li::before { content: ""; flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7a50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 64% no-repeat; }
.timer { display: flex; align-items: baseline; gap: 1.6cqw; }
.timer span { font-family: var(--serif); font-size: 7.4cqw; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer small { font-size: 1.8cqw; color: var(--muted); }
.trail { display: flex; align-items: center; gap: 1.2cqw; }
.tr { display: inline-flex; align-items: center; gap: .8cqw; font-size: 1.7cqw; font-weight: 600; color: var(--muted); transition: color .3s; }
.tr + .tr::before { content: ""; width: 4cqw; height: 1px; background: var(--line-strong); margin-right: .4cqw; }
.tr i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .3s, border-color .3s; }
.tr.on { color: var(--ink); } .tr.on i { background: var(--green); border-color: var(--green); }
.c3 { flex-direction: row; align-items: stretch; gap: 2cqw; padding: 2cqw; }
.snip { flex: 1.35; min-width: 0; display: flex; flex-direction: column; gap: .5cqw; padding: 1.6cqw 1.8cqw; border-radius: 1.6cqw; background: var(--bg); border: 1px solid var(--line); }
.sn-q { overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .8cqw; font-size: 1.6cqw; color: var(--muted); padding: .6cqw 1.2cqw; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); margin-bottom: .6cqw; white-space: nowrap; }
.sn-q svg { width: 1.8cqw; flex: none; }
.sn-url { font-size: 1.4cqw; color: var(--muted); }
.sn-t { font-size: 2cqw; font-weight: 700; color: var(--green-strong); line-height: 1.2; }
.sn-r { display: flex; align-items: center; gap: .8cqw; font-size: 1.5cqw; color: var(--body); white-space: nowrap; } .sn-r .stars { height: 1.6cqw; }
.care { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .3cqw; padding: 1.8cqw 2.2cqw; border-radius: 1.6cqw; background: #1f2b33; color: #f4f6f1; }
.care > span { display: flex; flex-direction: column; font-size: 1.8cqw; line-height: 1.2; color: #c6d0cc; }
.pr-div { height: 1px; background: rgba(255,255,255,.14); margin: .9cqw 0; }
.care b { font-family: var(--serif); font-weight: 500; font-size: 2.6cqw; line-height: 1.15; color: #fff; letter-spacing: -.015em; white-space: nowrap; }
.care .pr-b { font-size: 1.9cqw; font-weight: 600; color: #c6d0cc; white-space: nowrap; }


/* ---- scene states ---- */
.plate.cleared .m-a { opacity: 0; } .plate.cleared .m-b { opacity: 1; }
.plate:not([data-scene="0"]) .po, .plate:not([data-scene="0"]) .br-old { clip-path: inset(100% 0 0 0); }
.ps-real > * { opacity: 0; translate: 0 3cqw; transition: opacity .5s, translate .7s var(--ease); }
.plate:not([data-scene="0"]) .ps-real > * { opacity: 1; translate: 0 0; }
.plate:not([data-scene="0"]) .ps-skel { opacity: 0; }
.plate:not([data-scene="0"]) .r2 { transition-delay: .08s; } .plate:not([data-scene="0"]) .r3 { transition-delay: .16s; } .plate:not([data-scene="0"]) .r4 { transition-delay: .24s; } .plate:not([data-scene="0"]) .r5 { transition-delay: .32s; }
.plate[data-scene="0"] .c0, .plate[data-scene="1"] .c1, .plate[data-scene="2"] .c2, .plate[data-scene="3"] .c3 { opacity: 1; translate: 0 0; }
.plate[data-scene="1"] .cs-list li { opacity: 1; translate: 0 0; }
.plate[data-scene="1"] .cs-list li:nth-child(2) { transition-delay: .1s; } .plate[data-scene="1"] .cs-list li:nth-child(3) { transition-delay: .2s; } .plate[data-scene="1"] .cs-list li:nth-child(4) { transition-delay: .3s; }
.plate[data-scene="1"] .pulse, .plate[data-scene="2"][data-q="0"] .pulse { animation: pulse 2.2s var(--ease) infinite; }
.plate[data-q="1"] .t-call, .plate[data-q="2"] .t-quote { opacity: 1; scale: 1; animation: tap 1.4s var(--ease) infinite; }
.plate[data-q="1"] .ps-toast { opacity: 1; translate: 0 0; }
.plate[data-scene="2"]:not([data-q="0"]):not([data-q="1"]):not([data-q="2"]) .ps-sheet { translate: 0 0; }
.plate[data-q="6"] .sh-send { background: #1d7a50; }
.plate[data-q="6"] .sh-send-a { opacity: 0; translate: 0 -100%; } .plate[data-q="6"] .sh-send-b { opacity: 1; translate: 0 0; }
.plate[data-scene="3"] .ps-live { opacity: 1; translate: -50% 0; }
.plate[data-scene="3"] .br-live { max-width: 8cqw; opacity: 1; }
.plate[data-scene="3"] .br { transform: translateY(-1.2cqw); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,122,80,.5); } 70%, 100% { box-shadow: 0 0 0 4cqw rgba(29,122,80,0); } }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(29,122,80,.45); } 80%, 100% { box-shadow: 0 0 0 6cqw rgba(29,122,80,0); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }

/* ---- rail ---- */
.rail { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; }
.rail-track { position: absolute; left: 22px; right: 22px; top: 50%; height: 2px; translate: 0 -50%; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.rail-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--prog, 0)); background: var(--green); }
.rail-b { position: relative; z-index: 1; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--stone); color: var(--muted);
  font: 700 .82rem/1 var(--sans); letter-spacing: .08em; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .2s var(--ease); }
.rail-b:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.rail-b[aria-current="step"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.rail-b.done { color: var(--green); border-color: var(--green); }

/* ---- steps ---- */
.st { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; opacity: .26; transition: opacity .5s; }
.st.on { opacity: 1; }
.st-in { max-width: 30rem; padding-block: 3rem; }
.st-k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.st h3 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: .6em; }
.st p { font-size: 1.1rem; margin: 0 0 1rem; }
.st-price { color: var(--ink); padding: .9rem 1.1rem; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 1.02rem !important; }
.st .btn-row { margin-top: 1.4rem; }
.st:last-child { min-height: calc(100svh - var(--header-h) + 2rem); }

/* ---- stacked layout: tablet & phone ---- */
@media (max-width: 960px) {
  .story { display: block; width: 100%; }
  .stage-wrap { position: sticky; top: var(--header-h); z-index: 5; background: var(--stone); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px -18px rgba(31,43,51,.5); }
  .stage { position: static; height: auto; padding: 10px 16px 8px; --pw: min(100%, calc((54svh - 120px) * 1.12)); }
  .plate-head { margin-bottom: .4rem; }
  .fig-cap { font-size: .68rem; gap: .5rem; } .fig-cap::before { width: 14px; }
  .fig-tag { font-size: .64rem; }
  .rail { margin-top: .5rem; }
  .rail-b { height: 34px; min-width: 40px; font-size: .74rem; padding: 0 .7rem; }
  .st { min-height: 70svh; align-items: flex-start; opacity: .35; }
  .st-in { position: sticky; top: calc(var(--header-h) + var(--stage-h, 0px)); }
  .st:last-child .st-in { position: static; }
  .st-in { padding: 1.6rem 1.25rem 0; margin-inline: auto; width: min(100%, 36rem); max-width: none; }
  .st h3 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
  .st p { font-size: 1rem; }
  .st:last-child { min-height: 78svh; padding-bottom: 3rem; }
}
@media (max-width: 640px) {
  .stage { --pw: min(100%, calc((52svh - 104px) * 1.02)); }
  .plate { aspect-ratio: 1.02 / 1; border-radius: var(--radius); }
  .br { display: none; }
  .fig-tag { display: none; }
  .fig-cap { font-size: .66rem; letter-spacing: .09em; }
  .ph { right: auto; left: 4%; top: 3%; width: 45.5cqw; border-radius: 7cqw; padding: 1.4cqw; }
  .ph::before { top: 2.8cqw; width: 10cqw; height: 2.6cqw; }
  .ph-screen { border-radius: 5.8cqw; }
  .slot { left: 53.5%; right: 3.5%; width: auto; top: 6%; bottom: 6%; height: auto; }
  .card-s { padding: 3.4cqw 3.4cqw; gap: 2.6cqw; border-radius: 3.6cqw; justify-content: center; }
  .cs-k { font-size: 2.7cqw; letter-spacing: .08em; line-height: 1.25; }
  .m-l { font-size: 3.1cqw; } .m-v { font-size: 2.8cqw; } .m-bar { height: 1.6cqw; }
  .meter { gap: 1cqw 1.5cqw; }
  .cs-list { grid-template-columns: 1fr; gap: 2.6cqw; } .cs-list li { font-size: 3.3cqw; gap: 2cqw; } .cs-list li::before { width: 4.4cqw; height: 4.4cqw; }
  .timer { flex-direction: column; gap: 1cqw; } .timer span { font-size: 13cqw; } .timer small { font-size: 3cqw; }
  .trail { flex-direction: column; align-items: flex-start; gap: 2cqw; } .tr { font-size: 3.1cqw; gap: 1.6cqw; } .tr i { width: 2.6cqw; height: 2.6cqw; } .tr + .tr::before { display: none; }
  .c3 { flex-direction: column; padding: 2.6cqw; gap: 2.6cqw; }
  .snip { padding: 2.4cqw; gap: 1cqw; border-radius: 2.6cqw; } .sn-q { font-size: 2.6cqw; padding: 1cqw 2cqw; gap: 1.2cqw; } .sn-q svg { width: 2.8cqw; }
  .sn-url { font-size: 2.4cqw; } .sn-t { font-size: 3.1cqw; } .sn-r { font-size: 2.5cqw; white-space: normal; flex-wrap: wrap; } .sn-r .stars { height: 2.6cqw; }
  .care { padding: 3cqw 3.4cqw; border-radius: 2.6cqw; } .care > span { font-size: 3.1cqw; } .care b { font-size: 5.2cqw; } .care .pr-b { font-size: 3.3cqw; } .pr-div { margin: 1.4cqw 0; }
}

@media (prefers-reduced-motion: reduce) {
  .br, .br-live, .ps-real > *, .ps-skel, .tap, .ps-toast, .ps-live, .ps-sheet, .sh-field, .sh-send, .sh-send > span, .card-s, .cs-list li, .m-v > span, .tr, .tr i, .rail-b, .st { transition: none !important; }
  .pulse, .tap, .po-spin, .sh-field.typing .sh-val::after { animation: none !important; }
}
