/* ProxyPi marketing + docs pages (batch 3). Uses the variables defined in base.html. */
.pp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.pp-narrow { max-width: 860px; }
.pp-hero { padding: 56px 0 28px; }
.pp-hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.pp-hero .lead { color: var(--text-body); font-size: 1.12rem; max-width: 760px; }
.pp-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.25rem 0 1.5rem; }
.pp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.03); color: var(--text-body); font-size: 0.85rem; }
.pp-pill i { color: var(--primary); }
.pp-section { padding: 28px 0; }
.pp-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; scroll-margin-top: 110px; }
.pp-section h3 { font-size: 1.15rem; font-weight: 650; margin-top: 1.25rem; scroll-margin-top: 110px; }
.pp-section p.sub { color: var(--text-dim); max-width: 760px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pp-card { background: linear-gradient(180deg, #111827, #0b1220); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px; height: 100%; }
.pp-card h3, .pp-card h4 { font-size: 1.05rem; font-weight: 650; margin: 0.5rem 0; color: var(--text-main); }
.pp-card p { margin-bottom: 0; font-size: 0.95rem; }
.pp-card i.bi { font-size: 1.6rem; color: var(--primary); }
a.pp-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.pp-card:hover { border-color: rgba(0,188,212,0.45); transform: translateY(-2px); }
a.pp-card .pp-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; display: inline-block; }
.pp-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.pp-steps > li { position: relative; padding: 0 0 1rem 3rem; min-height: 2.2rem; }
.pp-steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(0,188,212,0.15); border: 1px solid rgba(0,188,212,0.35); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.pp-steps > li strong { color: var(--text-main); }
.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: linear-gradient(180deg, #111827, #0b1220); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; font-size: 0.93rem; }
.pp-table th, .pp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); color: var(--text-body); }
.pp-table th { background: rgba(255,255,255,0.04); color: var(--text-main); font-weight: 600; }
.pp-table tr:last-child td { border-bottom: none; }
.pp-table td:first-child { color: var(--text-main); font-weight: 500; }
.pp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-code { position: relative; background: #020617; border: 1px solid var(--border-subtle); border-radius: 12px; margin: 12px 0 16px; }
.pp-code-label { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 0.78rem; color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pp-copy { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-body); border-radius: 6px; font-size: 0.75rem; padding: 2px 8px; cursor: pointer; }
.pp-copy:hover { color: var(--primary); border-color: rgba(0,188,212,0.45); }
.pp-code pre { margin: 0; padding: 14px; overflow-x: auto; color: #e2e8f0; font-size: 0.85rem; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
code { color: #67e8f9; }
.pp-note { border-left: 3px solid var(--primary); background: rgba(0,188,212,0.06); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; color: var(--text-body); font-size: 0.95rem; }
.pp-note.warn { border-left-color: #f59e0b; background: rgba(245,158,11,0.07); }
.pp-note p:last-child { margin-bottom: 0; }
.pp-list-ok, .pp-list-no { list-style: none; padding: 0; margin: 0; }
.pp-list-ok li, .pp-list-no li { position: relative; padding-left: 1.7rem; margin-bottom: 0.5rem; }
.pp-list-ok li > i.bi, .pp-list-no li > i.bi { position: absolute; left: 0; top: 0.05rem; }
.pp-list-ok li > i.bi { color: #34d399; }
.pp-list-no li > i.bi { color: #f87171; }
.pp-cta { margin: 36px 0 56px; padding: 28px; border-radius: 18px; border: 1px solid rgba(0,188,212,0.28); background: linear-gradient(180deg, rgba(0,188,212,0.12), rgba(11,18,32,0.94)); }
.pp-cta h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.pp-cta p { margin-bottom: 1rem; }
.pp-small { font-size: 0.85rem; color: var(--text-dim); }
.pp-sources { font-size: 0.85rem; color: var(--text-dim); padding-left: 1.2rem; }
.pp-sources li { color: var(--text-dim); margin-bottom: 0.35rem; }
.pp-sources a, .pp-section a:not(.btn):not(.pp-card), .pp-hero a:not(.btn) { color: var(--primary); }
.pp-crumbs { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.pp-crumbs a { color: var(--text-body); text-decoration: none; }
.pp-crumbs a:hover { color: var(--primary); }
.pp-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.pp-docnav { position: sticky; top: 110px; font-size: 0.9rem; }
.pp-docnav .pp-kicker { margin-top: 0.5rem; }
.pp-docnav ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.pp-docnav li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-body); text-decoration: none; }
.pp-docnav li a:hover, .pp-docnav li a.active { background: rgba(0,188,212,0.1); color: var(--primary); }
.pp-plan { display: flex; gap: 14px; align-items: flex-start; }
.pp-plan i.bi { font-size: 1.8rem; color: var(--primary); }
sup.pp-ref a { color: var(--primary); text-decoration: none; font-size: 0.75em; }
@media (max-width: 900px) {
  .pp-docs { grid-template-columns: minmax(0, 1fr); }
  .pp-docnav { position: static; order: 2; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }
}
@media (max-width: 768px) {
  .pp-hero { padding: 36px 0 20px; }
  .pp-hero h1 { font-size: 1.9rem; }
  .pp-section h2 { font-size: 1.35rem; }
  .pp-cta { padding: 20px; }
}
.pp-docs > * { min-width: 0; }

/* Mobile overflow guard: grid/flex children must be allowed to shrink below their content width */
.pp-wrap { width: 100%; box-sizing: border-box; min-width: 0; }
.pp-grid > *, .pp-section > *, .pp-wrap > * { min-width: 0; }
.pp-code { max-width: 100%; }
.pp-section p, .pp-section li, .pp-section h2, .pp-section h3 { overflow-wrap: anywhere; }
