/* MarketPup client app. Uses the site's tokens from /styles.css. Phone first. */
.pp-danger { background: #b3261e; color: #ffffff; }
:root[data-theme="dark"] .pp-danger { background: #f2b8b5; color: #601410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-danger { background: #f2b8b5; color: #601410; } }
.pp-delete-link { color: var(--ink-2); }
.pp [hidden] { display: none !important; }
.pp { background: var(--bg-soft); }
.pp-top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: var(--bg); }
.pp .top-row .theme-toggle { margin-left: 0; }
.pp .top-row { gap: 12px; }
.pp .top-row .brand { margin-right: auto; }
.pp-demo { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: var(--r-pill); background: var(--glow); color: var(--ink); white-space: nowrap; }
.pp-main { padding-block: 24px 40px; min-height: 70vh; display: grid; gap: 16px; align-content: start; max-width: 760px; }
.pp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; color: var(--ink); text-decoration: none; }
a.pp-card { transition: transform .15s ease, border-color .15s ease; }
a.pp-card:hover { border-color: var(--amber); }
a.pp-card:active { transform: scale(.99); }
a.pp-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-card p { margin: 0; }
.pp-narrow { max-width: 480px; width: 100%; margin: 8px auto 0; }
.pp-narrow h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.pp-login { text-align: center; justify-items: center; }
.pp-login .pp-form, .pp-login .pp-note { width: 100%; text-align: left; }
.pp-scene { margin: 0 auto 18px; max-width: 400px; }
.pp-scene img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pp-scene-login { max-width: 360px; margin-bottom: 20px; }
.pp-scene-empty { max-width: 320px; margin: 6px 0 14px; }
.pp-login-ember { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--amber); box-shadow: var(--shadow); }
.pp-login-lead { font-size: 1.05rem; color: var(--ink-2); }
.pp-hello { display: grid; gap: 4px; padding-inline: 4px; }
.pp-hello h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.1; }
.pp-hello .eyebrow { margin: 0; }
.pp-hello .muted { margin: 0; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pp-metrics { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-metrics li { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; align-content: start; }
.pp-metrics p { margin: 0; }
.pp-m-label { font-size: .85rem; color: var(--ink-2); }
.pp-m-val { font: 800 1.6rem/1.1 var(--display); }
.pp-d.good { color: var(--ok); }
.pp-d.bad { color: var(--coral-ink); }
.pp-proof { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.pp-proof { display: block; list-style: disc; }
.pp-steps .pp-proof li { display: list-item; margin: 2px 0; grid-template-columns: none; }
@media (max-width: 640px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-h { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.pp-count { font: 600 .8rem/1 var(--mono); background: var(--coral-ink); color: var(--bg); border-radius: var(--r-pill); padding: 4px 8px; }
.pp-needs { border-color: var(--coral); }
.pp-allclear { background: var(--bg); }
.pp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-links a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pp-links a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-links .muted { font-size: .92rem; }
.pp-plan { font: 800 1.4rem/1.15 var(--display); }
.pp-h3 { font: 700 1rem/1.2 var(--display); margin: 4px 0 0; }
.pp-incl { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); }
.pp-pm, .pp-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-pm li { display: grid; gap: 6px; }
.pp-pm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-plans li { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.pp-plans li.current { border: 2px solid var(--ok); }
.pp-plan-price { font: 800 1.25rem/1.1 var(--display); }
.pp-plan-price small { font: 500 .85rem var(--body, inherit); color: var(--ink-2); }
.pp-dl { display: grid; gap: 8px; margin: 0; }
.pp-dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pp-dl dt { color: var(--ink-2); }
.pp-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pp-form { display: grid; gap: 10px; }
.pp-form label, .pp-form legend { font-weight: 600; }
.pp-form input:not([type=radio]), .pp-form textarea { min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; }
.pp-form textarea { resize: vertical; min-height: 110px; }
.pp-form input:focus-visible, .pp-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-form input#code { font: 600 1.4rem var(--mono); letter-spacing: .3em; }
.pp-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips legend { margin-bottom: 8px; padding: 0; }
.pp-chips label { position: relative; }
.pp-chips input { position: absolute; opacity: 0; inset: 0; }
.pp-chips span { display: inline-block; padding: 10px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; }
.pp-chips input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.pp-chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-note { margin: 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.pp-note.warn { border-color: var(--coral); }
.pp-score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-big { margin: 0; font: 800 3rem/1 var(--display); }
.pp-huge { font-size: 4.2rem; }
.pp-big small { font-size: 1rem; color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.pp-delta { margin: 0; font-weight: 600; color: var(--ink-2); }
.pp-delta.up { color: var(--ok); }
.pp-delta.down { color: var(--coral-ink); }
.pp-trend { width: 100%; height: auto; }
.pp-trend-line { stroke: var(--amber); }
.pp-trend-area { fill: var(--glow); }
.pp-trend-dot { fill: var(--amber); stroke: var(--surface); stroke-width: 3; }
.pp-bar { display: block; width: 100%; height: 10px; }
.pp-bar-bg { fill: var(--line); }
.pp-bar-fill { fill: var(--ok); }
.pp-now { display: grid; gap: 8px; justify-items: start; }
.pp-more { font-weight: 600; }
.pp-issues, .pp-steps, .pp-work, .pp-history, .pp-invoices, .pp-asks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pp-issues li, .pp-steps li, .pp-work li { display: grid; gap: 2px; }
.pp-issues { counter-reset: fix; }
.pp-issues li { padding-left: 34px; position: relative; gap: 4px; }
.pp-issues li::before { counter-increment: fix; content: counter(fix); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--glow); color: var(--ink); font: 600 .8rem/24px var(--mono); text-align: center; }
.pp-steps li { grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.pp-steps li div { display: grid; gap: 2px; }
.pp-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); margin-top: 5px; }
.pp-steps li.done .pp-dot { background: var(--ok); border-color: var(--ok); }
.pp-steps li.in_progress .pp-dot { background: var(--amber); border-color: var(--amber); }
.pp-tag { display: inline-block; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.pp-tag.done, .pp-tag.fixed { color: var(--ok); border-color: currentColor; }
.pp-tag.in_progress, .pp-tag.ours { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.pp-tag.yours, .pp-tag.waiting { color: var(--coral-ink); border-color: currentColor; }
.pp-tag.paused { color: var(--ink-2); border-style: dashed; }
.pp-steps li.waiting .pp-dot { border-color: var(--coral); }
.pp-steps li.paused .pp-dot { border-style: dashed; }
.pp-owner { gap: 10px; }
.pp-owner-form { display: flex; gap: 10px; align-items: center; }
.pp-owner-form select { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: var(--r-md, 12px); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-live { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
.pp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 var(--ok); animation: pp-pulse 2.4s ease-out infinite; }
@keyframes pp-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .pp-live-dot { animation: none; } }
.pp-howto { margin: 4px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.pp-ai { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-ai li { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pp-ai p { margin: 0; }
.pp-mform { display: grid; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; } /* live v26 */
.pp-mform .pp-check input { width: auto; margin-top: 4px; flex: none; }
.pp-mform input, .pp-mform select, .pp-mform textarea, .pp-msteps select, .pp-msteps input { font: inherit; padding: 10px 12px; border-radius: var(--r-md, 12px); border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.pp-mform .btn { justify-self: start; }
.pp-msteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-msteps li { display: grid; gap: 6px; }
.pp-msteps p { margin: 0; }
.pp-runs { list-style: none; margin: 8px 0 0; padding: 0; }
.pp-center { text-align: center; }
p.pp-tag { justify-self: start; }
.pp-work li { grid-template-columns: 64px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pp-work li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-work li div { display: grid; gap: 2px; }
.pp-work time { font: 500 .82rem var(--mono); color: var(--ink-2); padding-top: 3px; }
.pp-history li { display: grid; grid-template-columns: 1fr auto 56px; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pp-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-history span:first-child { color: var(--ink-2); }
.pp-d { text-align: right; font: 600 .85rem var(--mono); color: var(--ink-2); }
.pp-d.up { color: var(--ok); }
.pp-d.down { color: var(--coral-ink); }
.pp-invoices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pp-invoices li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-invoices li div { display: grid; gap: 2px; }
.pp-invoices .pp-inv-right { display: flex; align-items: center; gap: 10px; }
.pp-asks li { display: grid; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pp-asks li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-replybox { background: var(--bg-soft); border-left: 3px solid var(--amber); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 4px; }
.pp-install { border-style: dashed; }
.pp-install-row { display: flex; gap: 14px; align-items: center; }
.pp-install-row img { border-radius: 12px; flex: none; }
.pp-install-row div { display: grid; gap: 4px; }
.pp-install-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-signout { margin: 0; }
.pp .btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-foot { padding-block: 16px 24px; }
.pp-tabs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pp-tabs a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; color: var(--ink-2); text-decoration: none; font: 600 .72rem/1.1 var(--body); border-radius: var(--r-md); }
.pp-tabs a svg { width: 24px; height: 24px; }
.pp-tabs a[aria-current="page"] { color: var(--ink); }
.pp-tabs a[aria-current="page"] svg { color: var(--amber); }
.pp-tabs a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.pp-tabs-top { display: none; }
.pp-tabs-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.pp-in .pp-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 821px) {
  .pp-tabs-bottom { display: none; }
  .pp-in .pp-foot { padding-bottom: 24px; }
  .pp-tabs-top { display: block; padding-bottom: 8px; }
  .pp-tabs-top ul { max-width: 560px; }
  .pp-tabs-top a { grid-auto-flow: column; justify-content: center; gap: 6px; font-size: .88rem; padding: 8px 10px; }
  .pp-tabs-top a svg { width: 18px; height: 18px; }
  .pp-tabs-top a[aria-current="page"] { background: var(--glow); }
}
@media (max-width: 380px) { .pp-demo { display: none; } .pp-card { padding: 18px; } }
/* Plans: one full page per plan, swiped sideways (v10). */
.pp-slides { display: grid; gap: 12px; min-width: 0; }
.pp-slide-nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pp-slide-arrow { width: 40px; height: 40px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pp-slide-arrow:disabled { opacity: .35; cursor: default; }
.pp-sdots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pp-sdot { padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .82rem; font-weight: 600; background: var(--surface); }
.pp-sdot[aria-current="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.pp-slide-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: var(--r-lg); }
.pp-slide-track::-webkit-scrollbar { display: none; }
.pp-slide-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pp-slide { scroll-snap-align: start; scroll-snap-stop: always; min-height: calc(100svh - 300px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; color: var(--ink); }
.pp-slide.current { border: 2px solid var(--ok); }
.pp-slide-name { font-family: var(--display); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.05; margin: 0; }
.pp-slide-price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 0; }
.pp-slide-price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.pp-slide-pitch { font-size: 1.08rem; margin: 0; }
.pp-slide-list { gap: 10px; }
.pp-saves { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--glow); font-weight: 600; font-size: .92rem; }
.pp-slide-actions { display: grid; gap: 10px; margin-top: 4px; }
.pp-slide-actions form { margin: 0; }
.pp-slide-buy { width: 100%; justify-content: center; text-align: center; }
.pp-slide-next { justify-self: start; }
.pp-terms li { font-size: .95rem; }
/* dark-mode-fixes-v1: light-mode green passes 4.5:1 on cream; dark mode keeps the site's green. */
.pp { --ok: #187a42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp { --ok: #4cc27f; } }
:root[data-theme="dark"] .pp { --ok: #4cc27f; }
/* own sign-in (v11): brand buttons follow Google's and Apple's button guidelines. */
.pp-sso { display: grid; gap: 10px; width: 100%; }
.pp-sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: var(--r-btn, 12px); text-decoration: none; font: 500 16px/1.2 Roboto, "Helvetica Neue", Arial, sans-serif; box-sizing: border-box; }
.pp-sso-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-sso-logo { width: 20px; height: 20px; flex: none; }
.pp-sso-google { background: #ffffff; color: #1f1f1f; border: 1px solid #747775; }
.pp-sso-google:hover { background: #f8f9fa; }
.pp-sso-apple { background: #000000; color: #ffffff; border: 1px solid #000000; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-weight: 600; }
.pp-sso-apple .pp-sso-logo { width: 17px; height: 21px; margin-top: -3px; }
:root[data-theme="dark"] .pp-sso-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .pp-sso-apple { background: #ffffff; color: #000000; border-color: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pp-sso-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  :root:not([data-theme="light"]) .pp-sso-apple { background: #ffffff; color: #000000; border-color: #ffffff; }
}
.pp-or { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--ink-2); margin: 4px 0; }
.pp-or::before, .pp-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pp-auth-links, .pp-auth-switch { margin: 0; }
.pp-auth-switch { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

