/* Build-in-public project pages (drone-agent.html and the ones after it).
   Tokens come from app.css; everything here is prefixed pp- (the system
   diagram's own text classes are dg-, so the SVG stays copy-pasteable). */
.pp-wrap { max-width: 800px; margin: 0 auto; padding: 8px 20px 72px; }
.pp-sec { margin-top: 56px; scroll-margin-top: 80px; }
.pp-kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.pp-sec h2 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
.pp-subh { font-size: 17px; margin: 40px 0 14px; letter-spacing: -.01em; }
.pp-lede { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.pp-lede b { color: var(--ink); font-weight: 600; }
.pp-fine { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* hero: a sentence-long H1 needs a smaller scale than the landing's 3-word one */
.hero-air.pp-hero { padding-top: 64px; }
.hero-air.pp-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); max-width: 20ch; }
.hero-air.pp-hero h1 .grad { padding-right: .08em; }
.pp-nowrap { white-space: nowrap; }

/* four numbers instead of a paragraph */
.pp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 34px auto 0; }
.pp-stat { flex: 1 1 140px; background: var(--bg-alt); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 10px; }
.pp-stat b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.pp-stat span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.35; }

/* video */
.pp-video { margin: 28px 0 0; }
.pp-video video { width: 100%; display: block; border-radius: 14px; background: #0b0f14; border: 1px solid var(--hairline); }
.pp-video figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

/* why */
.pp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pp-why > div { background: var(--bg-alt); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.pp-why-i { display: block; font-size: 24px; line-height: 1; margin-bottom: 10px; }
.pp-why b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.pp-why p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* the system diagram: breaks out of the 800px column, scrolls on a phone */
.pp-fig { margin: 22px 0 0; width: min(100vw - 32px, 1060px); margin-left: 50%; transform: translateX(-50%); }
.pp-figscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-sysmap { display: block; width: 100%; min-width: 760px; height: auto; }
.pp-fighint { display: none; font-size: 12.5px; color: var(--ink-3); margin: 6px 20px 0; }
.pp-fig figcaption { font-size: 14px; color: var(--ink-3); margin: 12px auto 0; line-height: 1.5; max-width: 760px; padding: 0 4px; }
.dg-zone { font-size: 11px; font-weight: 700; letter-spacing: .09em; fill: #6e6e73; }
.dg-t { font-size: 15px; font-weight: 600; fill: #1d1d1f; }
.dg-s { font-size: 12px; fill: #6e6e73; }
.dg-em { font-style: italic; }
.dg-w { font-size: 12px; font-weight: 600; fill: #7c3aed; }
.dg-zone.dg-warn { fill: #a56b00; }
.dg-t.dg-warn { fill: #a56b00; }

/* progress tracker */
.pp-progress { margin: 6px 0 18px; }
.pp-progress-bar { height: 8px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--hairline); overflow: hidden; }
.pp-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pp-progress-txt { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.pp-progress-txt b { color: var(--ink); }
.pp-ms-list { list-style: none; margin: 0; padding: 0; position: relative; }
.pp-ms { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.pp-ms:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--hairline); }
.pp-ms-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hairline); background: #fff; box-sizing: border-box; position: relative; z-index: 1; }
.pp-ms.is-done .pp-ms-dot { background: #1a7f37; border-color: #1a7f37; }
.pp-ms.is-done .pp-ms-dot::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; position: absolute; inset: 0; display: grid; place-items: center; }
.pp-ms.is-active .pp-ms-dot { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff; background: var(--accent); }
.pp-ms-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pp-ms-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.pp-ms.is-todo .pp-ms-title { color: var(--ink-2); font-weight: 500; }
.pp-ms-tag { font-size: 12px; color: var(--ink-3); }
.pp-ms.is-done .pp-ms-tag { color: #1a7f37; font-weight: 600; }
.pp-ms.is-active .pp-ms-tag { color: var(--accent); font-weight: 600; }
.pp-ms-note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pp-ms-link { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--accent); text-decoration: none; }

/* parts: a photo, what it does, what it cost */
.pp-part-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.pp-part { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pp-part-img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--hairline); }
.pp-part-img.is-blank { display: grid; place-items: center; font-size: 26px; box-sizing: border-box; }
.pp-part-name { font-size: 16px; font-weight: 600; }
.pp-part-name a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.pp-part-name a:hover { text-decoration-color: var(--accent); }
.pp-qty { color: var(--accent); font-weight: 600; }
.pp-part-detail { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.pp-part-does { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pp-part-promo { font-size: 13px; color: #1a7f37; margin-top: 6px; }
.pp-part-promo code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; background: #eaf6ec; padding: 1px 6px; border-radius: 5px; }
.pp-part-meta { text-align: right; white-space: nowrap; }
.pp-price { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.pp-store { display: block; font-size: 13px; color: var(--ink-3); }
.pp-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-size: 17px; color: var(--ink-2); }
.pp-total b { color: var(--ink); }
.pp-tips { margin: 14px 0 0; padding: 12px 16px 12px 34px; background: var(--bg-alt); border-radius: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pp-tips li + li { margin-top: 6px; }

/* signed out, the list stops here */
.pp-part-gate { border: 1.5px dashed var(--hairline); border-radius: 16px; padding: 24px 22px; margin-top: 18px; text-align: center; background: var(--bg-alt); }
.pp-gate-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--hairline); display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink-3); }
.pp-part-gate h3 { font-size: 18px; margin: 0 0 6px; }
.pp-part-gate p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 auto; max-width: 46ch; }
.pp-part-gate .pp-kit-cta { justify-content: center; }

.pp-promos { margin-top: 18px; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.pp-promo { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; }
.pp-promo + .pp-promo { border-top: 1px solid var(--hairline); }
.pp-promo-code { flex: 0 0 auto; }
.pp-promo-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; background: #eaf6ec; color: #1a7f37; padding: 3px 8px; border-radius: 6px; }
.pp-promo-code i { font-size: 13px; color: var(--ink-3); }
.pp-promo-txt b { display: block; font-size: 14px; color: var(--ink); }
.pp-promo-txt em { display: block; font-size: 13px; color: var(--ink-3); font-style: normal; margin-top: 2px; }
.pp-side-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }

/* steps, grouped into three phases */
.pp-phases { display: flex; align-items: stretch; gap: 8px; margin: 18px 0 26px; }
.pp-phase { flex: 1 1 0; background: var(--bg-alt); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px; }
.pp-phase-n { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; }
.pp-phase b { display: block; font-size: 16px; color: var(--ink); }
.pp-phase span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.pp-phase-arrow { align-self: center; color: var(--ink-3); font-size: 18px; }
.pp-steps { list-style: none; margin: 0; padding: 0; }
.pp-step-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 22px 0 2px; }
.pp-step-head:first-child { margin-top: 0; }
.pp-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.pp-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.pp-step-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.pp-step-body { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.pp-step-body a, .pp-legal a { color: var(--accent); }
.pp-step-body code, .pp-gotcha code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--bg-alt); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

/* gotchas: cards, not a bullet wall */
.pp-gotchas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-gotcha { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; border: 1px solid #e8b04b; background: #fffaf0; border-radius: 14px; padding: 14px 16px; }
.pp-gotcha-i { font-size: 20px; line-height: 1.2; }
.pp-gotcha b { display: block; font-size: 15px; color: var(--ink); }
.pp-gotcha span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }

/* legal: four chips instead of four sentences */
.pp-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-chip { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px; text-decoration: none; background: #fff; }
.pp-chip span { font-size: 18px; line-height: 1.2; grid-row: span 2; }
.pp-chip b { font-size: 15px; color: var(--ink); }
.pp-chip em { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); font-style: normal; }
a.pp-chip:hover { border-color: var(--accent); }
.pp-chip.is-static { cursor: default; }

/* boxes (kid section) */
.pp-box { margin-top: 22px; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.pp-box h3 { font-size: 15px; margin: 0 0 10px; }
.pp-box ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pp-box li + li { margin-top: 6px; }
.pp-box.is-warn { border-color: #e8b04b; background: #fffaf0; }
.pp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pp-duo .pp-box { margin-top: 0; }
.pp-duo-i { font-size: 18px; margin-right: 4px; }

/* kit */
.pp-kit-card { border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px; margin-top: 18px; }
.pp-kit-list { list-style: none; margin: 0; padding: 0; }
.pp-kit-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.pp-kit-list li:last-child { border-bottom: 0; }
.pp-kit-list b { display: block; font-size: 15px; color: var(--ink); }
.pp-kit-list span { font-size: 13px; color: var(--ink-3); }
.pp-lock { color: var(--ink-3); font-size: 16px; }
.pp-kit-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.pp-signin { font-size: 14px; color: var(--ink-2); }

.pp-join { margin-top: 64px; }
.pp-join .card-cta { flex-wrap: wrap; }

@media (max-width: 700px) {
    .pp-sec h2 { font-size: 24px; }
    .pp-why, .pp-duo, .pp-gotchas, .pp-legal { grid-template-columns: minmax(0, 1fr); }
    .pp-stat { flex-basis: calc(50% - 5px); }
    .pp-fig { width: 100vw; }
    .pp-figscroll { padding: 0 16px 6px; }
    .pp-fighint { display: block; }
    .pp-fig figcaption { padding: 0 20px; }
    .pp-phases { flex-direction: column; }
    .pp-phase-arrow { display: none; }
    .pp-part { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 14px; }
    .pp-part-img { width: 56px; height: 56px; grid-row: span 2; }
    .pp-part-meta { text-align: left; display: flex; gap: 10px; align-items: baseline; }
    .pp-kit-cta .btn, .pp-actions .btn, .pp-join .card-cta .btn { width: 100%; justify-content: center; }
}
