/* /Devices/Phones: Plaspy app landing (WebPage template), after the owner's Claude Design draft. Everything is scoped under .ph. */

.ph {
    --ph-bg: #fff;
    --ph-band: #f0f2ed;
    --ph-ink: #0f1712;
    --ph-muted: #48544c;
    --ph-line: #d2d7cd;
    --ph-accent: var(--plaspy-color, var(--plaspy-default-color, #156b13));
    --ph-brand: #179848;
    --ph-btn: var(--plaspy-color, var(--plaspy-default-color, #156b13));
    --ph-glow: rgba(23, 152, 72, .2);
    --ph-floor: rgba(15, 23, 18, .22);
    --ph-chip: rgba(255, 255, 255, .92);
    --ph-navbar: 77px;
    --ph-gutter: clamp(20px, 5vw, 64px);
    --ph-ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--ph-bg);
    color: var(--ph-ink);
    font-family: "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

[data-bs-theme="dark"] .ph {
    --ph-bg: var(--bs-body-bg, #212529);
    --ph-band: var(--bs-tertiary-bg, #2b3035);
    --ph-ink: #edf1eb;
    --ph-muted: #a1aca4;
    --ph-line: rgba(255, 255, 255, .12);
    --ph-accent: var(--plaspy-green-text, #7bc96f);
    --ph-glow: rgba(36, 184, 96, .3);
    --ph-floor: rgba(0, 0, 0, .6);
    --ph-chip: rgba(43, 48, 53, .94);
}

/* (0,1,0): beats Bootstrap's element margins, loses to every class rule declared below. */
:where(.ph) *, :where(.ph) *::before, :where(.ph) *::after { box-sizing: border-box; }
.ph :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.ph) :where(h1, h2, h3) { font-family: inherit; color: var(--ph-ink); }
:where(.ph) :where(img, video) { display: block; max-width: 100%; }
.ph a { color: var(--ph-accent); text-underline-offset: .2em; }
.ph a:hover { color: var(--ph-ink); }
.ph :focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; border-radius: 4px; }
.ph .ph-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The template is followed by the layout's content block, which is empty on this page. */
.ph ~ .content { display: none; }

.ph-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--ph-gutter); padding-right: var(--ph-gutter); }
.ph-band { background: var(--ph-band); border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }

.ph-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-accent); }
.ph-h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.ph-h2--sm { font-size: clamp(32px, 4vw, 54px); line-height: 1.02; }
.ph-h2--xl { font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.025em; max-width: 14ch; }
.ph-sub { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ph-muted); max-width: 52ch; text-wrap: pretty; }
.ph-section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.ph-section-head--center { align-items: center; text-align: center; margin: 0 auto; }
.ph-section-head--center .ph-h2 { max-width: 16ch; }

/* ---------- Hero ---------- */

.ph-hero { position: relative; padding-top: var(--ph-navbar); }
.ph-hero-grid {
    /* The copy column fits both badges and the demo button on one row. */
    display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); align-items: center; gap: clamp(32px, 5vw, 96px);
    padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 112px);
    min-height: min(calc(92vh - var(--ph-navbar)), 900px);
}
.ph-hero-copy { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 32px); min-width: 0; }
.ph-h1 { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); font-weight: 300; }
.ph-kicker { display: flex; align-items: center; gap: 14px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; line-height: 1.3; letter-spacing: .01em; color: var(--ph-ink); }
.ph-kicker img { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ph-line); }
/* The vh term keeps the four lines above the fold on short laptop screens. */
.ph-display { font-size: clamp(46px, min(7.2vw, 10.5vh), 108px); font-weight: 400; line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.ph-lead { max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ph-muted); text-wrap: pretty; }
.ph-quiet { font-size: 15px; line-height: 1.5; color: var(--ph-muted); }
.ph-quiet a { font-weight: 600; white-space: nowrap; }

