/* Phone compositions (8 Nov 2026): every demo on this page has its own phone composition (.ph), laid out at its real width.
   The only rule outside the phone query hides those compositions on wider screens. */
@media (min-width: 601px) { .ph { display: none !important; } }

@media (max-width: 600px) {
  .ph-hide { display: none !important; }
  .ph { display: block; position: relative; width: 100%; max-width: 440px; margin-inline: auto; text-align: left;
    --ph-plum: #3A1E3C; --ph-acc: #5B478B; --ph-lav: #7D70CB; --ph-mute: #6E5A70; --ph-line: rgba(58, 30, 60, .12);
    --ph-field: #F4F1FA; --ph-cream: #F6F3EE;
    font-family: var(--sans); color: var(--ph-plum); -webkit-font-smoothing: antialiased; }
  .ph *, .ph *::before, .ph *::after { box-sizing: border-box; }
  :where(.ph) p { margin: 0; }
  .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .ph-tap { position: absolute; z-index: 30; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    background: rgba(108, 92, 178, .3); pointer-events: none; opacity: 0; left: 0; top: 0; }
  .ph-ppbar { display: flex; justify-content: flex-end; max-width: 440px; margin: 10px auto 0; }
  .ph-ppbar + * { margin-top: 0; }
  html body .ph-ppbar > .ph-pp { position: relative; inset: auto; right: auto; bottom: auto; top: auto; margin: 0; }
  .ph-pp { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid;
    place-items: center; background: rgba(255, 255, 255, .92); color: #3A1E3C; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(58, 30, 60, .14); }
  .ph-pp svg { width: 14px; height: 14px; }
  .ph-pp .i-play { display: none; }
  .ph-pp.is-paused .i-play { display: block; }
  .ph-pp.is-paused .i-pause { display: none; }
  .ph-pp[hidden] { display: none; }
  .ph-pp:focus-visible { outline: 2px solid #8F83D6; outline-offset: 3px; }

  /* ---------- the client's phone screen: what /f/ looks like on a phone ---------- */
  .ph-scr { position: relative; overflow: hidden; background: #FFFFFF; border-radius: 30px;
    box-shadow: 0 0 0 1px rgba(58, 30, 60, .08), 0 22px 44px -26px rgba(58, 30, 60, .45); isolation: isolate; }
  .ph-scr::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 220px at 50% 0%, color-mix(in oklch, var(--ph-acc) 10%, transparent), transparent 100%),
      linear-gradient(180deg, color-mix(in oklch, var(--ph-acc) 6%, white) 0%, #FFFFFF 280px); }
  .ph-url { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; font-size: 13px; line-height: 1;
    color: var(--ph-mute); letter-spacing: .01em; }
  .ph-url svg { width: 11px; height: 11px; flex: none; }
  .ph-prog { position: relative; height: 3px; background: rgba(58, 30, 60, .08); }
  .ph-prog > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 33%); background: var(--ph-acc); border-radius: 0 3px 3px 0; }
  .ph-rt { position: relative; padding: 18px 18px 22px; }
  .ph-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .ph-studio { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 400 16px/1.1 var(--serif); }
  .ph-studio i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 400 13px/1 var(--serif);
    font-style: normal; color: #FFFFFF; background: var(--ph-acc); }
  .ph-studio span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ph-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px var(--ph-line); font-size: 13px; line-height: 1; white-space: nowrap; flex: none; }
  .ph-pill i:not(.ka-ico) { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
  .ph-pill .ka-ico { width: 16px; height: 16px; }
  .ph-pill small { color: var(--ph-plum); }
  .ph-pill small { font-size: 13px; }
  .ph-kick { margin-top: 26px; font-size: 13px; line-height: 1.3; color: var(--ph-mute); text-align: center; }
  .ph-rule { display: block; width: 30px; height: 2px; margin: 12px auto 0; border-radius: 2px; background: var(--ph-acc); }
  .ph-q { margin-top: 14px; font: 400 27px/1.12 var(--serif); letter-spacing: -.01em; text-align: center; text-wrap: balance; color: var(--ph-plum); }
  .ph-sub { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--ph-mute); text-align: center; text-wrap: balance; }
  .ph-opts { display: grid; gap: 10px; margin-top: 22px; }
  .ph-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(58, 30, 60, .14); font-size: 16px; line-height: 1.25; color: var(--ph-plum);
    transition: box-shadow .3s ease, background-color .3s ease; cursor: pointer; }
  .ph-opt small { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; font-size: 13px; color: var(--ph-mute);
    box-shadow: inset 0 0 0 1px var(--ph-line); transition: background-color .3s ease, color .3s ease; }
  .ph-opt.is-on { background: color-mix(in oklch, var(--ph-acc) 7%, white); box-shadow: inset 0 0 0 1.5px var(--ph-acc); }
  .ph-opt.is-on small { background: var(--ph-acc); color: #FFFFFF; box-shadow: none; }
  .ph-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 24px; }
  .ph-pair > span:not(.ph-or) { display: grid; place-items: center; min-height: 84px; padding: 0 10px; border-radius: 16px; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(58, 30, 60, .14); font: 400 22px/1.1 var(--serif); text-align: center; color: var(--ph-plum);
    transition: box-shadow .3s ease, background-color .3s ease, color .3s ease; cursor: pointer; }
  .ph-pair > span.is-on { background: var(--ph-plum); color: #FFFFFF; box-shadow: none; }
  .ph-or { font-size: 13px; color: var(--ph-mute); }
  .ph-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
  .ph-back { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; color: var(--ph-plum);
    box-shadow: inset 0 0 0 1px var(--ph-line); }
  .ph-go { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--sans);
    color: #FFFFFF; background: var(--ph-acc); opacity: .45; transition: opacity .3s ease; }
  .ph-go.is-on { opacity: 1; }
  .ph-go--wide { width: 100%; opacity: 1; }

  /* the welcome screen */
  .ph-wel-k { margin-top: 26px; font-size: 13px; color: var(--ph-mute); }
  .ph-wel-t { margin-top: 8px; font: 400 32px/1.04 var(--serif); letter-spacing: -.015em; color: var(--ph-plum); text-wrap: balance; }
  .ph-wel-p { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--ph-mute); }
  .ph-wel-l { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.35; }
  .ph-wel-l li { display: flex; gap: 10px; align-items: baseline; }
  .ph-wel-l li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ph-acc); flex: none; transform: translateY(-2px); }
  .ph-wel-s { margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--ph-mute); }
  .ph-wel .ph-go { margin-top: 20px; }

  /* a Moodboard on a phone: two columns */
  .ph-mb-t { margin-top: 22px; font: 400 26px/1.1 var(--serif); letter-spacing: -.01em; color: var(--ph-plum); }
  .ph-mb-s { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ph-mute); }
  .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .ph-grid figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--ph-field); }
  .ph-grid figure.is-tall { grid-row: span 2; aspect-ratio: auto; }
  .ph-badge { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ph-acc); color: #FFFFFF; box-shadow: 0 2px 8px rgba(30, 20, 40, .25); }
  .ph-badge svg { width: 14px; height: 14px; }
  .ph-badge.is-down { background: #FFFFFF; color: var(--ph-plum); }
  .ph-badge.is-down svg { transform: rotate(180deg); }
  .ph-tray { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px;
    background: var(--ph-field); font-size: 14px; line-height: 1.3; }
  .ph-tray b { font-weight: 500; }
  .ph-tray span { color: var(--ph-mute); }

  /* the rating sheet that rises over the board */
  .ph-dim { position: absolute; inset: 0; z-index: 5; background: rgba(30, 20, 40, .55); opacity: 0; pointer-events: none; }
  .ph-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 20px 20px; border-radius: 24px 24px 0 0; background: #FFFFFF;
    transform: translateY(105%); box-shadow: 0 -12px 30px -18px rgba(30, 20, 40, .5); visibility: hidden; }
  .ph-sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: rgba(58, 30, 60, .16); }
  .ph-sheet-p { font-size: 16px; line-height: 1.3; font-weight: 500; }
  .ph-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
  .ph-nums span { display: grid; place-items: center; height: 42px; border-radius: 999px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--ph-line);
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
  .ph-nums span.is-on { background: var(--ph-acc); color: #FFFFFF; box-shadow: none; }
  .ph-lab { margin-top: 10px; font-size: 14px; color: var(--ph-mute); min-height: 18px; }
  .ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .ph-chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--ph-line); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
  .ph-chips span.is-on { background: var(--ph-plum); color: #FFFFFF; box-shadow: none; }

  /* two directions, one above the other */
  .ph-dirs { display: grid; gap: 10px; margin-top: 18px; }
  .ph-dir { position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px; padding: 8px; border-radius: 18px;
    background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(58, 30, 60, .14); transition: box-shadow .3s ease, background-color .3s ease; cursor: pointer; }
  .ph-dir figure { margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
  .ph-dir b { display: block; font: 400 20px/1.1 var(--serif); }
  .ph-dir span { display: block; margin-top: 6px; font-size: 14px; color: var(--ph-mute); }
  .ph-dir.is-on { background: color-mix(in oklch, var(--ph-acc) 7%, white); box-shadow: inset 0 0 0 1.5px var(--ph-acc); }
  .ph-dir.is-on span { color: var(--ph-acc); }

  /* ---------- the studio's side, as Encore shows it on a phone: plain cards ---------- */
  .ph-card { position: relative; background: #FFFFFF; border-radius: 24px; padding: 20px;
    box-shadow: 0 0 0 1px rgba(58, 30, 60, .07), 0 18px 40px -26px rgba(58, 30, 60, .4); }
  .ph-k { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; color: var(--ph-mute); }
  .ph-k .ka-ico { width: 20px; height: 20px; }
  .ph-t { margin-top: 8px; font: 400 26px/1.08 var(--serif); letter-spacing: -.01em; color: var(--ph-plum); text-wrap: balance; }
  .ph-meta { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ph-mute); }
  .ph-nums2 { display: flex; gap: 28px; margin-top: 16px; }
  .ph-nums2 span { display: grid; gap: 2px; font-size: 14px; color: var(--ph-mute); }
  .ph-nums2 b { font: 400 32px/1 var(--serif); color: var(--ph-plum); }
  .ph-rows { margin-top: 14px; }
  .ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 0;
    box-shadow: inset 0 1px 0 var(--ph-line); font-size: 15px; line-height: 1.3; }
  .ph-row small { font-size: 13px; color: var(--ph-mute); white-space: nowrap; }
  .ph-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--sans);
    color: #FFFFFF; background: var(--ph-plum); }
  .ph-btn--q { color: var(--ph-plum); background: transparent; box-shadow: inset 0 0 0 1px var(--ph-line); }
  .ph-cue { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
}

