/* W9: flagship polish for every #action example. Loads after act-show.css; only touches #action. */
.act--show { --lx-rim: rgba(209,173,106,.2); --lx-hair: rgba(209,173,106,.14); --lx-surf: linear-gradient(180deg, #16171b, #0b0c0f); --lx-shadow: 0 44px 90px -44px rgba(0,0,0,.95), 0 0 70px -40px rgba(255,106,43,.5), inset 0 1px 0 rgba(255,255,255,.06); }

/* ---------- fixes ---------- */
/* b. banner: the screenshot behind the store headline is a soft backdrop, not a second headline */
.act--show .pv__img { inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); filter: blur(7px) saturate(.8) brightness(.78); }
.act--show .pv__hero::after { background: linear-gradient(90deg, rgba(8,8,10,.94), rgba(8,8,10,.82) 55%, rgba(8,8,10,.5)); }
/* e. step 6 at 320: the closing call to action is a grid item; let it shrink and its button wrap */
.act--show .stack__cta { min-width: 0; }
@media (max-width: 640px) { .act--show .stack__cta .btn { white-space: normal; text-align: center; line-height: 1.3; height: auto; padding-top: 10px; padding-bottom: 10px; } }
/* c. phones: long perks lists show three, the rest behind a toggle */
.perks__more { display: none; }
/* d. step 2: a compact incoming-call card above the call demo on phones */
@media (max-width: 759px) {
  .act--show .call2__pic { display: block; max-width: none; margin: 0 0 14px; padding: 6px; border-radius: 26px; }
  .act--show .call2__pic::before { display: none; }
  .act--show .call2__pic .ring { min-height: 0; padding: 14px 16px; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k wave" "who wave" "st wave"; gap: 4px 12px; text-align: left; }
  .act--show .call2__pic .ring__k { grid-area: k; }
  .act--show .call2__pic .ring__who { grid-area: who; font-size: 22px; }
  .act--show .call2__pic .ring__who::before { display: none; }
  .act--show .call2__pic .ring__st { grid-area: st; justify-content: flex-start; margin: 0; }
  .act--show .call2__pic .ring__log { display: none; }
  .act--show .call2__pic .ring__wave { grid-area: wave; margin: 0; width: 76px; height: 48px; }
}
@media (max-width: 640px) {
  /* a. builder dock: a deliberate swipe row; the next card peeks and fades, the last one clears the fade */
  .act--show .bld__moves { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .act--show .bld__mv { flex: 0 0 calc(100% - 44px); }
  .act--show .bld__mv:last-child { margin-right: 26px; }
  .act--show .bld__looks { gap: 4px; }
  .act--show .bld__looks button { padding: 2px; }
  .act--show .bld__looks span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .act--show .bld__dock::after { content: "Swipe for the next move"; display: block; padding: 4px 0 0; text-align: center; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .act--show .pv__hero::after { background: linear-gradient(0deg, rgba(8,8,10,.95) 15%, rgba(8,8,10,.72)); }
  /* c. perks */
  .perks--clip:not(.is-open) > li:nth-child(n+4) { display: none; }
  .perks__more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--brass-2); font: 500 15px/1 var(--f-body); cursor: pointer; }
  .perks__more::after { content: "+"; font: 500 20px/1 var(--f-mono); }
  .perks__more[aria-expanded="true"]::after { content: "\2212"; }
  .perks--clip.is-open > li:nth-child(n+4) { animation: lxIn .3s var(--ease) both; }
  .act--show .call__log { height: 320px; }
}

/* ---------- shared materials: device frames ---------- */
.act--show .dev { border-radius: 28px; border-color: rgba(209,173,106,.2); background: linear-gradient(160deg, #3a3b42, #15161a 38%, #0a0b0d); box-shadow: 0 50px 90px -42px rgba(0,0,0,.95), 0 0 80px -42px rgba(255,106,43,.6), inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(0,0,0,.6); }
.act--show .dev__screen { border-radius: 20px; background: radial-gradient(130% 55% at 50% 0%, #1b1c21, #0b0c0f 62%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.act--show .dev--tab .dev__screen { border-radius: 16px; }

/* ---------- step 2: the ringing phone, the call app and the web chat ---------- */
.act--show .ring { background: radial-gradient(circle at 50% 0%, rgba(255,106,43,.2), transparent 58%), linear-gradient(#121317, #08090b); }
.act--show .ring__who::before { content: "N"; display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; background: linear-gradient(135deg, #f2dca9, #9c7a3e); color: #160b05; font: 600 28px/1 var(--f-cap); box-shadow: 0 0 0 6px rgba(255,106,43,.12), 0 0 40px rgba(255,106,43,.35); }
.act--show .ring__log li { background: linear-gradient(180deg, #1d1e23, #15161a); border-color: rgba(255,255,255,.08); }
.act--show .call { max-width: none; gap: 0; border-radius: 16px; border: 1px solid var(--lx-rim); background: var(--lx-surf); box-shadow: var(--lx-shadow); overflow: hidden; }
.act--show .call__hd { border: 0; border-radius: 0; padding: 14px 18px; border-bottom: 1px solid var(--lx-hair); background: rgba(255,255,255,.02); }
.act--show .call__hd b { font: 600 15px/1 var(--f-cap); letter-spacing: .06em; text-transform: uppercase; }
.act--show .call__hd span:last-child { color: var(--ember-2); font-variant-numeric: tabular-nums; }
/* Fixed box: the call fills it and keeps the newest line in view, so the step never grows while it plays. */
.act--show .call__log { padding: 18px; align-content: start; height: 340px; min-height: 0; overflow: hidden; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(transparent 0, #000 18px); mask-image: linear-gradient(transparent 0, #000 18px); }
.act--show .call__log li { position: relative; line-height: 1.5; animation: lxRow .35s var(--ease) both; }
.act--show .call__log .ai { margin-left: 42px; border-top-left-radius: 4px; background: linear-gradient(180deg, #1e1f24, #15161a); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.act--show .call__log .caller { margin-right: 42px; border-top-right-radius: 4px; }
.act--show .call__log .ai::after, .act--show .call__log .caller::after { position: absolute; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--f-mono); }
.act--show .call__log .ai::after { content: "AI"; left: -42px; color: #160b05; background: linear-gradient(135deg, #f2dca9, #9c7a3e); }
.act--show .call__log .caller::after { content: "C"; right: -42px; color: var(--ink); background: #24252b; border: 1px solid var(--line-2); }
.act--show .call__log .sys { margin: 0; }
.act--show .call > .btn { justify-self: start; margin: 0 18px 14px; }
.act--show .call > .md__note { margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--lx-hair); }
.act--show .wc { gap: 14px; }
.act--show .wc__store, .act--show .wc__chat { border-radius: 16px; border-color: var(--lx-rim); background: var(--lx-surf); box-shadow: var(--lx-shadow); }
.act--show .wc__img { position: relative; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.24), transparent 55%), linear-gradient(160deg, #6b4226, #24140a); color: #f2dca9; letter-spacing: .06em; box-shadow: inset 0 0 0 1px rgba(240,217,166,.25); }
.act--show .wc__info b { font: 600 18px/1.2 var(--f-cap); }
.act--show .wc__row > span:first-child { font: 600 16px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.act--show .wc__row [data-wc-stock] { padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(111,214,160,.4); color: #7fdcae; font: 500 13px/1 var(--f-mono); }
.act--show .wc__hd { align-items: center; padding: 14px 16px; border-bottom-color: var(--lx-hair); background: rgba(255,255,255,.02); }
.act--show .wc__hd b { display: flex; align-items: center; gap: 10px; }
.act--show .wc__hd b::before { content: "N"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f2dca9, #9c7a3e); color: #160b05; font: 600 14px/1 var(--f-cap); box-shadow: 0 0 0 3px rgba(111,214,160,.25); }
.act--show .wc__log { padding: 16px; }
.act--show .wc__log .ai { background: linear-gradient(180deg, #1e1f24, #15161a); border-color: rgba(255,255,255,.07); }
.act--show .wc__log li { animation: lxRow .35s var(--ease) both; }
.act--show .wc__chat::after { content: "Ask about stock, orders or hours"; display: block; margin: 0 14px 14px; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--muted); font-size: 15px; }

/* ---------- step 3: the phone till and the stock tablet ---------- */
.act--show .dev .pos__hd { color: var(--brass-2); border-bottom-color: var(--lx-hair); }
.act--show .dev .pos__grid { gap: 8px; }
.act--show .dev .pos__grid button { --pc: #7a4b2a; position: relative; min-height: 104px; align-content: end; padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); color: #fff; background: linear-gradient(180deg, transparent 30%, rgba(8,8,10,.92) 78%), radial-gradient(circle at 50% 22%, rgba(255,255,255,.28), transparent 42%), radial-gradient(circle at 50% 30%, var(--pc), #0d0907 85%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.act--show .dev .pos__grid button:nth-child(2) { --pc: #5a3520; }
.act--show .dev .pos__grid button:nth-child(3) { --pc: #6b6157; }
.act--show .dev .pos__grid button:nth-child(4) { --pc: #3d4a3a; }
.act--show .dev .pos__grid button:hover { border-color: rgba(240,217,166,.5); }
.act--show .dev .pos__grid button:active { transform: scale(.96); box-shadow: 0 0 0 1px var(--ember), 0 0 24px -8px rgba(255,106,43,.9); }
.act--show .dev .pos__grid button b { font: 600 14px/1.2 var(--f-body); text-wrap: balance; }
.act--show .dev .pos__hd span { white-space: nowrap; }
.act--show .dev .pos__hd span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.act--show .dev .pos__hd [data-pos-clock] { flex: none; margin-left: 8px; }
.act--show .dev .pos__grid button span { color: #f2dca9; font-variant-numeric: tabular-nums; }
.act--show .pos .st__sum { border-top-color: var(--lx-hair); }
.act--show .pos .st__sum b.st__tot { font: 600 28px/1 var(--f-cap) !important; font-variant-numeric: tabular-nums; }
.act--show .st__sum b { font-variant-numeric: tabular-nums; }
.act--show .pos__tender button { min-height: 52px; border-radius: 12px; border-color: rgba(209,173,106,.35); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); color: var(--ink); }
.act--show .pos__tender button:not(:disabled):hover { border-color: var(--ember); }
.act--show .st__result { position: relative; padding: 14px 14px 14px 56px; border-radius: 14px; border-color: rgba(111,214,160,.45); background: linear-gradient(180deg, rgba(111,214,160,.14), rgba(111,214,160,.03)); color: var(--ink-2); animation: lxPaid .45s cubic-bezier(.2,1.3,.4,1) both; }
.act--show .st__result::before { content: "\2713"; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #6fd6a0; color: #06140c; font: 700 16px/1 var(--f-body); box-shadow: 0 0 24px rgba(111,214,160,.6); }
.act--show .st__result b { font: 600 17px/1.3 var(--f-cap); letter-spacing: .02em; }
.act--show .dev .inv__t th { font: 500 13px/1 var(--f-mono); letter-spacing: .1em; color: var(--muted); border-bottom-color: var(--lx-rim); }
.act--show .dev .inv__t td { border-bottom-color: rgba(255,255,255,.06); vertical-align: middle; }
.act--show .dev .inv__t td.num { font-variant-numeric: tabular-nums; }
.act--show .inv .chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(111,214,160,.38); background: rgba(111,214,160,.06); color: #7fdcae; font: 500 13px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.act--show .inv .chip--low { border-color: rgba(255,106,43,.55); background: rgba(255,106,43,.12); color: var(--ember-2); }
.act--show .inv .chip--out { border-color: rgba(255,255,255,.16); background: none; color: var(--muted); }
.inv__bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.inv__bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #9c7a3e, #f2dca9); transform: scaleX(var(--p)); transform-origin: left; animation: lxBar .5s var(--ease) both; }
.inv__bar.is-low i { background: linear-gradient(90deg, #b8471a, var(--ember)); }
.inv__bar.is-out i { background: rgba(255,255,255,.2); }
.act--show .inv__orders li { border-color: var(--lx-hair); background: rgba(255,255,255,.02); }
.act--show .inv__orders li b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- step 4: the checkout and the money flow ---------- */
.act--show .st { padding: 16px; border-radius: 16px; border: 1px solid var(--lx-rim); background: var(--lx-surf); box-shadow: var(--lx-shadow); }
.act--show .prod { border-radius: 14px; border-color: rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.act--show .prod__img { position: relative; background: radial-gradient(circle at 50% 24%, rgba(255,255,255,.24), transparent 46%), radial-gradient(circle at 50% 40%, var(--c, #6b4a2e), #0d0907 82%); color: #f2dca9; letter-spacing: .18em; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.act--show .prod__img::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(240,217,166,.3); border-radius: 6px; pointer-events: none; }
.act--show .prod__row strong { font-variant-numeric: tabular-nums; }
.act--show .prod > button { min-height: 44px; border-color: rgba(209,173,106,.4); color: var(--brass-2); font-size: 14px; }
.act--show .st__cart { border-radius: 14px; border-color: var(--lx-hair); background: rgba(0,0,0,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.act--show .st__cart .panel__k { margin: 0; font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); }
.act--show .st__cart .st__sum { border-top-color: var(--lx-hair); }
.act--show .st__cart .st__sum b.st__tot { font: 600 26px/1 var(--f-cap) !important; font-variant-numeric: tabular-nums; }
.act--show .st__line { animation: lxRow .35s var(--ease) both; }
.act--show .st__pay button { min-height: 52px; border-radius: 12px; border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); color: var(--ink-2); }
.act--show .st__pay [aria-checked="true"] { border-color: var(--ember); background: rgba(255,106,43,.1); color: var(--ink); box-shadow: 0 0 22px -10px rgba(255,106,43,.9); }
.act--show .flow { border-radius: 16px; border: 1px solid var(--lx-rim); background: radial-gradient(60% 70% at 50% 50%, rgba(255,106,43,.07), transparent), var(--lx-surf); box-shadow: var(--lx-shadow); }
.act--show .flow__node { border-radius: 14px; background: linear-gradient(180deg, #1c1d22, #111216); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 40px -24px rgba(0,0,0,.9); }
.act--show .flow__node span { font-size: 13px; }
.act--show .flow__note { bottom: 14px; }
.act--show .flow__note b { font-size: 26px; }

/* ---------- step 5: the back office as an admin app ---------- */
.act--show .bo { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 16px; border: 1px solid var(--lx-rim); background: var(--lx-surf); box-shadow: var(--lx-shadow); overflow: hidden; }
.act--show .bo::before { content: "Northlane admin"; grid-column: 1 / -1; padding: 14px 18px; border-bottom: 1px solid var(--lx-hair); background: rgba(255,255,255,.02); font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); }
.act--show .bo > .act__sw { margin: 12px; }
.act--show .bo__view { min-width: 0; padding: 4px 16px 12px; min-height: 220px; }
.act--show .bo__view > * { animation: lxIn .35s var(--ease) both; }
.act--show .bo > .md__note { margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--lx-hair); }
.act--show .bo__t th { font: 500 13px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--lx-rim); }
.act--show .bo__t td { border-bottom-color: rgba(255,255,255,.06); }
.act--show .bo__t .num { font-variant-numeric: tabular-nums; }
.act--show .bo__t tbody tr { animation: lxRow .35s var(--ease) both; }
@media (min-width: 761px) {
  .act--show .bo { grid-template-columns: 200px minmax(0, 1fr); }
  .act--show .bo > .act__sw { grid-column: 1; grid-row: 2 / 4; flex-direction: column; align-items: stretch; width: auto; margin: 0; padding: 14px 10px; gap: 4px; border: 0; border-right: 1px solid var(--lx-hair); border-radius: 0; background: rgba(0,0,0,.22); overflow: visible; }
  .act--show .bo > .act__sw button { text-align: left; border-radius: 10px; }
  .act--show .bo__view { grid-column: 2; padding: 16px 18px; }
  .act--show .bo > .md__note { grid-column: 2; }
}

/* ---------- step 6: the media demo as a gallery ---------- */
.act--show .md__ops button { min-height: 44px; border-radius: 12px; border-color: rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); transition: border-color .25s, box-shadow .25s; }
.act--show .md__ops [aria-checked="true"] { border-color: var(--ember); background: rgba(255,106,43,.08); box-shadow: 0 0 24px -12px rgba(255,106,43,.9); }
.act--show .md__view { min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--lx-rim); background: var(--lx-surf); box-shadow: var(--lx-shadow); }
.act--show .md__shot, .act--show .md__screen { border-radius: 10px; box-shadow: 0 0 0 1px rgba(240,217,166,.18), 0 24px 50px -30px rgba(0,0,0,.9); }
.act--show .md__tag { font-size: 13px; border: 1px solid var(--lx-hair); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.act--show .md__swatches figure, .act--show .md__crops figure { padding: 6px; border-radius: 12px; background: #0a0b0d; box-shadow: inset 0 0 0 1px var(--lx-hair); }
.act--show .md__swatches img, .act--show .md__crops img { border-radius: 8px; border: 0; }
.act--show .md__swatches figcaption, .act--show .md__crops figcaption { font: 500 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2); text-align: center; padding: 2px 0 2px; }
.act--show .md__pane.is-on { animation: lxIn .35s var(--ease) both; }
.act--show .md__foot { display: block; line-height: 1.6; }
.act--show .md__foot .perk__tag { display: inline-block; margin: 0 10px 4px 0; vertical-align: middle; }
@media (max-width: 640px) {
  .act--show .st { padding: 10px; }
  .act--show .call__hd { padding: 12px 14px; }
  .act--show .call__hd span:nth-child(3) { display: none; }
  .act--show .call__log { padding: 14px 12px; }
  .act--show .call__log .ai { margin-left: 34px; }
  .act--show .call__log .caller { margin-right: 34px; }
  .act--show .call__log .ai::after, .act--show .call__log .caller::after { width: 26px; height: 26px; }
  .act--show .call__log .ai::after { left: -34px; }
  .act--show .call__log .caller::after { right: -34px; }
  .act--show .call > .btn { margin: 0 12px 12px; }
  .act--show .call > .md__note, .act--show .bo > .md__note { padding: 10px 14px 12px; }
  .act--show .md__view { padding: 8px; }
}

@keyframes lxIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes lxRow { from { opacity: 0; transform: translateY(10px); } }
@keyframes lxPaid { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes lxBar { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .act--show .call__log li, .act--show .wc__log li, .act--show .st__result, .inv__bar i, .act--show .st__line, .act--show .bo__view > *, .act--show .bo__t tbody tr, .act--show .md__pane.is-on, .perks--clip.is-open > li { animation: none; }
  .act--show .dev .pos__grid button { transition: none; }
}

/* The closing walkthrough block now sits at the end of step 6, above the specialist line. */
.stack__cta--end { margin: 0 0 28px; }

/* POS header: let the store name shrink (with an ellipsis) so the till never overflows its phone frame (W18 final check). */
.act--show .dev .pos__hd span:first-child { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* W15 round 2: at 320 the till's columns shrink to the 204px screen instead of pushing it wider. */
@media (max-width: 359px) {
  .act--show .dev__screen.pos > * { min-width: 0; max-width: 100%; }
  .act--show .dev__screen.pos .pos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act--show .dev__screen.pos .pos__tender { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .act--show .dev__screen.pos .pos__grid button, .act--show .dev__screen.pos .pos__tender button { min-width: 0; }
  .act--show .dev__screen.pos .pos__grid button { padding: 8px; }
  .act--show .dev__screen.pos .pos__tender button { padding-left: 2px; padding-right: 2px; letter-spacing: 0; }
  .act--show .dev__screen.pos .st__sum { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .act--show .dev__screen.pos .st__sum b.st__tot { font-size: 22px !important; }
}
