/* Plyomat Auto Save page. Consumes tokens/tokens.css and assets/landing.css.
 * Section system follows pages/mats.html (blueprint white and navy sections,
 * Knockout display, notched buttons). App replica colours follow the 3.1.10
 * capture screen. No new brand tokens are defined here; local aliases only. */

:root {
  --as-ink: #0F1A26; --as-ink2: #55677d; --as-line: #C9D6E3;
  --as-app-bg: #15171b; --as-app-panel: #1b2230; --as-app-edge: #26364d;
  --as-app-muted: #93a4b8;
}
body { background: var(--color-bg); }
.m-sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.m-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 640px) { .m-wrap { padding: 0 18px; } }
.sec-w { --bd-bg: #fff; color: var(--as-ink); }
.sec-n { --bd-bg: #0B1520; color: #fff; }
.sec-w, .sec-n, .sec-p, .as-facts { background: var(--bd-light, none) no-repeat var(--bd-bg); }
.m-h { font-family: "Knockout 72", sans-serif; font-weight: normal; text-transform: uppercase; line-height: .92; font-size: clamp(44px, 6.4vw, 96px); margin: 0; }
.m-h span { color: var(--color-accent); }
.m-lead { font-family: "Knockout 49", sans-serif; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.2; margin: 18px 0 0; max-width: 820px; color: var(--as-ink2); }
.sec-n .m-lead { color: #CFE3F7; }
.btn-m { display: inline-block; font-family: "Knockout 51", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 21px; line-height: 1; padding: 18px 30px 15px; background: var(--color-accent); color: #06121d; border: 0; cursor: pointer; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.btn-m:hover { background: var(--color-accent-hover); text-decoration: none; }
.btn-m.ghost { background: #fff; color: var(--as-ink); }
.btn-m.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }
.sec-w :focus-visible:not(.mo-sw *) {
  outline-color: var(--as-ink);
  box-shadow: 0 0 0 3px var(--color-gold);
}
section[id], header[id], #demo { scroll-margin-top: 76px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.as-hero { padding: clamp(16px, 4vw, 56px) 0 clamp(48px, 5vw, 72px); }
.as-hero-grid { display: grid; grid-template: "copy film" auto "more film" 1fr / minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1080px) { .as-hero-grid { grid-template: "copy" "film" "more" / 1fr; } }
.as-hero-copy { grid-area: copy; }
.as-hero-more { grid-area: more; margin-top: 28px; }
.as-ver { font-family: "Knockout 32", sans-serif; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-gold); margin: 0 0 12px; display: flex; align-items: center; gap: 14px; }
.as-hero h1 { font-family: "Knockout 72", sans-serif; font-weight: normal; text-transform: uppercase; line-height: .88; margin: 0; font-size: clamp(58px, 7.6vw, 112px); }
.as-hero h1 span { color: var(--color-accent); display: block; }
.as-lead { font-family: "Knockout 49", sans-serif; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.2; color: #E8F1FA; margin: 22px 0 26px; max-width: 560px; }
.as-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.as-avail { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-family: "Knockout 49", sans-serif; font-size: 21px; line-height: 1.25; color: #B6CADF; max-width: 560px; }
.as-avail b { font-family: "Knockout 51", sans-serif; font-weight: normal; color: #fff; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Hero video: a true recording of the released app ---------- */
.as-film { grid-area: film; margin: 0; }
.as-film video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--as-app-bg); border: 1px solid var(--as-app-edge); border-radius: 12px; }
.as-film figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; font-family: "Knockout 49", sans-serif; font-size: 18px; line-height: 1.2; color: #8FB3D6; }
.as-film-btn, .as-clips button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px 6px; background: none; border: 1px solid #2b4466; color: #E8F1FA; font-family: "Knockout 51", sans-serif; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.as-film-btn { min-width: 9.6em; }
.as-clips { display: flex; gap: 8px; }
.as-film figcaption:has(.as-clips) { display: grid; grid-template: "c b" "w w" / 1fr auto; gap: 10px 8px; }
.as-clips { grid-area: c; } .as-film-btn { grid-area: b; } .as-film-words { grid-area: w; }
.as-clips [aria-checked="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #06121d; }
.as-film-words { display: block; } .as-film-words > :first-child { display: block; } .as-film-text { display: grid; } .as-film-text > * { grid-area: 1 / 1; } .as-film-text > [aria-hidden] { visibility: hidden; }
.as-film-btn::before { content: ""; width: 10px; height: 12px; box-sizing: border-box; border-inline: 3px solid; }
.as-film-btn[data-play]::before { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 1080px) { .as-film { margin-top: 22px; max-width: 620px; } .as-hero-more { margin-top: 22px; } }
/* The demo keeps the width it was approved at: copy left, demo right on wide screens */
@media (min-width: 1081px) {
  .as-try .m-wrap { display: grid; grid-template: "h demo" auto "p demo" 1fr / minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; }
  .as-try .m-h { grid-area: h; } .as-try .m-lead { grid-area: p; } .as-try .as-spec { grid-area: demo; }
}
@media (max-width: 1080px) { .as-try .as-spec { margin-top: 32px; } }
@media (max-width: 640px) { .as-film video { border-radius: 8px; } .as-film figcaption { font-size: 16px; } .as-film-btn { min-width: 44px; font-size: 0; gap: 0; } }

/* ---------- Notched frame around the demo ---------- */
.as-spec { position: relative; padding: 18px; background: rgba(8,16,26,.72); border: 1px solid rgba(33,159,255,.28); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.as-demo-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-family: "Knockout 32", sans-serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #8FB3D6; }
.as-demo-cap b { color: #fff; font-weight: normal; }
@media (max-width: 640px) { .as-spec { padding: 10px; } }

/* ---------- App replica ---------- */
.ap { container-type: inline-size; position: relative; background: var(--as-app-bg); border: 1px solid var(--as-app-edge); border-radius: 14px; overflow: hidden; color: #fff; font-family: "Helvetica Neue", Arial, sans-serif; touch-action: manipulation; }
.ap button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.ap-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ap-mode { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border: 1px solid #2b4f7a; border-radius: 8px; background: #132238; }
.ap-mode b { font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: 22px; line-height: 1; color: var(--color-accent); }
.ap-mode span { font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #CFE3F7; }
.ap-reps { flex: 1; min-width: 0; }
.ap-reps-l { display: flex; justify-content: space-between; font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--as-app-muted); }
.ap-ruler { position: relative; height: 10px; margin-top: 5px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.ap-ruler i { display: block; background: #26324a; border-radius: 1px; transition: background .2s; }
.ap-ruler i.on { background: var(--color-accent); }
.ap.saved-flash .ap-ruler i.on { background: var(--color-success); }
.ap-badge { font-family: "Knockout 51", sans-serif; font-size: 13px; letter-spacing: .12em; padding: 5px 9px 3px; border: 1px solid #8a6d1c; color: var(--color-gold); background: rgba(247,197,72,.08); border-radius: 4px; }

.ap-rail { display: flex; gap: 6px; align-items: flex-start; padding: 10px 12px 8px; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.06); }
.ap-ath { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; padding: 2px 6px; background: none; border: 0; min-width: 70px; }
.ap-av { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: "Knockout 51", sans-serif; font-size: 17px; letter-spacing: .04em; color: var(--color-accent); border: 2px solid #2b4f7a; background: #132238; transition: box-shadow .2s, border-color .2s; }
.ap-ath[aria-current="true"] .ap-av { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(33,159,255,.28), 0 0 18px rgba(33,159,255,.45); color: #fff; background: #1a3b63; }
.ap-ath .nm { font-size: 13px; color: #CFE3F7; white-space: nowrap; }
.ap-ath[aria-current="true"] .nm { color: var(--color-accent); font-weight: 600; }
.ap-ord { position: absolute; left: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #0B1520; border: 1px solid #3b5878; font-family: "Knockout 51", sans-serif; font-size: 11px; line-height: 17px; text-align: center; color: #B6CADF; }
.ap-cnt { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--color-success); color: #062312; font-family: "Knockout 51", sans-serif; font-size: 12px; line-height: 18px; text-align: center; }
.ap-cnt[hidden] { display: none; }
.ap-note { margin: 0 12px 8px; padding: 8px 10px; border-radius: 8px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.4); color: #FDE68A; font-size: 14px; }
.ap-note[hidden] { display: none; }

.ap-ctrls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ap-ctrls button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 8px; border: 1px solid #2c3a4f; background: #161d28; font-size: 15px; }
.ap-ctrls button:hover { border-color: #46607f; }
.ap-ctrls .pz { border-color: #8a6d1c; color: var(--color-gold); }
.ap-ctrls .pz[aria-pressed="true"] { background: rgba(247,197,72,.14); }
.ap-ctrls svg { width: 14px; height: 14px; }

.ap-main { display: grid; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) { .ap-main { grid-template-columns: minmax(0, 1fr) 210px; } .ap-stream { border-left: 1px solid rgba(255,255,255,.06); border-top: 0 !important; } }
.ap-hero { --figure-size: clamp(76px, 22cqw, 132px); padding: 16px 14px 18px; text-align: center; min-height: 228px; display: flex; flex-direction: column; justify-content: center; }
.ap-line { min-block-size: 1lh; font-family: "Knockout 51", sans-serif; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; color: var(--color-accent); }
.ap-line.pz { color: var(--color-gold); }
/* Keep the status and statistics in place when a name is replaced by a number. */
#ap-figure { display: grid; place-items: center; block-size: calc(var(--figure-size) * .9 + 8px); }
.ap-big { font-family: "Knockout 71", sans-serif; font-size: var(--figure-size); line-height: .9; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ap-big small { font-family: "Knockout 49", sans-serif; font-size: .26em; color: var(--as-app-muted); margin-left: 4px; }
.ap-name { font-family: "Knockout 72", sans-serif; text-transform: uppercase; font-size: clamp(42px, 11cqw, 70px); line-height: .92; margin-top: 8px; }
.ap-sub { display: flex; justify-content: center; gap: 26px; margin-top: 12px; font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--as-app-muted); }
.ap-sub b { display: block; min-inline-size: 38px; margin-top: 3px; font-family: "Knockout 71", sans-serif; font-weight: normal; letter-spacing: 0; font-size: 22px; color: #fff; }
.ap-big.punch { animation: number-punch var(--duration-slow) var(--ease-punch); }
.ap-stream { position: relative; border-top: 1px solid rgba(255,255,255,.06); padding: 10px 12px; }
.ap-stream h4 { margin: 0 0 6px; font-family: "Knockout 32", sans-serif; font-weight: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #CFE3F7; display: flex; justify-content: space-between; }
.ap-stream ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; block-size: 136px; grid-auto-rows: 44px; overflow: hidden auto; scrollbar-gutter: stable; }
.ap-stream li { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; color: var(--as-app-muted); }
.ap-stream li b { font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.ap-stream .empty { position: absolute; inset-block-start: calc(1lh + 16px); font-size: 13px; color: var(--as-app-muted); padding: 6px 0; }
@container (width < 560px) {
  /* Size tracks for three reps even when empty, and leave room for a classic scrollbar below the row. */
  .ap-stream ol { grid-auto-flow: column; grid-auto-columns: max(64px, (100% - 4px) / 3); grid-template-rows: 62px; block-size: auto; overflow: scroll hidden; scrollbar-gutter: auto; }
  .ap-stream li { flex-direction: column; align-items: center; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
}
@container (max-width: 420px) { .ap-line { min-block-size: 2lh; } }

.ap-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.08); background: #121418; }
.ap-bt { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid #1e5134; color: #86efac; }
.ap-bt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.ap-mat { margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; inline-size: 144px; padding: 7px 14px 5px; border-radius: 999px; border: 1px solid #2c3a4f; font-family: "Knockout 32", sans-serif; font-size: 13px; letter-spacing: .18em; white-space: nowrap; text-transform: uppercase; color: #6b7d92; transition: color .2s, border-color .2s, box-shadow .2s; }
.ap-mat::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #3a4656; }
.ap-mat.on { color: #bbf7d0; border-color: #2f8f57; box-shadow: 0 0 14px rgba(74,222,128,.25); }
.ap-mat.on::before { background: var(--color-success); }
.ap .ap-disk { gap: 8px; font-family: "Knockout 51", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ap-disk .lbl { font-size: 14px; }
/* App save pulse: page.tsx:8664 */
.ap-disk.pulse svg { animation: asw-p .8s ease-in-out 2; }
@keyframes asw-p { 50% { opacity: .5; } }
/* Auto Save switch: the app's footer button, apps/web/src/app/m/live/page.tsx:8659-8663, colours globals.css:68-85 */
.asw { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 2.75em; min-height: 2.75em; padding: .25em .625em; font-size: 16px; border: .0625em solid #1f3252; border-radius: .375em; background: rgba(21,36,54,.4); color: #c6d5e6; transition: .15s cubic-bezier(.4,0,.2,1); transition-property: color, background-color, border-color; }
.asw svg { width: 1em; height: 1em; flex: none; }
.asw.on, .asw.loop { background: rgba(247,197,72,.2); border-color: #f7c548; color: #f7c548; box-shadow: 0 0 1.125em -.25em #f7c548; }
.asw.sm { font-size: 9px; }
.asw.loop { animation: asw 4.3s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes asw {
  0%, 27.9%, 100% { background: rgba(21,36,54,.4); border-color: #1f3252; color: #c6d5e6; box-shadow: none; }
  31.4%, 34.88% { background: rgba(21,36,54,.7); border-color: #1f3252; color: #fff; box-shadow: none; }
  34.9%, 96.5% { box-shadow: 0 0 1.125em -.25em #f7c548; }
  38.4%, 96.5% { background: rgba(247,197,72,.2); border-color: #f7c548; color: #f7c548; }
  96.52% { box-shadow: none; }
}
.as-ver .asw { font-size: 16px; }
@media (min-width: 1081px) { .as-ver .asw { font-size: 29px; } }
@container (max-width: 420px) { .ap-disk .lbl { display: none; } .ap-bt .lbl { display: none; } }

/* Receipt, prompt and sheet overlays */
.ap-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; pointer-events: none; z-index: 5; }
.ap-receipt { pointer-events: auto; width: min(430px, 100%); padding: 16px; border-radius: 14px; border: 1px solid #2f8f57; background: linear-gradient(160deg, #173826, #11241b 60%); box-shadow: 0 0 0 1px rgba(74,222,128,.15), 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(74,222,128,.18); animation: rc-in .26s var(--ease-punch); }
@keyframes rc-in { from { transform: scale(.92); opacity: 0; } }
.ap-receipt.gone { display: none; }
.rc-head { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.rc-tick { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #4ade80; display: grid; place-items: center; color: #4ade80; }
.rc-tick svg { width: 22px; height: 22px; }
.rc-eyebrow { font-family: "Knockout 32", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #4ade80; }
.rc-name { font-family: "Knockout 72", sans-serif; font-size: 30px; line-height: .95; text-transform: uppercase; }
.rc-metric { font-size: 13px; color: #b7d7c4; margin-top: 2px; }
.rc-stats { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 12px; border: 1px solid rgba(74,222,128,.25); border-radius: 10px; background: rgba(0,0,0,.18); }
.rc-stats > div { padding: 10px 12px; }
.rc-stats > div + div { border-left: 1px solid rgba(74,222,128,.2); display: grid; gap: 6px; }
.rc-k { font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b7d7c4; }
.rc-v { font-family: "Knockout 71", sans-serif; font-size: 46px; line-height: 1; }
.rc-v small, .rc-s small { font-family: "Knockout 49", sans-serif; font-size: 15px; color: #b7d7c4; margin-left: 3px; }
.rc-s { font-family: "Knockout 71", sans-serif; font-size: 20px; line-height: 1; }
.rc-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rc-next { flex: 1; font-size: 15px; line-height: 1.3; font-weight: 600; color: #4ade80; }
@container (max-width: 420px) {
  .ap-layer .rc-next { display: grid; align-content: center; min-block-size: 3lh; }
}
.rc-discard { flex: none; padding: 11px 16px; border-radius: 8px; border: 0; background: #c81e1e; color: #fff; font-family: "Knockout 51", sans-serif; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.rc-discard:hover { background: #dc2626; }
.rc-bar { height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 100%; background: #4ade80; transform-origin: left; }
.rc-bar.run i { animation: rc-drain var(--rc-ms, 6000ms) linear forwards; }
@keyframes rc-drain { to { transform: scaleX(0); } }
.ap-receipt.discarded { border-color: #46566b; background: linear-gradient(160deg, #222a35, #191f28); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.ap-receipt.discarded .rc-tick { border-color: #93a4b8; color: #93a4b8; }
.ap-receipt.discarded .rc-eyebrow { color: #CFE3F7; }
.ap-receipt.discarded .rc-bar i { background: #93a4b8; }

.ap-prompt { pointer-events: auto; width: min(400px, 100%); padding: 18px; border-radius: 14px; background: #1b2230; border: 1px solid #36506f; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.ap-prompt h5 { margin: 0; font-family: "Knockout 51", sans-serif; font-weight: normal; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.ap-prompt p { margin: 8px 0 14px; font-size: 14px; line-height: 1.45; color: #B6CADF; }
.ap-prompt .row { display: flex; gap: 8px; }
.ap-prompt button { flex: 1; padding: 11px; border-radius: 8px; border: 1px solid #36506f; background: #132238; font-family: "Knockout 51", sans-serif; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.ap-prompt button.pri { background: var(--color-accent); border-color: var(--color-accent); color: #06121d; }

.ap-sheet-wrap { position: absolute; inset: 0; z-index: 8; background: rgba(5,10,16,.62); display: flex; align-items: flex-end; }
.ap-sheet-wrap[hidden] { display: none; }
.ap-sheet { width: 100%; max-height: 92%; overflow-y: auto; background: #172235; border-top: 1px solid #2b4466; border-radius: 16px 16px 0 0; padding: 8px 16px 18px; animation: sh-in .28s var(--ease-out); }
@keyframes sh-in { from { transform: translateY(40px); opacity: 0; } }
.sh-grab { width: 44px; height: 4px; border-radius: 2px; background: #3b5878; margin: 4px auto 10px; }
.sh-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sh-top h5 { margin: 0; font-family: "Knockout 72", sans-serif; font-weight: normal; font-size: 24px; text-transform: uppercase; }
.sh-x { flex: 0 0 44px; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid #2b4466; background: none; font-size: 22px; line-height: 1; }
.sh-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid #2b5c95; border-radius: 10px; background: #153050; }
.sh-card .k { font-family: "Knockout 32", sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #B6CADF; }
.sh-card .v { font-family: "Knockout 72", sans-serif; font-size: 26px; line-height: 1; color: var(--color-accent); }
.sh-card .v.off { color: #93a4b8; }
.sh-scope { margin: 6px 2px 0; font-size: 14px; color: #CFE3F7; }
.sh-lock { margin: 4px 2px 0; font-size: 13px; color: #93a4b8; }
.sh-help { margin: 6px 2px 0; font-size: 13px; line-height: 1.45; color: #B6CADF; }
.sh-msg { margin: 6px 2px 0; font-size: 14px; color: #FDE68A; }
.sh-msg:empty { display: none; }
.sh-steps { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 14px 0 4px; }
.sh-steps div { display: grid; justify-items: center; gap: 6px; font-family: "Knockout 32", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sh-steps i { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #2b5c95; display: grid; place-items: center; font-style: normal; font-family: "Knockout 51", sans-serif; font-size: 15px; color: var(--color-accent); }
.sh-steps div:nth-child(2) i { border-color: #8a6d1c; color: var(--color-gold); background: rgba(247,197,72,.1); }
.sh-h { margin: 16px 2px 6px; font-family: "Knockout 32", sans-serif; font-weight: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #CFE3F7; }
.sh-list { margin: 0; padding: 0 2px; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; color: #E8F1FA; }
.sh-list b { font-weight: 600; }
.sw { position: relative; flex: none; width: 52px; height: 30px; border-radius: 15px; border: 0; background: #33445a; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease-out); }
.sw[aria-checked="true"] { background: var(--color-accent); }
.sw[aria-checked="true"]:not([aria-disabled="true"])::after { background: var(--as-ink); }
.sw[aria-checked="true"]::after { transform: translateX(22px); }
.sw[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- The mat (the visitor's main control) ---------- */
.as-matzone { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: stretch; margin-top: 14px; }
@media (max-width: 560px) { .as-matzone { grid-template-columns: 1fr; } }
.as-matbtn { position: relative; min-height: 118px; border: 0; padding: 0; cursor: pointer; background: transparent; touch-action: manipulation; }
.as-matbtn .surface { position: absolute; inset: 14px 0 0; border-radius: 6px; background-color: #17191c; background-image: radial-gradient(rgba(255,255,255,.10) 1.1px, transparent 1.5px); background-size: 11px 11px; box-shadow: inset 0 0 0 2px #2b2f35, 0 10px 24px rgba(0,0,0,.45); transition: transform .12s var(--ease-out), box-shadow .2s; }
.as-matbtn:hover .surface { box-shadow: inset 0 0 0 2px var(--color-accent), 0 10px 24px rgba(0,0,0,.45); }
.as-matbtn:active .surface { transform: translateY(2px); }
.as-matbtn .dim { position: absolute; left: 0; right: 0; top: 0; height: 10px; border-left: 1px solid #5f7d9c; border-right: 1px solid #5f7d9c; }
.as-matbtn .dim::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid #5f7d9c; }
.as-matbtn .dim span { position: absolute; left: 50%; top: -3px; transform: translateX(-50%); padding: 0 8px; background: #0b1520; font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; color: #8FB3D6; text-transform: uppercase; white-space: nowrap; }
.as-matbtn .lab { position: absolute; inset: 14px 0 0; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; color: #fff; }
.as-matbtn .lab b { font-family: "Knockout 72", sans-serif; font-weight: normal; font-size: clamp(30px, 4vw, 42px); line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.as-matbtn .lab small { font-family: "Knockout 32", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8FB3D6; }
.as-feet { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 26px; opacity: 0; transition: opacity .15s, transform .25s var(--ease-out); }
.as-feet i { width: 14px; height: 30px; border-radius: 7px 7px 6px 6px; background: rgba(74,222,128,.55); box-shadow: 0 0 14px rgba(74,222,128,.6); }
.as-matbtn[data-phase="onmat"] .as-feet, .as-matbtn[data-phase="done"] .as-feet { opacity: 1; }
.as-matbtn[data-phase="air"] .as-feet { opacity: .2; transform: translate(-50%, -18px); }
.as-matbtn[data-phase="air"] .surface { box-shadow: inset 0 0 0 2px var(--color-accent), 0 0 30px rgba(33,159,255,.35); }
.as-matbtn[disabled] { cursor: not-allowed; }
.as-matbtn[disabled] .lab b { color: #6b7d92; }
.as-readout { min-width: 150px; display: grid; align-content: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(33,159,255,.25); background: rgba(11,21,32,.8); }
@media (max-width: 560px) { .as-readout { grid-template-columns: 1fr 1fr 1fr; min-width: 0; padding: 10px 12px; } }
.as-readout div { font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8FB3D6; }
.as-readout b { display: block; font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: 26px; letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.as-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-family: "Knockout 49", sans-serif; font-size: 18px; color: #B6CADF; }
.as-step { display: inline-flex; align-items: center; gap: 0; border: 1px solid #2b4466; }
.as-step button { width: 40px; height: 40px; border: 0; background: #132238; color: #fff; font-family: "Knockout 71", sans-serif; font-size: 22px; cursor: pointer; }
.as-step button[disabled] { color: #4b5d73; cursor: not-allowed; }
.as-step output { min-width: 42px; text-align: center; font-family: "Knockout 71", sans-serif; font-size: 24px; color: #fff; }
.as-shell .why { flex: 1 1 0; min-inline-size: 0; font-size: 16px; color: #8FB3D6; min-block-size: 2lh; display: grid; align-content: center; }
@media (max-width: 640px) {
  .as-shell .why { flex-basis: 100%; order: 1; min-block-size: 1lh; }
}
.as-reset { margin-left: auto; background: none; border: 1px solid #2b4466; color: #CFE3F7; padding: 9px 14px 7px; font-family: "Knockout 51", sans-serif; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.as-hint { margin: 10px 0 0; font-family: "Knockout 49", sans-serif; font-size: 17px; color: #7E93AA; }

/* ---------- Facts strip ---------- */
.as-facts { display: grid; grid-template-columns: repeat(4, 1fr); --bd-bg: var(--as-ink); color: #fff; border-top: 1px solid #1f3252; }
.as-facts div { padding: 28px 32px; border-right: 1px solid #1f3252; }
.as-facts b { display: block; font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: clamp(44px, 4.6vw, 70px); line-height: 1; color: var(--color-accent); }
.as-facts span { font-family: "Knockout 49", sans-serif; font-size: 22px; line-height: 1.15; color: #CFE3F7; }
@media (max-width: 760px) { .as-facts { grid-template-columns: 1fr 1fr; } .as-facts div { padding: 18px; border-bottom: 1px solid #1f3252; } }

/* ---------- Moment 1: per mode ---------- */
.mo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-top: 44px; align-items: start; }
@media (max-width: 980px) { .mo { grid-template-columns: 1fr; } }
.mo-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .mo-rail { grid-template-columns: repeat(2, 1fr); } }
.mo-rail button { position: relative; text-align: left; padding: 14px 14px 12px; border: 2px solid var(--as-line); background: #fff; color: var(--as-ink); cursor: pointer; min-height: 96px; }
.mo-rail button b { display: block; font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: 40px; line-height: .95; }
.mo-rail button span { font-family: "Knockout 49", sans-serif; font-size: 19px; color: var(--as-ink2); }
.mo-rail button em { position: absolute; right: 10px; top: 10px; font-style: normal; font-family: "Knockout 51", sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px 1px; border: 1px solid var(--as-line); color: #7E93AA; }
.mo-rail button em.on { background: var(--color-gold); border-color: #d6a72a; color: #2b1f00; }
.mo-rail button em.na { border-style: dashed; }
.mo-rail button[aria-pressed="true"] { background: var(--as-ink); border-color: var(--as-ink); color: #fff; }
.mo-rail button[aria-pressed="true"] span { color: #CFE3F7; }
.mo-card { background: #fff; border: 2px solid var(--as-line); padding: 24px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.mo-card h3 { margin: 0; font-family: "Knockout 72", sans-serif; font-weight: normal; font-size: clamp(34px, 3.4vw, 48px); line-height: .95; text-transform: uppercase; }
.mo-sw { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; background: var(--as-ink); color: #fff; }
.mo-sw .k { flex: 1; font-family: "Knockout 51", sans-serif; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.mo-sw[hidden] { display: none; }
.mo-scope { min-height: 1.2em; margin: 10px 0 0; font-family: "Knockout 49", sans-serif; font-size: 24px; color: var(--as-ink); }
.mo-how-k { margin: 18px 0 4px; font-family: "Knockout 51", sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-press); }
.mo-how { margin: 0; font-family: "Knockout 49", sans-serif; font-size: 24px; line-height: 1.18; color: var(--as-ink2); }
.mo-sum { margin: 18px 0 0; padding-top: 14px; border-top: 2px solid var(--as-line); font-family: "Knockout 49", sans-serif; font-size: 22px; color: var(--as-ink); }

/* ---------- Moment 2: tick order ---------- */
.or { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; margin-top: 44px; align-items: start; }
@media (max-width: 980px) { .or { grid-template-columns: 1fr; } }
.or-k { margin: 0 0 10px; font-family: "Knockout 51", sans-serif; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: #48B4FF; }
.or-roster { display: grid; gap: 6px; }
.or-roster button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #14243A; border: 0; border-left: 6px solid transparent; color: #fff; cursor: pointer; text-align: left; font-family: "Knockout 51", sans-serif; font-size: 24px; text-transform: uppercase; }
.or-roster button[aria-pressed="true"] { background: #fff; color: var(--as-ink); border-left-color: var(--color-accent); }
.or-roster .bx { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2px solid #48627f; font-family: "Knockout 71", sans-serif; font-size: 20px; }
.or-roster button[aria-pressed="true"] .bx { background: var(--color-accent); border-color: var(--color-accent); color: #06121d; }
.or-start { display: flex; flex-wrap: wrap; gap: 6px; }
.or-start button { padding: 9px 12px 7px; border: 1px solid #2b4466; background: transparent; color: #CFE3F7; font-family: "Knockout 49", sans-serif; font-size: 20px; cursor: pointer; }
.or-start button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #06121d; }
.or-out { margin-top: 26px; }
.or-seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 2px solid #2A4058; }
.or-seq li { position: relative; padding: 18px 10px 10px 0; }
.or-seq li::before { content: ""; position: absolute; left: 0; top: -2px; width: 2px; height: 14px; background: #48B4FF; }
.or-seq .n { font-family: "Knockout 71", sans-serif; font-size: 56px; line-height: .9; color: var(--color-accent); }
.or-seq .p { display: block; font-family: "Knockout 51", sans-serif; font-size: 22px; text-transform: uppercase; line-height: 1; margin-top: 4px; }
.or-seq .t { display: block; font-family: "Knockout 32", sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8FB3D6; margin-top: 6px; }
.or-seq li.first .p { color: var(--color-gold); }
.or-wrap { margin: 14px 0 0; font-family: "Knockout 49", sans-serif; font-size: 22px; color: #CFE3F7; }
.or-warn { margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(251,191,36,.5); background: rgba(251,191,36,.08); color: #FDE68A; font-family: "Knockout 49", sans-serif; font-size: 22px; }
.or-warn[hidden] { display: none; }

/* ---------- Moment 3: no connection ---------- */
.of { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 44px; align-items: center; }
@media (max-width: 980px) { .of { grid-template-columns: 1fr; } }
.of-ctl { display: grid; gap: 14px; }
.of-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--as-line); background: #fff; }
.of-row .k { flex: 1; font-family: "Knockout 51", sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.of-row .s { font-family: "Knockout 49", sans-serif; font-size: 20px; color: var(--as-ink2); }
.of-q { display: flex; align-items: baseline; gap: 14px; font-family: "Knockout 49", sans-serif; font-size: 22px; color: var(--as-ink2); }
.of-q b { font-family: "Knockout 71", sans-serif; font-weight: normal; font-size: 64px; line-height: 1; color: var(--as-ink); }
.of-stage { background: #0B1520; padding: 26px; min-height: 300px; display: grid; place-items: center; }
.of-stage .ap-receipt { position: relative; }
.ap-receipt.queued { border-color: #a07d1f; background: linear-gradient(160deg, #3a2f12, #241d0c 60%); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(247,197,72,.16); }
.ap-receipt.queued .rc-tick { border-color: var(--color-gold); color: var(--color-gold); }
.ap-receipt.queued .rc-eyebrow, .ap-receipt.queued .rc-next { color: var(--color-gold); }
.of-sent { margin: 0; font-family: "Knockout 49", sans-serif; font-size: 22px; color: #15803d; min-height: 1.3em; }
.of-empty { font-family: "Knockout 49", sans-serif; font-size: 22px; color: #8FB3D6; text-align: center; }

/* ---------- You still run the session ---------- */
.ys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; margin-top: 36px; }
@media (max-width: 900px) { .ys { grid-template-columns: 1fr; } }
.ys div { padding: 20px 0 18px; border-top: 2px solid #2A4058; }
.ys b { display: block; font-family: "Knockout 51", sans-serif; font-weight: normal; font-size: 28px; line-height: 1.05; text-transform: uppercase; color: #48B4FF; }
.ys span { font-family: "Knockout 49", sans-serif; font-size: 24px; line-height: 1.18; color: #E8F1FA; }

/* ---------- Questions ---------- */
details.m-faq { border-top: 2px solid var(--as-line); padding: 18px 0; }
details.m-faq:last-of-type { border-bottom: 2px solid var(--as-line); }
details.m-faq summary { font-family: "Knockout 51", sans-serif; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 28px); cursor: pointer; color: var(--as-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.m-faq summary::-webkit-details-marker { display: none; }
details.m-faq summary::after { content: "+"; color: var(--color-accent); font-family: "Knockout 72", sans-serif; }
details.m-faq[open] summary::after { content: "\2212"; }
details.m-faq p { font-family: "Knockout 49", sans-serif; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; color: var(--as-ink2); margin: 10px 0 0; max-width: 900px; }

/* ---------- Close ---------- */
.as-close .m-h { max-width: 14ch; }
.as-close .as-acts { margin-top: 28px; }
.as-close .as-avail { border-top-color: rgba(255,255,255,.14); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rc-bar { display: none; }
}

/* Phones: keep the number and the mat close together while tapping */
@media (max-width: 560px) {
  .ap-hero { --figure-size: 84px; min-height: 150px; padding: 10px 12px 12px; }
  .ap-name { font-size: 44px; }
  .ap-rail { padding: 8px 10px 6px; }
  .ap-av { width: 40px; height: 40px; font-size: 15px; }
  .ap-ath { min-width: 62px; }
  .ap-ctrls { padding: 6px 10px; }
  .ap-ctrls button { padding: 8px 4px; font-size: 14px; }
  .ap-stream { padding: 8px 10px; }
  .as-matbtn { min-height: 104px; }
  .as-demo-cap { font-size: 12px; letter-spacing: .14em; }
}
.ap-reps-l span { white-space: nowrap; }
@container (max-width: 420px) { #ap-pct { display: none; } }

/* Touch targets: at least 44 px on every control */
.ap-ctrls button, .rc-discard, .ap-prompt button, .ap .ap-disk { min-height: 44px; }
.as-step button { width: 44px; height: 44px; }
.as-reset { min-height: 44px; }
.ap .sw::before { content: ""; position: absolute; inset: -8px -4px; }
/* The transparent border extends the target without enlarging the painted track. */
#mo-switch, #of-net { height: 44px; border-block: 7px solid transparent; border-radius: 15px / 22px; background-clip: padding-box; }
.or-start button { min-height: 44px; }

/* Phones and tablets: show the receipt above the controls that make it */
@media (max-width: 980px) {
  .of-stage { order: -1; min-height: 210px; padding: 16px; }
  .of-ctl .btn-m { font-size: 18px; padding: 16px 20px 13px; }
}
.ap-receipt { color: #fff; }

/* Revision 2: "Introducing Auto Save" hero, hands free subhead, supporting caption */
.as-hero h1 .pre { display: block; color: #fff; font-size: .42em; line-height: 1; margin-bottom: .12em; letter-spacing: .01em; }
.as-hero h1 { font-size: clamp(58px, 7.6vw, 112px); }
.as-sub { font-family: "Knockout 51", sans-serif; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; color: #fff; margin: 22px 0 0; max-width: 560px; }
.as-hero .as-lead { font-size: clamp(21px, 1.8vw, 26px); color: #CFE3F7; margin-top: 14px; }
.as-saves { margin: 14px 0 0; font-family: "Knockout 51", sans-serif; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: #4ADE80; display: flex; align-items: center; gap: 10px; }

/* Wide screens: a compact headline so the video leads */
@media (min-width: 1081px) { .as-hero h1 { font-size: clamp(58px, 4.7vw, 72px); } .as-sub { font-size: clamp(24px, 2.1vw, 30px); } }

.nav-inner { padding-block: 15px; }
.nav-brand a, .nav-links a, .nav-cart, footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle { flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (max-width: 820px) {
  .nav-inner { justify-content: flex-start; }
  .nav-inner:not(.nav-open) .nav-links { display: none; }
  .nav-inner.nav-open { flex-wrap: wrap; }
  .nav-inner.nav-open .nav-links { max-height: none; }
  .nav-links a { align-self: flex-start; }
}
.btn-m:focus-visible { clip-path: none; }
footer .footer-social { column-gap: clamp(8px, 3vw, 20px); }
details.m-faq summary { min-height: 44px; align-items: center; }
.sec-w .m-h span, details.m-faq summary::after { color: #007bc8; }
.mo-how-k, .mo-rail button:not([aria-pressed="true"]) em:not(.on) { color: #55677d; }
.ap-mat { color: #8295aa; }
.ap-prompt .row { flex-wrap: wrap; }
.ap-prompt button { min-width: 72px; }

/* Backdrop: the class on <body> picks option bd-a, bd-e or bd-f. Sections read --bd-bg and --bd-light. */
.bd-a .as-hero, .bd-f .as-hero { --bd-light: radial-gradient(70% 60% at 70% 0%, rgba(33,159,255,.14), transparent 70%); }
.bd-a #taps { --bd-light: radial-gradient(60% 50% at 80% 0%, rgba(33,159,255,.08), transparent 70%); }
.bd-e .as-facts, .bd-f .as-facts { --bd-bg: #08101A; }
.bd-e #taps, .bd-e #you, .bd-f #taps, .bd-f #you { --bd-bg: #112133; }
.bd-e #try, .bd-e #order, .bd-f #try, .bd-f #order { --bd-bg: #0E1A28; }
.bd-e #setup, .bd-f #setup { --bd-bg: #EAF1F8; }
.bd-e #offline, .bd-f #offline { --bd-bg: #F4F8FC; }
.bd-f #taps { --bd-light: radial-gradient(60% 50% at 80% 0%, rgba(33,159,255,.06), transparent 70%); }
.bd-f #get { --bd-light: radial-gradient(60% 70% at 20% 100%, rgba(33,159,255,.1), transparent 70%); }

#try, .as-facts, #taps, #modes, #order, #offline, #you, #setup, #questions, #get { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.as-facts { contain-intrinsic-size: auto 130px; }
/* Shown after the load event by the hero script */
#try { content-visibility: hidden; contain-intrinsic-size: auto 1060px; }
@media (max-width: 640px) { #try { contain-intrinsic-size: auto 1390px; } }