/* Official store badges (never recoloured) and the demo button: one row, one height. */
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ph-store { display: inline-flex; flex: none; border-radius: 9px; transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease); }
.ph-store img { height: 54px; width: auto; }
.ph-store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.ph-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px; border-radius: 10px;
    font-size: 18px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease);
}
.ph-btn svg { width: 22px; height: 22px; flex: none; }
.ph a.ph-btn--demo { color: var(--ph-accent); background: transparent; border: 1.5px solid currentColor; }
.ph a.ph-btn--demo:hover { color: #fff; background: var(--ph-btn); border-color: var(--ph-btn); text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 24px -14px var(--ph-btn); }
.ph-btn--demo .ph-play { transition: transform .25s var(--ph-ease); }
.ph-btn--demo:hover .ph-play { transform: scale(1.12); }

.ph-hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }
.ph-hero-visual .ph-phone-wrap { width: min(clamp(250px, 27vw, 360px), calc((100vh - var(--ph-navbar) - 90px) / 2.15)); }
.ph-hero-visual .ph-phone, .ph-explore-visual .ph-phone, .ph-stage .ph-phone { --w: 100%; }
.ph-glow { position: absolute; left: 50%; top: 44%; width: min(150%, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--ph-glow), transparent 72%); pointer-events: none; }
.ph-floor { position: absolute; left: 50%; bottom: -18px; width: min(78%, 330px); height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--ph-floor), transparent); pointer-events: none; }
/* A light sweep crosses the screen once, after the phone settles. */
.ph-sweep {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(102deg, transparent 34%, rgba(99, 208, 142, .22) 45%, rgba(255, 255, 255, .38) 50%, rgba(99, 208, 142, .22) 55%, transparent 66%);
    background-size: 320% 100%; background-position: 100% 0;
}
@keyframes ph-sweep { 0% { opacity: 0; background-position: 100% 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }

/* ---------- Phone mockup ---------- */

.ph-phone-wrap { position: relative; }
/* container-type gives the phone no intrinsic width, so --w (or its wrapper) sets it. */
.ph-phone { position: relative; width: var(--w, 320px); max-width: 100%; container-type: inline-size; }
.ph-phone__body {
    position: relative; padding: 9px; border-radius: 50px;
    padding: 2.8cqw; border-radius: 15.5cqw;
    background: linear-gradient(150deg, #3b403d 0%, #151816 20%, #0b0d0c 62%, #2b302d 100%);
    box-shadow: inset 0 0 0 1.5px #5a605c, inset 0 0 0 4px #070807, 0 30px 60px -28px rgba(0, 0, 0, .6);
    box-shadow: inset 0 0 0 .45cqw #5a605c, inset 0 0 0 1.1cqw #070807, 0 7cqw 16cqw -7cqw rgba(0, 0, 0, .6);
}
.ph-phone__key { position: absolute; width: 3px; width: 1cqw; border-radius: 3px; background: #2e3330; }
.ph-phone__key--1 { left: -.8cqw; top: 20%; height: 6%; }
.ph-phone__key--2 { left: -.8cqw; top: 29%; height: 10%; }
.ph-phone__key--3 { right: -.8cqw; top: 26%; height: 14%; }
.ph-phone__screen { position: relative; overflow: hidden; border-radius: 41px; border-radius: 12.8cqw; background: #fff; }
.ph-phone__status {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    height: 34px; height: 10.7cqw; padding: 0 7.5cqw 0 9.5cqw;
    font: 600 12px/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; font-size: 3.6cqw; color: #111; background: #fff;
}
.ph-phone__island { position: absolute; left: 50%; top: 2.3cqw; width: 26cqw; height: 7.4cqw; border-radius: 4cqw; background: #000; transform: translateX(-50%); }
.ph-phone__sys { display: flex; align-items: center; gap: 1.4cqw; }
.ph-phone__bars { display: flex; align-items: flex-end; gap: .5cqw; height: 2.6cqw; }
.ph-phone__bars i { width: .8cqw; background: #111; border-radius: .2cqw; }
.ph-phone__bars i:nth-child(1) { height: 1cqw; } .ph-phone__bars i:nth-child(2) { height: 1.5cqw; } .ph-phone__bars i:nth-child(3) { height: 2cqw; } .ph-phone__bars i:nth-child(4) { height: 2.6cqw; }
.ph-phone__batt { display: flex; width: 6cqw; height: 2.9cqw; padding: .3cqw; border: .3cqw solid #111; border-radius: .9cqw; }
.ph-phone__batt i { width: 78%; background: #111; border-radius: .3cqw; }
.ph-phone__view { position: relative; aspect-ratio: 430 / 820; background: #eef1ee; }
.ph-phone__view > img, .ph-phone__view > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-phone__home { display: flex; align-items: center; justify-content: center; height: 18px; height: 5.6cqw; background: #fff; }
.ph-phone__home i { width: 30cqw; height: 1.2cqw; border-radius: 1cqw; background: #111; }
.ph-layer { opacity: 0; transition: opacity .45s ease; }
.ph-layer.is-active { opacity: 1; }

/* Pause control for the looping recordings (WCAG 2.2.2); only shown once phones.js can drive it. */
.ph-pause {
    position: absolute; z-index: 4; left: calc(100% + 14px); top: 3%;
    display: none; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: 50%; border: 1px solid var(--ph-line); background: var(--ph-chip); color: var(--ph-ink); cursor: pointer;
    transition: transform .2s var(--ph-ease), color .2s;
}
.ph-ready .ph-pause { display: grid; }
.ph-pause:hover { transform: scale(1.08); color: var(--ph-accent); }
.ph-pause svg { width: 16px; height: 16px; }
.ph-pause .ph-i-play, .ph-paused .ph-pause .ph-i-pause { display: none; }
.ph-paused .ph-pause .ph-i-play { display: block; }
.ph-paused .ph-sweep { animation-play-state: paused !important; }

/* ---------- Explore band ---------- */

.ph-explore-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); text-align: center; }
.ph-tabs { flex-wrap: wrap; justify-content: center; gap: clamp(8px, 3vw, 36px); }
.ph-tabs button {
    appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    min-height: 48px; padding: 10px 4px 8px; cursor: pointer;
    font-family: inherit; font-size: clamp(23px, 2.6vw, 34px); font-weight: 300; line-height: 1.1; color: var(--ph-muted);
    transition: color .2s, border-color .2s;
}
.ph-tabs button:hover { color: var(--ph-ink); }
.ph-tabs button[aria-selected="true"] { color: var(--ph-ink); border-bottom-color: var(--ph-brand); }
.ph-tabpanel { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vw, 56px); width: 100%; }
/* Without phones.js the three texts stay stacked and the tabs, which would do nothing, are hidden. */
.ph-tabs { display: none; }
.ph-ready .ph-tabs { display: flex; }
.ph-benefits { display: grid; gap: 14px; max-width: 46ch; }
.ph-benefit { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--ph-ink); text-wrap: pretty; }
.ph-ready .ph-benefit { grid-area: 1 / 1; min-height: 4.4em; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.ph-ready .ph-benefit.is-active { opacity: 1; visibility: visible; }
.ph-explore-visual { position: relative; width: min(clamp(250px, 26vw, 350px), calc((100vh - var(--ph-navbar) - 80px) / 2.15)); }
.ph-explore-visual .ph-glow { width: 260%; max-width: 92vw; top: 40%; }
.ph-caption { font-size: 14px; color: var(--ph-muted); }

/* ---------- Features: scroll story on desktop, swipe cards below 992px ---------- */

.ph-features { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); }
.ph-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
/* The bottom room keeps the sticky phone in place while the last chapter is centred. */
.ph-chapters { padding: 0 0 22vh; list-style: none; }
.ph-chapter {
    display: flex; flex-direction: column; justify-content: center; gap: 16px;
    min-height: 58vh; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--ph-line);
}
.ph-num { font-size: 14px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ph-accent); }
.ph-chapter h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; transition: color .3s; }
.ph-chapter p { max-width: 52ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; text-wrap: pretty; }
.ph-chapter .ph-note { font-size: 15px; line-height: 1.5; color: var(--ph-muted); }
.ph-screen-label, .ph-stage-label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ph-muted); }
.ph-stage-label b { font-weight: 600; }
.ph-chapter .ph-screen-label, .ph-ch-media, .ph-rail { display: none; }
.ph-story.is-live .ph-chapter:not(.is-active) h3 { color: var(--ph-muted); }

.ph-stage { position: relative; }
.ph-stage-inner {
    position: sticky; top: max(calc(var(--ph-navbar) + 24px), calc(50vh + var(--ph-navbar) / 2 - 330px));
    display: flex; flex-direction: column; align-items: center; gap: 28px;
    padding-top: clamp(28px, 4vw, 44px);
}
.ph-stage .ph-phone-wrap { width: min(100%, 310px, calc((100vh - var(--ph-navbar) - 110px) / 2.15)); }
.ph-stage .ph-glow { width: 240%; top: 42%; }
.ph-carousel-nav { display: none; }

/* ---------- Phone as tracker ---------- */

.ph-tracker { padding: clamp(72px, 10vw, 130px) 0; border-top: 1px solid var(--ph-line); }
.ph-tracker-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ph-tracker .ph-sub { max-width: 44ch; }
/* Plain dt/dd pairs (no wrapper divs): the web editor's TinyMCE drops a <dl> that groups them in divs. */
.ph-needs { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); border-bottom: 1px solid var(--ph-line); }
.ph-needs dt, .ph-needs dd { padding: 20px 0; border-top: 1px solid var(--ph-line); }
.ph-needs dt { padding-right: 24px; font-weight: 600; }
.ph-needs dd { color: var(--ph-muted); line-height: 1.5; }

.ph-platforms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(56px, 7vw, 96px); align-items: stretch; }
.ph-platform { display: flex; flex-direction: column; gap: 22px; padding-right: clamp(24px, 4vw, 56px); scroll-margin-top: calc(var(--ph-navbar) + 16px); }
.ph-platform + .ph-platform { padding: 0 0 0 clamp(24px, 4vw, 56px); border-left: 1px solid var(--ph-line); }
.ph-platform-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph-platform-name { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-muted); }
.ph-platform-name .fa { font-size: 22px; color: var(--ph-ink); }
.ph-platform .ph-store img { height: 40px; }
/* Copy that came from the Android / iPhone store templates. */
.ph-platform-body { font-size: 17px; line-height: 1.6; }
.ph-platform-body section > * + * { margin-top: 14px; }
.ph-platform-body h2 { font-size: clamp(26px, 2.6vw, 34px) !important; font-weight: 300; line-height: 1.1; letter-spacing: -.015em; color: var(--ph-ink) !important; }
.ph-platform-body h2 i, .ph-platform-body h2 .fa { display: none; }
.ph-platform-body h3 { margin-top: 26px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.ph-platform-body ul { padding: 0; list-style: none; }
.ph-platform-body li { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--ph-line); color: var(--ph-muted); }
.ph-platform-body li strong { color: var(--ph-ink); font-weight: 600; }
.ph-platform-body p { color: var(--ph-muted); }
.ph-platform-body p strong { color: var(--ph-ink); }
.ph-platform-body small { font-size: 15px; }
.ph-more { border-top: 1px solid var(--ph-line); }
.ph-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-top: 14px; font-size: 16px; font-weight: 600; color: var(--ph-accent); cursor: pointer; list-style: none; }
.ph-more > summary::-webkit-details-marker { display: none; }
.ph-more > summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; transition: transform .3s var(--ph-ease); }
.ph-more[open] > summary::after { transform: rotate(45deg); }
.ph-more > * + * { margin-top: 12px; }
.ph-more h3:first-of-type { margin-top: 8px; }

