/* Outfit (OFL, variable 300-700), served from the site rather than Google Fonts */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit/outfit-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit/outfit-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Product tile: a phone rises into the frame as it scrolls into view, then plays
   a voice-first recovery-plan flow. The app is laid out at native phone size
   (393 x 852) and the whole phone is scaled to the tile by js/product-demo.js. */

/* Perspective sits low and centered so the phone's bottom edge reads as nearest the viewer */
.pd-stage { position: relative; width: 100%; height: 100%; overflow: hidden; perspective: 640px; perspective-origin: 50% 100%; }

.pd-phone {
    position: absolute; left: 0; top: 0;
    width: 417px; height: 876px; padding: 12px;
    border-radius: 66px;
    background: #0d0d0d;
    box-shadow: inset 0 0 0 1.5px #2c2c2c, inset 0 0 0 4px #111, 0 40px 80px -20px rgba(0, 0, 0, 0.35);
    transform-origin: 0 0;
    font-family: "Outfit", "Sailec", sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}
.pd-screen {
    --dur: 0.5s; --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
    position: relative; width: 393px; height: 852px;
    border-radius: 54px; overflow: hidden; background: #fff;
    isolation: isolate;
}
.pd-screen * { box-sizing: border-box; }
.pd-a {
    transition-property: opacity, transform, top, height, width, left, background-color, color, filter;
    transition-duration: var(--dur);
    transition-timing-function: var(--ease);
}
.pd-ic { display: block; width: 100%; height: 100%; }

