/* Unlisted interactive demo. Scoped to .page-demo so it can sit on site.css. */

.page-demo #demo-root {
  padding-top: 1.5rem;
}

.section.page-demo #demo-root {
  padding-top: 0;
}

.section.page-demo .demo-panel {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}

#how.page-demo .section-title,
#see-it.page-demo .section-title {
  margin-bottom: 1.4rem;
}

.hero + #how.page-demo.section {
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

.page-demo .demo-panel {
  background: var(--sand);
  border-radius: 28px;
  padding: 1.15rem 1rem 1.5rem;
  margin-bottom: 3rem;
}

.page-demo .demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.page-demo .demo-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid transparent;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo.is-playing .demo-tabs button[aria-selected="true"]::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: demo-live 1.35s ease-out infinite;
}

@keyframes demo-live {
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.page-demo .demo-tabs button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.page-demo .demo-tabs button[aria-selected="true"] {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.page-demo .demo-tabs button[aria-selected="true"]:hover {
  color: #fff;
}

.page-demo .demo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0.9rem 0 1.1rem;
}

.page-demo .demo-dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(18, 18, 18, 0.16);
  transition: width 0.2s ease, background 0.2s ease;
}

.page-demo .demo-dots i.is-done {
  background: #e7a088;
}

.page-demo .demo-dots i.is-on {
  width: 18px;
  background: var(--orange);
}

.page-demo .demo-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.25rem, 5vw, 4.5rem);
}

.page-demo .demo-player {
  max-width: 760px;
  margin: 1.35rem auto 0;
}

.page-demo .demo-player[hidden] {
  display: none;
}

.page-demo .demo-player__line {
  min-height: 4.6rem;
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-demo .demo-player__line.is-music {
  color: var(--muted);
  font-weight: 600;
  font-style: italic;
}

.page-demo .demo-player__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-demo .demo-player__restart {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(18, 18, 18, 0.16);
}

.page-demo .demo-player__restart svg {
  display: block;
  width: 16px;
  height: 16px;
}

.page-demo .demo-player__restart:hover {
  color: var(--orange);
}

.page-demo .demo-player__play {
  flex: none;
  min-width: 4.6rem;
  height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
}

.page-demo .demo-player__controls input[type="range"] {
  flex: 1;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.page-demo .demo-player__time {
  flex: none;
  min-width: 6.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.page-demo .beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}

.page-demo .beam[hidden] {
  display: none;
}

.page-demo .beam path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 10;
  animation: demo-dash 0.7s linear infinite;
  filter: drop-shadow(0 0 4px rgba(241, 90, 36, 0.8));
}

@keyframes demo-dash {
  to { stroke-dashoffset: -22; }
}

.page-demo .demo-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.page-demo .demo-flow[hidden],
body.page-promo .demo-flow {
  display: none;
}

.page-demo .demo-flow path {
  fill: none;
  stroke: rgba(241, 90, 36, 0.4);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.page-demo #demo-flow-packets {
  stroke: var(--orange);
  stroke-width: 3.5;
  stroke-dasharray: 3 15;
  filter: drop-shadow(0 0 3px rgba(241, 90, 36, 0.75));
  animation: demo-flow 0.55s linear infinite;
}

@keyframes demo-flow {
  to { stroke-dashoffset: -18; }
}

.page-demo .device {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 318px);
  margin: 0;
}

