.pd { padding-top: 12px; padding-bottom: 70px; }
.pd h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.pd .lead { color: var(--muted); margin-top: 14px; }
.pd-say { min-height: 3.2em; margin: 0; font-family: "Rubik", sans-serif; font-weight:600; font-size: clamp(1.25rem, 3.4vw, 1.7rem); letter-spacing: -0.01em; }
.pd-say small { display: block; font-family: "Rubik", system-ui, sans-serif; font-weight:500; font-size: 0.95rem; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pd-tabs { display: none; gap: 8px; margin-bottom: 14px; }
.pd-tabs button { flex: 1; font: inherit; font-weight:600; font-size: 0.95rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; cursor: pointer; }
.pd-tabs button[aria-selected="true"] { color: #ffffff; background: var(--lilac); border-color: var(--lilac); }
.pd-stage { display: flex; gap: clamp(14px, 3vw, 36px); justify-content: center; align-items: flex-start; margin-top: 22px; }
.pd-mid { flex: 0 1 clamp(170px, 22vw, 270px); align-self: center; display: flex; flex-direction: column; gap: 22px; }
.pd-mid .pd-say { min-height: 6.5em; font-size: clamp(1.05rem, 1.9vw, 1.45rem); }
.pd-phone { margin: 0; width: min(330px, 30vw); }
.pd-phone figcaption { text-align: center; font-weight:600; color: var(--muted); margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; transition: color .3s; }
.pd-phone.on figcaption { color: var(--ink); }
.pd-frame { background: #05040b; border-radius: 34px; padding: 9px; border: 2px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.pd-phone.on .pd-frame { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(91,132,196,.18); }
.pd-screen { position: relative; border-radius: 26px; overflow: hidden; container-type: inline-size; aspect-ratio: 540 / 1176; background: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pd-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pd-hit { position: absolute; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 6cqw; -webkit-tap-highlight-color: transparent; }
.pd-hit:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.pd-hint { position: absolute; pointer-events: none; border-radius: 6cqw; box-shadow: 0 0 0 0 rgba(255,255,255,.9); animation: pdPulse 1.5s ease-out infinite; }
.pd-hint[hidden] { display: none; }
@keyframes pdPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.95), 0 0 0 0 rgba(91,132,196,.8); } 100% { box-shadow: 0 0 0 4cqw rgba(255,255,255,0), 0 0 0 7cqw rgba(91,132,196,0); } }
.pd-ring { position: absolute; border: 0.9cqw solid #c43d78; border-radius: 50%; pointer-events: none; }
.pd-track { position: absolute; background: #eccfb1; border: 0.5cqw solid #d9af89; border-radius: 99px; touch-action: none; }
.pd-knob { position: absolute; left: 31.7%; top: 7%; bottom: 7%; width: 36.6%; z-index: 2; display: flex; align-items: center; justify-content: center; color: #fff; font-weight:600; font-size: 4.6cqw; letter-spacing: 0.02em; border-radius: 99px; background: linear-gradient(#ba6524, #a85312); cursor: grab; touch-action: none; font-family: "Rubik", system-ui, sans-serif; }
.pd-knob:active { cursor: grabbing; }
.pd-knob.back { transition: transform .25s ease; }
.pd-toast { position: absolute; left: 50%; top: 37%; transform: translateX(-50%); background: rgba(70,76,84,.94); color: #fff; font-weight:500; font-size: 3.8cqw; padding: 2.4cqw 5cqw; border-radius: 99px; white-space: nowrap; animation: pdIn .35s ease both; }
.pd-sentpill { position: absolute; left: 30.4%; top: 25.1%; width: 39.2%; height: 4.7%; background: #6b757f; color: #fff; font-weight:500; font-size: 3.7cqw; display: flex; align-items: center; justify-content: center; border-radius: 99px; white-space: nowrap; }
.pd-sentpill[hidden], .pd-toast[hidden] { display: none; }
.pd-screen.buzz { animation: pdBuzz .5s ease; }
@keyframes pdBuzz { 0%,100% { transform: translateX(0); } 15% { transform: translateX(-2cqw); } 30% { transform: translateX(2cqw); } 45% { transform: translateX(-1.5cqw); } 60% { transform: translateX(1.5cqw); } 80% { transform: translateX(-.5cqw); } }
@keyframes pdIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%); } }
.pd-img.fade { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.pd-img.fade.in { opacity: 1; }
.pd-foot { text-align: center; margin-top: 34px; }
.pd-foot .btn { border: 0; font: inherit; font-weight:600; cursor: pointer; margin-bottom: 14px; }
@media (max-width: 760px) {
  .pd-tabs { display: flex; }
  .pd-stage { flex-direction: column; align-items: center; gap: 12px; }
  .pd-mid { order: -1; flex: none; width: 100%; gap: 10px; }
  .pd-mid .pd-say { min-height: 3.6em; font-size: clamp(1.15rem, 4.4vw, 1.5rem); }
  .pd-mid .pd-steps { flex-direction: row; }
  .pd-stage .pd-phone { display: none; width: min(340px, 86vw); margin: 0 auto; }
  .pd-stage[data-view="you"] #phoneYou, .pd-stage[data-view="maya"] #phoneMaya { display: block; }
  .pd-phone figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pd-hint, .pd-screen.buzz, .pd-toast, .pd-ripples i, .pd-arrow { animation: none; } .pd-img.fade { transition: none; } }

.pd-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 22px 0 0; counter-reset: st; flex-wrap: wrap; }
.pd-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; font-weight:600; font-size: 0.85rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; transition: all .3s; }
.pd-steps li::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.78rem; }
.pd-steps li.on { color: #ffffff; background: var(--lilac); border-color: var(--lilac); }
.pd-steps li.on::before { background: #ffffff; color: var(--lilac); }
.pd-steps li.done { color: var(--ink); }
.pd-steps li.done::before { content: "\2713"; background: var(--green); color: #0f0c1c; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-52%); z-index: 1; font-weight:600; font-size: 9cqw; line-height: 1; color: #a85312; pointer-events: none; opacity: .55; }
.pd-arrow.l { left: 4%; animation: pdNudgeL 1.4s ease-in-out infinite; }
.pd-arrow.r { right: 4%; }
@keyframes pdNudgeL { 0%, 100% { transform: translate(0, -52%); opacity: .5; } 50% { transform: translate(-1.6cqw, -52%); opacity: 1; } }
.pd-ripples { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.pd-ripples[hidden] { display: none; }
.pd-ripples i { position: absolute; left: var(--x); top: var(--y); width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; background: rgba(70, 105, 230, .34); transform: rotate(45deg) scale(.1); opacity: 0; animation: pdRip 3.4s ease-out infinite; }
.pd-ripples i:nth-child(2) { animation-delay: 1.7s; }
@keyframes pdRip { 0% { transform: rotate(45deg) scale(.1); opacity: .95; } 55% { opacity: .55; } 100% { transform: rotate(45deg) scale(var(--max, 5)); opacity: 0; } }
.pd-foot .pd-next { background: transparent; color: var(--ink); border: 2px solid var(--lilac); margin-right: 10px; }
.pd-foot .pd-next:hover { background: rgba(91,132,196,.15); }
[hidden] { display: none !important; }

.pd-mtrack { position: absolute; background: #f8e4ef; border-radius: 99px; touch-action: none; }
.pd-mtrack span { position: absolute; top: 50%; transform: translateY(-50%); font-weight:600; font-size: 4.3cqw; color: #c4467f; font-family: "Rubik", system-ui, sans-serif; pointer-events: none; }
.pd-mtrack .l { left: 6%; } .pd-mtrack .r { right: 6%; }
.pd-mknob { position: absolute; left: 34.35%; top: 7%; bottom: 7%; width: 31.3%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight:600; font-size: 4.2cqw; border-radius: 99px; background: linear-gradient(#d972a1, #ca558a); cursor: grab; touch-action: none; font-family: "Rubik", system-ui, sans-serif; z-index: 2; }
.pd-mknob:active { cursor: grabbing; } .pd-mknob.back { transition: transform .25s ease; }
.pd-mtrack.hint { animation: pdMGlow 1.6s ease-in-out infinite; }
@keyframes pdMGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(196,70,127,0); } 50% { box-shadow: 0 0 0 1.6cqw rgba(196,70,127,.35); } }

/* dim the phone that is not the one to watch */

/* picked: tint the Pulse half like the app, fade the other people */
.pd-pulsehi { position: absolute; pointer-events: none; border-radius: 5cqw; background: #f4dcc0; mix-blend-mode: multiply; }
.pd-fade { position: absolute; pointer-events: none; background: rgba(255, 250, 243, .66); border-radius: 3cqw; }
.pd-fade[hidden] { display: none; }
.pd-hint.pd-round { border-radius: 50%; }
.pd-dim { position: absolute; pointer-events: none; border-radius: 4cqw; background: rgba(255, 250, 240, .72); }
.pd-pulsehi[hidden], .pd-dim[hidden] { display: none; }
.pd-lbl { position: absolute; top: 50%; transform: translateY(-50%); font-weight:600; font-size: 3.5cqw; color: #a85312; pointer-events: none; font-family: "Rubik", system-ui, sans-serif; }
.pd-lbl.l { left: 12%; } .pd-lbl.r { right: 13%; }

/* vertical checklist between the phones */
.pd-mid .pd-steps { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin: 0; }
.pd-mid .pd-steps li { font-size: 0.95rem; padding: 8px 14px 8px 8px; }
.pd-mid .pd-steps li.on { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(91,132,196,.2); }
.pd-mid .pd-steps li:not(.on):not(.done) { opacity: .6; }
@media (max-width: 760px) { .pd-mid .pd-steps { flex-direction: row; flex-wrap: wrap; gap: 6px; } .pd-mid .pd-steps li { font-size: 0.85rem; padding: 6px 12px 6px 6px; } .pd-mid .pd-steps li.on { transform: none; } }

/* stronger hint on the Stop buttons */
#hintStop, #hintYes { border: 0.9cqw solid #fff; box-shadow: 0 0 3cqw 1cqw rgba(91,132,196,.9); animation: pdPulseStrong 1.1s ease-out infinite; }
@keyframes pdPulseStrong {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,1), 0 0 0 0 rgba(91,132,196,.95), 0 0 3cqw 1cqw rgba(91,132,196,.9); }
  100% { box-shadow: 0 0 0 5cqw rgba(255,255,255,0), 0 0 0 11cqw rgba(91,132,196,0), 0 0 3cqw 1cqw rgba(91,132,196,.9); }
}
@media (prefers-reduced-motion: reduce) { #hintStop, #hintYes { animation: none; } }

/* both phones stay fully visible; the active one gets a thick lilac outline */
.pd-phone .pd-frame { transition: border-color .3s, box-shadow .3s; }
.pd-phone.on .pd-frame { border-color: var(--lilac); box-shadow: 0 0 0 5px var(--lilac), 0 0 0 12px rgba(91,132,196,.28); }
.pd-phone:not(.on) .pd-frame { border-color: var(--line); }

/* bouncing pointer on whatever to tap or swipe */
.pd-pointer { position: absolute; z-index: 6; width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw; font-size: 11cqw; line-height: 13cqw; text-align: center; pointer-events: none; filter: drop-shadow(0 .6cqw .8cqw rgba(0,0,0,.45)); }
.pd-pointer[hidden] { display: none; }
.pd-pointer.up { animation: pdBobUp .9s ease-in-out infinite; }
.pd-pointer.down { animation: pdBobDown .9s ease-in-out infinite; }
.pd-pointer.left { animation: pdBobLeft 1.2s ease-in-out infinite; }
@keyframes pdBobUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5cqw); } }
@keyframes pdBobDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3.5cqw); } }
@keyframes pdBobLeft { 0% { transform: translateX(3cqw); opacity: 1; } 70% { transform: translateX(-14cqw); opacity: 1; } 100% { transform: translateX(-14cqw); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pd-pointer { animation: none !important; } }

/* subtle dim on the phone that is not active */
.pd-phone { transition: opacity .45s ease, filter .45s ease; }
.pd-phone:not(.on) { opacity: .8; filter: brightness(.82) saturate(.85); }
@media (prefers-reduced-motion: reduce) { .pd-phone { transition: none; } }

.pd .pd-who { margin-top: 6px; font-size: 1rem; }
.pd .pd-who strong { color: var(--ink); }
.pd-ctl { display: flex; gap: 8px; }
.pd-ctl button { font: inherit; font-weight:600; font-size: 0.85rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pd-ctl button:hover:not(:disabled) { color: var(--ink); border-color: var(--lilac); }
.pd-ctl button:disabled { opacity: .35; cursor: default; }
.pd-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.pd-foot [hidden] { display: none; }
.pd-cta { margin-bottom: 14px; text-decoration: none; }
.pd-tabs button.attn { animation: pdAttn 1s ease-in-out 3; }
@keyframes pdAttn { 0%,100% { box-shadow: 0 0 0 0 rgba(91,132,196,0); } 50% { box-shadow: 0 0 0 6px rgba(91,132,196,.5); } }
@media (prefers-reduced-motion: reduce) { .pd-tabs button.attn { animation: none; } }

/* a phone that is reacting is never dimmed, even before it becomes the lit one */
.pd-phone.lit:not(.on) { opacity: 1; filter: none; }

/* Back button sits in the middle between the phones */
.pd-ctl { justify-content: center; }

/* compact top so both phones fit on one screen */
.pd-page header.top { padding: 8px 0; }
.pd-page header.top .logo { padding: 4px 10px 2px; border-radius: 10px; }
.pd-page header.top .logo img { height: 32px; }
.pd-page .pd { padding-top: 0; padding-bottom: 40px; }
.pd-page .pd h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: 0; }
.pd-page .pd .lead { margin-top: 4px; font-size: 0.98rem; max-width: none; line-height: 1.4; margin-bottom: 0; }
.pd-page .pd .pd-who { margin-top: 2px; }
.pd-page .pd-stage { margin-top: 12px; }
.pd-page .pd-phone figcaption { margin-bottom: 6px; font-size: 0.85rem; }
@media (min-width: 761px) {
  /* size the phones from the window height: header + title + labels take about 215px, the frame about 22px */
  .pd-page .pd-phone { width: clamp(210px, calc((100svh - 215px - 30px) / 2.178 + 22px), 330px); max-width: 30vw; }
}
.pd-page .pd h1 { margin-top: 8px; }

.pd-mid .pd-who { margin: 0; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.pd-mid .pd-who strong { color: var(--ink); }
@media (min-width: 761px) { .pd-mid { align-self: flex-start; margin-top: 4px; } .pd-page .pd-phone { width: clamp(210px, calc((100svh - 195px - 30px) / 2.178 + 22px), 330px); max-width: 30vw; } }

/* nothing sits on a picture that is still fading in */
.pd-wait .pd-screen > :not(.pd-img) { visibility: hidden; }

/* keep the labels clear of the thick outline on the active phone */
.pd-page .pd-phone figcaption { margin-bottom: 20px; }
@media (min-width: 761px) { .pd-page .pd-phone { width: clamp(210px, calc((100svh - 207px - 30px) / 2.178 + 22px), 330px); max-width: 30vw; } .pd-mid { margin-top: 24px; } }

/* end of the demo: early-access button in the middle, small Play again beside Back */
.pd-mid .pd-cta { align-self: center; margin: 0; text-decoration: none; text-align: center; }
.pd-mid .pd-cta[hidden], .pd-ctl [hidden] { display: none; }

/* the hand-over between phones is a slow, smooth fade (about 0.9 s) */
.pd-phone { transition: opacity .9s ease, filter .9s ease; }
.pd-phone .pd-frame { transition: border-color .9s ease, box-shadow .9s ease; }
.pd-phone figcaption { transition: color .9s ease; }

/* store badges (Dec 1), same as the home and Plans pages */
.store{display:inline-flex;align-items:center;gap:12px;padding:9px 20px 9px 16px;border-radius:14px;background:#022847;color:#fff;text-decoration:none;min-width:180px;box-shadow:0 6px 16px rgba(2,40,71,.22);transition:transform .2s ease}
.store:hover{background:#0B3A66;transform:translateY(-2px)}
.store[hidden]{display:none}
.store svg{width:26px;height:26px;flex:none}
.store span,.store small,.store b{color:#fff!important;text-align:left}
.store span{display:block}
.store small{display:block;font-size:.7rem;opacity:.85;line-height:1.1}
.store b{display:block;font-family:"Rubik",sans-serif;font-weight:500;font-size:1.15rem;line-height:1.15}

/* phones: one tidy row of steps (only the current step shows its name), smaller phone switch, less crowding */
@media (max-width: 760px) {
  .pd-page .pd-tabs { gap: 8px; margin-bottom: 8px; }
  .pd-page .pd-tabs button { font-size: .88rem; padding: 7px 10px; }
  .pd-page .pd .pd-who { font-size: .88rem; line-height: 1.4; }
  .pd-page .pd-mid .pd-steps { flex-wrap: nowrap; justify-content: center; gap: 8px; margin: 4px 0 6px; }
  .pd-page .pd-mid .pd-steps li { flex: none; font-size: .88rem; padding: 4px 12px 4px 4px; }
  .pd-page .pd-mid .pd-steps li:not(.on) { font-size: 0; gap: 0; padding: 4px; background: transparent; border-color: transparent; opacity: 1; }
  .pd-page .pd-mid .pd-steps li:not(.on)::before { width: 28px; height: 28px; font-size: .8rem; }
  .pd-page .pd-mid .pd-steps li.on::before { width: 24px; height: 24px; }
}

/* phones, tidier still: fewer words, and the phone switch sits on the phone's own bottom bar */
@media (max-width: 760px) {
  .pd-page .pd .lead, .pd-page .pd-mid .pd-who, .pd-page .pd-say small { display: none; }
  .pd-page .pd h1 { font-size: 1.35rem; margin-bottom: 6px; }
  .pd-page .pd-stage { position: relative; gap: 8px; }
  .pd-page .pd-mid { gap: 6px; }
  .pd-page .pd-mid .pd-say { min-height: 1.6em; font-size: 1.1rem; text-align: center; }
  .pd-page .pd-stage > .pd-tabs { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); z-index: 5; display: flex; gap: 2px; margin: 0; padding: 3px; border-radius: 999px; background: rgba(2,40,71,.82); }
  .pd-page .pd-stage > .pd-tabs button { flex: none; font-size: .74rem; font-weight: 500; padding: 5px 12px; color: rgba(255,255,255,.8); background: transparent; border: 0; }
  .pd-page .pd-stage > .pd-tabs button[aria-selected="true"] { color: #022847; background: #F9C845; }
}