/* Home */
.pd-home { position: absolute; inset: 0; }
.pd-time { position: absolute; left: 32px; top: 16px; font-size: 16px; font-weight: 600; }
.pd-island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #0d0d0d; }
.pd-date { position: absolute; left: 24px; top: 66px; font-size: 13px; color: #8a9399; }
.pd-heading { position: absolute; left: 24px; top: 84px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.pd-card { position: absolute; top: 150px; width: 300px; height: 470px; border-radius: 30px; overflow: hidden; background: #ddd; color: #fff; }
.pd-card1 { left: 24px; }
.pd-card2 { left: 336px; }
.pd-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pd-card1 .pd-card-img { background-image: url("../img/scope/product-knee.jpg"); }
.pd-card2 .pd-card-img { background-image: url("../img/scope/product-coast.jpg"); }
.pd-card-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)); }
.pd-card-txt { position: absolute; left: 24px; bottom: 24px; }
.pd-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; opacity: 0.8; }
.pd-card-title { margin-top: 2px; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.pd-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.pd-meta span:last-child { opacity: 0.75; }
.pd-rating { padding: 4px 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.22); font-weight: 500; }
.pd-dots { position: absolute; left: 24px; top: 640px; display: flex; gap: 6px; }
.pd-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(17, 17, 17, 0.15); }
.pd-dots i:first-child { width: 18px; background: #111; }
.pd-nav {
    position: absolute; left: 98px; top: 754px;
    display: flex; gap: 14px; padding: 6px;
    border-radius: 40px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.pd-nav span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 26px; color: #8a9399; }
.pd-nav span .pd-ic { width: 20px; height: 20px; }
.pd-nav span.on { background: #111; color: #fff; }
.pd-scrim { position: absolute; inset: 0; background: #e9eef1; opacity: 0; }

/* Sheet */
.pd-sheet {
    position: absolute; left: 12px; width: 369px; top: 876px; height: 320px;
    border-radius: 34px; overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.35)),
        linear-gradient(#eef8fc, #c8e7f5);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}
.pd-progress { position: absolute; left: 50%; top: 20px; margin-left: -39px; display: flex; gap: 6px; }
.pd-progress i { width: 22px; height: 3px; border-radius: 2px; background: #111; opacity: 0.15; }
.pd-close { position: absolute; right: 22px; top: 14px; width: 20px; height: 20px; }
.pd-q { position: absolute; left: 24px; right: 24px; top: 56px; text-align: center; font-size: 19px; color: #6f7b83; }
.pd-transcript { position: absolute; left: 24px; right: 24px; top: 104px; text-align: center; font-size: 26px; font-weight: 500; min-height: 34px; }
.pd-transcript::after { content: ""; display: inline-block; width: 2px; height: 26px; margin-left: 2px; vertical-align: -4px; background: #111; opacity: var(--caret, 0); }

.pd-wheel { position: absolute; left: 0; right: 0; top: 96px; height: 60px; }
.pd-wheel span {
    position: absolute; left: 162.5px; top: 0; width: 44px; height: 60px;
    line-height: 60px; text-align: center; font-size: 40px; font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.pd-slider { position: absolute; left: 0; right: 0; top: 100px; height: 70px; }
.pd-track, .pd-fill { position: absolute; left: 74px; top: 16px; height: 2px; border-radius: 1px; }
.pd-track { width: 221px; background: rgba(17, 17, 17, 0.12); }
.pd-fill { width: 1px; background: #111; }
.pd-knob { position: absolute; top: 6px; left: 63px; width: 22px; height: 22px; border-radius: 50%; background: #a3adb3; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.pd-labels span {
    position: absolute; top: 44px; width: 90px; margin-left: -45px; text-align: center;
    font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.pd-wave { position: absolute; left: 0; right: 0; bottom: 88px; height: 24px; display: flex; justify-content: center; align-items: center; gap: 2.6px; }
.pd-wave i { width: 2px; height: 24px; border-radius: 1px; background: rgba(17, 17, 17, 0.85); transform: scaleY(0.125); transition: transform 0.14s linear; }

.pd-back, .pd-next { position: absolute; bottom: 40px; width: 22px; height: 22px; }
.pd-back { left: 24px; }
.pd-next { right: 24px; }
.pd-mic { position: absolute; left: 156.5px; bottom: 23px; width: 56px; height: 56px; border-radius: 28px; background: #111; color: #fff; display: grid; place-items: center; }
.pd-mic .pd-ic { width: 22px; height: 22px; }
.pd-mic::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #111; opacity: 0; animation: pd-ping 1.6s var(--ease) infinite; animation-play-state: var(--ping, paused); }
@keyframes pd-ping { from { transform: scale(1); opacity: 0.18; } to { transform: scale(1.6); opacity: 0; } }

.pd-loading { position: absolute; left: 0; right: 0; top: 50%; margin-top: -30px; text-align: center; color: #6f7b83; font-size: 13px; }
.pd-loading .pd-ic { width: 22px; height: 22px; margin: 0 auto 10px; animation: pd-spin 1.1s steps(8) infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* Plan ready: type and plan structure only, no art */
.pd-result { position: absolute; inset: 0; }
.pd-result .pd-r { position: absolute; left: 28px; right: 28px; }
.pd-r-eyebrow { top: 30px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #6f7b83; }
.pd-r-title { top: 46px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.pd-r-sub { top: 86px; font-size: 14px; color: #6f7b83; }
.pd-r-weeks { top: 118px; display: flex; gap: 4px; }
.pd-r-weeks i { flex: 1; height: 6px; border-radius: 3px; background: rgba(17, 17, 17, 0.12); }
.pd-r-weeks i:first-child { background: #111; }
.pd-r-rows { top: 140px; }
.pd-r-rows div { display: flex; justify-content: space-between; align-items: baseline; height: 38px; padding-top: 9px; border-top: 1px solid rgba(17, 17, 17, 0.08); font-size: 15px; font-weight: 500; }
.pd-r-rows div span { font-size: 13px; font-weight: 400; color: #6f7b83; }
.pd-r-foot { bottom: 22px; height: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.pd-r-foot b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: #111; color: #fff; }
.pd-r-foot b .pd-ic { width: 18px; height: 18px; }