.page-demo .device__frame {
  position: relative;
  background: linear-gradient(165deg, #3c3c3c, #161616 28%, #0d0d0d);
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 28px 50px rgba(18, 18, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.page-demo .device.is-active .device__frame {
  animation: device-active 2.1s ease-in-out infinite;
}

@keyframes device-active {
  0%, 100% {
    box-shadow:
      0 28px 50px rgba(18, 18, 18, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 2px rgba(241, 90, 36, 0.55);
  }
  50% {
    box-shadow:
      0 28px 50px rgba(18, 18, 18, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 2px rgba(241, 90, 36, 0.75),
      0 0 0 11px rgba(241, 90, 36, 0.34);
  }
}

.page-demo .device__frame::before,
.page-demo .device__frame::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 2px;
  background: #2c2c2c;
}

.page-demo .device__frame::before {
  top: 92px;
  height: 28px;
}

.page-demo .device__frame::after {
  top: 132px;
  height: 48px;
}

.page-demo .ph__screen {
  position: relative;
  height: 612px;
  border-radius: 30px;
  overflow: hidden;
  background: #fcf5ee;
  color: var(--ink);
  font-size: 14px;
}

.page-demo .device.is-dark .ph__screen {
  background: #111114;
  color: #fff;
}

.page-demo .status {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 2.35rem;
  padding: 0.7rem 1.15rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.page-demo .device.is-dark .status {
  color: #fff;
}

.page-demo .status__sys {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-demo .sig,
.page-demo .bat {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.page-demo .sig {
  width: 15px;
  height: 10px;
  border: none;
  opacity: 0.9;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 4px bottom / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px bottom / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 12px bottom / 2px 10px no-repeat;
}

.page-demo .bat {
  width: 20px;
  height: 10px;
  border-radius: 2px;
  position: relative;
}

.page-demo .bat::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}

.page-demo .bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.page-demo .device__island {
  position: absolute;
  z-index: 9;
  top: 8px;
  left: 50%;
  width: 88px;
  height: 22px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  pointer-events: none;
}

.page-demo .device__home {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 7px;
  width: 104px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(18, 18, 18, 0.38);
  pointer-events: none;
}

.page-demo .ph-dock {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: stretch;
  height: 4.55rem;
  padding: 0.28rem 0.15rem 0.95rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.page-demo .device.has-dock .ph-dock {
  display: flex;
}

.page-demo .device.has-dock .ph-view.is-on {
  padding-bottom: 4.85rem;
}

.page-demo .ph-dock button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.15rem 0.05rem;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.page-demo .ph-dock button.is-on {
  color: var(--orange);
}

.page-demo .device.is-dark .device__home {
  background: rgba(255, 255, 255, 0.7);
}

.page-demo .ph-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 2.45rem 0.85rem 1.15rem;
  overflow: hidden;
}

.page-demo .ph-view.is-on {
  display: flex;
  animation: ph-in 0.34s ease;
}

@keyframes ph-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-demo .ph-view[data-view="home"].is-on,
.page-demo .ph-view[data-view="join"].is-on,
.page-demo .ph-view[data-view="details"].is-on,
.page-demo .ph-view[data-view="profile"].is-on,
.page-demo .ph-view[data-view="diary"].is-on {
  overflow: auto;
  scrollbar-width: none;
}

.page-demo .ph-view.is-on::-webkit-scrollbar {
  display: none;
}

.page-demo .ph-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.page-demo .ph-top {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.page-demo .ph-top h2,
.page-demo .ph-success h2,
.page-demo .c-join h2,
.page-demo .c-details h2,
.page-demo .addsheet h2,
.page-demo .ph-profile h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-demo .ph-top h2 {
  text-align: center;
  font-size: 1.05rem;
}

.page-demo .ph-back {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
}

.page-demo .ph-back:hover {
  background: rgba(18, 18, 18, 0.05);
}

.page-demo .ph-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.page-demo figcaption {
  order: -1;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.page-demo figcaption span {
  color: var(--orange);
}

.page-demo figcaption em {
  font-style: normal;
}

/* —— Staff home —— */
.page-demo .ph-hero {
  position: relative;
  margin: -2.45rem -0.85rem 0.45rem;
  padding: 3.1rem 0.95rem 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.18), rgba(252, 245, 238, 0.55) 72%, #fcf5ee),
    url("../assets/coffee-shop.webp") center 42% / cover no-repeat;
}

.page-demo .ph-hero__bar,
.page-demo .ph-hello {
  position: relative;
  z-index: 1;
}

.page-demo .ph-hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-demo .ph-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.28rem 0.5rem 0.28rem 0.28rem;
  background: rgba(255, 252, 248, 0.94);
  border-radius: 12px;
}

.page-demo .ph-brand img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
}

.page-demo .ph-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-demo .ph-brand small {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.page-demo .ph-role {
  margin-top: 0.2rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.94);
  color: #8a5a32;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-demo .ph-hello {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.page-demo .ph-scan {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.7rem 0.7rem 0.8rem;
  border-radius: 18px;
  background: linear-gradient(90deg, #ff7a3a 0%, var(--orange) 48%, var(--orange-dark) 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 26px rgba(241, 90, 36, 0.28);
}

.page-demo .ph-scan strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.page-demo .ph-scan small {
  display: block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
}

.page-demo .ph-scan__go {
  margin-left: auto;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(180, 52, 8, 0.28);
  flex: none;
}

.page-demo .ph-kicker {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-demo .ph-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.page-demo .ph-quick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo .ph-quick svg {
  color: var(--orange);
}

.page-demo .ph-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0;
  border-top: 1px solid var(--line);
}

.page-demo .ph-row.is-new {
  animation: row-in 0.4s ease;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.page-demo .ph-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.page-demo .ph-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.page-demo .ph-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.page-demo .ph-row b {
  margin-left: auto;
  color: var(--orange);
  font-family: var(--font-display);
}

.page-demo .ph-row b.is-down {
  color: #c62828;
}

.page-demo .ph-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* —— Scan —— */
.page-demo .ph-camwell {
  margin-top: 0.35rem;
  padding: 0.7rem 0 0.55rem;
  background: #1c1c1c;
  border-radius: 18px;
}

.page-demo .ph-finder {
  position: relative;
  width: min(148px, 64%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  display: block;
}

.page-demo .ph-finder .c {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
}

.page-demo .ph-finder .c-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.page-demo .ph-finder .c-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.page-demo .ph-finder .c-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.page-demo .ph-finder .c-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.page-demo .ph-finder__line {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  top: 22%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  animation: scanline 1.6s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { top: 18%; }
  50% { top: 78%; }
}

.page-demo .device[data-sheet="actions"] .ph-finder .c,
.page-demo .device[data-sheet="balance"] .ph-finder .c {
  border-color: #3dce7a;
}

.page-demo .device[data-sheet="actions"] .ph-finder__line,
.page-demo .device[data-sheet="balance"] .ph-finder__line {
  animation: none;
  opacity: 0;
}

.page-demo .ph-found {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  margin: 0;
  text-align: center;
  color: #3dce7a;
  font-weight: 800;
  font-size: 13px;
}

.page-demo .device[data-sheet="actions"] .ph-found,
.page-demo .device[data-sheet="balance"] .ph-found {
  display: block;
}

.page-demo .ph-dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(18, 18, 18, 0.42);
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-demo .device[data-sheet="actions"] .ph-dim,
.page-demo .device[data-sheet="balance"] .ph-dim,
.page-demo .device[data-sheet="reward"] .ph-dim,
.page-demo .device[data-sheet="redeem"] .ph-dim {
  opacity: 1;
  pointer-events: auto;
}

.page-demo .ph-sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem 1.35rem;
  background: #fff;
  color: var(--ink);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-demo .device[data-sheet="actions"] .ph-sheet[data-sheet="actions"],
.page-demo .device[data-sheet="balance"] .ph-sheet[data-sheet="balance"],
.page-demo .device[data-sheet="reward"] .ph-sheet[data-sheet="reward"],
.page-demo .device[data-sheet="redeem"] .ph-sheet[data-sheet="redeem"] {
  transform: none;
}

.page-demo .ph-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 0.65rem;
  border-radius: 99px;
  background: var(--line);
}

.page-demo .ph-sheet h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.page-demo .ph-sheet > p,
.page-demo .ph-balance p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0.15rem 0 0.7rem;
}

.page-demo .ph-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0.7rem 0.75rem;
  background: var(--sand);
  border-radius: 14px;
  text-align: left;
  font-weight: 700;
}

.page-demo .ph-action svg {
  color: var(--orange);
  flex: none;
}

.page-demo .ph-action small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.page-demo .ph-cancel {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.55rem;
  color: var(--muted);
  font-weight: 700;
}

.page-demo .ph-balance {
  text-align: center;
  padding-bottom: 0.3rem;
}

.page-demo .ph-balance strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.page-demo .ph-balance .ph-balance__pts {
  margin: 0.35rem 0 0.15rem;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}

/* —— Give points —— */
.page-demo .ph-amount {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding-top: 0.8rem;
}

.page-demo .ph-amount > p:not(.ph-amount__num):not(.ph-funds__now):not(.ph-money-hint) {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.page-demo .ph-amount__num {
  margin: 0.1rem 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--orange);
  text-align: center;
}

.page-demo #money-num,
.page-demo #funds-num {
  margin-bottom: 0.1rem;
  font-size: 2.35rem;
}

.page-demo #funds-num.is-add {
  color: #1b7a4a;
}

.page-demo #funds-num.is-deduct {
  color: #c62828;
}

.page-demo .ph-amount > p.ph-money-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
}

.page-demo .ph-amount > p.ph-money-hint.is-on {
  color: #1b7a4a;
}

.page-demo .ph-amount > p.ph-funds__now {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
}

.page-demo .ph-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}

