/* 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 .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 .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__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 {
  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;
}

/* —— 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__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 .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 .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 .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;
  }
}

@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 .is-pulse,
  .page-demo .is-pulse::after,
  .page-demo .pass-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%;
  }
}