@media (max-width: 600px) {
  /* The try-it Form is the client's side, and the client's side is a phone screen already: laid out at the column's width,
     at the runtime's own sizes, nothing scaled. */
  .x-vis[data-ph-off] { height: auto !important; overflow: visible !important; }
  .x-vis[data-ph-off] .x-try { width: 100% !important; transform: none !important; height: auto !important; min-height: 0; border-radius: 30px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(58, 30, 60, .08), 0 22px 44px -26px rgba(30, 15, 35, .55); background: #FFFFFF; }
  .x-vis[data-ph-off] .x-try .ka-chrome { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .x-vis[data-ph-off] .x-try .ka-chrome .dots, .x-vis[data-ph-off] .x-try .ka-chrome > span:last-child { display: none; }
  .x-vis[data-ph-off] .x-try .ka-url { width: auto; max-width: none; height: auto; padding: 0; margin: 0; background: transparent; box-shadow: none; border: 0;
    font-size: 13px; line-height: 1; color: #6E5A70; overflow: visible; }
  .x-vis[data-ph-off] .x-try .rv { flex: none; height: auto; overflow: visible; }
  .x-vis[data-ph-off] .x-try .rv-prog { top: 0; }
  .x-vis[data-ph-off] .x-try .rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 0; min-height: 0; }
  .x-vis[data-ph-off] .x-try .rv-studio { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; min-width: 0; }
  .x-vis[data-ph-off] .x-try .rv-studio i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; line-height: 1; }
  .x-vis[data-ph-off] .x-try .rv-pill { height: 30px; padding: 0 12px; font-size: 13px; flex: none; }
  .x-vis[data-ph-off] .x-try .rv-pill small { font-size: 13px; }
  .x-vis[data-ph-off] .x-try .rv-saved { display: none; }
  .x-vis[data-ph-off] .x-try .hl-steps { display: grid; }
  .x-vis[data-ph-off] .x-try .hh-step { grid-area: 1 / 1; min-height: 0; padding: 22px 18px 24px; }
  .x-vis[data-ph-off] .x-try .rv-kick { font-size: 13px; }
  .x-vis[data-ph-off] .x-try .rv-qt { font-size: 27px; line-height: 1.12; text-wrap: balance; }
  .x-vis[data-ph-off] .x-try .ka-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; width: 100%; margin-top: 24px; }
  .x-vis[data-ph-off] .x-try .ka-pair .ka-card { min-width: 0; width: auto; min-height: 84px; padding: 0 10px; display: grid; place-items: center; font-size: 22px;
    line-height: 1.1; text-align: center; border-radius: 16px; }
  .x-vis[data-ph-off] .x-try .ka-or { font-size: 13px; }
  .x-vis[data-ph-off] .x-try .ka-ballot { width: 100%; margin-top: 20px; }
  .x-vis[data-ph-off] .x-try .ka-ballot span { font-size: 16px; min-height: 52px; }
  .x-vis[data-ph-off] .x-try .ka-ballot small { font-size: 13px; }
  .x-vis[data-ph-off] .x-try .rv-foot { width: 100%; margin-top: 22px; }
  .x-vis[data-ph-off] .x-try .rv-back, .x-vis[data-ph-off] .x-try .rv-cont { font-size: 15px; height: 44px; padding: 0 20px; display: inline-flex; align-items: center; }
  .x-vis[data-ph-off] .x-try .rv-dots { margin-top: 16px; }
  .x-vis[data-ph-off] .x-try .rv-dots span { font-size: 13px; }
  .x-vis[data-ph-off] .x-try .x-done-list li { font-size: 16px; }
}

/* ---------- this page ---------- */