.page-demo .ph-modes button {
  padding: 0.42rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}

.page-demo .ph-modes button.is-on[data-act="mode-add"] {
  background: #1b7a4a;
  border-color: #1b7a4a;
  color: #fff;
}

.page-demo .ph-modes button.is-on[data-act="mode-deduct"] {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.page-demo #funds-confirm.is-add {
  background: #1b7a4a;
}

.page-demo #funds-confirm.is-deduct {
  background: #c62828;
}

.page-demo .drums {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0.2rem 0 0.65rem;
}

.page-demo .drum {
  position: relative;
  flex: 1;
  height: 132px;
  min-width: 0;
}

.page-demo .drum__band {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(241, 90, 36, 0.4);
  background: rgba(241, 90, 36, 0.08);
  pointer-events: none;
}

.page-demo .drums.is-add .drum__band {
  border-color: rgba(27, 122, 74, 0.45);
  background: rgba(27, 122, 74, 0.08);
}

.page-demo .drums.is-deduct .drum__band {
  border-color: rgba(198, 40, 40, 0.4);
  background: rgba(198, 40, 40, 0.08);
}

.page-demo .drum__col {
  height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}

.page-demo .drum__col::-webkit-scrollbar {
  display: none;
}

.page-demo .drum__pad {
  height: 44px;
}

.page-demo .drum__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  scroll-snap-align: center;
  background: transparent;
  color: rgba(90, 78, 68, 0.38);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
}

.page-demo .drum__item.is-on {
  color: var(--ink);
}

.page-demo .drums__sep {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--muted);
}

.page-demo .ph-chips {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 0.85rem;
}

.page-demo .ph-chips button {
  flex: 1;
  padding: 0.55rem 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}

.page-demo .ph-chips button.is-picked {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-demo .ph-primary {
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.page-demo .ph-primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-demo .ph-amount .ph-primary {
  margin-top: auto;
}

/* —— Success —— */
.page-demo .ph-success {
  margin: auto 0;
  text-align: center;
}

.page-demo .ph-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.8rem;
}

.page-demo .ph-check circle,
.page-demo .ph-check path {
  fill: none;
  stroke: #1b7a4a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 0.55s ease forwards;
}

.page-demo .ph-check path {
  animation-delay: 0.18s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.page-demo .ph-success h2 {
  font-size: 1.45rem;
}

.page-demo .ph-success p {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.page-demo .ph-textbtn {
  color: var(--orange);
  font-weight: 800;
  font-family: var(--font-display);
}

.page-demo .ph-pack {
  margin-top: 0.7rem;
  padding: 1rem 0.9rem 0.95rem;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo .ph-pack__count {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-demo .ph-pack__count span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.page-demo .ph-pack .ph-primary {
  margin-top: 0.9rem;
}

.page-demo .ph-pack__add {
  margin-top: 0.85rem;
  padding: 0.35rem;
}

.page-demo .pk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo .pk-row strong {
  display: block;
  font-family: var(--font-display);
}

.page-demo .pk-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-demo .pk-row b {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-demo .pk-row.is-pick {
  box-shadow: inset 0 0 0 1.5px var(--orange);
}

.page-demo .pk-who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.35rem 0 0.85rem;
}

.page-demo .pk-who > span:first-child {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  flex: none;
}

.page-demo .pk-who strong {
  display: block;
  font-family: var(--font-display);
}

.page-demo .pk-who em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

/* —— Join QR —— */
.page-demo .ph-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.4rem;
}

.page-demo .ph-join strong {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.page-demo .ph-join > p:not(.ph-bonus):not(.ph-status) {
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  max-width: 24ch;
}

.page-demo .ph-bonus,
.page-demo .c-join__bonus {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(27, 122, 74, 0.12);
  color: #1b7a4a;
  font-size: 13px;
  font-weight: 800;
}

.page-demo .ph-status {
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.page-demo .ph-status:empty {
  display: none;
}

/* —— Profile —— */
.page-demo .ph-profile {
  text-align: center;
  padding-top: 0.6rem;
}

.page-demo .ph-profile .ph-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.65rem;
  font-size: 1.25rem;
}

.page-demo .ph-profile h2 {
  font-size: 1.35rem;
}

.page-demo .ph-profile__pts {
  margin: 0.25rem 0 0.45rem;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
}

.page-demo .ph-badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(27, 122, 74, 0.12);
  color: #1b7a4a;
  font-size: 12px;
  font-weight: 800;
}

.page-demo .ph-profile dl {
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: 0.35rem 0.85rem;
}

.page-demo .ph-profile dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.page-demo .ph-profile dl div:first-child {
  border-top: none;
}

.page-demo .ph-profile dt {
  color: var(--muted);
  font-weight: 600;
}

.page-demo .ph-profile dd {
  font-weight: 700;
  text-align: right;
}

.page-demo .ph-profile__note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* —— Customer wallet —— */
.page-demo .wallet {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 0.35rem;
}

.page-demo .wallet__app {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.55rem;
}

.page-demo .wallet__hint {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.62;
}

.page-demo .pass {
  background: #24573c;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.page-demo .pass.is-barber {
  background: #3c3028;
}

.page-demo .pass.is-studio {
  background: #1d4a44;
}

.page-demo .pass__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.55rem;
}

.page-demo .pass__logo,
.page-demo .pass__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #24573c;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}

.page-demo .pass.is-barber .pass__logo,
.page-demo .pass.is-barber .pass__badge {
  color: #3c3028;
}

.page-demo .pass.is-studio .pass__logo,
.page-demo .pass.is-studio .pass__badge {
  color: #1d4a44;
}

.page-demo .pass__top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-demo .pass__kind {
  display: none;
}

.page-demo .pass__strip {
  position: relative;
  height: 92px;
  margin: 0 0.55rem;
  border-radius: 8px;
  overflow: hidden;
}

.page-demo .pass__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-demo .pass__strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.05) 55%);
}

.page-demo .pass__stat {
  position: absolute;
  z-index: 1;
  left: 0.7rem;
  bottom: 0.35rem;
}