/* ---------- FAQ band ---------- */

.ph-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.ph-faq-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; padding: 0; list-style: none; font-size: 17px; font-weight: 600; }
.ph-faq-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.ph-faq-links a::after { content: "→"; transition: transform .2s var(--ph-ease); }
.ph-faq-links a:hover::after { transform: translateX(4px); }
.ph-qa { border-top: 1px solid var(--ph-line); padding: 4px 0; }
.ph-qa:last-child { border-bottom: 1px solid var(--ph-line); }
.ph-qa summary { display: flex; justify-content: space-between; gap: 16px; min-height: 48px; padding: 20px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; line-height: 1.3; }
.ph-qa summary::-webkit-details-marker { display: none; }
.ph-plus { flex: none; color: var(--ph-accent); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .3s var(--ph-ease); }
.ph-qa[open] .ph-plus { transform: rotate(45deg); }
.ph-answer { max-width: 56ch; margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--ph-muted); }
.ph-qa[open] .ph-answer, .ph-more[open] > :not(summary) { animation: ph-open .35s var(--ph-ease); }
@keyframes ph-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Closing call to action ---------- */

.ph-cta { position: relative; overflow: hidden; }
.ph-cta::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -30%); background: radial-gradient(closest-side, var(--ph-glow), transparent 72%); pointer-events: none; }
.ph-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: clamp(88px, 12vw, 160px); padding-bottom: clamp(88px, 12vw, 160px); text-align: center; }
.ph-cta-icon { width: 88px; height: 88px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--ph-line), 0 18px 40px -18px var(--ph-floor); }
.ph-cta .ph-sub { max-width: 36ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.ph-cta .ph-actions { justify-content: center; }
.ph-signup { font-size: 17px; color: var(--ph-muted); }
.ph-signup a { font-weight: 600; }

/* ---------- Motion: reveals hide content only after phones.js marked what is already on screen ---------- */

.ph-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ph-ease), transform .9s var(--ph-ease); transition-delay: calc(var(--d, 0) * 100ms); }
.ph-reveal [data-reveal="zoom"] { transform: translateY(18px) scale(.94); }
.ph-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero entrance: pure CSS, ends visible even if phones.js never loads. */
.ph-anim .ph-hero-copy > *, .ph-anim .ph-h1 > * { animation: ph-rise 1s var(--ph-ease) both; }
.ph-anim .ph-h1 .ph-kicker { animation-delay: .05s; }
.ph-anim .ph-h1 .ph-display { animation-delay: .15s; }
.ph-anim .ph-hero-copy .ph-lead { animation-delay: .3s; }
.ph-anim .ph-hero-copy .ph-actions { animation-delay: .42s; }
.ph-anim .ph-hero-copy .ph-quiet { animation-delay: .54s; }
.ph-anim .ph-hero-visual .ph-phone-wrap { animation: ph-phone-in 1.2s var(--ph-ease) .2s both; }
.ph-anim .ph-sweep { animation: ph-sweep 1.6s cubic-bezier(.45, 0, .25, 1) 1.3s both; }
@keyframes ph-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ph-phone-in { from { opacity: 0; transform: translateY(56px) scale(.95); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ph *, .ph *::before, .ph *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (min-width: 992px) and (max-width: 1279.98px) {
    .ph-hero .ph-actions { gap: 10px; }
    .ph-hero .ph-store img { height: 48px; }
    .ph-hero .ph-btn { min-height: 48px; padding: 0 18px; font-size: 17px; }
}

@media (max-width: 991.98px) {
    .ph-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .ph-display { font-size: clamp(46px, 10vw, 84px); }
    .ph-hero-visual { padding-bottom: 24px; }
    .ph-hero-visual .ph-phone-wrap { width: min(300px, 70vw); }
    .ph-explore-visual { width: min(290px, 68vw); }
    .ph-tracker-top, .ph-faq-grid, .ph-platforms { grid-template-columns: minmax(0, 1fr); }
    .ph-platform { padding-right: 0; }
    .ph-platform + .ph-platform { margin-top: 48px; padding: 48px 0 0; border-left: 0; border-top: 1px solid var(--ph-line); }

    /* Features become a horizontal row of cards, each with its own phone. */
    .ph-story { display: block; margin-top: 32px; }
    .ph-stage { display: none; }
    .ph-chapters {
        display: flex; gap: 14px; padding: 4px var(--ph-gutter) 16px; margin: 0 calc(var(--ph-gutter) * -1);
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ph-gutter);
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .ph-chapters::-webkit-scrollbar { display: none; }
    /* A card and the arrows below it fit under the fixed navbar of a 375x812 phone. */
    .ph-chapter {
        flex: 0 0 min(80vw, 340px); min-height: 0; justify-content: flex-start; gap: 10px;
        padding: 18px 18px 20px; border: 1px solid var(--ph-line); border-radius: 18px; background: var(--ph-bg);
        scroll-snap-align: start;
    }
    .ph-chapter h3 { font-size: 25px; }
    .ph-chapter p { font-size: 16px; }
    .ph-chapter .ph-note { font-size: 14px; }
    .ph-chapter .ph-screen-label { display: block; }
    .ph-ch-media { display: flex; justify-content: center; order: -1; margin-bottom: 4px; }
    .ph-ch-media .ph-phone { --w: min(146px, 40vw); }
    .ph-ready .ph-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
    .ph-carousel-nav .ph-pause { position: static; margin-left: 8px; }
    .ph-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--ph-line); background: var(--ph-bg); color: var(--ph-ink); cursor: pointer; }
    .ph-arrow svg { width: 20px; height: 20px; }
    .ph-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
    .ph-dots { display: flex; align-items: center; }
    .ph-dots button { display: grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
    .ph-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: var(--ph-line); transition: width .3s var(--ph-ease), background-color .3s; }
    .ph-dots button.is-active::before { width: 22px; background: var(--ph-brand); }
}

@media (max-width: 575.98px) {
    .ph { font-size: 17px; }
    .ph-kicker { font-size: 15px; gap: 12px; }
    .ph-kicker img { width: 44px; height: 44px; border-radius: 10px; }
    .ph-store img { height: 48px; }
    .ph-btn { min-height: 48px; padding: 0 18px; font-size: 17px; }
    /* Narrower phones leave room for the pause button beside them instead of over the app's tab bar. */
    .ph-hero-visual .ph-phone-wrap { width: min(300px, 64vw); }
    .ph-explore-visual { width: min(290px, 62vw); }
    .ph-pause { width: 40px; height: 40px; left: calc(100% + 6px); }
    .ph-needs { grid-template-columns: minmax(0, 1fr); }
    .ph-needs dt { padding-bottom: 4px; }
    .ph-needs dd { padding-top: 0; border-top: 0; }
}

@media print {
    .ph-pause, .ph-glow, .ph-floor, .ph-sweep, .ph-carousel-nav { display: none !important; }
}
