/* =========================================================================
   PACS AI – demo styles
   Everything the interactive demos need: the home page demo tabs, the Class 8–12
   and BBA demos and page sections, and the Try the demos page. Loaded only by the
   pages that have demos (index, class-8-12, bba, demos), so other pages stay light.
   ========================================================================= */

/* =========================================================================
   Round four: compact demo tabs on the home page, two new Class 8–12 demos,
   and the richer BBA page (post tools, pitch deck, Bootcamp board, scroll CV,
   Studio weeks, client case files and the white "Three hours" finale)
   ========================================================================= */

/* ---------- Home: Class 8–12 / BBA switch ---------- */
.demo-switch { position: relative; flex: none; display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 30px -24px rgb(17 17 17 / .4); }
.demo-switch button { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: .5rem; min-height: 46px; padding: .65rem 1.25rem; background: none; border: 0; border-radius: 999px; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: color .35s ease; }
.demo-switch button small { color: var(--muted); font-size: .72rem; font-weight: 600; transition: color .35s ease; }
.demo-switch button[aria-selected="true"] { color: #fff; }
.demo-switch button[aria-selected="true"] small { color: rgb(255 255 255 / .75); }
.demo-switch:not(.is-ready) button[aria-selected="true"] { background: var(--red); }
.demo-switch-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; background: var(--red); border-radius: 999px; box-shadow: 0 8px 18px -8px rgb(245 30 43 / .7); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.demo-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-demos .demo-panel[hidden] { display: none; }
.home-demos .demo-panel .build { border: 1px solid var(--line); }
@media (max-width: 760px) {
  .demo-switch { display: flex; margin-top: 18px; }
  .demo-switch button { flex: 1; justify-content: center; padding-inline: .6rem; }
}

/* ---------- Class 8–12: the revision app, compact enough for a half card ---------- */
.builder-compact { gap: .75rem; }
.builder-compact .prompt { max-width: none; padding: .5rem .5rem .5rem .9rem; }
.builder-compact .prompt-text { min-height: 2.6em; font-size: .88rem; }
.builder-compact .phone { width: 232px; aspect-ratio: 9 / 15.6; padding: 8px; border-radius: 38px; }
.builder-compact .phone::before { top: 15px; width: 62px; height: 18px; }
.builder-compact .app { gap: 9px; padding: 40px 12px 10px; border-radius: 31px; }
.builder-compact .app-question { font-size: .86rem; }
.builder-compact .app-options { gap: 6px; }
.builder-compact .app-options button { padding: .5rem .7rem; font-size: .8rem; }
.builder-compact .app-q { padding: 10px; }
.builder-compact .live-badge { top: -8px; right: -12px; }
.builder-subjects { justify-content: center; }

/* ---------- Class 8–12: the film storyboard ---------- */
.film { display: grid; align-content: start; gap: .75rem; }
.film-screen { overflow: hidden; background: #111; border-radius: 14px; box-shadow: 0 24px 44px -28px rgb(17 17 17 / .6); }
.film-frame { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, var(--f1, #2B3A55), var(--f2, #E07A5F)); }
.film-frame::before, .film-frame::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 8%; background: #0b0b0b; }
.film-frame::before { top: 0; }
.film-frame::after { bottom: 0; }
.film-art { font-size: clamp(3rem, 13cqi, 4.8rem); line-height: 1; filter: drop-shadow(0 14px 20px rgb(0 0 0 / .3)); }
.film-shot { position: absolute; z-index: 3; top: 12%; left: 4.5%; padding: .15rem .45rem; background: rgb(0 0 0 / .4); border-radius: 4px; color: #fff; font: 700 .62rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.film-line { position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 12%; margin: 0; color: #fff; font-size: clamp(.8rem, .7rem + .6cqi, .98rem); font-weight: 700; line-height: 1.3; text-align: center; text-shadow: 0 2px 10px rgb(0 0 0 / .55); }
.film-frame.is-cut .film-art { animation: film-push 2s ease-out both; }
.film-frame.is-cut .film-line { animation: film-sub .6s .25s var(--ease-out) both; }
.film-frame.is-cut::before { animation: film-flash .35s ease-out; }
@keyframes film-push { from { opacity: 0; transform: scale(1.35) translateY(6px); } 18% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes film-sub { from { opacity: 0; transform: translateY(8px); } }
@keyframes film-flash { from { box-shadow: 0 0 0 999px rgb(255 255 255 / .35); } }
.film-progress { height: 3px; background: rgb(255 255 255 / .16); }
.film-progress i { display: block; width: 0; height: 100%; background: var(--red); }
.film-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.film-strip button { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--f1), var(--f2)); border: 2px solid transparent; border-radius: 8px; font-size: 1.15rem; cursor: pointer; opacity: .5; transition: opacity .3s ease, transform .3s var(--ease-out), border-color .3s ease; }
.film-strip button small { position: absolute; top: 2px; left: 5px; color: #fff; font-size: .6rem; font-weight: 800; }
.film-strip button.seen { opacity: .85; }
.film-strip button.on { opacity: 1; border-color: var(--ink); transform: translateY(-3px); }
.film-strip button:hover { opacity: 1; }
.film-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .9rem; }
.film-play { min-height: 44px; padding: .55rem 1.05rem; background: var(--ink); border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background-color .25s ease, transform .2s ease; }
.film-play:hover { background: var(--red); }
.film-sound { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.film-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.film-eq i { width: 3px; height: 30%; background: var(--red); border-radius: 1px; }
.motion-enabled .film.is-playing .film-eq i { animation: film-eq .7s ease-in-out infinite alternate; }
.film-eq i:nth-child(2) { animation-delay: -.3s !important; }
.film-eq i:nth-child(3) { animation-delay: -.5s !important; }
.film-eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes film-eq { to { height: 100%; } }

/* ---------- Campaign post: tools, results and a double-tap like ---------- */
.pm-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.pm-tool { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .45rem .95rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background-color .2s ease, color .2s ease; }
.pm-tool span { display: inline-block; transition: transform .45s var(--ease-out); }
.pm-tool:hover { border-color: var(--ink); transform: translateY(-1px); }
.pm-tool[data-pm-regen]:hover span { transform: rotate(-180deg); }
.pm-tool[data-pm-publish]:hover span { transform: translateX(3px); }
.pm-tool.is-done { border-color: var(--ok); color: var(--ok); }
.pm-publish { background: var(--red); border-color: var(--red); color: #fff; }
.pm-publish:hover { background: var(--red-deep); border-color: var(--red-deep); }
.post-img { user-select: none; }
.post-results { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; gap: .65rem; padding: 1.1rem; background: rgb(17 17 17 / .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; text-align: left; animation: pr-in .45s var(--ease-out); }
.post-results[hidden] { display: none; }
@keyframes pr-in { from { opacity: 0; transform: translateY(14px); } }
.pr-head { margin: 0; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pr-head small { display: block; margin-top: .15rem; color: #b9b6ae; font-size: .66rem; font-weight: 500; letter-spacing: 0; }
.pr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pr-stats span { display: grid; color: #cfccc4; font-size: .64rem; line-height: 1.25; }
.pr-stats b { color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pr-spark { width: 100%; height: 34px; }
.pr-spark polyline { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pr-draw 1.1s .2s var(--ease-out) forwards; }
@keyframes pr-draw { to { stroke-dashoffset: 0; } }
.pr-again { justify-self: start; min-height: 36px; padding: .4rem .85rem; background: #fff; border: 0; border-radius: 999px; color: var(--ink); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.post[data-format="whatsapp"] .post-results { gap: .35rem; padding: .75rem; }
.post[data-format="whatsapp"] .pr-spark { display: none; }
.post[data-format="whatsapp"] .pr-stats b { font-size: 1.05rem; }
.post-heart { position: absolute; top: 45%; left: 50%; z-index: 5; color: #fff; font-size: 5rem; line-height: 1; opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none; text-shadow: 0 8px 26px rgb(0 0 0 / .3); }
.post-heart.is-on { animation: heart-pop .9s var(--ease-out); }
@keyframes heart-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 32% { transform: translate(-50%, -50%) scale(.95); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.1); } }

/* ---------- Pitch deck: thumbnails, notes and Present ---------- */
.deck { gap: .7rem; }
.deck-frame { outline-offset: 3px; }
.deck-progress { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform-origin: left; transition: transform .5s var(--ease-out); }
.deck-thumbs { flex: 1; justify-content: center; gap: 5px; min-width: 0; }
.deck-thumb { display: grid; justify-items: start; gap: 1px; flex: 0 1 64px; min-width: 0; min-height: 44px; padding: 5px 7px; background: var(--grey); border: 1.5px solid transparent; border-radius: 8px; color: var(--muted); font: inherit; font-size: .6rem; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease-out); }
.deck-thumb b { color: var(--ink); font-size: .74rem; }
.deck-nav .deck-thumb { width: auto; height: auto; min-width: 0; border-radius: 8px; }
.deck-nav .deck-thumb:not(.on) { background: var(--grey); color: var(--muted); }
.deck-thumb:hover { border-color: var(--ink); transform: translateY(-2px); }
.deck-thumb.on { background: var(--ink); border-color: var(--ink); color: #c9c6be; }
.deck-thumb.on b { color: var(--red); }
@container (max-width: 470px) { .deck-thumb span { display: none; } .deck-thumb { flex: 1 1 0; justify-items: center; } }
.deck-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.deck-count { margin-right: auto; color: var(--muted); font: 600 .78rem var(--f-mono); }
.deck-count b { color: var(--ink); }
.deck-tool { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .4rem .85rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.deck-tool:hover { border-color: var(--ink); }
.deck-tool[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.deck-present { background: var(--red); border-color: var(--red); color: #fff; }
.deck-present:hover { background: var(--red-deep); border-color: var(--red-deep); }
.deck-notes { margin: 0; padding: .65rem .85rem; background: #FFF6DE; border-left: 3px solid #E9A400; border-radius: 8px; color: var(--text); font-size: .84rem; line-height: 1.45; animation: pr-in .35s var(--ease-out); }
.deck-notes::before { content: "Say it like this"; display: block; margin-bottom: .15rem; color: #8A6100; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.deck-notes[hidden] { display: none; }
.motion-enabled .slide.is-on .slide-bars i { transform-origin: bottom; animation: deck-bar .7s var(--ease-out) backwards; }
.slide-bars i:nth-child(2) { animation-delay: .05s !important; }
.slide-bars i:nth-child(3) { animation-delay: .1s !important; }
.slide-bars i:nth-child(4) { animation-delay: .15s !important; }
.slide-bars i:nth-child(5) { animation-delay: .2s !important; }
.slide-bars i:nth-child(6) { animation-delay: .3s !important; }
.slide-bars i:nth-child(7) { animation-delay: .38s !important; }
@keyframes deck-bar { from { transform: scaleY(0); } }
.motion-enabled .slide.is-on strong { animation: film-sub .6s .08s var(--ease-out) both; }
.deck-close { display: none; }

html.deck-open { overflow: hidden; }
.deck.is-presenting { position: fixed; inset: 0; z-index: 1000; grid-template-rows: minmax(0, 1fr) auto auto auto; gap: 1rem; padding: clamp(16px, 4vw, 48px); background: #0b0b0b; }
.deck.is-presenting .deck-frame { min-height: 0; height: 100%; border-radius: 18px; }
.deck.is-presenting .slide { padding: 6% 8%; gap: 1rem; }
.deck.is-presenting .slide small { font-size: clamp(.8rem, .6rem + .6vw, 1.1rem); }
.deck.is-presenting .slide strong { max-width: 22ch; font-size: clamp(1.8rem, 1rem + 3.6vw, 4rem); }
.deck.is-presenting .slide p { font-size: clamp(.9rem, .7rem + .6vw, 1.2rem); }
.deck.is-presenting .slide-big { font-size: clamp(3rem, 2rem + 6vw, 7rem); }
.deck.is-presenting .slide-bars { height: clamp(80px, 16vh, 180px); gap: 12px; }
.deck.is-presenting .deck-count { color: #aaa; }
.deck.is-presenting .deck-count b { color: #fff; }
.deck.is-presenting .deck-tool:not(.deck-present) { background: transparent; border-color: #444; color: #fff; }
.deck.is-presenting .deck-thumb:not(.on) { background: #1d1d1d; }
.deck.is-presenting .deck-thumb:not(.on) b { color: #fff; }
.deck.is-presenting .deck-nav button { background: #1d1d1d; color: #fff; }
.deck.is-presenting .deck-notes { background: #1a1a1a; color: #eee; }
.deck.is-presenting .deck-notes::before { color: #E9A400; }
.deck.is-presenting .deck-close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border: 0; border-radius: 50%; color: var(--ink); font-weight: 800; cursor: pointer; }

/* ---------- BBA: the Bootcamp board ---------- */
.bootcamp-board { display: grid; gap: clamp(26px, 3.4vw, 40px); margin-top: 6px; }
.bc-label { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 1.1rem; }
.bc-label b { color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bc-label span { color: var(--muted); font-size: .86rem; }
.bc-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 18px 0 0; list-style: none; }
.bc-grid::before, .bc-grid::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; }
.bc-grid::before { background: var(--line); }
.bc-grid::after { background: var(--red); transform: scaleX(var(--run, 1)); transform-origin: left; transition: transform .45s var(--ease-out); }
.bc-card { position: relative; display: flex; flex-direction: column; gap: .55rem; min-height: 222px; padding: 20px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: opacity .5s ease, transform .55s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.bc-card::before { content: ""; position: absolute; top: -26px; left: 22px; width: 15px; height: 15px; box-sizing: border-box; background: var(--red); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--red); transition: background-color .4s ease, box-shadow .4s ease; }
.bc-num { color: var(--red); font-size: 2.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .5s ease; }
.bc-icon { position: absolute; top: 24px; right: 18px; width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease, transform .5s var(--ease-out), opacity .5s ease; }
.bc-card strong { color: var(--ink); font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.bc-make { display: grid; gap: .15rem; margin-top: auto; padding: .6rem .75rem; background: var(--grey); border-radius: 10px; color: var(--ink); font-size: .84rem; font-weight: 600; line-height: 1.3; transition: opacity .5s ease .1s, transform .6s var(--ease-out) .1s, background-color .3s ease, color .3s ease; }
.bc-make small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: color .3s ease; }
.bc-try { position: absolute; top: -12px; right: 14px; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .65rem; background: var(--ink); border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 16px -8px rgb(17 17 17 / .6); transition: background-color .2s ease, transform .2s ease; }
.bc-try:hover { background: var(--red); transform: translateY(-2px); }
.bc-card.has-demo { border-color: #F1B3B7; }
.bc-armed .bc-card:not(.is-lit) { opacity: .45; transform: translateY(14px) scale(.98); }
.bc-armed .bc-card:not(.is-lit) .bc-num { color: #D6D3CC; }
.bc-armed .bc-card:not(.is-lit) .bc-icon { opacity: .35; transform: scale(.85); }
.bc-armed .bc-card:not(.is-lit) .bc-make { opacity: 0; transform: translateY(10px); }
.bc-armed .bc-card:not(.is-lit)::before { background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .bc-card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 24px 40px -26px rgb(17 17 17 / .45); }
  .bc-card:hover .bc-icon { stroke: var(--red); transform: rotate(-8deg) scale(1.12); }
  .bc-card:hover .bc-make { background: var(--ink); color: #fff; }
  .bc-card:hover .bc-make small { color: #FF8A92; }
}
.bc-total { justify-self: end; margin: 0; color: var(--muted); font-size: .95rem; }
.bc-total b { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bootcamp-board.is-full .bc-total b:first-child, .bootcamp-board:not(.bc-armed) .bc-total b:first-child { color: var(--red); }
@media (max-width: 980px) { .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 560px) {
  .bc-grid { grid-template-columns: minmax(0, 1fr); }
  .bc-card { min-height: 0; }
  .bc-total { justify-self: start; }
}

/* ---------- BBA: the CV that rewrites itself ---------- */
.cv-steps { position: relative; gap: .35rem; margin-top: 1.8rem; padding: 0; --fill: 1; }
.cv-steps::before, .cv-steps::after { content: ""; position: absolute; top: 22px; bottom: 22px; left: 10px; width: 2px; border-radius: 1px; }
.cv-steps::before { background: var(--line); }
.cv-steps::after { background: var(--red); transform: scaleY(var(--fill)); transform-origin: top; transition: transform .3s ease; }
.cv-steps li { position: relative; padding-left: 36px; border-left: 0; transition: opacity .4s ease; }
.cv-steps li::before { content: ""; position: absolute; z-index: 1; top: 16px; left: 2px; width: 18px; height: 18px; box-sizing: border-box; background: #fff; border: 2px solid var(--line); border-radius: 50%; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cv-steps li.on::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgb(245 30 43 / .16); }
.cv-steps li.done::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--red); }
.motion-enabled .cv-steps li.on::before { animation: node-pulse 1.4s ease-in-out infinite; }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 10px rgb(245 30 43 / .06); } }
.cv-steps .portfolio-step { position: relative; width: 100%; padding: 10px 56px 10px 14px; border-radius: 12px; transition: background-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.cv-steps .portfolio-step:hover { background: rgb(255 255 255 / .7); }
.cv-steps li.on .portfolio-step { background: #fff; box-shadow: 0 14px 30px -20px rgb(17 17 17 / .35); transform: translateX(4px); }
.cv-steps li.on .portfolio-step strong { color: var(--red); }
.cv-section.cv-started .cv-steps li:not(.on):not(.done) { opacity: .45; }
.cv-plus { position: absolute; top: 12px; right: 14px; color: var(--red); font-size: .95rem; font-style: normal; font-weight: 800; opacity: 0; transform: scale(.5); transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.cv-steps li.on .cv-plus, .cv-steps li.done .cv-plus { opacity: 1; transform: none; }
.cv-scroll-hint { display: none; }
.cv-scrolly .cv-scroll-hint { display: flex; align-items: center; gap: .55rem; margin-top: 1.4rem; color: var(--muted); font-size: .86rem; font-weight: 600; transition: opacity .4s ease; }
.cv-scrolly .cv-scroll-hint::before { content: "↓"; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--red); animation: nudge-down 1.3s ease-in-out infinite; }
@keyframes nudge-down { 50% { transform: translateY(4px); } }
.cv-scrolly.cv-started .cv-scroll-hint { opacity: 0; }
.cv-scrolly .cv-scroll { height: 250vh; }
.cv-scrolly .cv-grid { position: sticky; top: 72px; min-height: calc(100vh - 72px); padding-block: 20px; }
.cv-scrolly .cv { padding: 26px 32px; }
.cv-scrolly .cv-new { gap: .3rem; }
.cv-scrolly .cv-new li { font-size: .95rem; }
.cv-scrolly.section { padding-block: clamp(40px, 5vw, 64px); }
.cv-armed .cv-old li { position: relative; width: fit-content; opacity: 1; transition: opacity .45s ease, color .45s ease; }
.cv-armed .cv-old li::after, .cv-armed .cv-old li::before { content: ""; position: absolute; left: -4px; right: -4px; height: 2.5px; background: var(--red); border-radius: 2px; transform-origin: left; transition: transform .1s linear; }
.cv-armed .cv-old li::after { top: 50%; transform: rotate(1.2deg) scaleX(var(--strike, 0)); }
.cv-armed .cv-old li::before { top: 60%; height: 2px; opacity: .8; transform: rotate(-2.4deg) scaleX(max(0, calc(var(--strike, 0) * 1.6 - .6))); }
.cv-armed .cv-old li.is-struck { color: var(--muted); opacity: .45; }
.motion-enabled .cv-armed .cv-new li.is-written { animation: cv-ink 1.4s ease-out; }
@keyframes cv-ink { from { background-color: #FFE3E5; } }
.cv-stamp { position: absolute; z-index: 2; top: 24px; right: 26px; padding: .4rem .75rem; border: 3px solid var(--red); border-radius: 8px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .1em; line-height: 1.05; text-align: center; text-transform: uppercase; opacity: .9; transform: rotate(-12deg); mix-blend-mode: multiply; pointer-events: none; }
.cv-armed .cv-stamp { opacity: 0; transform: rotate(-12deg) scale(2.2); transition: opacity .25s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.cv-armed.is-complete .cv-stamp { opacity: .9; transform: rotate(-12deg) scale(1); }

/* ---------- BBA: the 12-week Studio ---------- */
.studio-plan { padding: clamp(20px, 3vw, 32px); background: var(--grey); border-radius: 22px; }
.studio-bar { position: relative; }
.studio-armed .studio-bar { padding-top: 36px; }
.studio-weeks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.studio-weeks i { display: grid; place-items: center; height: 46px; background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .35s var(--ease-out); }
.studio-weeks i:nth-child(4), .studio-weeks i:nth-child(8) { margin-right: 8px; }
.studio-weeks i:hover { transform: translateY(-3px); border-color: var(--ink); }
.studio-weeks i.is-done { background: #FFE3E5; border-color: #FFC2C6; color: var(--red-deep); }
.studio-weeks i.is-phase.is-done { background: var(--red); border-color: var(--red); color: #fff; }
.studio-weeks i.is-phase:not(.is-done) { border-color: var(--ink); color: var(--ink); }
.studio-head { display: none; position: absolute; top: 0; left: calc(var(--at, .04) * 100%); transform: translateX(-50%); transition: left .32s var(--ease-out); }
.studio-armed .studio-head { display: block; }
.studio-head b { position: relative; display: inline-block; padding: .22rem .6rem; background: var(--ink); border-radius: 6px; color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.studio-head b::after { content: ""; position: absolute; left: 50%; bottom: -5px; border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; transform: translateX(-50%); }
.studio-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.studio-phase { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 20px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .35s ease, box-shadow .35s ease, transform .45s var(--ease-out); }
.studio-phase::after { content: ""; position: absolute; top: -1px; left: 18px; right: 18px; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); }
.studio-phase.is-active { border-color: var(--ink); box-shadow: 0 22px 40px -28px rgb(17 17 17 / .45); transform: translateY(-4px); }
.studio-phase.is-active::after { transform: scaleX(1); }
.studio-pick { display: grid; gap: .1rem; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.studio-pick::before { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.studio-pick:focus-visible { outline: none; }
.studio-pick:focus-visible::before { outline: 2px solid var(--ink); outline-offset: 3px; }
.studio-pick .when { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: color .3s ease; }
.studio-pick strong { color: var(--ink); font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.2; }
.studio-phase.is-active .when { color: var(--red); }
.studio-phase p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: .3rem 0 0; list-style: none; }
.studio-chips li { padding: .3rem .7rem; background: var(--grey); border-radius: 999px; color: var(--ink); font-size: .76rem; font-weight: 700; transition: background-color .3s ease, color .3s ease; }
.studio-phase.is-active .studio-chips li { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .studio-phases { grid-template-columns: minmax(0, 1fr); }
  .studio-weeks { gap: 3px; }
  .studio-weeks i { height: 34px; border-radius: 6px; font-size: .64rem; }
  .studio-weeks i:nth-child(4), .studio-weeks i:nth-child(8) { margin-right: 4px; }
}

/* ---------- BBA: client case files that turn over ---------- */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case { position: relative; min-height: 330px; perspective: 1200px; }
.case-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .55rem; padding: 22px 20px 18px; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .75s cubic-bezier(.3, 1.2, .4, 1), box-shadow .4s ease; }
.case-front { background: #fff; border: 1px solid var(--line); cursor: pointer; }
.case-back { background: var(--ink); color: #fff; transform: rotateY(180deg); }
.case.is-flipped .case-front { transform: rotateY(-180deg); }
.case.is-flipped .case-back { transform: rotateY(0); }
.case.is-peek .case-front { transform: rotateY(-24deg); box-shadow: 18px 18px 30px -20px rgb(17 17 17 / .35); }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.case small { color: var(--red); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-back small { color: #FF8A92; }
.case-icon { display: grid; place-items: center; width: 58px; height: 58px; background: var(--tone, var(--grey)); border-radius: 17px; font-size: 1.8rem; transform: rotate(-6deg); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.case h3 { margin: .5rem 0 0; color: var(--ink); font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.case-front p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.case-flip { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; min-height: 42px; margin-top: auto; padding: .45rem .95rem; background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.case-flip span { display: inline-block; transition: transform .5s var(--ease-out); }
.case-flip:hover { background: var(--ink); color: #fff; }
.case-flip:hover span { transform: rotate(180deg); }
.case-back .case-flip { margin-top: .2rem; border-color: rgb(255 255 255 / .4); color: #fff; }
.case-back .case-flip:hover { background: #fff; color: var(--ink); }
.case-back ul { display: grid; gap: .5rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.case-back li { display: flex; gap: .5rem; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.case-back li::before { content: "✓"; flex: none; color: var(--red); font-weight: 900; }
.case-metric { display: grid; gap: .1rem; margin: auto 0 0; padding: .6rem .75rem; background: rgb(255 255 255 / .08); border-radius: 10px; }
.case-metric span { color: #AAA69D; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-metric b { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .case:not(.is-flipped):not(.is-peek):hover .case-front { box-shadow: 0 26px 44px -28px rgb(17 17 17 / .45); transform: translateY(-5px); }
  .case:hover .case-icon { transform: rotate(5deg) scale(1.08); }
}
@media (max-width: 980px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases { grid-template-columns: minmax(0, 1fr); } .case { min-height: 300px; } }

/* ---------- BBA: "Three hours." on white, with the red on the move ---------- */
.three { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 130px) clamp(130px, 13vw, 170px); background: #fff; border-top: 1px solid var(--line); }
.three-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.three-line { margin: .7rem 0 1.8rem; color: var(--ink); font-size: clamp(2.3rem, 1.2rem + 3.4vw, 3.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.three-mark { background: linear-gradient(rgb(245 30 43 / .14), rgb(245 30 43 / .14)) no-repeat 0 88% / calc(var(--mark, 1) * 100%) 30%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.three-mark .three-w { color: var(--red); }
.three-armed .three-w { color: #DDDAD3; transition: color .45s ease; }
.three-armed .three-w.is-lit { color: var(--ink); }
.three-armed .three-mark .three-w.is-lit { color: var(--red); }
.three-armed .three-mark { background-size: calc(var(--mark, 0) * 100%) 30%; }
.three-docs { position: relative; height: 420px; margin: 0; padding: 0; list-style: none; }
.three-doc { --r: -6deg; position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: .45rem; width: min(220px, 56%); min-height: 250px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -32px rgb(17 17 17 / .4); opacity: var(--land, 1); transform: translate(calc((1 - var(--land, 1)) * 280px), calc((1 - var(--land, 1)) * 160px)) rotate(calc(var(--r) + (1 - var(--land, 1)) * 28deg)); will-change: transform; }
.three-doc:nth-child(2) { --r: -1deg; top: 72px; left: 25%; z-index: 2; }
.three-doc:nth-child(3) { --r: 5deg; top: 152px; left: 50%; z-index: 3; }
.three-hour { align-self: flex-start; padding: .2rem .6rem; background: var(--red); border-radius: 999px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.three-doc strong { color: var(--ink); font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.2; }
.three-lines { display: grid; gap: 8px; margin-top: .7rem; }
.three-lines i { height: 7px; background: var(--grey); border-radius: 4px; }
.three-lines i:nth-child(2) { width: 84%; }
.three-lines i:nth-child(3) { width: 92%; }
.three-lines i:nth-child(4) { width: 58%; }
.three-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: .7rem; }
.three-cells i { height: 20px; background: var(--grey); border-radius: 3px; }
.three-cells i:nth-child(-n+3) { background: #E3E1DB; }
.three-cells i:nth-child(8) { background: #FFD0D3; }
.three-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin-top: auto; }
.three-bars i { flex: 1; height: var(--h); background: var(--ink); border-radius: 4px 4px 0 0; }
.three-bars i:last-child { background: var(--red); }
.three-ribbon { position: absolute; left: -6%; right: -6%; bottom: 38px; padding: 15px 0; overflow: hidden; background: var(--red); transform: rotate(-2deg); }
.three-track { display: flex; gap: 2.6rem; width: max-content; white-space: nowrap; will-change: transform; }
.three-track span { display: inline-flex; align-items: center; gap: 2.6rem; color: #fff; font-size: clamp(1rem, .8rem + .8vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.three-track span::after { content: "✳"; color: rgb(255 255 255 / .6); }
@media (max-width: 860px) {
  .three-inner { grid-template-columns: minmax(0, 1fr); }
  .three-docs { height: 380px; }
  .three-doc { width: min(200px, 56%); min-height: 220px; }
}
@media (max-width: 480px) {
  .three-doc { padding: 14px; min-height: 200px; }
  .three-doc:nth-child(2) { left: 20%; }
  .three-doc:nth-child(3) { left: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .case-face, .bc-card, .bc-make, .studio-phase, .studio-weeks i { transition: none !important; }
  .film-frame.is-cut .film-art, .film-frame.is-cut .film-line, .film-frame.is-cut::before, .post-heart.is-on, .post-results, .deck-notes { animation: none !important; }
}
@media (max-width: 980px) { .bc-card::before { display: none; } }
@media (max-width: 560px) { .cv-new li { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 4px; } }

/* =========================================================================
   Home "For everyone" demos: a better question, ask a spreadsheet, and
   rough notes into an email
   ========================================================================= */
.ask-dots { display: inline-flex; gap: 4px; padding: .3rem 0; }
.ask-dots i { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: ask-dot 1s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .15s; }
.ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 50% { opacity: .25; transform: translateY(-3px); } }

/* A better question */
.asker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@container (max-width: 640px) { .asker { grid-template-columns: minmax(0, 1fr); } }
.ask-controls { display: grid; gap: .7rem; align-content: start; }
.ask-adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ask-add { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem .8rem; background: #fff; border: 1.5px dashed #BDBAB2; border-radius: 12px; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; text-align: left; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease; }
.ask-add b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; background: var(--grey); border-radius: 50%; color: var(--red); font-size: 1rem; transition: transform .35s var(--ease-out), background-color .25s ease, color .25s ease; }
.ask-add:hover { border-color: var(--ink); transform: translateY(-1px); }
.ask-add[aria-pressed="true"] { background: var(--ink); border-style: solid; border-color: var(--ink); color: #fff; }
.ask-add[aria-pressed="true"] b { background: var(--red); color: #fff; transform: rotate(45deg); }
.ask-prompt { padding: .75rem .85rem; background: #1b1b1a; border-radius: 12px; color: #EBE7DF; font-size: .86rem; line-height: 1.55; }
.ask-prompt .pm-label { display: block; margin-bottom: .3rem; color: #FF8A92; }
.ask-prompt p { margin: 0; }
.ask-prompt mark { padding: 0 .15em; background: rgb(245 30 43 / .28); border-radius: 3px; color: #fff; }
.ask-prompt mark.is-new { animation: ask-mark .9s ease-out; }
@keyframes ask-mark { from { background: rgb(245 30 43 / .9); } }
.ask-meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.ask-bar { height: 8px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.ask-bar i { display: block; width: 20%; height: 100%; background: #E9A400; border-radius: 4px; transition: width .6s var(--ease-out), background-color .4s ease; }
.ask-bar i.is-good { background: var(--ok); }
.ask-meter b { color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.ask-chat { display: grid; gap: .7rem; padding: 14px; background: var(--grey); border-radius: 18px; }
.ask-chat-top { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ask-chat-top i { width: 9px; height: 9px; background: var(--ok); border-radius: 50%; }
.ask-me { justify-self: end; max-width: 88%; margin: 0; padding: .6rem .8rem; background: var(--ink); border-radius: 14px 14px 4px 14px; color: #fff; font-size: .84rem; line-height: 1.45; }
.ask-bot { display: grid; gap: .45rem; min-height: 160px; padding: .8rem .9rem; background: #fff; border-radius: 14px 14px 14px 4px; color: var(--text); font-size: .86rem; line-height: 1.5; }
.ask-bot p { margin: 0; }
.ask-intro { color: var(--ink); font-weight: 700; }
.ask-generic { color: var(--muted); }
.ask-line { padding: .45rem .6rem; background: #F7F6F2; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; color: var(--ink); }
.ask-line.is-new { animation: ask-in .6s var(--ease-out); }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px); background: #FFE3E5; } }

/* Ask a spreadsheet */
.sheet-ask { display: grid; gap: .8rem; align-content: start; }
.sheet-grid { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.sheet-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); transition: background-color .2s ease; }
.sheet-row > span { padding: .38rem .6rem; border-right: 1px solid #ECEAE5; border-bottom: 1px solid #ECEAE5; color: var(--ink); white-space: nowrap; }
.sheet-row > span:last-child { border-right: 0; }
.sheet-letters > span, .sheet-n { background: #F4F3EF; color: var(--muted) !important; font-size: .7rem; font-weight: 700; text-align: center; }
.sheet-h { font-weight: 800; }
.sheet-v { text-align: right; }
.sheet-row.is-scan { background: #FFF6DE; }
.sheet-row.is-hit { background: #E2F1E7; }
.sheet-row.is-hit .sheet-v { color: var(--ok); font-weight: 800; }
.sheet-chart { position: absolute; inset: 1.9rem 0 0; display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 26px; background: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s ease, transform .5s var(--ease-out); }
.sheet-chart span { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.sheet-chart i { display: block; width: 100%; height: 0; background: var(--ink); border-radius: 4px 4px 0 0; transition: height .7s var(--ease-out); }
.sheet-chart span.top i { background: var(--red); }
.sheet-chart small { position: absolute; left: 0; right: 0; bottom: -20px; color: var(--muted); font-size: .66rem; font-weight: 700; text-align: center; }
.show-chart .sheet-chart { opacity: 1; transform: none; }
.show-chart .sheet-chart i { height: var(--h); }
.sheet-chart span:nth-child(2) i { transition-delay: .05s; }
.sheet-chart span:nth-child(3) i { transition-delay: .1s; }
.sheet-chart span:nth-child(4) i { transition-delay: .15s; }
.sheet-chart span:nth-child(5) i { transition-delay: .2s; }
.sheet-chart span:nth-child(6) i { transition-delay: .25s; }
.sheet-answer { display: grid; gap: .4rem; min-height: 5.2rem; padding: .75rem .85rem; background: var(--grey); border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.sheet-answer p { margin: 0; color: var(--text); }
.sheet-answer b { color: var(--ink); }
.sheet-answer code { justify-self: start; padding: .15rem .5rem; background: #1b1b1a; border-radius: 6px; color: #9FD39F; font: 600 .74rem var(--f-mono); }
.sheet-answer code:empty { display: none; }

/* Rough notes into an email */
.mailer { display: grid; gap: .6rem; align-content: start; }
.mail-notes { padding: .65rem .8rem; background: #FFF6DE; border-radius: 10px; transform: rotate(-.6deg); }
.mail-notes .pm-label { display: block; margin-bottom: .15rem; color: #8A6100; }
.mail-notes p { margin: 0; color: var(--ink); font: 600 .84rem/1.45 var(--f-mono); }
.mail { margin-top: .2rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 36px -26px rgb(17 17 17 / .45); }
.mail-subject { display: flex; gap: .6rem; margin: 0; padding: .6rem .85rem; border-bottom: 1px solid var(--line); font-size: .84rem; }
.mail-subject span { color: var(--muted); }
.mail-subject b { color: var(--ink); }
.mail-body { display: grid; gap: .5rem; min-height: 190px; padding: .75rem .85rem; color: var(--text); font-size: .84rem; line-height: 1.5; }
.mail-body p { margin: 0; }
.mail-body p.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -.12em; background: var(--red); animation: caret .8s steps(1) infinite; }
.mail-foot { display: flex; justify-content: space-between; margin: 0; padding: .5rem .85rem; background: #F7F6F2; color: var(--muted); font-size: .72rem; font-weight: 700; }
.mail-foot span:last-child { color: var(--ok); }

@media (max-width: 760px) {
  .demo-switch button small { display: none; }
  .demo-switch button { padding-inline: .5rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-line.is-new, .ask-prompt mark.is-new, .ask-dots i { animation: none !important; }
  .sheet-chart, .sheet-chart i { transition: none !important; }
}

/* =========================================================================
   Demo buttons, restyled: white with a ring at rest, lift on hover,
   ink with a red tick when chosen. Question buttons get an arrow instead.
   ========================================================================= */
.build .chip-row { gap: .5rem; }
.build .chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem .5rem .75rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 999px; box-shadow: 0 1px 0 rgb(17 17 17 / .04), 0 6px 14px -12px rgb(17 17 17 / .35); color: var(--ink); font-size: .84rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; text-align: left; transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
.build .chip::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid #C9C5BC; border-radius: 50%; background: #fff no-repeat center / 9px; transition: background-color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.build .chip:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 1px 0 rgb(17 17 17 / .04), 0 12px 20px -14px rgb(17 17 17 / .5); }
.build .chip:hover::before { border-color: var(--red); }
.build .chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.build .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgb(17 17 17 / .7); }
.build .chip[aria-pressed="true"]::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: var(--red); transform: scale(1.12); }
.motion-enabled .build .chip[aria-pressed="true"]::before { animation: chip-tick .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chip-tick { from { transform: scale(.3); } }
/* Buttons that ask something (no chosen state) show an arrow, not a ring */
.build .chip:not([aria-pressed])::before { content: "↗"; display: grid; place-items: center; border: 0; background: var(--grey); color: var(--red); font-size: .7rem; font-weight: 800; }
.build .chip:not([aria-pressed]):hover::before { background: var(--red); color: #fff; }

/* ---------- Invitation maker ---------- */
.inviter { display: grid; gap: .75rem; align-content: start; }
.inv-controls { display: grid; gap: .55rem; }
.inv-card { --inv-bg: #FFFDF7; --inv-accent: #F51E2B; --inv-ink: #111; position: relative; display: grid; justify-items: center; align-content: center; gap: .35rem; min-height: 290px; margin: 0; padding: 1.6rem 1.2rem 1.3rem; overflow: hidden; background: var(--inv-bg); border-radius: 16px; color: var(--inv-ink); text-align: center; box-shadow: 0 24px 44px -28px rgb(17 17 17 / .55); transition: background-color .45s ease, color .45s ease, filter .35s ease; }
.inv-card .ai-tag { position: absolute; z-index: 2; top: .75rem; right: .75rem; padding: .15rem .45rem; background: rgb(255 255 255 / .85); border-radius: 4px; color: #111; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.inv-art { font-size: 2.9rem; line-height: 1; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .18)); }
.inv-kicker { color: var(--inv-accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.inv-title { max-width: 16ch; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.inv-rule { width: 44px; height: 3px; margin: .2rem 0; background: var(--inv-accent); border-radius: 2px; }
.inv-when { font-size: .88rem; font-weight: 700; }
.inv-where { font-size: .8rem; opacity: .75; }
.inv-rsvp { margin-top: .5rem; padding: .35rem .8rem; border: 1.5px solid var(--inv-accent); border-radius: 999px; color: var(--inv-accent); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inv-classic { outline: 2px solid var(--inv-accent); outline-offset: -10px; }
.inv-classic .inv-title { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.inv-fun { background-image: radial-gradient(circle at 12% 18%, rgb(255 255 255 / .55) 0 6px, transparent 7px), radial-gradient(circle at 86% 26%, var(--inv-accent) 0 5px, transparent 6px), radial-gradient(circle at 20% 82%, var(--inv-accent) 0 4px, transparent 5px), radial-gradient(circle at 82% 78%, rgb(255 255 255 / .6) 0 7px, transparent 8px); transform: rotate(-1deg); }
.inv-fun .inv-title { font-size: 1.7rem; font-weight: 900; }
.inv-fun .inv-rsvp { background: var(--inv-accent); color: #fff; }
.inv-elegant { outline: 1px solid color-mix(in srgb, var(--inv-accent) 60%, transparent); outline-offset: -12px; }
.inv-elegant .inv-title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.7rem; letter-spacing: 0; color: var(--inv-accent); }
.inv-elegant .inv-kicker { color: var(--inv-ink); opacity: .8; letter-spacing: .24em; }
.inv-card.is-generating { filter: blur(6px) saturate(.4); }
.inv-card.is-generating .post-scan { opacity: 1; animation: gen-sweep .8s linear infinite; }
.inv-shared { margin: 0; padding: .6rem .8rem; background: #E2F1E7; border-radius: 10px; color: var(--ok); font-size: .84rem; }
.inv-shared b { color: var(--ink); }
.inv-shared small { display: block; color: var(--muted); font-size: .68rem; }
.inv-shared[hidden] { display: none; }

/* ---------- AI interviewer ---------- */
.interview { display: grid; gap: .7rem; align-content: start; }
.iv-q { display: grid; gap: .5rem; padding: .85rem .95rem; background: var(--ink); border-radius: 16px 16px 16px 4px; color: #fff; }
.iv-who { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; }
.iv-who i { display: grid; place-items: center; width: 30px; height: 30px; background: var(--red); border-radius: 50%; font-size: .66rem; font-style: normal; font-weight: 900; letter-spacing: .04em; }
.iv-who small { display: block; color: #B9B6AE; font-size: .66rem; font-weight: 600; }
.iv-q p { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.iv-answers { display: grid; gap: 8px; }
.iv-answer { display: grid; gap: .2rem; padding: .7rem .85rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; color: var(--text); font: inherit; font-size: .84rem; line-height: 1.45; text-align: left; cursor: pointer; transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.iv-answer small { color: var(--red); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.iv-answer:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 20px -16px rgb(17 17 17 / .5); }
.iv-answer[aria-pressed="true"] { background: #FFF7F7; border-color: var(--red); box-shadow: 0 0 0 3px rgb(245 30 43 / .12); }
.is-scored .iv-answer[aria-pressed="false"] { opacity: .55; }
.iv-feedback { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; padding: .8rem .9rem; background: var(--grey); border-radius: 14px; animation: pr-in .4s var(--ease-out); }
.iv-feedback[hidden] { display: none; }
.iv-score { --s: 0; position: relative; display: grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#E9A400 calc(var(--s) * 10%), #E3E0D9 0); transition: --s .6s; }
.iv-score.is-good { background: conic-gradient(var(--ok) calc(var(--s) * 10%), #E3E0D9 0); }
.iv-score::before { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.iv-score b, .iv-score small { position: relative; line-height: 1; }
.iv-score b { color: var(--ink); font-size: 1.25rem; font-weight: 900; }
.iv-score small { color: var(--muted); font-size: .6rem; font-weight: 700; }
.iv-feedback ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; line-height: 1.4; }
.iv-feedback li { position: relative; padding-left: 1.3rem; color: var(--text); }
.iv-feedback li::before { content: "•"; position: absolute; left: .35rem; color: var(--muted); }
.iv-feedback li.good::before { content: "✓"; left: 0; color: var(--ok); font-weight: 900; }
.iv-feedback li.fix::before { content: "→"; left: 0; color: var(--red); font-weight: 900; }
.iv-feedback li.iv-thinking { padding: 0; }
.iv-feedback li.iv-thinking::before { content: none; }
.iv-next { justify-self: start; }
@property --s { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: reduce) {
  .build .chip, .build .chip::before, .iv-answer, .inv-card { transition: none !important; }
  .build .chip[aria-pressed="true"]::before, .iv-feedback { animation: none !important; }
}

/* =========================================================================
   Try the demos page (demos.html): every demo, grouped, with a pinned bar
   to jump between Class 8–12, BBA & BBM and For everyone
   ========================================================================= */
html:has(.demos-page) { scroll-padding-top: 150px; }
.demos-top { padding: clamp(56px, 8vw, 104px) 0 clamp(26px, 3.5vw, 40px); background: #FDFCF9; }
.demos-top .head { max-width: 760px; margin-bottom: 0; }
.demos-top h1 { margin: .5rem 0 1rem; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5rem); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.demo-jumps-bar { position: sticky; top: 72px; z-index: 30; padding: 10px 0; background: rgb(253 252 249 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: top .35s var(--ease-out); }
.site-header.is-hidden ~ main .demo-jumps-bar { top: 0; }
.demo-jumps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.demo-jumps::-webkit-scrollbar { display: none; }
.demo-jumps a { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 999px; color: var(--ink); font-size: .92rem; text-decoration: none; transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .25s var(--ease-out); }
.demo-jumps a b { font-weight: 800; }
.demo-jumps a small { color: var(--muted); font-size: .72rem; font-weight: 700; transition: color .3s ease; }
.demo-jumps a:hover { border-color: var(--ink); transform: translateY(-1px); }
.demo-jumps a.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 18px -10px rgb(245 30 43 / .7); }
.demo-jumps a.is-active small { color: rgb(255 255 255 / .8); }
.demo-group .section-intro .lede { margin-top: .6rem; max-width: 52ch; }
.demos-page .demo-group:not(.grey) .build { border: 1px solid var(--line); }
.demos-page .closing-section .cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
@media (max-width: 760px) {
  .demo-jumps a { padding-inline: .9rem; font-size: .86rem; }
  .demo-jumps a small { display: none; }
}

/* The break-even demo keeps its natural height when a taller demo sits beside it */
.wall .be { align-content: start; }

/* =========================================================================
   Advanced "For everyone" demos: competitor research, reading a company,
   and turning a skill into side income
   ========================================================================= */
.st-note { margin: 0; color: var(--muted); font-size: .74rem; font-style: italic; }

/* Competitor research */
.rival { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 1.4rem; align-items: start; }
@container (max-width: 720px) { .rival { grid-template-columns: minmax(0, 1fr); } }
.rv-controls { display: grid; gap: .7rem; align-content: start; }
.rv-go { justify-self: start; }
.rv-go:disabled { opacity: .6; cursor: progress; }
.rv-log { display: grid; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; font-size: .82rem; }
.rv-log li { display: flex; align-items: center; gap: .55rem; color: var(--muted); animation: pr-in .35s var(--ease-out); }
.rv-log li::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid #D9D5CC; border-top-color: var(--red); border-radius: 50%; }
.rv-log li.is-working::before { animation: rv-spin .7s linear infinite; }
.rv-log li.is-done { color: var(--ink); }
.rv-log li.is-done::before { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
@keyframes rv-spin { to { transform: rotate(360deg); } }
.rv-out { display: grid; gap: .8rem; min-width: 0; }
.rv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rv-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .8rem; }
.rv-table th, .rv-table td { padding: .55rem .65rem; border-bottom: 1px solid #ECEAE5; text-align: left; vertical-align: top; }
.rv-table thead th { background: #F4F3EF; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rv-table tbody tr:last-child > * { border-bottom: 0; }
.rv-table tbody th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.rv-table tbody tr { animation: pr-in .4s var(--ease-out); }
.rv-empty td { padding: 1.4rem; color: var(--muted); text-align: center; }
.rv-star { display: inline-block; padding: .1rem .4rem; background: #FFF6DE; border-radius: 6px; color: #8A6100; font-weight: 800; white-space: nowrap; }
.rv-love { color: var(--ok); }
.rv-hate { color: var(--red-deep); }
.rv-gap { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--ink); border-radius: 14px; color: #fff; animation: pr-in .5s var(--ease-out); }
.rv-gap[hidden] { display: none; }
.rv-gap p { margin: 0; }
.rv-gap-k { color: #FF8A92; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rv-gap-t { margin-bottom: .35rem !important; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.rv-gap ol { display: grid; gap: .3rem; margin: 0; padding-left: 1.3rem; list-style: decimal; font-size: .84rem; color: #E8E5DE; }
.rv-gap li::marker { color: var(--red); font-weight: 800; }

/* Reading a company */
.stock { display: grid; gap: .7rem; align-content: start; }
.st-head { display: flex; align-items: center; gap: .7rem; }
.st-logo { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); border-radius: 10px; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.st-head b { display: block; color: var(--ink); font-size: 1rem; }
.st-head small { color: var(--muted); font-size: .72rem; }
.st-chart { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 38px 12px 24px; background: #F7F6F2; border-radius: 12px; }
.st-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; }
.st-col i { position: relative; flex: 1; height: var(--h); min-height: 3px; border-radius: 3px 3px 0 0; transition: opacity .35s ease, background-color .35s ease; }
.st-sales { background: var(--ink); }
.st-profit { background: var(--red); }
.st-col em { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); color: var(--muted); font-size: .6rem; font-style: normal; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .3s ease; }
.st-col small { position: absolute; left: 0; right: 0; bottom: -19px; color: var(--muted); font-size: .62rem; font-weight: 700; text-align: center; }
.st-legend { position: absolute; top: 9px; left: 12px; display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .6rem; font-weight: 700; }
.st-legend i { width: 8px; height: 8px; border-radius: 2px; margin-left: .35rem; }
.st-k-sales { background: var(--ink); }
.st-k-profit { background: var(--red); }
.st-chart[data-focus="sales"] .st-profit, .st-chart[data-focus="profit"] .st-sales { opacity: .2; }
.st-chart[data-focus="sales"] .st-sales em, .st-chart[data-focus="profit"] .st-profit em { opacity: 1; }
.st-answer { display: grid; gap: .3rem; min-height: 5.6rem; padding: .75rem .85rem; background: var(--grey); border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.st-answer p { margin: 0; color: var(--text); }
.st-answer b { color: var(--ink); }
.st-answer small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.st-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-score li { display: grid; gap: 1px; padding: .45rem .5rem; background: #fff; border: 1.5px dashed #D9D5CC; border-radius: 10px; text-align: center; transition: background-color .35s ease, border-color .35s ease; }
.st-score span { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-score b { color: var(--ink); font-size: .84rem; }
.st-score li.is-good { background: #E2F1E7; border: 1.5px solid #B7DCC4; }
.st-score li.is-good b { color: var(--ok); }
.st-score li.is-ok { background: #FFF6DE; border: 1.5px solid #F0D98F; }
.st-score li.is-ok b { color: #8A6100; }
.st-score li.is-warn { background: #FFE9EA; border: 1.5px solid #F7B9BD; }
.st-score li.is-warn b { color: var(--red-deep); }

/* Side income */
.earn { display: grid; gap: .7rem; align-content: start; }
.earn-card { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--ink); border-radius: 14px; color: #fff; }
.earn-card > small { color: #FF8A92; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.earn-card strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.earn-facts { display: grid; gap: .35rem; margin: .3rem 0 0; }
.earn-facts div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .5rem; font-size: .8rem; }
.earn-facts dt { color: #B9B6AE; font-weight: 600; }
.earn-facts dd { margin: 0; color: #fff; font-weight: 600; }
.earn-calc { display: grid; gap: .35rem; padding: .75rem .85rem; background: var(--grey); border-radius: 12px; }
.earn-calc label { display: flex; justify-content: space-between; color: var(--ink); font-size: .82rem; font-weight: 700; }
.earn-calc output { color: var(--red); font-weight: 900; }
.earn-calc input[type="range"] { width: 100%; accent-color: var(--red); min-height: 32px; }
.earn-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; margin: 0; color: var(--muted); font-size: .82rem; }
.earn-total b { color: var(--ok); font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.earn-steps { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.earn-steps li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .5rem; align-items: baseline; color: var(--text); }
.earn-steps b { color: var(--red); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .rv-log li, .rv-table tbody tr, .rv-gap { animation: none !important; }
  .rv-log li.is-working::before { animation: none !important; }
}

/* =========================================================================
   Live demos (assets/live.js): camera AI, the speaking coach, and the
   college games (Sharks, fantasy XI, haggling, brand kit)
   ========================================================================= */
.live-demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.4rem; align-items: start; }
@container (max-width: 720px) { .live-demo { grid-template-columns: minmax(0, 1fr); } }
.live-side { display: grid; gap: .75rem; align-content: start; min-width: 0; }

/* The camera box */
.cam { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a2a2a, #0b0b0b); border-radius: 18px; box-shadow: 0 24px 44px -28px rgb(17 17 17 / .6); isolation: isolate; }
.cam video, .cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
/* The selfie view is mirrored because that is how people expect to see themselves.
   The back camera points at the world, where a mirror would be simply wrong, so it
   is shown the right way round. The video and the drawn skeleton always flip
   together, so the overlay keeps sitting on the body either way. */
.cam[data-facing="environment"] video, .cam[data-facing="environment"] canvas { transform: none; }
.cam video { opacity: 0; transition: opacity .4s ease; }
.cam[data-state="live"] video { opacity: 1; }
.cam canvas { z-index: 1; pointer-events: none; }
.cam-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: .7rem; padding: 1.2rem; color: #fff; text-align: center; transition: opacity .35s ease; }
.cam-cover small { max-width: 30ch; color: #bdb9b0; font-size: .74rem; line-height: 1.45; }
.cam-icon { font-size: 2.2rem; letter-spacing: .15em; }
.cam-status { max-width: 34ch; margin: 0; color: #ffd166; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.cam-status:empty { display: none; }
.cam[data-state="loading"] .cam-cover button { opacity: .6; pointer-events: none; }
.cam[data-state="loading"] .cam-icon { animation: cam-pulse 1s ease-in-out infinite; }
@keyframes cam-pulse { 50% { opacity: .35; transform: scale(.92); } }
.cam[data-state="live"] .cam-cover, .cam[data-state="sample"] .cam-cover { opacity: 0; pointer-events: none; }
.cam-stop { position: absolute; z-index: 4; top: 10px; right: 10px; display: none; width: 36px; height: 36px; place-items: center; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; color: #fff; font-weight: 800; cursor: pointer; }
.cam[data-state="live"] .cam-stop { display: grid; }
/* Sits beside the stop button, and only appears once a camera is running on a device
   that has more than one. Wide enough to hit with a thumb mid-set. */
.cam-flip { position: absolute; z-index: 4; top: 10px; left: 10px; display: none; align-items: center; gap: .35rem;
  min-height: 36px; padding: 0 .7rem; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .25);
  border-radius: 999px; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.cam-flip:hover { background: rgb(0 0 0 / .75); }
.cam-flip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cam[data-state="live"] .cam-flip:not([hidden]) { display: inline-flex; }
.cam-badge { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: .35rem .7rem; background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; opacity: 0; transition: opacity .3s ease; }
.cam[data-state="live"] .cam-badge { opacity: 1; }
.cam-count { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(2.2rem, 8cqi, 4.2rem); font-weight: 900; letter-spacing: -.04em; text-shadow: 0 6px 30px rgb(0 0 0 / .6); pointer-events: none; }
.cam-count.pop, .tr-out.pop { animation: cam-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cam-pop { from { transform: scale(.4); opacity: 0; } }

/* Rock, paper, scissors */
.rps-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; padding: .9rem; background: var(--ink); border-radius: 16px; color: #fff; text-align: center; }
.rps-board > div { display: grid; justify-items: center; gap: .2rem; }
.rps-board small { color: #bdb9b0; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rps-move { font-size: 2.6rem; line-height: 1.1; }
.rps-board b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rps-vs { color: var(--red); font-weight: 900; }
.rps-flash .rps-move { animation: cam-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.rps-verdict { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.rps-verdict[data-result="win"] { color: var(--ok); }
.rps-verdict[data-result="lose"] { color: var(--red-deep); }
.rps-brain { margin: 0; padding: .7rem .85rem; background: #FFF6DE; border-left: 3px solid #E9A400; border-radius: 8px; color: var(--text); font-size: .84rem; line-height: 1.45; }
.rps-tap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.rps-tap button { min-width: 44px; min-height: 44px; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; font-size: 1.3rem; cursor: pointer; transition: transform .2s var(--ease-out), border-color .2s ease; }
.rps-tap button:hover { transform: translateY(-2px); border-color: var(--ink); }
.rps-tap .rps-reset { margin-left: auto; padding-inline: .8rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
[data-rps-play]:disabled, [data-cr-freeze]:disabled { opacity: .45; cursor: not-allowed; }

/* Train your own AI */
.tr-out { position: absolute; z-index: 2; right: 12px; bottom: 10px; font-size: clamp(3rem, 12cqi, 5rem); line-height: 1; filter: drop-shadow(0 8px 20px rgb(0 0 0 / .5)); transition: opacity .25s ease; }
.tr-out.is-dim { opacity: .25; }
.tr-hint { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 700; line-height: 1.4; }
.tr-classes { display: grid; gap: 8px; }
.tr-class { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .7rem; padding: .65rem .75rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; transition: border-color .25s ease, background-color .25s ease; }
.tr-class.has-data { border-color: #B7DCC4; }
.tr-class.is-recording { border-color: var(--red); background: #FFF4F4; }
.tr-emoji { font-size: 1.7rem; }
.tr-name { display: grid; }
.tr-name b { color: var(--ink); font-size: .9rem; }
.tr-name small { color: var(--muted); font-size: .72rem; }
.tr-rec { min-height: 40px; padding: .4rem .8rem; background: var(--ink); border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.is-recording .tr-rec { background: var(--red); animation: cam-pulse 1s ease-in-out infinite; }
.tr-conf { grid-column: 1 / -1; height: 6px; overflow: hidden; background: var(--grey); border-radius: 3px; }
.tr-conf i { display: block; width: 0; height: 100%; background: var(--ok); border-radius: 3px; transition: width .2s ease; }
.pm-tool[data-train-reset] { justify-self: start; }

/* Cricket coach */
.cr-hand { justify-self: start; }
.cr-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .75rem .85rem; background: var(--ink); border-radius: 14px; color: #fff; }
.cr-score { display: grid; place-items: center; align-content: center; width: 62px; height: 62px; border: 3px solid #444; border-radius: 50%; }
.cr-score b { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.cr-score small { color: #bdb9b0; font-size: .6rem; }
.cr-score[data-good="yes"] { border-color: var(--ok); }
.cr-score[data-good="no"] { border-color: #E9A400; }
.cr-tip { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.cr-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cr-checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; padding: .55rem .7rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; font-size: .84rem; }
.cr-checks li span { color: var(--ink); font-weight: 700; }
.cr-checks li b { color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-checks li small { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
.cr-checks li.ok { border-color: #B7DCC4; background: #F3FAF5; }
.cr-checks li.ok b { color: var(--ok); }
.cr-checks li.fix { border-color: #F7C9CC; background: #FFF6F6; }
.cr-checks li.fix b { color: var(--red-deep); }
.cr-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Wave to change slides */
.wave-deck { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 36px -26px rgb(17 17 17 / .45); }
.wave-deck.bump { animation: wave-bump .35s ease; }
@keyframes wave-bump { 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.wave-slide { position: absolute; inset: 0; display: grid; align-content: center; gap: .4rem; padding: 7% 8%; opacity: 0; transform: translateX(12%); transition: opacity .45s ease, transform .5s var(--ease-out); }
.wave-slide.is-on { opacity: 1; transform: none; }
.wave-slide.out-left { transform: translateX(-12%); }
.wave-slide.out-right { transform: translateX(12%); }
.wave-slide small { color: var(--red); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wave-slide strong { color: var(--ink); font-size: clamp(1.1rem, .8rem + 2cqi, 1.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.wave-slide p { margin: 0; color: var(--muted); font-size: .84rem; }
.wave-slide ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.6; }
.wave-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: .3rem; }
.wave-bars i { flex: 1; height: var(--h); background: #E3E0D9; border-radius: 3px 3px 0 0; }
.wave-bars i.hot { background: var(--red); }
.wave-deck.is-blank::after { content: "Paused"; position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #0b0b0b; color: #666; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.wave-laser { position: absolute; z-index: 4; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: #ff2d3b; border-radius: 50%; box-shadow: 0 0 0 4px rgb(255 45 59 / .3), 0 0 18px 6px rgb(255 45 59 / .6); pointer-events: none; transition: left .06s linear, top .06s linear; }
.wave-react { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wave-react span { position: absolute; bottom: 8%; font-size: 1.8rem; animation: wave-float 1.6s ease-out forwards; }
@keyframes wave-float { to { transform: translateY(-160px) scale(1.3); opacity: 0; } }
.wave-nav { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--muted); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wave-nav button { width: 40px; height: 40px; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 50%; color: var(--ink); font-weight: 800; cursor: pointer; }
.wave-nav button:hover { border-color: var(--ink); }
.wave-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.wave-legend li { display: grid; gap: .1rem; padding: .5rem .65rem; background: var(--grey); border-radius: 10px; color: var(--muted); font-size: .74rem; }
.wave-legend b { color: var(--ink); font-size: .8rem; }

/* Live subtitles */
.captions { display: grid; gap: .8rem; }
.cap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.cap-mic { min-height: 48px; font-size: .9rem; }
.cap-mic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.cap-dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; animation: cam-pulse 1s ease-in-out infinite; }
.cap-screen { min-height: 150px; padding: 1.1rem 1.2rem; background: #0b0b0b; border-radius: 16px; }
.cap-text { max-height: 190px; overflow-y: auto; margin: 0; color: #fff; font-size: clamp(1.05rem, .9rem + .8cqi, 1.4rem); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.cap-text mark { padding: 0 .15em; background: #E9A400; border-radius: 4px; color: #111; }
.cap-empty { color: #6f6c66; font-weight: 600; }
.cap-cursor { display: inline-block; width: 3px; height: 1.1em; margin-left: 3px; vertical-align: -.15em; background: var(--red); animation: caret .8s steps(1) infinite; }
.cap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 8px; }
.cap-stats > div { display: grid; align-content: center; padding: .6rem .7rem; background: var(--grey); border-radius: 12px; }
.cap-stats b { color: var(--ink); font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.cap-stats small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.cap-pace { color: var(--muted); font-size: .9rem; font-weight: 800; text-align: center; }
.cap-pace[data-tone="good"] { background: #E2F1E7 !important; color: var(--ok); }
.cap-pace[data-tone="warn"] { background: #FFF6DE !important; color: #8A6100; }
.cap-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-list span { padding: .25rem .6rem; background: #FFF6DE; border-radius: 999px; color: #8A6100; font-size: .74rem; font-weight: 700; }
.cap-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.no-speech .cap-mic { opacity: .45; cursor: not-allowed; }
@container (max-width: 560px) { .cap-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cap-pace { grid-column: 1 / -1; } }

/* Pitch to the Sharks */
.sharks { display: grid; gap: 1rem; }
.sh-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sh-controls .pm-label { margin: 0 0 .45rem; }
@container (max-width: 720px) { .sh-controls { grid-template-columns: minmax(0, 1fr); } }
.sh-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sh-card { display: grid; justify-items: center; gap: .15rem; padding: .9rem .6rem .8rem; background: var(--ink); border: 2px solid transparent; border-radius: 16px; color: #fff; text-align: center; transition: border-color .3s ease, transform .35s var(--ease-out); }
.sh-card.is-talking { border-color: var(--red); transform: translateY(-4px); }
.sh-face { font-size: 1.9rem; }
.sh-card b { font-size: .95rem; }
.sh-card small { color: #bdb9b0; font-size: .7rem; }
.sh-meter { width: 80%; height: 6px; margin-top: .4rem; overflow: hidden; background: #333; border-radius: 3px; }
.sh-meter i { display: block; height: 100%; background: linear-gradient(90deg, #E9A400, var(--ok)); border-radius: 3px; transition: width .6s var(--ease-out); }
.sh-panel { display: grid; gap: .7rem; min-height: 150px; align-content: start; }
.sh-say, .sh-react { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.5; }
.sh-react { padding: .8rem .9rem; background: var(--grey); border-radius: 12px; font-weight: 700; color: var(--ink); animation: pr-in .4s var(--ease-out); }
.sh-q { display: grid; gap: .2rem; margin: 0; color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.sh-q span { color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sh-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 640px) { .sh-answers, .sh-stage { grid-template-columns: minmax(0, 1fr); } .sh-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.sh-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 640px) { .sh-offers { grid-template-columns: minmax(0, 1fr); } }
.sh-offer { display: grid; gap: .15rem; padding: .8rem .9rem; background: #fff; border: 1.5px solid var(--ok); border-radius: 14px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s ease; }
button.sh-offer:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -18px rgb(17 17 17 / .5); }
.sh-offer b { font-size: .9rem; }
.sh-offer span { color: var(--ok); font-size: 1.05rem; font-weight: 900; }
.sh-offer small { color: var(--muted); font-size: .74rem; }
.sh-offer.is-out { border-color: #E2DFD8; background: var(--grey); }
.sh-offer.is-out span { color: var(--muted); }
.sh-panel > .pm-tool, .sh-deal .pm-tool { justify-self: start; }
.sh-deal { display: grid; gap: .4rem; padding: 1rem 1.1rem; background: #E2F1E7; border-radius: 16px; animation: pr-in .5s var(--ease-out); }
.sh-deal > span { font-size: 2rem; }
.sh-deal b { color: var(--ink); font-size: 1.15rem; }
.sh-deal p { margin: 0; color: var(--text); font-size: .9rem; }

/* Fantasy XI */
.fantasy { display: grid; gap: .8rem; }
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.fx-bar > span { display: grid; min-width: 96px; padding: .45rem .75rem; background: var(--ink); border-radius: 12px; color: #fff; }
.fx-bar small { color: #bdb9b0; font-size: .64rem; font-weight: 700; }
.fx-bar b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fx-bar > span.over { background: var(--red-deep); }
.fx-rules { margin: 0; color: var(--muted); font-size: .8rem; }
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 760px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-p { position: relative; display: grid; gap: .15rem; padding: .6rem .7rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease-out), border-color .2s ease, background-color .2s ease; }
.fx-p:hover { transform: translateY(-2px); border-color: var(--ink); }
.fx-p[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fx-p.is-ai { box-shadow: 0 0 0 3px var(--red); }
.fx-p.is-ai::after { content: "AI"; position: absolute; top: 6px; right: 8px; color: var(--red); font-size: .6rem; font-weight: 900; }
.fx-role { color: var(--red); font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.fx-p b { font-size: .86rem; }
.fx-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 700; }
.fx-p[aria-pressed="true"] .fx-meta { color: #bdb9b0; }
.fx-out { display: grid; gap: .5rem; font-size: .88rem; }
.fx-out:empty { display: none; }
.fx-out p { margin: 0; }
.fx-head b { color: var(--red); }
.fx-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-vs span { display: grid; padding: .6rem .8rem; background: var(--grey); border-radius: 12px; }
.fx-vs span:first-child { background: #FFE9EA; }
.fx-vs small { color: var(--muted); font-size: .7rem; font-weight: 700; }
.fx-vs b { color: var(--ink); font-size: 1.3rem; }
.fx-notes { display: grid; gap: .3rem; margin: 0; padding-left: 1.1rem; color: var(--text); }
.fx-win { color: var(--ok); font-weight: 800; }


/* Brand kit */
.brandkit { display: grid; gap: .7rem; }
.br-input { display: grid; gap: .3rem; }
.br-input input { min-height: 48px; padding: .6rem .8rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 700; }
.br-input input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.br-out { display: grid; gap: .6rem; }
.br-out.is-new { animation: pr-in .45s var(--ease-out); }
.br-hero { display: flex; align-items: center; gap: .9rem; padding: .9rem; border-radius: 16px; }
.br-logo { flex: none; width: 72px; height: 72px; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .18)); }
.br-hero strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.br-hero span { font-size: .84rem; font-weight: 700; }
.br-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.br-palette span { display: grid; align-content: end; height: 44px; padding: .3rem .45rem; border-radius: 10px; }
.br-palette small { font-size: .62rem; font-weight: 800; }
.br-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: hidden; border-radius: 12px; }
.br-tile { display: grid; align-content: end; aspect-ratio: 1; padding: .4rem; font-size: .66rem; font-weight: 800; line-height: 1.15; }
.br-tile em { font-size: 1.4rem; font-style: normal; }
svg.br-tile { width: 100%; height: auto; padding: 14%; box-sizing: border-box; background: #fff; }
.br-card { display: grid; gap: .15rem; padding: .8rem .9rem; border-radius: 12px; }
.br-card b { font-size: 1rem; }
.br-card small { font-size: .76rem; font-weight: 700; }
.br-card span { color: #bdb9b0; font-size: .72rem; }
.pm-tool[data-br-shuffle] { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  .cam-count.pop, .tr-out.pop, .rps-flash .rps-move, .wave-deck.bump, .wave-react span, .cap-dot, .is-recording .tr-rec, .cam[data-state="loading"] .cam-icon { animation: none !important; }
  .wave-slide { transition: none; }
}

/* Live demos keep their natural height when a taller card sits beside them */
.br-grid { max-width: 330px; }

/* No decorative emojis: Sharks show an initial, the shopkeeper shows his patience */
.sh-face { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .2rem; background: var(--red); border-radius: 50%; color: #fff; font-size: 1.1rem; font-weight: 900; }
.case-top { min-height: 0; }

/* Train your own AI: numbered colour badges, signs you name, and a clean on-camera readout */
.tr-num { display: grid; place-items: center; width: 34px; height: 34px; background: var(--c); border-radius: 10px; color: #fff; font-size: .95rem; font-weight: 900; }
.tr-name input { width: 100%; padding: .1rem 0; background: transparent; border: 0; border-bottom: 1.5px dashed #D9D5CC; border-radius: 0; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 800; }
.tr-name input:focus { outline: none; border-bottom-color: var(--c); }
.tr-class.is-recording { border-color: var(--c); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.is-recording .tr-rec { background: var(--c); }
.tr-conf i { background: var(--c); }
.tr-out { left: 12px; right: auto; bottom: 12px; display: flex; align-items: center; gap: .65rem; padding: .55rem .85rem .55rem .7rem; background: rgb(10 10 10 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; color: #fff; font-size: 1rem; filter: none; line-height: 1.1; }
.tr-out:empty { display: none; }
.tr-out.is-dim { opacity: 0; }
.tr-out i { width: 12px; height: 12px; flex: none; background: #777; border-radius: 50%; box-shadow: 0 0 0 4px rgb(255 255 255 / .08); }
.tr-out span { display: grid; }
.tr-out small { color: #bdb9b0; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tr-out b { font-size: clamp(1.1rem, .8rem + 2.2cqi, 1.6rem); font-weight: 900; letter-spacing: -.02em; }
.tr-out em { margin-left: .3rem; color: #7BD389; font-size: .9rem; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Phones: the Bootcamp sessions become a deck of stacking cards */
@media (max-width: 640px) {
  .bc-grid { display: block; padding-top: 4px; }
  .bc-grid::before, .bc-grid::after { display: none; }
  .bc-card { position: sticky; top: calc(84px + var(--i, 0) * 14px); gap: .6rem; min-height: 250px; margin-bottom: 26px; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, #fff 55%, #FBF7F2); box-shadow: 0 -12px 30px -20px rgb(17 17 17 / .35), 0 22px 44px -30px rgb(17 17 17 / .55); transform: scale(var(--stack-s, 1)); transform-origin: 50% 0; transition: none; }
  .bc-card:last-child { margin-bottom: 0; }
  .bc-card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #111; border-radius: inherit; opacity: var(--stack-dim, 0); pointer-events: none; }
  .bc-num { font-size: 3.4rem; }
  .bc-icon { top: 22px; right: 20px; width: 30px; height: 30px; padding: 10px; background: #FFE9EA; border-radius: 16px; stroke: var(--red); box-sizing: content-box; }
  .bc-card strong { max-width: 20ch; font-size: 1.35rem; letter-spacing: -.02em; }
  .bc-make { padding: .85rem .95rem; background: var(--ink); border-radius: 14px; color: #fff; font-size: .95rem; }
  .bc-make small { color: #FF8A92; }
  .bc-try { top: auto; bottom: 20px; right: 20px; z-index: 3; }
  .bc-card.has-demo .bc-make { padding-right: 5.5rem; }
  /* On phones the deck itself is the animation, so every card stays fully visible */
  .bc-armed .bc-card:not(.is-lit), .bc-armed .bc-card:not(.is-lit) .bc-make, .bc-armed .bc-card:not(.is-lit) .bc-icon { opacity: 1; transform: none; }
  .bc-armed .bc-card:not(.is-lit) { transform: scale(var(--stack-s, 1)); }
  .bc-armed .bc-card:not(.is-lit) .bc-num { color: var(--red); }
  .bc-label { position: relative; z-index: 1; }
}

/* BBA client examples: two on phones until "Show 2 more examples" is tapped */
.cases-more[hidden] { display: none; }
@media (max-width: 640px) {
  .cases.can-collapse:not(.is-open) .case:nth-child(n+3) { display: none; }
  .cases-more { margin-top: 16px; }
}

/* =========================================================================
   Skill demos (assets/skills.js): one for every AI for everyone skill
   ========================================================================= */
.wall-sub { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .7rem; margin: 1.4rem 0 -.2rem; color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.wall-sub:first-child { margin-top: 0; }
.wall-sub small { color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tools, .trust, .clearer, .explain, .meeting, .imager, .voice, .calendar, .listing, .support, .studyplan, .sources, .paper, .automate, .assistant, .budget { display: grid; gap: .7rem; align-content: start; }
.slide-label { display: flex; justify-content: space-between; color: var(--ink); font-size: .84rem; font-weight: 700; }
.slide-label output { color: var(--red); font-weight: 900; }
.tools input[type="range"], .clearer input[type="range"], .explain input[type="range"], .studyplan input[type="range"], .automate input[type="range"], .budget input[type="range"], .voice input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--red); }
.build .is-new { animation: pr-in .4s var(--ease-out); }

/* Tool finder */
.tf-filters { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .3rem; border-top: 1px dashed var(--line); }
.tf-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tf-tool { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .7rem .8rem; overflow: hidden; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; }
.tf-tool::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--fit); background: var(--red); }
.tf-rank { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); border-radius: 50%; color: #fff; font-weight: 900; }
.tf-tool:first-child .tf-rank { background: var(--red); }
.tf-tool b { color: var(--ink); font-size: 1rem; }
.tf-tool p { margin: .1rem 0 .3rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tf-tags em { padding: .1rem .45rem; background: var(--grey); border-radius: 6px; color: var(--muted); font-size: .66rem; font-style: normal; font-weight: 800; }
.tf-tags em.ok { background: #E2F1E7; color: var(--ok); }
.tf-fit { display: grid; text-align: right; }
.tf-fit b { color: var(--ink); font-size: 1.1rem; }
.tf-fit small { color: var(--muted); font-size: .64rem; }
.tf-none { padding: 1rem; color: var(--muted); text-align: center; }

/* Spot the mistake */
.tr-score { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tr-q { justify-self: start !important; margin: 0; }
.tr-lines { display: grid; gap: 6px; }
.tr-line { padding: .65rem .8rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 12px; color: var(--text); font: inherit; font-size: .88rem; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s var(--ease-out); }
.tr-line:hover:not(:disabled) { border-color: var(--ink); transform: translateX(3px); }
.tr-line:disabled { cursor: default; opacity: .7; }
.tr-line.is-wrong { background: #FFE9EA; border-color: var(--red); color: var(--ink); opacity: 1; text-decoration: line-through; text-decoration-color: var(--red); }
.tr-line.is-picked { border-color: #E9A400; background: #FFF6DE; opacity: 1; }
.tr-result { margin: 0; padding: .75rem .85rem; background: var(--grey); border-left: 3px solid #E9A400; border-radius: 8px; font-size: .86rem; line-height: 1.5; animation: pr-in .4s var(--ease-out); }
.tr-result[data-good="true"] { background: #E2F1E7; border-color: var(--ok); }
.tr-result b { color: var(--ink); }
[data-tr-next] { justify-self: start; }
[data-tr-next][hidden] { display: none; }

/* Say it more clearly, explain it at my level */
.cl-text, .ex-text { min-height: 7.5em; margin: 0; padding: .9rem 1rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.cl-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cl-metrics span { display: grid; padding: .5rem .6rem; background: var(--grey); border-radius: 10px; }
.cl-metrics b { color: var(--ink); font-size: 1.15rem; }
.cl-metrics small { color: var(--muted); font-size: .64rem; font-weight: 700; }
.cl-grade { margin: 0; padding: .45rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; justify-self: start; }
.cl-grade[data-level="0"] { background: #E2F1E7; color: var(--ok); }
.cl-grade[data-level="1"] { background: #FFF6DE; color: #8A6100; }
.cl-grade[data-level="2"] { background: #FFE9EA; color: var(--red-deep); }
.ex-text { background: linear-gradient(90deg, rgb(245 30 43 / calc(.03 * var(--lvl, 0))), transparent), #fff; }
.ex-check { display: grid; gap: .15rem; margin: 0; padding: .65rem .8rem; background: #FFF6DE; border-radius: 10px; font-size: .84rem; font-weight: 600; }
.ex-check small { color: #8A6100; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Meeting summary */
.mt-log { display: grid; gap: .3rem; max-height: 170px; overflow-y: auto; padding: .7rem .8rem; background: #EFEAE2; border-radius: 12px; font-size: .8rem; line-height: 1.4; }
.mt-log p { margin: 0; }
.mt-log b { display: inline-block; min-width: 3.4rem; color: var(--red-deep); }
[data-mt-go] { justify-self: start; }
.mt-out { display: grid; gap: .4rem; font-size: .86rem; }
.mt-out:empty { display: none; }
.mt-out p { margin: 0; }
.mt-stat { color: var(--ok); font-weight: 800; }
.mt-k { color: var(--red); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: .3rem !important; }
.mt-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mt-table th, .mt-table td { padding: .4rem .5rem; border-bottom: 1px solid #ECEAE5; text-align: left; }
.mt-table th { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.mt-wa { padding: .7rem .85rem; background: #DCF8C6; border-radius: 12px 12px 4px 12px; line-height: 1.55; }
.mt-mail { padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 1.55; }
.mt-working { color: var(--muted); }

/* Picture from a prompt */
.im-canvas { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: #eee; border-radius: 14px; transition: filter .35s ease; }
.im-canvas.is-generating { filter: blur(8px) saturate(.4); }
.im-svg { display: block; width: 100%; height: 100%; }
.im-prompt { display: grid; gap: .1rem; margin: 0; padding: .6rem .8rem; background: #1b1b1a; border-radius: 10px; color: #EBE7DF; font: 600 .8rem/1.45 var(--f-mono); }
.im-prompt small { color: #FF8A92; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.im-rows { display: grid; gap: .45rem; }

/* Voiceover */
.vo-text { width: 100%; min-height: 84px; padding: .7rem .8rem; border: 1.5px solid #E2DFD8; border-radius: 12px; color: var(--ink); font: inherit; font-size: .9rem; line-height: 1.5; resize: vertical; }
.vo-text:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.vo-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .7rem; align-items: end; }
.vo-controls label { display: grid; gap: .3rem; }
.vo-controls select { min-height: 42px; padding: 0 .6rem; border: 1.5px solid #E2DFD8; border-radius: 10px; background: #fff; font: inherit; font-size: .82rem; }
.vo-controls output { color: var(--red); }
.vo-caption { max-height: 120px; overflow-y: auto; padding: .9rem 1rem; background: #0b0b0b; border-radius: 14px; color: #8b877f; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.vo-caption span { transition: color .15s ease; }
.vo-caption span.on { padding: 0 .1em; background: var(--red); border-radius: 4px; color: #fff; }
.is-speaking .vo-caption { color: #d7d3cb; }
[data-vo-play] { justify-self: start; }
.no-voice [data-vo-play] { opacity: .45; }

/* Content calendar */
.cc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cc-day { color: var(--muted); font-size: .62rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.cc-empty { min-height: 54px; background: #F7F6F2; border-radius: 8px; }
.cc-post { display: grid; align-content: start; gap: .1rem; min-height: 54px; padding: .3rem .35rem; overflow: hidden; background: #fff; border: 1.5px solid #E2DFD8; border-left: 4px solid var(--t, var(--ink)); border-radius: 8px; color: var(--ink); font: inherit; font-size: .6rem; font-weight: 700; line-height: 1.25; text-align: left; cursor: pointer; animation: pr-in .35s var(--ease-out) backwards; animation-delay: calc(var(--d) * 12ms); }
.cc-post small { color: var(--t); font-size: .55rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cc-post[data-type="Reel"] { --t: #F51E2B; }
.cc-post[data-type="Carousel"] { --t: #2D6CDF; }
.cc-post[data-type="Story"] { --t: #E9A400; }
.cc-post[data-type="Offer"] { --t: #1B7A45; }
.cc-post.is-on, .cc-post:hover { border-color: var(--t); background: color-mix(in srgb, var(--t) 8%, #fff); }
.cc-stats { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.cc-detail { padding: .7rem .85rem; background: var(--grey); border-radius: 12px; font-size: .84rem; }
.cc-detail p { margin: .2rem 0 0; }
.cc-meta { color: var(--muted); }

/* Product listing */
.ls-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: start; }
.ls-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .7rem; padding: .8rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; }
.ls-img { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(135deg, #F6D7A7, #E9A15B); border-radius: 10px; color: #fff; font-weight: 900; }
.ls-body { display: grid; gap: .25rem; font-size: .8rem; }
.ls-title { color: #1D4ED8; font-size: .9rem; line-height: 1.3; }
.ls-stars { color: #E9A400; font-size: .8rem; }
.ls-stars small { color: var(--muted); }
.ls-price { color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.ls-body ul { margin: 0; padding-left: 1rem; color: var(--text); }
.ls-body p { margin: 0; color: var(--muted); }
.ls-score { display: grid; place-items: center; align-content: center; width: 70px; height: 70px; border: 4px solid #E9A400; border-radius: 50%; }
.ls-score[data-good="true"] { border-color: var(--ok); }
.ls-score b { color: var(--ink); font-size: 1.5rem; font-weight: 900; line-height: 1; }
.ls-score small { color: var(--muted); font-size: .6rem; }
.ls-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; font-size: .76rem; }
.ls-checks li { display: flex; gap: .4rem; align-items: center; color: var(--muted); }
.ls-checks li::before { content: "✕"; color: var(--red); font-weight: 900; }
.ls-checks li.ok { color: var(--ink); }
.ls-checks li.ok::before { content: "✓"; color: var(--ok); }

/* Customer replies, assistant */
.sp-facts { display: flex; flex-wrap: wrap; gap: .45rem; }
.sp-chat { height: 190px; }
.sp-tag { display: block; margin-top: .3rem; color: var(--ok); font-size: .64rem; font-weight: 800; letter-spacing: .04em; }
.sp-tag.warn { color: var(--red-deep); }
.as-chat-box { overflow: hidden; border: 1.5px solid #E2DFD8; border-radius: 16px; }
.as-title { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .6rem .8rem; background: #075E54; color: #fff; }
.as-title i { width: 10px; height: 10px; background: #7BD389; border-radius: 50%; }
.as-title small { color: #cde9e3; font-size: .7rem; }
.as-chat-box .hg-chat { height: 190px; border-radius: 0; }
.as-setup { display: grid; gap: .5rem; }

/* Study plan */
.sp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
@container (max-width: 520px) { .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-cell { display: grid; align-content: start; gap: 3px; min-height: 70px; padding: .35rem; background: #fff; border: 1px solid #E2DFD8; border-radius: 8px; animation: pr-in .35s var(--ease-out) backwards; }
.sp-cell small { color: var(--muted); font-size: .56rem; font-weight: 800; }
.sp-cell span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px; padding: .15rem .25rem; background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 4px; color: var(--ink); font-size: .56rem; font-weight: 700; line-height: 1.2; }
.sp-cell span i { width: 6px; height: 6px; background: var(--c); border-radius: 50%; }
.sp-cell span em { color: var(--muted); font-style: normal; }
.sp-cell.is-light { background: #F7F6F2; }
.sp-cell.is-exam { background: var(--ink); border-color: var(--ink); }
.sp-cell.is-exam small, .sp-cell.is-exam b { color: #fff; font-size: .6rem; }
.sp-sum { margin: 0; font-size: .82rem; line-height: 1.5; }
.sp-none { grid-column: 1 / -1; color: var(--muted); }

/* Sources */
.so-answer { margin: 0; padding: .9rem 1rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; color: var(--ink); font-size: .92rem; line-height: 1.6; }
.so-cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin: 0 1px; padding: 0 4px; vertical-align: 2px; background: var(--grey); border: 0; border-radius: 6px; color: var(--ink); font: 800 .66rem var(--f-body); cursor: pointer; }
.so-cite.v-yes { background: #E2F1E7; color: var(--ok); }
.so-cite.v-partly { background: #FFF6DE; color: #8A6100; }
.so-cite.v-no { background: #FFE9EA; color: var(--red-deep); }
.so-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.so-src { border: 1.5px solid #E2DFD8; border-radius: 12px; overflow: hidden; background: #fff; }
.so-open { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; width: 100%; padding: .55rem .7rem; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.so-num { display: grid; place-items: center; width: 24px; height: 24px; background: var(--ink); border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 900; }
.so-name { display: grid; color: var(--ink); font-size: .84rem; font-weight: 700; }
.so-name small { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.so-trust { color: #E9A400; font-size: .7rem; letter-spacing: 1px; }
.so-says { padding: .1rem .8rem .7rem 2.9rem; font-size: .8rem; line-height: 1.45; }
.so-says b.ok { color: var(--ok); }
.so-says b.mid { color: #8A6100; }
.so-says b.bad { color: var(--red-deep); }
.so-src.v-no { border-color: #F7B9BD; }
.so-src.v-yes { border-color: #B7DCC4; }

/* Question paper */
.pp-out { display: grid; gap: .6rem; padding: .9rem; background: #fff; border: 1.5px solid #E2DFD8; border-radius: 14px; }
.pp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); font-size: .84rem; }
.pp-head b { color: var(--ink); font-family: var(--f-serif); font-size: 1.05rem; font-style: italic; font-weight: 400; }
.pp-head span { color: var(--muted); font-weight: 700; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.pp-table th, .pp-table td { padding: .35rem .45rem; border-bottom: 1px solid #ECEAE5; text-align: left; }
.pp-table th { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.pp-mix { display: flex; overflow: hidden; border-radius: 8px; font-size: .64rem; font-weight: 800; color: #fff; }
.pp-mix i { padding: .3rem .4rem; font-style: normal; white-space: nowrap; }
.pp-mix i:nth-child(1) { background: var(--ok); }
.pp-mix i:nth-child(2) { background: #E9A400; }
.pp-mix i:nth-child(3) { background: var(--red); }
.pp-qs { display: grid; gap: .4rem; margin: 0; padding-left: 1.2rem; font-size: .84rem; }
.pp-qs small { display: block; color: var(--red); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pp-key { margin: 0; color: var(--ok); font-size: .76rem; font-weight: 700; }

/* Website builder */
.website { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.2rem; align-items: start; }
@container (max-width: 720px) { .website { grid-template-columns: minmax(0, 1fr); } }
.ws-controls { display: grid; gap: .6rem; align-content: start; }
.ws-controls .pm-publish { justify-self: start; }
.ws-log { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; font-size: .78rem; color: var(--muted); }
.ws-log li::before { content: "✓ "; color: var(--ok); font-weight: 900; }
.ws-log li.is-live { color: var(--ok); font-weight: 800; }
.ws-frame { justify-self: center; width: 100%; overflow: hidden; background: #fff; border: 1px solid #D9D5CC; border-radius: 14px; box-shadow: 0 24px 44px -28px rgb(17 17 17 / .5); transition: max-width .5s var(--ease-out); }
.ws-frame[data-device="phone"] { max-width: 280px; border-radius: 26px; border-width: 8px; border-color: #111; }
.ws-bar { display: flex; align-items: center; gap: 5px; padding: .45rem .6rem; background: #F1EFEA; border-bottom: 1px solid #E2DFD8; }
.ws-bar i { width: 8px; height: 8px; background: #D5D1C8; border-radius: 50%; }
.ws-bar span { flex: 1; margin-left: .4rem; padding: .15rem .6rem; background: #fff; border-radius: 999px; color: var(--muted); font-size: .66rem; }
.ws-frame[data-device="phone"] .ws-bar i { display: none; }
.ws-page { min-height: 300px; background: var(--bg); color: var(--ink); font-size: .74rem; }
.ws-nav { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ws-nav b { margin-right: auto; font-family: var(--font); font-size: .95rem; }
.ws-nav span { opacity: .75; }
.ws-frame[data-device="phone"] .ws-nav span:not(.ws-btn-sm) { display: none; }
.ws-btn-sm, .ws-btn { padding: .3rem .7rem; background: var(--acc); border-radius: 999px; color: var(--bg); font-weight: 800; opacity: 1 !important; }
.ws-hero { display: grid; gap: .5rem; justify-items: start; padding: 1.6rem 1rem 1.3rem; background: var(--soft); }
.ws-hero h4 { margin: 0; color: var(--ink); font-family: var(--font); font-size: clamp(1.2rem, .9rem + 2cqi, 1.9rem); line-height: 1.1; letter-spacing: -.02em; }
.ws-hero p { margin: 0; max-width: 34ch; opacity: .8; }
.ws-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: 1rem; }
.ws-frame[data-device="phone"] .ws-feats { grid-template-columns: minmax(0, 1fr); }
.ws-feats div { display: grid; gap: .3rem; padding: .6rem; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 10px; font-weight: 700; }
.ws-feats i { display: grid; place-items: center; width: 22px; height: 22px; background: var(--acc); border-radius: 50%; color: var(--bg); font-style: normal; font-size: .66rem; }
.ws-quote { margin: 0 1rem 1rem; padding: .8rem 1rem; background: var(--soft); border-left: 3px solid var(--acc); border-radius: 8px; font-family: var(--font); font-size: .86rem; }
.ws-quote small { display: block; margin-top: .3rem; opacity: .7; font-family: var(--f-body); font-size: .68rem; }
.ws-foot { padding: .7rem 1rem; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); opacity: .75; }

/* Automation */
.au-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.au-node { position: relative; display: grid; gap: .1rem; margin-left: 14px; padding: .55rem .8rem .55rem 1.2rem; border-left: 2px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink); }
.au-node::before { content: ""; position: absolute; left: -8px; top: .8rem; width: 14px; height: 14px; box-sizing: border-box; background: #fff; border: 2px solid var(--line); border-radius: 50%; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.au-node small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.au-node.is-trigger small { color: var(--red); }
.au-node.is-on::before { background: #E9A400; border-color: #E9A400; box-shadow: 0 0 0 6px rgb(233 164 0 / .2); }
.au-node.is-done::before { background: var(--ok); border-color: var(--ok); }
.au-node.is-done { border-left-color: var(--ok); }
.au-run { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.au-run p { margin: 0; color: var(--ok); font-size: .84rem; font-weight: 700; }
.au-saved { margin: 0; padding: .7rem .85rem; background: #E2F1E7; border-radius: 12px; color: var(--ok); font-size: .9rem; }
.au-saved b { font-size: 1.4rem; }

/* Budget */
.bd-list { display: grid; gap: 3px; max-height: 210px; overflow-y: auto; margin: 0; padding: 0; list-style: none; font-size: .8rem; }
.bd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; padding: .35rem .6rem; background: #fff; border: 1px solid #ECEAE5; border-radius: 8px; }
.bd-list em { padding: .05rem .4rem; border-radius: 6px; font-size: .62rem; font-style: normal; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.bd-list li.is-sorted em { opacity: 1; transform: none; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.bd-list b { color: var(--ink); font-variant-numeric: tabular-nums; }
[data-bd-go] { justify-self: start; }
.bd-bars { display: grid; gap: 5px; }
.bd-bars:empty { display: none; }
.bd-total { margin: 0 0 .2rem; font-size: .86rem; }
.bd-bar { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; font-size: .76rem; font-weight: 700; }
.bd-bar i { height: 10px; width: var(--w); background: var(--c); border-radius: 5px; animation: bd-grow .7s var(--ease-out); }
@keyframes bd-grow { from { width: 0; } }
.bd-tips { padding: .7rem .85rem; background: #FFF6DE; border-radius: 12px; font-size: .84rem; }
.bd-tips[hidden] { display: none; }
.bd-tips ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.budget:not(.is-sorted) .bd-cut { display: none; }
.bd-save { margin: .3rem 0 0; color: var(--ok); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  .cc-post, .sp-cell, .bd-bar i, .is-new { animation: none !important; }
}


/* Try the demos: the browser skips drawing demo cards that are far off screen, so the long
   page opens and scrolls smoothly on slower phones. The reserved height stops the scrollbar jumping. */
.demos-page .build { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* =========================================================================
   Phones: demo text on the same scale as the rest of the site (see the end of
   motion.css). Labels 12px, buttons and chips 14px, notes and chat 14 to 15px,
   and at least 11px for text inside the little drawings of phones, posts and charts.
   ========================================================================= */
@media (max-width: 620px) {
  /* Labels */
  :root .build-tag, :root .pm-label, :root .app-count, :root .prompt-label, :root .film-shot, :root .ai-tag,
  :root .au-node small, :root .cc-day, :root .ex-check small, :root .im-prompt small, :root .iv-answer small,
  :root .wave-slide small, :root .earn-card small, :root .so-name small, :root .inv-kicker, :root .inv-rsvp,
  :root .ask-chat-top span, :root .wall-sub small, :root .slide small, :root .bc-make small, :root .case-face small,
  :root .case-top small, :root .case-metric span, :root .tag, :root .three-hour, :root .studio-pick .when,
  :root .bc-label b, :root .cv-label, :root .cv-label b, :root .tr-score, :root .build th, :root .pp-qs small,
  :root .st-score span, :root .rps-board small, :root .earn-steps li > b { font-size: .75rem; letter-spacing: .08em; }

  /* Stat captions under numbers in the demos */
  :root .hg-shop small, :root .fx-bar small, :root .cl-metrics small, :root .cap-stats small,
  :root .st-head small, :root .as-title small { font-size: .75rem; }
  :root .br-palette small, :root .sheet-chart small { font-size: .6875rem; }

  /* Buttons, chips and small links */
  :root .app-options button, :root .case-flip, :root .cases-more { font-size: .875rem; }
  :root .pm-tool { font-size: .8125rem; }
  :root .term-toggle, :root .cam-cover small, :root .bc-try, :root .deck-tool, :root .fx-meta span, :root .tr-name small,
  :root .sh-card small, :root .film-sound span, :root .studio-chips li, :root .post-cta, :root .post-likes,
  :root .rps-tap span, :root .slide-label, :root .hg-offer, :root .earn-calc label, :root .ask-meter span { font-size: .8125rem; }

  /* Notes, chat lines and lists inside demos */
  :root .st-note, :root .pp-key, :root .cc-stats, :root .build-hint { font-size: .8125rem; line-height: 1.5; }
  :root .mt-log p, :root .pm-brief p, :root .pm-checks li, :root .ls-checks li, :root .fx-rules, :root .build dd,
  :root .build dt, :root .slide p, :root .earn-steps li, :root .post figcaption, :root .pp-qs li, :root .rps-brain,
  :root .iv-answer span, :root .ex-check span, :root .mail-notes p, :root .cc-detail p, :root .build td,
  :root .wave-slide p, :root .so-name { font-size: .875rem; line-height: 1.5; }

  /* Inside the little drawings: never below 11px */
  :root .sp-cell span, :root .sp-cell small, :root .sp-cell b, :root .sp-cell em, :root .st-legend, :root .st-col small,
  :root .fx-role, :root .cc-post small, :root .hg-mood small, :root .cr-score small, :root .ls-score small,
  :root .pp-mix i, :root .tf-fit small, :root .studio-weeks i, :root .post-sticker, :root .ws-bar span,
  :root .ls-stars small, :root .iv-who i, :root .post-who small, :root .br-tile, :root .tf-tags em,
  :root .ws-quote small { font-size: .6875rem; }

  /* The mango picker: all five mangoes on one row */
  :root .sorter-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  :root .sorter-pick > * { width: auto; min-width: 0; }
}

/* Bigger screens: demo labels and captions on the same scale as the rest of the site */
@media (min-width: 621px) {
  :root .build-tag, :root .pm-label, :root .app-count, :root .prompt-label, :root .film-shot, :root .ai-tag,
  :root .bc-make small, :root .case-face small, :root .case-top small, :root .case-metric span, :root .slide small,
  :root .tag, :root .three-hour, :root .studio-pick .when, :root .wall-sub small, :root .cv-label, :root .bc-label b,
  :root .au-node small, :root .cc-day, :root .ex-check small, :root .im-prompt small, :root .iv-answer small,
  :root .wave-slide small, :root .earn-card small, :root .so-name small, :root .inv-kicker, :root .inv-rsvp,
  :root .pp-qs small, :root .rps-board small, :root .earn-steps li > b, :root .st-score span, :root .tr-score { font-size: .75rem; letter-spacing: .1em; }
  :root .cam-cover small, :root .fx-meta span, :root .studio-chips li, :root .film-sound span, :root .term-toggle,
  :root .bc-try, :root .deck-tool, :root .tr-name small, :root .sh-card small, :root .rps-tap span, :root .build-hint,
  :root .st-note { font-size: .8125rem; }
  :root .mt-log p, :root .pm-brief p, :root .pm-checks li, :root .ls-checks li, :root .fx-rules, :root .slide p,
  :root .earn-steps li, :root .pp-qs li, :root .build dd, :root .build td { font-size: .875rem; line-height: 1.55; }
  :root .sp-cell span, :root .sp-cell small, :root .sp-cell b, :root .sp-cell em, :root .cc-post small, :root .cc-post,
  :root .st-legend, :root .st-col small, :root .fx-role, :root .hg-mood small, :root .pp-mix i, :root .tf-fit small,
  :root .post-sticker, :root .post-who small, :root .br-tile, :root .tf-tags em, :root .br-palette small,
  :root .sheet-chart small, :root .studio-weeks i { font-size: .6875rem; }
  :root .build { padding: clamp(22px, 2.4vw, 32px); }
  :root .wall, :root .home-demo-grid { gap: clamp(16px, 1.8vw, 28px); }
  :root .build th { font-size: .75rem; letter-spacing: .08em; }
  :root .hg-shop small, :root .fx-bar small, :root .cl-metrics small, :root .cap-stats small, :root .app-count { font-size: .75rem; }
  :root .ws-quote small, :root .ws-bar span, :root .iv-who i, :root .cr-score small, :root .ls-score small, :root .ls-stars small { font-size: .6875rem; }
}

/* ---------- The squat counter (gym boards) ----------
   The depth bar is the point of the screen: it shows the machine deciding, live,
   whether this rep is going to count. Everything else is read after the set. */
.brandkit, .sharks, .fantasy, .captions, .live-side, .sh-panel { align-content: start; }
.sq-top { display: flex; align-items: stretch; gap: 1rem; }
.sq-score { flex: 1 1 auto; display: flex; align-items: baseline; gap: .5rem; }
.sq-score b { font-size: 3.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sq-score span { font-size: 1rem; font-weight: 700; color: var(--muted); }
.sq-score span i { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.sq-meter { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.sq-tube { position: relative; width: 100%; height: 86px; background: var(--grey); border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; }
.sq-tube i { display: block; width: 100%; background: var(--red); transition: height .12s linear; }
.sq-tube i[data-deep="true"] { background: var(--ok); }
/* the line the rep has to cross to be counted */
.sq-tube::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0; border-top: 2px dashed rgb(17 17 17 / .35); transform: translateY(0); }
.sq-meter small { font-size: .66rem; font-weight: 800; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sq-state {
  margin-top: .8rem; padding: .6rem .8rem; background: var(--grey); border-radius: 10px;
  font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--ink);
}
.sq-state[data-kind="down"] { background: #FDECEC; color: var(--red-deep); }
.sq-state[data-kind="up"] { background: var(--ok-tint); color: var(--ok); }
.sq-state[data-kind="done"] { background: var(--ink); color: #fff; }
.sq-log { display: grid; gap: .3rem; margin-top: .7rem; }
.sq-log li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .5rem; align-items: baseline; font-size: .8rem; line-height: 1.35; }
.sq-log li b { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.sq-log li.ok span { color: var(--ok); font-weight: 700; }
.sq-log li.fix span { color: var(--muted); }
