/* Homepage hero walkthrough, product chooser, bespoke strip and demo-stores menu (dev). */

.hw-heading { max-width: 70ch; }

/* Walkthrough */
.hw { position: relative; display: grid; gap: .8rem; margin-top: 1.6rem; max-width: 980px; }
.hw-steps { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border-radius: .9rem; background: rgba(4, 9, 18, .6); border: 1px solid var(--studio-line, #35496d); width: fit-content; max-width: 100%; }
.hw-steps button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.4rem; padding: .35rem .8rem; border: 0; border-radius: .65rem; font-weight: 600; color: var(--studio-muted, #a5b7d1); background: transparent; cursor: pointer; }
.hw-steps button span { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: .75rem; background: #1a2b4b; color: var(--studio-ice, #b7d7ff); }
.hw-steps button[aria-selected=true] { color: #06101f; background: var(--studio-ice, #b7d7ff); }
.hw-steps button[aria-selected=true] span { background: #06101f; color: var(--studio-ice, #b7d7ff); }
.hw-steps .hw-pause { margin-inline-start: auto; color: var(--studio-light, #edf5ff); border: 1px solid var(--studio-line, #35496d); }
.hw-steps button:focus-visible { outline: 2px solid var(--studio-accent, #8abaff); outline-offset: 2px; }

.hw-stage { position: relative; min-height: 17rem; border-radius: 1.15rem; overflow: hidden;
    background: linear-gradient(160deg, rgba(27, 44, 79, .9), rgba(9, 16, 30, .94) 62%) padding-box,
                linear-gradient(140deg, rgba(138, 186, 255, .55), rgba(138, 186, 255, .06) 40%, rgba(99, 102, 241, .35)) border-box;
    border: 1px solid transparent; box-shadow: 0 1.4rem 3.8rem rgba(1, 5, 12, .6); }
.hw-scene { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1.1rem; padding: 1.4rem;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.hw-stage[data-scene="0"] [data-scene-index="0"], .hw-stage[data-scene="1"] [data-scene-index="1"],
.hw-stage[data-scene="2"] [data-scene-index="2"], .hw-stage[data-scene="3"] [data-scene-index="3"] {
    opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .4s, transform .4s ease .4s, visibility 0s linear .4s; }
.hw-scene { transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.hw-caption { margin: 0; text-align: center; color: var(--studio-muted, #a5b7d1); }
.hw-caption strong { color: var(--studio-light, #edf5ff); }

/* scene 1 */
.hw-products { display: grid; grid-template-columns: repeat(4, minmax(0, 9rem)); gap: .7rem; }
.hw-tile { display: grid; gap: .2rem; padding: .9rem; border-radius: .8rem; background: rgba(10, 18, 34, .8); border: 1px solid var(--studio-line, #35496d); color: var(--studio-light, #edf5ff); }
.hw-tile small { color: var(--studio-muted, #a5b7d1); }
.hw-tile.is-picked { border-color: var(--studio-ice, #b7d7ff); box-shadow: 0 0 0 3px rgba(138, 186, 255, .25); }
.hw-stage[data-scene="0"] .hw-tile.is-picked { animation: hw-pick 4.2s ease both; }
@keyframes hw-pick { 0%, 30% { box-shadow: none; border-color: var(--studio-line, #35496d); } 45%, 100% { box-shadow: 0 0 0 3px rgba(138, 186, 255, .3); border-color: var(--studio-ice, #b7d7ff); } }

/* scene 2 */
.hw-controls { display: grid; gap: .7rem; width: min(100%, 26rem); }
.hw-row { display: flex; align-items: center; gap: .5rem; color: var(--studio-muted, #a5b7d1); }
.hw-row > span { width: 4.5rem; font-size: .85rem; }
.hw-sw { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .25); }
.hw-sw.is-picked { outline: 2px solid var(--studio-ice, #b7d7ff); outline-offset: 2px; }
.hw-pill { padding: .3rem .7rem; border-radius: 2rem; font-weight: 600; font-size: .8rem; color: var(--studio-muted, #a5b7d1); border: 1px solid var(--studio-line, #35496d); }
.hw-pill.is-picked { color: #06101f; background: var(--studio-ice, #b7d7ff); border-color: transparent; }
.hw-bar { position: relative; flex: 1; height: .4rem; border-radius: 1rem; background: #1a2b4b; }
.hw-bar i { position: absolute; inset: 0 auto 0 0; width: 55%; border-radius: inherit; background: var(--studio-ice, #b7d7ff); }
.hw-stage[data-scene="1"] .hw-bar i { animation: hw-grow 4.2s ease both; }
@keyframes hw-grow { from { width: 15%; } 60%, to { width: 55%; } }
.hw-row em { font-style: normal; font-size: .8rem; }

/* scene 3 */
.hw-store { width: min(100%, 34rem); border-radius: .8rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #a0c6ff9c, 0 .8rem 2rem rgba(1, 5, 12, .5); }
.hw-store-bar { display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; color: #fff; background: #2d6a4f; font-size: .9rem; }
.hw-store-bar b { margin-inline-end: auto; color: #fff; }
.hw-store-bar .is-open { box-shadow: inset 0 -2px 0 #b7e4c7; color: #b7e4c7; }
.hw-store-drop { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .8rem; background: #fbf8f0; }
.hw-store-drop i { height: 2.6rem; border-radius: .5rem; background: #e7efe6; }
.hw-stage[data-scene="2"] .hw-store-bar { animation: hw-recolour 4.2s ease both; }
.hw-stage[data-scene="2"] .hw-store-drop { animation: hw-drop 4.2s ease both; transform-origin: top; }
@keyframes hw-recolour { 0%, 20% { background: #f3f5f9; color: #444; } 40%, 100% { background: #2d6a4f; color: #fff; } }
@keyframes hw-drop { 0%, 40% { opacity: 0; transform: scaleY(.6); } 60%, 100% { opacity: 1; transform: none; } }

/* scene 4 */
.hw-import { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.hw-file { padding: .7rem .9rem; border-radius: .6rem; font: .8rem/1.2 'JetBrains Mono', ui-monospace, monospace; color: #06101f; background: var(--studio-ice, #b7d7ff); }
.hw-admin { position: relative; display: grid; gap: .2rem; min-width: 14rem; padding: .9rem 2.6rem .9rem .9rem; border-radius: .8rem; background: #fff; color: #15223a; }
.hw-admin small { color: #5b6b85; }
.hw-admin b { color: #15223a; }
.hw-tick { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; background: #2f9e64; font-weight: 700; }
.hw-stage[data-scene="3"] .hw-file { animation: hw-fly 4.2s ease both; }
.hw-stage[data-scene="3"] .hw-tick { animation: hw-tick 4.2s ease both; }
@keyframes hw-fly { 0% { transform: translateX(-2rem); opacity: 0; } 25%, 100% { transform: none; opacity: 1; } }
@keyframes hw-tick { 0%, 50% { opacity: 0; transform: translateY(-50%) scale(.5); } 65%, 100% { opacity: 1; transform: translateY(-50%) scale(1); } }

/* Product chooser */
.hw-chooser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1.4rem; max-width: 980px; }
.hw-choice { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: .95rem; text-decoration: none; color: #06101f;
    background: linear-gradient(180deg, #ffffff, var(--studio-ice, #b7d7ff)); box-shadow: 0 .6rem 1.6rem rgba(138, 186, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.hw-choice b { color: #06101f; font-size: 1.02rem; }
.hw-choice small { color: #2a3a57; }
.hw-choice:hover { transform: translateY(-2px); box-shadow: 0 .9rem 2rem rgba(138, 186, 255, .38); }
.hw-choice:focus-visible { outline: 2px solid var(--studio-accent, #8abaff); outline-offset: 3px; }
.hw-path { max-width: 980px; }

/* Demo stores: by business type and menu type */
.ds-menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.2rem; }
.ds-group { text-align: start; padding: 1.1rem; border-radius: 1rem; border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.ds-group h3 { margin: 0 0 .7rem; font-size: 1rem; }
.ds-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ds-group a, .ds-group .ds-planned { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .8rem; border-radius: .65rem; text-decoration: none; color: var(--text-primary); background: var(--bg-elevated); }
.ds-group a:hover { outline: 1px solid var(--border-hover); }
.ds-group small { color: var(--text-secondary); }
.ds-planned { opacity: .7; }
.ds-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-primary); }

@media (max-width: 860px) {
    .hw-products { grid-template-columns: repeat(2, minmax(0, 9rem)); }
    .hw-chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hw-stage { min-height: 21rem; }
    .ds-menu { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .hw-chooser { grid-template-columns: minmax(0, 1fr); }
    .hw-steps .hw-pause { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hw-scene { transition: none; transform: none; }
    .hw-stage * { animation: none !important; }
    .hw-choice { transition: none; }
}
html.fp-motion-reduced .hw-stage * { animation: none !important; }
