/* Build-in-public project pages (drone-agent.html and the ones after it).
   Tokens come from app.css; everything here is prefixed pp-. */
.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-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; }
.hero-air.pp-hero .trust { margin: 16px auto 0; max-width: 44ch; }

/* 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 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); }

/* how it works: a chain of boxes, the human override beside it */
.pp-flow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.pp-chain { list-style: none; margin: 0; padding: 0; }
.pp-node { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pp-node b { display: block; font-size: 15px; color: var(--ink); }
.pp-node span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.pp-node.is-agent { border-color: var(--accent); background: var(--accent-soft); }
.pp-node.is-drone { border: 1.5px solid var(--ink); }
.pp-link { text-align: center; font-size: 12px; color: var(--ink-3); padding: 6px 0; }
.pp-link::before { content: "↓"; display: block; font-size: 16px; line-height: 1; color: var(--ink-3); }
.pp-link.is-radio { color: #7c3aed; font-weight: 600; }
.pp-side { border: 1px dashed var(--hairline); border-radius: 14px; padding: 14px; }
.pp-side .pp-node { background: var(--bg-alt); }
.pp-side-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.pp-note { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* 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 */
.pp-part-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.pp-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.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-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; }

/* steps */
.pp-steps { list-style: none; margin: 0; padding: 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-gotchas 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); }
.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; }

/* kid */
.pp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pp-duo .pp-box { margin-top: 0; }

/* 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-flow, .pp-duo { grid-template-columns: minmax(0, 1fr); }
    .pp-part { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .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; }
}
