/* Tool demos that used to sit on the home page: the COGS Genie price watch, Food Fights email, example tablet and team tools.
   Scoped to .showcase so they never touch the rest of a tool page. Built from site-src/showcase. */
.showcase .demo { position: relative; }
.showcase .dot { position: absolute; border-radius: 50%; z-index: 0; box-shadow: 0 6px 16px rgb(20 32 46 / .12); }
.showcase .dot.d1 { width: 92px; height: 92px; background: var(--sun); top: -30px; left: -26px; }
.showcase .dot.d2 { width: 58px; height: 58px; background: var(--coral); bottom: 64px; right: -18px; }
.showcase .dot.d3 { width: 40px; height: 40px; background: var(--sky); top: 38%; left: -22px; }
.showcase .dot.d4 { width: 56px; height: 56px; background: var(--accent); top: -22px; right: 26%; }
.showcase .demo-device { position: relative; z-index: 1; }
@media (max-width: 600px) {
.showcase .dot.d1 { width: 60px; height: 60px; left: -8px; }
.showcase .dot.d3 { display: none; }
.showcase .dot.d2 { right: -6px; }
}
.showcase .demo-device { background: #1b222b; border-radius: 34px; padding: 20px 24px; box-shadow: 0 30px 70px rgb(20 32 46 / .3); }
.showcase .demo-screen { --d-accent: #c92a63; --d-soft: #ffe3ec; --d-bg: #f7f9fb; --d-ink: #14202e; --d-card: #fff; --d-font: system-ui, sans-serif;
    background: var(--d-bg); color: var(--d-ink); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; font-family: var(--d-font);
    display: flex; flex-direction: column; transition: background-color .3s ease, color .3s ease; }
.showcase .demo-screen[data-shop=taqueria] { --d-accent: #c2410c; --d-soft: #fdebdc; --d-bg: #fffaf5; --d-font: ui-rounded, "Nunito", system-ui, sans-serif; }
.showcase .d-top { padding: 4% 4% 2.5%; border-bottom: 1px solid rgb(127 127 127 / .2); }
.showcase .d-brand { display: flex; align-items: center; gap: 3%; }
.showcase .d-logo { width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--d-accent); display: grid; place-items: center; color: var(--d-bg); font-weight: 800; font-size: clamp(.7rem, 1.6vw, 1.1rem); }
.showcase .d-name { font-weight: 800; font-size: clamp(.95rem, 2.1vw, 1.45rem); line-height: 1.1; }
.showcase .d-tag { font-size: clamp(.62rem, 1.15vw, .82rem); opacity: .75; }
.showcase .d-search { margin-top: 3%; border: 1px solid rgb(127 127 127 / .35); border-radius: 8px; padding: 1.4% 2.5%; font-size: clamp(.6rem, 1.1vw, .8rem); opacity: .7; }
.showcase .d-chips { display: flex; gap: 1.5%; margin-top: 2.5%; }
.showcase :where(.demo-screen) button { font: inherit; color: inherit; background: none; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.showcase .demo-screen button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.showcase .d-chips button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 24px; font-size: clamp(.55rem, 1.05vw, .78rem); font-weight: 700; padding: .5% 2.5%; border-radius: 999px; border: 1px solid rgb(127 127 127 / .35); }
.showcase .d-chips button { transition: background-color .2s ease, color .2s ease; }
.showcase .d-chips button[aria-pressed=true] { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-bg); }
.showcase .d-cards { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5%; padding: 3% 4%; align-content: start; }
.showcase .d-card { display: block; width: 100%; padding: 0; text-align: left; background: var(--d-card); border: 1px solid rgb(127 127 127 / .2); border-radius: 10px; overflow: hidden; }
.showcase .d-card:hover { border-color: var(--d-accent); }
.showcase .d-card i { display: grid; width: 100%; place-items: center; aspect-ratio: 4 / 3; background: var(--d-soft); color: var(--d-accent); font-style: normal; font-weight: 800; font-size: clamp(.9rem, 2.2vw, 1.6rem); }
.showcase .d-card b { display: block; padding: 7% 8% 9%; font-size: clamp(.55rem, 1.05vw, .8rem); line-height: 1.2; }
.showcase .d-card { transition: transform .12s ease; }
.showcase .demo-screen { position: relative; }
.showcase .d-recipe { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--d-bg); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.showcase .d-recipe.open { transform: none; visibility: visible; transition: transform .3s ease; }
.showcase .d-rbar { display: flex; align-items: center; gap: 3%; padding: 3% 4% 2.5%; border-bottom: 1px solid rgb(127 127 127 / .2); }
.showcase .d-back { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; font-size: clamp(.6rem, 1.1vw, .82rem); font-weight: 700; padding: .6% 2.5%; border-radius: 999px; border: 1px solid rgb(127 127 127 / .35); white-space: nowrap; }
.showcase .d-rname { font-weight: 800; font-size: clamp(.85rem, 1.9vw, 1.3rem); line-height: 1.1; }
.showcase .d-rcat { margin-left: auto; font-size: clamp(.55rem, 1.05vw, .78rem); font-weight: 700; padding: .5% 2.5%; border-radius: 999px; background: var(--d-soft); color: var(--d-accent); }
.showcase .d-rwrap { flex: 1; min-height: 0; display: flex; }
.showcase .d-rbody { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: 38% 1fr; align-items: start; gap: 3%; padding: 3% 2% 3% 4%; }
.showcase .d-rbody::-webkit-scrollbar { display: none; }
.showcase .d-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 2% 2% 2% 0; }
.showcase .d-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgb(127 127 127 / .45); background: var(--d-card); color: var(--d-accent); }
.showcase .d-arrow svg { width: 16px; height: 16px; }
.showcase .d-arrow[aria-disabled=true] { opacity: .35; cursor: default; }
.showcase .d-rbody h3 { font-family: inherit; font-weight: 700; line-height: 1.3; margin: 0 0 4%; font-size: clamp(.58rem, 1.1vw, .82rem); text-transform: uppercase; letter-spacing: .05em; color: var(--d-accent); }
.showcase .d-ing, .showcase .d-steps { margin: 0; padding: 0; list-style: none; font-size: clamp(.58rem, 1.12vw, .85rem); line-height: 1.3; }
.showcase .d-ing li { padding: 3.5% 0; border-bottom: 1px solid rgb(127 127 127 / .2); }
.showcase .d-steps { counter-reset: st; }
.showcase .d-steps li { counter-increment: st; position: relative; padding: 2.5% 3% 2.5% 11%; margin-bottom: 2.5%; background: var(--d-card); border: 1px solid rgb(127 127 127 / .2); border-radius: 8px; }
.showcase .d-steps li::before { content: counter(st); position: absolute; left: 3%; top: 50%; transform: translateY(-50%); width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: var(--d-bg); font-weight: 800; font-size: .85em; }
@media (prefers-reduced-motion: reduce) {
.showcase .d-recipe, .showcase .d-recipe.open { transition: none; }
}
.showcase .demo-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: .6rem; }
.showcase .demo .tape { position: absolute; top: -14px; right: 28px; z-index: 4; }
.showcase .demo .tape[hidden] { display: none; }
.showcase .demo .tape.pop { animation: tapePop .35s ease-out; }
@keyframes tapePop { from { transform: scale(.6) rotate(-1.5deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.showcase .demo .tape.pop { animation: none; }
}
.showcase .tablet-cta { display: flex; justify-content: center; margin: 14px 0 0; }
.showcase .section { padding: 64px 0; border-top: 1px solid var(--line); }
.showcase .section-head { max-width: 640px; margin-bottom: 32px; }
.showcase .section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
.showcase .dm-pressed { transform: scale(.96); background-color: var(--accent-soft) !important; box-shadow: 0 0 0 2px var(--accent) inset; }
.showcase .dm-finger { position: absolute; left: 0; top: 0; z-index: 3; width: 30px; height: auto; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .25)); transition: transform .65s cubic-bezier(.45,0,.2,1), opacity .3s ease; }
.showcase .dm-finger.on { opacity: 1; }
.showcase .dm-finger.tap { transition: transform .12s ease; }
.showcase .dm-ripple { position: absolute; left: 0; top: 0; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(24 196 143 / .35); pointer-events: none; opacity: 0; }
.showcase .dm-ripple.go { animation: dmRipple .5s ease-out; }
@keyframes dmRipple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
.showcase .dm-pause { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; gap: .4rem; margin: 12px auto 0; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.showcase .dm-pause:hover { border-color: var(--accent-text); }
.showcase .dm-pause:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
.showcase .dm-finger, .showcase .dm-ripple { display: none; }
}
.showcase .spot { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) {
.showcase .spot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.showcase .spot.flip > :first-child { order: 2; }
}
.showcase .spot h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
.showcase .checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 10px; }
.showcase .checks li { padding-left: 32px; position: relative; }
.showcase .checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.showcase .ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.25rem; }
.showcase .ways div { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; text-align: center; }
.showcase .ways small { display: block; font-weight: 400; color: var(--muted); }
.showcase .cogs-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0; }
.showcase .cm-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.showcase .cm-head h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.showcase .cm-example { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.showcase .cm-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: cm-pulse 1.8s ease-out infinite; }
@keyframes cm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.showcase .cogs-mock.paused .cm-pulse { animation: none; background: var(--muted); }
.showcase .cm-pause { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.showcase .cm-pause:hover { border-color: var(--accent-text); }
.showcase .cm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.showcase .cm-stats div { padding: 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.showcase .cm-stats small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.showcase .cm-stats b { font-family: var(--display); font-size: 1.3rem; display: inline-block; transition: color .4s ease; }
.showcase .cm-stats b.bump { color: var(--coral-ink); }
.showcase .cm-stats b.dip { color: var(--accent-text); }
.showcase .cm-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); }
.showcase .cm-key li { display: inline-flex; align-items: center; gap: .35rem; }
.showcase .cm-key b { color: var(--ink); }
.showcase .cm-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.showcase .cm-dot.g { background: #1fb57f; }
.showcase .cm-dot.y { background: #f5b800; }
.showcase .cm-dot.r { background: #e5484d; }
.showcase .cm-window { position: relative; height: 252px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
    -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.showcase .cm-track { animation: cm-scroll 28s linear infinite; }
.showcase .cogs-mock.paused .cm-track, .showcase .cm-window:hover .cm-track, .showcase .cm-window:focus-within .cm-track { animation-play-state: paused; }
@keyframes cm-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.showcase .cm-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px; }
.showcase .cm-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .25rem .7rem; padding: 10px 12px; border: 2px solid transparent; border-left-width: 6px; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.showcase .cm-row:hover, .showcase .cm-row[aria-expanded=true] { border-color: var(--line); }
.showcase .cm-row.g { border-left-color: #1fb57f; }
.showcase .cm-row.y { border-left-color: #f5b800; }
.showcase .cm-row.r { border-left-color: #e5484d; }
.showcase .cm-row.y { background: #fff8db; }
.showcase .cm-row.r { background: #ffecec; }
.showcase .cm-row code { grid-column: 2 / -1; font-size: .74rem; color: var(--muted); background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase .cm-row strong { font-size: 1rem; min-width: 0; }
.showcase .cm-row .cm-vendor { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.showcase .cm-price { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.showcase .cm-price small { display: block; font-size: .78rem; font-weight: 800; }
.showcase .cm-row.g .cm-price small { color: #0b6b48; }
.showcase .cm-row.y .cm-price small { color: #6b4e00; }
.showcase .cm-row.r .cm-price small { color: #a01c22; }
.showcase .cm-row .cm-dot { grid-row: span 2; }
.showcase .cm-row.flash .cm-price { animation: cm-flash 1s ease; }
@keyframes cm-flash { 0% { background: #fff1a8; } 100% { background: transparent; } }
.showcase .cm-detail { min-height: 64px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.showcase .cm-detail p { margin: 0; }
.showcase .cm-tip { color: var(--muted); font-weight: 600; }
.showcase .cm-hist { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.showcase .cm-hist li { padding: 3px 9px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.showcase .cm-hist li:last-child { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) {
.showcase .cm-track { animation: none; }
.showcase .cm-window { height: auto; max-height: 360px; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.showcase .cm-pulse, .showcase .cm-row.flash .cm-price { animation: none; }
}
.showcase .crew-mock { display: grid; gap: 12px; }
.showcase .crew-mock .card { box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: center; padding: 16px 18px; }
.showcase .crew-mock i { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.showcase .crew-mock p { margin: 0; }
.showcase .crew-mock small { color: var(--muted); }
