/* Static platform pages. Same look as the main site (dark, warm orange accent); tokens mirror styles.css. */
:root {
  --bg: #0c0c0f; --surface: #18181d; --surface-2: #202027; --line: #2b2b32;
  --accent: #f29a4a; --accent-hover: #f6a65d;
  --text: #f7f4ef; --text-strong: #fbf8f3; --muted: #b8b4ad; --muted-2: #9b9790;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.pg-header, .pg-layout, .pg-footer { width: min(calc(100% - 32px), 1080px); margin-inline: auto; }
.pg-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0; flex-wrap: wrap; }
.pg-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); font: 800 18px/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.pg-logo-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); }
.pg-logo-badge img { display: block; }
.pg-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.pg-nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.pg-nav a:hover { color: var(--text); }
.pg-btn, .pg-nav a.pg-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 12px; background: var(--accent); color: #0c0c0f; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .15s; }
.pg-btn:hover, .pg-nav a.pg-btn:hover { background: var(--accent-hover); color: #0c0c0f; }
.pg-btn-block { display: flex; width: 100%; padding: 14px 18px; font-size: 15px; }

.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 8px 0 64px; align-items: start; }
.pg-article { min-width: 0; max-width: 700px; }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 20px; color: var(--muted-2); font-size: 13px; }
.pg-crumbs a { color: var(--muted-2); text-decoration: none; }
.pg-crumbs a:hover { color: var(--text); }

h1 { margin: 0 0 14px; color: var(--text-strong); font: 700 clamp(28px, 4vw, 38px)/1.12 var(--font-display); letter-spacing: -0.04em; text-wrap: balance; }
h2 { margin: 0 0 14px; color: var(--text-strong); font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.pg-article > section { margin-top: 36px; }
.pg-eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: rgba(242, 154, 74, 0.14); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* answer-first summary */
.pg-quick { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pg-quick h2 { margin-bottom: 14px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pg-quick dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.pg-quick dt { margin-bottom: 4px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.pg-quick dd { margin: 0; color: var(--text-strong); font-size: 15px; font-weight: 800; line-height: 1.35; }

ul, ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
li + li { margin-top: 8px; }
.pg-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.pg-steps li { position: relative; margin: 0; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-size: 15px; counter-increment: s; }
.pg-steps li::before { content: counter(s); position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #0c0c0f; font-size: 14px; font-weight: 800; }
h3 { margin: 22px 0 10px; color: var(--text-strong); font-size: 16px; font-weight: 800; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pg-chips li { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; }
.pg-chips a { color: var(--text); font-weight: 700; text-decoration: none; }
.pg-chips li:has(a):hover { border-color: var(--accent); }

.pg-faq { display: grid; gap: 10px; }
.pg-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pg-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.pg-faq details[open] summary::after { content: '\2212'; }
.pg-faq p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 15px; }
.pg-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-tips div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pg-tips strong { color: var(--text-strong); font-size: 15px; font-weight: 800; }
.pg-tips span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.pg-updated { margin: 36px 0 0; color: var(--muted-2); font-size: 13px; }

.pg-aside { position: sticky; top: 20px; }
.pg-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.pg-card h2 { margin-bottom: 12px; font-size: 18px; }
.pg-card ul { margin: 0 0 18px; padding: 0; list-style: none; }
.pg-card li { position: relative; padding-left: 22px; font-size: 14px; }
.pg-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pg-card p { margin: 12px 0 0; color: var(--muted-2); font-size: 12px; }

.pg-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.pg-footer strong { color: var(--text); }
.pg-footer p { margin: 4px 0 0; }
.pg-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.pg-footer a { color: var(--muted); text-decoration: none; }
.pg-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .pg-layout { grid-template-columns: 1fr; gap: 28px; }
  .pg-aside { position: static; }
  .pg-quick dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-tips { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pg-nav a:not(.pg-btn):nth-child(-n+2) { display: none; }
  .pg-lead { font-size: 16px; }
  .pg-steps li { padding-left: 56px; }
}

/* blog + conversion */
.pg-sec { margin-top: 36px; }
.pg-sec h2 { margin: 0 0 14px; }
.pg-sec p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 62ch; }
.pg-sec ul, .pg-sec ol:not(.pg-steps) { color: var(--muted); font-size: 16px; line-height: 1.65; }
.pg-quick > ul { margin: 0; padding-left: 20px; }
.pg-quick > ul li { color: var(--text); font-size: 15px; }
.pg-tip { position: relative; margin: 16px 0 0 !important; padding: 14px 16px 14px 44px; border: 1px solid rgba(242, 154, 74, 0.35); border-radius: 14px; background: rgba(242, 154, 74, 0.08); color: var(--text) !important; font-size: 15px !important; }
.pg-tip::before { content: '!'; position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #0c0c0f; font-size: 13px; font-weight: 800; }
.pg-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pg-inline-cta div { display: flex; flex-direction: column; gap: 2px; }
.pg-inline-cta strong { color: var(--text-strong); font-size: 16px; }
.pg-inline-cta span { color: var(--muted); font-size: 14px; }
.pg-links { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pg-links a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.pg-links a:hover { border-color: var(--accent); }
.pg-layout-wide { grid-template-columns: 1fr; }
.pg-article-wide { max-width: none; }
.pg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 28px; }
.pg-post { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--muted); text-decoration: none; transition: border-color .15s, transform .15s; }
.pg-post:hover { border-color: var(--accent); transform: translateY(-2px); }
.pg-post strong { color: var(--text-strong); font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.pg-post span { font-size: 14px; line-height: 1.5; }
.pg-post-meta { color: var(--accent) !important; font-size: 12px !important; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pg-sticky { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 76px; }
  .pg-sticky { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 15px 18px; border-radius: 16px; background: var(--accent); color: #0c0c0f; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
}

/* interactive troubleshooter */
.pg-quiz { margin-top: 32px; padding: 24px; border: 1px solid rgba(242, 154, 74, 0.4); border-radius: 22px; background: linear-gradient(180deg, rgba(242, 154, 74, 0.10), var(--surface)); }
.pg-quiz .pg-eyebrow { margin-bottom: 10px; }
.pg-quiz h2 { margin: 0 0 6px; font-size: 22px; }
.pg-quiz-lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.pg-quiz-q { margin: 0 0 12px; color: var(--text-strong); font-size: 17px; font-weight: 800; }
.pg-quiz-options { display: grid; gap: 8px; }
.pg-quiz-opt { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--text); font: 700 15px var(--font-body); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pg-quiz-opt:hover { border-color: var(--accent); background: var(--surface-3, #27272f); }
.pg-quiz-back { margin-top: 12px; padding: 8px 4px; border: 0; background: none; color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; }
.pg-quiz-back:hover { color: var(--text); }
.pg-quiz-title { margin: 0 0 12px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.pg-quiz-steps { margin: 0 0 12px; padding-left: 22px; color: var(--text); font-size: 15px; }
.pg-quiz-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(242, 154, 74, 0.10); color: var(--text); font-size: 14px; }
.pg-quiz-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