.page-demo .pass__stat strong {
  display: block;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.page-demo .pass.is-punch .pass__stat {
  display: none;
}

.page-demo .pass.is-punch .pass__badge {
  display: none;
}

/* Taller strip in punch mode so the grid + label fit without clipping */
.page-demo .pass.is-punch .pass__strip {
  height: 108px;
}

.page-demo .pass__punchstrip {
  position: absolute;
  z-index: 2;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.45rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Punch floater is position:absolute so the "+1" pop never reflows / re-centers the grid */
.page-demo .pass.is-punch .pass__punchstrip {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 0.65rem 0.55rem;
  box-sizing: border-box;
}

.page-demo .pass__punchstrip[hidden] {
  display: none;
}

.page-demo .pass-punch__dots {
  --pass-punch-size: 32px;
  --pass-punch-gap-y: 8px;
  --pass-punch-gap-x: 10px;
  display: grid;
  grid-template-columns: repeat(5, var(--pass-punch-size));
  grid-template-rows: repeat(2, var(--pass-punch-size));
  gap: var(--pass-punch-gap-y) var(--pass-punch-gap-x);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-items: center;
  align-items: center;
}

.page-demo .pass-punch__dot {
  position: relative;
  width: var(--pass-punch-size);
  height: var(--pass-punch-size);
  flex: none;
  margin: 0;
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-demo .pass-punch__dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  filter: grayscale(1);
  opacity: 0.38;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.page-demo .pass-punch__dot.is-filled {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.page-demo .pass-punch__dot.is-filled img {
  filter: none;
  opacity: 1;
}

.page-demo .pass-punch__dot.is-pulse {
  animation: wallet-pop 0.7s ease;
}

.page-demo .pass.is-barber .pass-punch__dot {
  border-color: rgba(255, 255, 255, 0.5);
}

.page-demo .pass.is-barber .pass-punch__dot.is-filled {
  background: #fff;
  border-color: #fff;
}

.page-demo .pass.is-barber .pass-punch__floater {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-demo .pass.is-studio .pass-punch__dot {
  border-color: rgba(255, 255, 255, 0.5);
}

.page-demo .pass.is-studio .pass-punch__dot.is-filled {
  background: #fff;
  border-color: #fff;
}

.page-demo .pass.is-studio .pass-punch__floater {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-demo .pass-punch__floater {
  position: absolute;
  right: 0;
  top: -1.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-demo .pass.is-punch .pass-punch__floater {
  position: absolute;
  left: 50%;
  right: auto;
  top: 0.42rem;
  transform: translateX(-50%);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1;
  pointer-events: none;
}

.page-demo .pass.is-punch .pass-punch__floater.is-on {
  animation: punch-floatup 0.95s ease forwards;
}

@keyframes punch-floatup {
  0% { opacity: 0; transform: translate(-50%, 4px); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -14px); }
}

.page-demo .pass__badge {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0.55rem;
  width: 46px;
  height: 46px;
  font-size: 18px;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-demo .pass__fields {
  padding: 0.7rem 0.85rem 0.15rem;
}

.page-demo .pass__fieldrow .pass__field:first-child {
  flex: 1;
}

.page-demo .pass__field {
  position: relative;
  margin: 0 0 0.55rem;
  min-width: 0;
}

.page-demo .pass__field[hidden] {
  display: none;
}

.page-demo .pass__field--end {
  text-align: right;
}

.page-demo .pass__field > span {
  display: block;
  margin-bottom: 0.12rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-demo .pass__field strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-demo .pass__reward {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.page-demo .pass.is-ready .pass__reward,
.page-demo .pass.is-booked .pass__reward {
  color: #fff;
}

.page-demo .pass__bar[hidden] {
  display: none;
}

.page-demo .pass__qrwrap {
  margin: 0.35rem 0.7rem 0.75rem;
  padding: 0.7rem 0.7rem 0.55rem;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.page-demo .pass .pass-qr {
  width: 132px;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  background: #fff;
}

.page-demo .pass__name {
  margin: 0.35rem 0 0.1rem;
  color: #1a1a1a;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.page-demo .pass .is-pulse::after {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  animation-name: wallet-ring-light;
}

.page-demo .pass__name.is-pulse::after {
  background: rgba(36, 87, 60, 0.12);
  animation-name: wallet-ring;
}

@keyframes wallet-ring-light {
  0% { opacity: 0; }
  28% { opacity: 1; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.16); }
  100% { opacity: 0; box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

.page-demo .pass__name,
.page-demo .pass__reward,
.page-demo .pass__next,
.page-demo .pass__field {
  position: relative;
}

.page-demo .is-pulse {
  animation: wallet-pop 0.7s ease;
  z-index: 1;
}

.page-demo .is-pulse::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px -8px;
  border-radius: 12px;
  background: rgba(241, 90, 36, 0.16);
  box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.35);
  pointer-events: none;
  animation: wallet-ring 0.7s ease;
}

.page-demo .is-pulse.is-down::after {
  background: rgba(198, 40, 40, 0.14);
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.35);
  animation-name: wallet-ring-down;
}

@keyframes wallet-pop {
  0% { transform: scale(1); }
  32% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes wallet-ring {
  0% { opacity: 0; }
  28% { opacity: 1; box-shadow: 0 0 0 7px rgba(241, 90, 36, 0.16); }
  100% { opacity: 0; box-shadow: 0 0 0 16px rgba(241, 90, 36, 0); }
}

@keyframes wallet-ring-down {
  0% { opacity: 0; }
  28% { opacity: 1; box-shadow: 0 0 0 7px rgba(198, 40, 40, 0.16); }
  100% { opacity: 0; box-shadow: 0 0 0 16px rgba(198, 40, 40, 0); }
}

.page-demo .pass-floater {
  position: absolute;
  left: 62%;
  top: 0.8rem;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  opacity: 0;
}

.page-demo .pass-floater.is-on {
  animation: floatup 0.95s ease forwards;
}

@keyframes floatup {
  0% { opacity: 0; transform: translateY(6px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}

.page-demo .pass .pass-floater {
  color: #fff;
  top: 0.15rem;
}

.page-demo .pass-details-cta {
  display: none;
  width: calc(100% - 1.2rem);
  margin: 0.75rem auto 0;
  padding: 0.75rem;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font-display);
}

.page-demo .pass-details-cta.is-hot {
  display: block;
}

/* —— QR —— */
.page-demo .ph-qr {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.06);
}

.page-demo .pass-qr {
  margin: 0 auto;
  width: 156px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.page-demo .ph-qr i {
  display: block;
  background: transparent;
}

.page-demo .ph-qr i.on {
  background: #121212;
}

.page-demo .demo-stage.is-linking [data-beam] {
  animation: qrpulse 1s ease-in-out infinite;
}

@keyframes qrpulse {
  50% { box-shadow: 0 0 0 6px rgba(241, 90, 36, 0.28); }
}

/* —— Idle, camera, join, details —— */
.page-demo .idle,
.page-demo .cam,
.page-demo .addsheet {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-demo .idle {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -1rem;
}

.page-demo .idle__card {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.06);
}

.page-demo .idle__card p {
  margin-top: 0.35rem;
  font-weight: 700;
  max-width: 18ch;
}

.page-demo .idle__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.page-demo .cam {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
}

.page-demo .cam p {
  font-weight: 700;
}

.page-demo .c-join {
  margin: -2.45rem -0.85rem 0;
  text-align: center;
  color: var(--ink);
  overflow: auto;
}

.page-demo .c-join__hero {
  height: 112px;
  background:
    linear-gradient(to bottom, rgba(251, 247, 242, 0), #fbf7f2 92%),
    url("../assets/coffee-shop.webp") center 45% / cover no-repeat,
    #e7d3c0;
}

.page-demo .c-join__logo {
  width: 64px;
  height: 64px;
  margin: -32px auto 0.5rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(42, 32, 20, 0.14);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--orange);
}

.page-demo .c-join h2 {
  font-size: 1.55rem;
  padding: 0 1rem;
}

.page-demo .c-join h2 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.page-demo .c-join > p:not(.ph-bonus) {
  margin: 0.55rem auto 0;
  max-width: 26ch;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 1rem;
}

.page-demo .c-join__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: calc(100% - 2rem);
  margin: 0.9rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.page-demo .c-join > p.c-join__power {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: none;
  margin: 0.9rem 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-demo .c-join__power img {
  width: 16px;
  height: 16px;
}

.page-demo .addsheet {
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
}

.page-demo .addsheet__card {
  width: 100%;
  padding: 1rem 0.9rem 0.85rem;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  text-align: center;
}

.page-demo .addsheet__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-demo .addsheet h2 {
  margin: 0.3rem 0;
  font-size: 1.25rem;
}

.page-demo .addsheet__card > p {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 0.85rem;
}

.page-demo .addsheet__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.page-demo .addsheet__row button {
  padding: 0.7rem;
  border-radius: 12px;
  font-weight: 800;
  background: var(--sand);
}

.page-demo .addsheet__row button:last-child {
  background: var(--orange);
  color: #fff;
}

.page-demo .c-details {
  overflow: auto;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}

.page-demo .c-details h2 {
  font-size: 1.3rem;
}

.page-demo .c-details > p:not(.c-details__error) {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.page-demo .c-details label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.page-demo .c-details input {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-demo .c-details input:focus {
  outline: 2px solid rgba(241, 90, 36, 0.45);
  border-color: var(--orange);
}

.page-demo .c-details__error {
  margin: 0.15rem 0 0.45rem;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

.page-demo .c-details__error[hidden] {
  display: none;
}

.page-demo .c-details .ph-primary {
  margin-top: 0.35rem;
}

.page-demo .c-details__skip,
.page-demo .c-details__fill {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-demo .c-details__fill {
  color: var(--orange);
  text-decoration: none;
  font-family: var(--font-display);
}

.page-demo .c-details__fill.is-hot {
  outline: none;
  animation: none;
}

.page-demo .is-shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.page-demo .is-hot {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  animation: demo-hot 1.35s ease-in-out infinite;
}

.page-demo [data-drum="money-major"].is-hot,
.page-demo [data-drum="funds-major"].is-hot {
  outline: none;
  animation: none;
}

.page-demo .is-press {
  transform: scale(0.94);
}

@keyframes demo-hot {
  50% { outline-offset: 5px; outline-color: #ffb088; }
}

.page-demo .site-footer {
  padding-top: 1.5rem;
}

.page-demo .ph-row[hidden] {
  display: none;
}

.page-demo .ph-view[data-view="site"] {
  padding: 2.35rem 0 0;
  background: #ececee;
}

.page-demo .ph-view[data-view="mail"] {
  padding: 2.35rem 0 0;
  background: #fff;
  color: #202124;
  overflow: auto;
  scrollbar-width: none;
}

.page-demo .gmail {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  text-align: left;
}

.page-demo .gmail__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.05rem 0.7rem 0.45rem;
  padding: 0.38rem 0.5rem 0.38rem 0.65rem;
  border-radius: 999px;
  background: #f1f3f4;
}

.page-demo .gmail__mark {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-demo .gmail__top p {
  flex: 1;
  margin: 0;
  color: #5f6368;
  font-size: 14px;
  font-weight: 650;
}

.page-demo .gmail__me {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.page-demo .gmail__row {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid #e8eaed;
  background: #e8f0fe;
}

.page-demo .gmail__who {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #188038;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.page-demo .gmail__row strong,
.page-demo .gmail__row b,
.page-demo .gmail__row small {
  display: block;
}

.page-demo .gmail__row strong {
  font-size: 14px;
}

.page-demo .gmail__row em {
  float: right;
  color: #1a73e8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.page-demo .gmail__row b {
  margin-top: 0.12rem;
  font-size: 13px;
  font-weight: 750;
}

.page-demo .gmail__row small {
  margin-top: 0.1rem;
  color: #5f6368;
  font-size: 12px;
  font-weight: 650;
}

.page-demo .gmail__event {
  margin: 0.55rem 0.85rem 0;
  padding: 0.65rem 0.85rem 0.7rem;
  border: 1px solid #dadce0;
  border-radius: 12px;
}

.page-demo .gmail__event p,
.page-demo .gmail__event strong,
.page-demo .gmail__event span {
  display: block;
}

.page-demo .gmail__event p {
  margin: 0;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
}

.page-demo .gmail__event strong {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.page-demo .gmail__event span {
  color: #3c4043;
  font-size: 13px;
  font-weight: 650;
}

.page-demo .gmail__event button {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 750;
}

.page-demo .safari {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ececee;
}

.page-demo .safari__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem 0.45rem;
}

.page-demo .safari__aa,
.page-demo .safari__reload {
  width: 1.4rem;
  flex: none;
  color: #3a3a3c;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.page-demo .safari__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1e;
  font-size: 12px;
  font-weight: 650;
}

.page-demo .safari__url svg {
  color: #8e8e93;
}

.page-demo .web {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  padding: 0.85rem 0.8rem 1.1rem;
  background: #fbf7f2;
}

.page-demo .web::-webkit-scrollbar {
  display: none;
}

.page-demo .web__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-demo .web__brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.page-demo .web__brand p {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-demo .web__login {
  margin-left: auto;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.page-demo .web-sec h2 {
  margin: 0.9rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.page-demo .web-sec[hidden] {
  display: none;
}

.page-demo .web-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0.7rem 0.75rem;
  background: #fff;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(42, 38, 34, 0.05);
}

.page-demo .web-card__tick {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid #ddd4cb;
  border-radius: 6px;
}

.page-demo .web-card.is-on .web-card__tick {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 2px #fff;
}

.page-demo .web-card__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.page-demo .web-card__main strong {
  font-family: var(--font-display);
}

.page-demo .web-card__main small,
.page-demo .web-card__price {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-demo .cal {
  padding: 0.65rem 0.35rem 0.45rem;
  border: 1px solid rgba(42, 38, 34, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 38, 34, 0.05);
}

.page-demo .cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  padding: 0 0.25rem;
}

.page-demo .cal__head p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.page-demo .cal__head span {
  width: 1.6rem;
  color: var(--muted);
  font-size: 1.25rem;
  text-align: center;
}

.page-demo .cal__week,
.page-demo .cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.page-demo .cal__week {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.page-demo .cal-day {
  height: 30px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.page-demo .cal-day.is-off {
  color: #c4b8ae;
}

.page-demo .cal-day.is-today:not(.is-on) {
  color: var(--orange);
  box-shadow: inset 0 0 0 1.5px var(--orange);
}

.page-demo .cal-day.is-on {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}

.page-demo .web-hint {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-demo .web-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-demo .web-slots button {
  min-width: 4.3rem;
  padding: 0.48rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo .web-slots button.is-picked {
  background: var(--orange);
  color: #fff;
}

.page-demo .web-fields {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.page-demo .web-fields p {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.page-demo .web-fields p:last-child {
  border-bottom: 0;
}

.page-demo .web-fields span,
.page-demo .web-summary span {
  color: var(--muted);
  font-weight: 700;
}

.page-demo .web-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.75rem 0;
  font-weight: 800;
}

.page-demo .web-sec .ph-primary {
  margin-top: 0.2rem;
}

.page-demo .safari__tools {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  height: 3.15rem;
  padding: 0 0.4rem 0.7rem;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: #3a3a3c;
}

.page-demo .safari__tools button,
.page-demo .safari__tools span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
}

.page-demo .safari__tools button:disabled {
  opacity: 0.28;
}

.page-demo .safari__tools i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.page-demo .bk-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.page-demo .bk-label {
  margin: 0.15rem 0 0.4rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-demo .bk-choice,
.page-demo .bk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.8rem 0.85rem;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.page-demo .bk-choice strong,
.page-demo .bk-card strong {
  display: block;
  font-family: var(--font-display);
}

.page-demo .bk-choice span,
.page-demo .bk-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-demo .bk-day {
  margin-bottom: 0.4rem;
}

.page-demo .bk-cal {
  margin-top: 0.1rem;
  padding: 0.4rem 0.4rem 0.42rem;
  border-radius: 16px;
  background: #141414;
  color: #fff;
}

.page-demo .bk-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.28rem;
}

.page-demo .bk-cal__head p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-demo .bk-cal__head span {
  width: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  text-align: center;
}

.page-demo .bk-cal__week,
.page-demo .bk-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.18rem;
  text-align: center;
}

.page-demo .bk-cal__week {
  margin-bottom: 0.18rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 800;
}

.page-demo .bk-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 1.52rem;
  border-radius: 8px;
  background: #2c2c2c;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.page-demo .bk-date[data-n] {
  background: #f3e6dc;
  color: #2a2622;
}

.page-demo .bk-date[data-n]::after,
.page-demo .bk-date.is-booked::after {
  content: attr(data-n);
  margin-top: 1px;
  min-width: 0.7rem;
  padding: 0 0.12rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  line-height: 1.15;
}

.page-demo .bk-date.is-today {
  background: var(--orange);
  color: #fff;
}

.page-demo .bk-date.is-today::after {
  background: #fff;
  color: var(--orange);
}

.page-demo .bk-date.is-booked {
  box-shadow: inset 0 0 0 1.5px #fff;
}

.page-demo .bk-date.is-booked::after {
  content: "1";
}

.page-demo .bk-time {
  margin-top: 0.4rem;
}

.page-demo .bk-time__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.page-demo .bk-time__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.page-demo .bk-time__head p,
.page-demo .bk-next p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.page-demo .bk-add {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-demo .bk-line {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.page-demo .bk-line li {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-top: 1px solid var(--line);
}

.page-demo .bk-line li:first-child {
  border-top: 0;
}

.page-demo .bk-line time {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-demo .bk-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.1;
}

.page-demo .bk-line em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.page-demo .bk-line .is-open span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-demo .bk-line .is-booked {
  background: rgba(241, 90, 36, 0.1);
  box-shadow: inset 3px 0 0 var(--orange);
}

.page-demo .bk-line .is-now {
  display: block;
  min-height: 0;
  padding: 0.16rem 0.55rem;
  background: #fff;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-demo .bk-next {
  margin-top: 0.32rem;
}

.page-demo .bk-next[hidden] {
  display: none;
}

.page-demo .bk-next p {
  margin-bottom: 0.25rem;
}

.page-demo .bk-line .is-new {
  animation: ph-in 0.34s ease;
}

.page-demo .staff-push {
  position: absolute;
  z-index: 7;
  top: 2.55rem;
  left: 0.55rem;
  right: 0.55rem;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.16);
}

.page-demo .staff-push[hidden] {
  display: none;
}

.page-demo .staff-push:not([hidden]) {
  display: flex;
}

.page-demo .staff-push.is-on {
  animation: push-in 0.45s ease;
}

.page-demo .device.has-push .ph-view[data-view="diary"].is-on {
  padding-top: 7.1rem;
}

@keyframes push-in {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

.page-demo .staff-push > span {
  flex: 1;
  min-width: 0;
}

.page-demo .staff-push img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

.page-demo .staff-push strong {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 13px;
}

.page-demo .staff-push em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
}

.page-demo .staff-push p {
  margin: 0.12rem 0 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.page-demo .staff-push p + p {
  margin-top: 0.05rem;
  font-weight: 650;
  color: var(--muted);
}

.page-demo .bk-done {
  margin: auto 0;
  text-align: center;
}

.page-demo .bk-done__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.page-demo .bk-done p:last-child {
  margin: 0.7rem auto 0;
  max-width: 24ch;
  color: var(--muted);
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .page-demo .staff-push.is-on,
  .page-demo.is-playing .demo-tabs button[aria-selected="true"]::before {
    animation: none;
  }
}

@media (max-width: 860px) {
  .page-demo .demo-stage {
    flex-direction: column;
    align-items: center;
  }

  .page-demo .demo-flow {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-demo .ph__screen {
    height: 580px;
  }
}

@media (max-height: 900px) {
  .page-demo .ph__screen {
    height: 560px;
  }

  .page-demo .pass-qr,
  .page-demo .ph-qr {
    width: 132px;
  }

  .page-demo .pass__stat strong {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-demo .ph-view.is-on,
  .page-demo .is-hot,
  .page-demo .ph-finder__line,
  .page-demo .beam path,
  .page-demo .demo-stage.is-linking [data-beam],
  .page-demo #demo-flow-packets,
  .page-demo .is-pulse,
  .page-demo .is-pulse::after,
  .page-demo .device.is-active .device__frame,
  .page-demo .pass-floater.is-on,
  .page-demo .pass.is-punch .pass-punch__floater.is-on,
  .page-demo .ph-row.is-new,
  .page-demo .ph-check circle,
  .page-demo .ph-check path {
    animation: none;
  }

  .page-demo .ph-check circle,
  .page-demo .ph-check path {
    stroke-dashoffset: 0;
  }

  .page-demo .ph-finder__line {
    top: 50%;
  }

  .page-demo .device.is-active .device__frame {
    box-shadow:
      0 28px 50px rgba(18, 18, 18, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 2px rgba(241, 90, 36, 0.65);
  }
}

/* Recording stage. The orange edge is the Cmd+Shift+5 selection. */
body.page-promo {
  background: #141414;
}

body.page-promo .site-header,
body.page-promo .site-footer {
  display: none;
}

body.page-promo .inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-promo .demo-panel {
  background: transparent;
  margin: 0;
  padding: 0.85rem 0 1rem;
}

body.page-promo .promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 auto 0.85rem;
  max-width: 1080px;
  padding: 0 1rem;
}

body.page-promo .promo-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

body.page-promo .promo-modes button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.1;
  padding: 0.38rem 0.78rem 0.32rem;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

body.page-promo .promo-modes button small {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

body.page-promo .promo-modes button[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

body.page-promo .promo-modes button[aria-pressed="true"] small {
  opacity: 0.92;
}

body.page-promo .promo-title-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

body.page-promo .promo-title-field input {
  width: min(16rem, 42vw);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.page-promo .promo-title-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body.page-promo .promo-title-field input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: rgba(255, 255, 255, 0.45);
}

body.page-promo .promo-size {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

body.page-promo .demo-dots i {
  background: rgba(255, 255, 255, 0.28);
}

body.page-promo .promo-frame {
  position: relative;
  isolation: isolate;
  container-type: size;
  margin: 0.35rem auto 0;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 0 0 3px #f15a24;
}

.promo-finish {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.promo-finish__filters {
  position: absolute;
  width: 0;
  height: 0;
}

body.page-promo .promo-frame[data-bg="blank"] .promo-finish__bloom,
body.page-promo .promo-frame[data-bg="blank"] .promo-finish__spec,
body.page-promo .promo-frame[data-bg="blank"] .promo-finish__coat,
body.page-promo .promo-frame[data-bg="blank"] .promo-finish__grain {
  display: none;
}

body.page-promo .promo-frame[data-bg="black"] {
  background:
    radial-gradient(ellipse 80% 28% at 50% -12%, rgba(255, 255, 255, 0.045), transparent 48%),
    linear-gradient(180deg, #101010 0%, #070707 50%, #030303 100%);
  box-shadow: 0 0 0 3px #f15a24;
}

body.page-promo .promo-frame[data-bg="orange"] {
  background:
    radial-gradient(ellipse 80% 28% at 50% -12%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(180deg, #c2410c 0%, #9a3412 52%, #4a1608 100%);
  box-shadow: 0 0 0 3px #fff;
}

.promo-finish__bloom i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(58px);
  mix-blend-mode: screen;
}

.promo-finish__bloom i:first-child {
  width: 62%;
  height: 78%;
  left: -12%;
  top: -28%;
  background: rgba(255, 255, 255, 0.55);
  animation: promo-wash 28s ease-in-out infinite alternate;
}

.promo-finish__bloom i:last-child {
  width: 48%;
  height: 46%;
  right: -10%;
  bottom: -22%;
  background: rgba(255, 176, 120, 0.42);
  animation: promo-sheen 36s ease-in-out infinite alternate;
}

body.page-promo .promo-frame[data-bg="black"] .promo-finish__bloom i:first-child {
  background: rgba(255, 255, 255, 0.06);
}

body.page-promo .promo-frame[data-bg="black"] .promo-finish__bloom i:last-child {
  background: rgba(241, 90, 36, 0.08);
}

body.page-promo .promo-frame[data-bg="orange"] .promo-finish__bloom i:first-child {
  background: rgba(255, 220, 190, 0.12);
}

body.page-promo .promo-frame[data-bg="orange"] .promo-finish__bloom i:last-child {
  background: rgba(255, 220, 190, 0.08);
}

.promo-finish__spec {
  position: absolute;
  inset: -6%;
  background: #000;
  filter: url("#promo-spec");
  mix-blend-mode: screen;
  opacity: 0.14;
}

body.page-promo .promo-frame[data-bg="orange"] .promo-finish__spec {
  opacity: 0.1;
}

.promo-finish__coat {
  position: absolute;
  inset: -30% -55%;
  background: linear-gradient(
    112deg,
    transparent 32%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.1) 48.5%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.1) 51.5%,
    rgba(255, 255, 255, 0.02) 58%,
    transparent 70%
  );
  filter: url("#promo-coat");
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: promo-coat 24s ease-in-out infinite alternate;
}

.promo-finish__coat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 44%,
    rgba(255, 255, 255, 0.12) 49.6%,
    rgba(255, 255, 255, 0) 52%
  );
  transform: translate3d(7%, 2%, 0);
}

body.page-promo .promo-frame[data-bg="orange"] .promo-finish__coat {
  opacity: 0.18;
}

.promo-finish__grain {
  position: absolute;
  inset: -2%;
  background: #808080;
  filter: url("#promo-grain");
  mix-blend-mode: overlay;
  opacity: 0.04;
}

body.page-promo .promo-frame[data-bg="orange"] .promo-finish__grain {
  opacity: 0.03;
}

@keyframes promo-sheen {
  from { transform: translate3d(-8%, 4%, 0); }
  to { transform: translate3d(10%, -6%, 0); }
}

@keyframes promo-coat {
  from { transform: translate3d(-12%, -3%, 0); }
  to { transform: translate3d(12%, 4%, 0); }
}

@keyframes promo-wash {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(12%, 8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-finish__bloom i,
  .promo-finish__coat,
  .promo-title__demo,
  .promo-outro__mark,
  .promo-title__mark,
  .promo-title__name,
  .promo-title__strap {
    animation: none;
  }
}

body.page-promo .promo-frame[data-bg="black"] figcaption em,
body.page-promo .promo-frame[data-bg="orange"] figcaption,
body.page-promo .promo-frame[data-bg="orange"] figcaption span,
body.page-promo .promo-frame[data-bg="orange"] figcaption em {
  color: #fff;
}

body.page-promo .promo-frame .demo-stage {
  z-index: 1;
}

.promo-outro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  background: #141414;
  color: #fff;
  text-align: center;
  padding: 10%;
}

body.page-promo .promo-frame .promo-outro {
  background: transparent;
}

body.page-promo .promo-frame:has(.promo-outro:not([hidden])) .demo-stage,
body.page-promo .promo-frame:has(.promo-title:not([hidden])) .demo-stage {
  visibility: hidden;
}

body.page-promo .promo-frame[data-bg="blank"] .promo-outro,
body.page-promo .promo-frame[data-bg="blank"] .promo-outro p.promo-outro__strap,
body.page-promo .promo-frame[data-bg="blank"] .promo-title,
body.page-promo .promo-frame[data-bg="blank"] .promo-title p,
body.page-promo .promo-frame[data-bg="blank"] .promo-title__demo {
  color: var(--ink);
}

body.page-promo .promo-frame[data-bg="orange"] .promo-outro span {
  color: #fff;
}

.promo-outro__mark {
  width: clamp(92px, 16cqi, 156px);
  height: auto;
  transform-origin: 50% 100%;
  animation: mascot-drop 1.25s both;
}

@keyframes mascot-drop {
  0% {
    transform: translateY(-320px) rotate(-8deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.95, 0.55);
  }
  52% {
    transform: translateY(0) rotate(0deg) scale(1.14, 0.78);
    animation-timing-function: cubic-bezier(0.15, 0.7, 0.35, 1);
  }
  70% {
    transform: translateY(-42px) rotate(3deg) scale(0.96, 1.08);
    animation-timing-function: cubic-bezier(0.45, 0, 0.85, 0.6);
  }
  84% {
    transform: translateY(0) rotate(0deg) scale(1.06, 0.9);
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  }
  93% {
    transform: translateY(-12px) scale(0.99, 1.03);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.promo-outro[hidden] {
  display: none;
}

.promo-title {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  background: #141414;
  color: #fff;
  text-align: center;
  padding: 10%;
}

body.page-promo .promo-frame .promo-title {
  background: transparent;
}

.promo-title[hidden] {
  display: none;
}

.promo-title__demo {
  position: absolute;
  top: clamp(1.1rem, 6.5cqi, 3.25rem);
  left: 6%;
  right: 6%;
  margin: 0;
  z-index: 2;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.85rem, 12cqi, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
  animation: title-demo-in 1s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}

.promo-title__demo[hidden] {
  display: none;
}

.promo-title__mark {
  width: clamp(92px, 16cqi, 156px);
  height: auto;
  animation: title-mascot 4s both;
}

.promo-title.is-held .promo-title__demo,
.promo-title.is-held .promo-title__mark,
.promo-title.is-held .promo-title__name,
.promo-title.is-held .promo-title__strap {
  animation-play-state: paused;
}

@keyframes title-demo-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.promo-title__name,
.promo-title__strap {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

.promo-title__name {
  font-weight: 750;
  font-size: clamp(1.35rem, 9.5cqi, 5rem);
  line-height: 0.92;
  white-space: nowrap;
  animation: title-name 4s both;
}

.promo-title__name span {
  color: var(--orange);
}

body.page-promo .promo-frame[data-bg="orange"] .promo-title__name span {
  color: #fff;
}

.promo-title__strap {
  font-weight: 560;
  font-size: clamp(1.05rem, 3.4cqi, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  animation: title-strap 4s both;
}

@keyframes title-mascot {
  0% {
    transform: translateX(-80%);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.3, 1);
  }
  16% {
    transform: none;
    opacity: 1;
  }
  62% {
    transform: none;
    opacity: 1;
    animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0.16);
  }
  88% {
    transform: translateX(-90%);
    opacity: 0;
  }
  100% {
    transform: translateX(-90%);
    opacity: 0;
  }
}

@keyframes title-name {
  0%,
  12% {
    transform: translateX(80%);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.3, 1);
  }
  32% {
    transform: none;
    opacity: 1;
  }
  62% {
    transform: none;
    opacity: 1;
    animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0.16);
  }
  88% {
    transform: translateX(-90%);
    opacity: 0;
  }
  100% {
    transform: translateX(-90%);
    opacity: 0;
  }
}

@keyframes title-strap {
  0%,
  24% {
    transform: translateY(16px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.3, 1);
  }
  42% {
    transform: none;
    opacity: 1;
  }
  62% {
    transform: none;
    opacity: 1;
    animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0.16);
  }
  88% {
    transform: translateX(-90%);
    opacity: 0;
  }
  100% {
    transform: translateX(-90%);
    opacity: 0;
  }
}

.promo-outro p {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.promo-outro p.promo-outro__title {
  max-width: none;
}

.promo-outro span {
  display: block;
  margin-top: 0.42em;
  color: var(--orange);
  font-size: 0.46em;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.promo-outro p.promo-outro__strap {
  margin: 0.2rem 0 0;
  max-width: none;
  font-size: clamp(1.05rem, 3.4cqi, 1.55rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

body.page-promo .promo-outro p {
  font-size: clamp(2.15rem, 15cqi, 5rem);
}

body.page-promo .promo-outro p.promo-outro__strap {
  font-size: clamp(1.05rem, 3.4cqi, 1.55rem);
}

body.page-promo .promo-frame .demo-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: none;
  margin: 0;
  flex-direction: row;
  align-items: flex-start;
}

body.page-promo .promo-frame .device {
  width: 318px;
  flex: none;
}

body.page-promo .web-slots {
  flex-wrap: nowrap;
}

body.page-promo .web-slots button {
  min-width: 0;
  flex: 1;
}

body.page-promo .promo-frame .ph__screen {
  height: 612px;
}

body.page-promo .promo-frame .demo-stage.is-stacked {
  flex-direction: column;
  align-items: center;
}

body.page-promo .demo-player__line {
  color: #fff;
}

body.page-promo .demo-player__line.is-music {
  color: rgba(255, 255, 255, 0.55);
}

body.page-promo .demo-player__time {
  color: rgba(255, 255, 255, 0.72);
}

body.page-promo .demo-player__restart {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

body.page-promo .demo-player__restart:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
