/* CR-087: Contact (/contactus) and Download (/download-app) page bodies, from the designs "Stream-It Contact" and
   "Stream-It Download" (Claude-Document/handoff-download-contact). The site header and footer (_SiteLayout) are not
   touched: every class here starts with "pg-". Colours are the layout's tokens (--ink, --paper, --tx, --tx3, --line,
   --muted, --red, --link) plus the design's own, named below. */
.pg {
    --pg-acc: #FF5A47;        /* accent on dark: eyebrows, "FOR THIS PHONE" */
    --pg-red-ink: #C9301F;    /* red text on light */
    --pg-panel: #151517;      /* dark chip / card inside the dark band */
    --pg-panel-2: #1C1C1F;
    --pg-soft: #C9C5BE;       /* body text on dark */
    --pg-ok: #34C77B;
    --pg-field: #FAF9F6;
    --pg-field-line: #D6D1C6;
    --pg-row: #EDEAE3;
    --pg-error: #B3261E;
    --pg-error-dark: #FF8A7A; /* error text on dark */
    --pg-live-bg: #DDF3E6; --pg-live: #16683E;
    --pg-soon-bg: #F6E3B4; --pg-soon: #6B4A00;
    color: var(--tx);
    font-family: 'Funnel Sans', "Segoe UI", Roboto, Arial, sans-serif;
}
.pg a { color: var(--tx); text-decoration: none; }
.pg a:hover { color: var(--pg-red-ink); }
.pg button, .pg input, .pg textarea { font-family: inherit; }
.pg button { cursor: pointer; }
.pg :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pg-dark :focus-visible, .pg-dark-card :focus-visible { outline-color: var(--pg-acc); }
.pg-in { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.pg h1, .pg h2 { margin: 0; font-family: 'Funnel Display', sans-serif; font-weight: 700; }
.pg-eyebrow { font: 500 13px 'DM Mono', ui-monospace, monospace; color: var(--pg-acc); }
.pg-key { font: 500 12px 'DM Mono', ui-monospace, monospace; color: var(--pg-red-ink); }
.pg-dot { width: 10px; height: 10px; flex: none; border-radius: 5px; background: var(--pg-ok); box-shadow: 0 0 0 4px rgba(52,199,123,.2); }
.pg-dot.off { background: var(--muted); box-shadow: 0 0 0 4px rgba(168,164,158,.2); }
.pg-card { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.pg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- dark title band (Contact) / hero (Download) */
.pg-dark { background: var(--ink); color: var(--paper); overflow: hidden; }
.pg-dark a { color: var(--paper); }
.pg-band { padding-top: 80px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.pg-band-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pg-band h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.pg-lead { margin: 0; max-width: 560px; font: 400 19px/1.5 'Funnel Sans', sans-serif; color: var(--pg-soft); text-wrap: pretty; }
.pg-status { flex: 0 1 340px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--pg-panel); border: 1px solid rgba(255,255,255,.08); }
.pg-status b { display: block; font: 600 15px 'Funnel Sans', sans-serif; }
.pg-status small { display: block; font: 400 13px 'Funnel Sans', sans-serif; color: var(--muted); margin-top: 2px; }

/* ---- Contact: channel cards */
.pg-channels { padding-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.pg-channel { display: flex; flex-direction: column; gap: 10px; }
.pg-channel h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.pg-channel p { margin: 0; flex: 1; font: 400 15px/1.5 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-channel a { padding-top: 6px; font: 600 16px 'Funnel Sans', sans-serif; overflow-wrap: anywhere; }

/* ---- Contact: form + quick answers */
.pg-form-row { padding-top: 56px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.pg-form-card { flex: 1.4 1 560px; min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.pg-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.pg-form h2, .pg-done h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.pg-topics { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-topics legend { padding: 0; margin: 0 0 10px; font: 600 14px 'Funnel Sans', sans-serif; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { position: relative; display: inline-flex; }
.pg-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pg-chip span { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--pg-field-line); background: transparent; color: var(--tx); display: inline-flex; align-items: center; font: 600 14px 'Funnel Sans', sans-serif; }
.pg-chip input:checked + span { background: var(--tx); border-color: var(--tx); color: var(--paper); }
.pg-chip input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.pg-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pg-field label, .pg-field .pg-label { font: 600 14px 'Funnel Sans', sans-serif; }
.pg-field label small { font: 400 14px 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pg-field-line); background: var(--pg-field); font: 500 16px 'Funnel Sans', sans-serif; color: var(--tx); }
textarea.pg-input { height: auto; min-height: 140px; padding: 14px; line-height: 1.5; resize: vertical; }
.pg-input[aria-invalid="true"] { border-color: var(--pg-error); }
.pg-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pg-sum .pg-input { width: 110px; }
.pg-hint { margin: 0; font: 400 13px/1.5 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-error { margin: 0; font: 500 14px 'Funnel Sans', sans-serif; color: var(--pg-error); }
.pg-error:empty { display: none; }
.pg-send-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pg-send-row .pg-hint { max-width: 340px; }
.pg-send-row .pg-hint a { text-decoration: underline; }
.pg-send { height: 52px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--tx); color: var(--paper); font: 700 16px 'Funnel Sans', sans-serif; }
.pg-send[disabled] { opacity: .6; cursor: progress; }
.pg-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pg-done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 0; }
.pg-done p { margin: 0; max-width: 460px; font: 400 17px/1.55 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-done-mark { width: 56px; height: 56px; border-radius: 28px; background: var(--pg-ok); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 26px 'Funnel Sans', sans-serif; }
.pg-again { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--tx); background: transparent; color: var(--tx); font: 600 15px 'Funnel Sans', sans-serif; display: inline-flex; align-items: center; }
.pg-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pg-side > h2 { font: 500 12px 'DM Mono', ui-monospace, monospace; color: var(--tx3); letter-spacing: 0; }
[hidden] { display: none !important; }

/* ---- accordions (Contact quick answers, Download install questions) */
.pg-acc-item { border-bottom: 1px solid var(--line); }
.pg-acc-item h3 { margin: 0; font: inherit; }
.pg-acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border: 0; background: transparent; text-align: left; font: 500 16px 'Funnel Sans', sans-serif; color: var(--tx); }
.pg-acc-sign { flex: none; font: 400 22px/1 'Funnel Sans', sans-serif; }
.pg-acc-sign::before { content: "+"; }
.pg-acc-btn[aria-expanded="true"] .pg-acc-sign::before { content: "\2212"; }
.pg-acc-panel p { margin: 0; padding: 0 0 16px; font: 400 15px/1.55 'Funnel Sans', sans-serif; color: var(--tx3); text-wrap: pretty; }
/* Without JavaScript every answer stays readable; with it (html.pg-js, set before the page draws) one opens at a time. */
html.pg-js .pg-acc-panel.pg-shut { display: none; }
.pg-faq .pg-acc-item { border-color: var(--pg-field-line); }
.pg-faq .pg-acc-btn { padding: 20px 0; gap: 16px; font: 600 18px 'Funnel Sans', sans-serif; }
.pg-faq .pg-acc-sign { font-size: 24px; }
.pg-faq .pg-acc-panel p { padding: 0 0 22px; max-width: 680px; font: 400 16px/1.6 'Funnel Sans', sans-serif; }

/* ---- Download: hero */
.pg-hero { padding-top: 80px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: center; }
.pg-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pg-hero h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.pg-tag { margin: 0; align-self: flex-start; display: flex; align-items: stretch; height: 38px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(229,56,59,.25); }
/* 19px bold: large text, so white on the brand red passes (4.2:1 needs 3:1 at this size). */
.pg-tag-free { padding: 0 14px; background: var(--red); color: #fff; display: flex; align-items: center; gap: 8px; font: 800 19px/1 'Barlow Condensed', "Arial Narrow", sans-serif; letter-spacing: .08em; }
.pg-tag-free i { width: 8px; height: 8px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.pg-tag-what { white-space: nowrap; padding: 0 16px; background: var(--pg-panel-2); color: var(--paper); display: flex; align-items: center; gap: 12px; font: 500 13px 'DM Mono', ui-monospace, monospace; letter-spacing: .08em; }
.pg-tag-what i { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.pg-tag-what span { color: var(--muted); }
.pg-device { display: flex; align-items: center; gap: 10px; font: 500 14px 'Funnel Sans', sans-serif; color: var(--muted); }
.pg-device .pg-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(52,199,123,.18); }
.pg-stores { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.pg-store { position: relative; height: 64px; min-width: 208px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--paper); color: var(--ink) !important; border: 1px solid var(--paper); display: flex; align-items: center; gap: 14px; }
.pg-store.pg-quiet { background: transparent; color: var(--paper) !important; border-color: rgba(245,243,238,.35); }
.pg-store.pg-soon { background: transparent; color: var(--muted) !important; border: 1px dashed rgba(245,243,238,.35); cursor: default; }
.pg-store svg { flex: none; display: block; }
.pg-store small { display: block; font: 500 12px/1 'Funnel Sans', sans-serif; opacity: .8; margin-bottom: 2px; }
.pg-store strong { display: block; font: 700 22px/1.05 'Funnel Sans', sans-serif; letter-spacing: -.01em; }
.pg-for { position: absolute; top: -10px; right: 12px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--pg-acc); color: var(--ink); font: 500 11px/20px 'DM Mono', ui-monospace, monospace; }
.pg-free-note { font: 400 14px/1.5 'Funnel Sans', sans-serif; color: var(--muted); }
.pg-free-note a { border-bottom: 1px solid rgba(245,243,238,.4); }
.pg-hero-art { flex: 0 1 460px; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.pg-phone { width: 230px; padding: 9px; border-radius: 40px; background: #000; box-shadow: 0 0 0 2px #2A2A2E, 0 40px 90px rgba(0,0,0,.6); transform: rotate(-4deg); }
.pg-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.pg-qr { width: 200px; padding: 16px; border-radius: 20px; background: var(--paper); color: var(--tx); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.pg-qr svg { display: block; width: 168px; height: 168px; }
.pg-qr b { font: 600 15px/1.3 'Funnel Sans', sans-serif; }
.pg-qr span { font: 400 13px/1.45 'Funnel Sans', sans-serif; color: var(--tx3); }

/* ---- Download: where it runs */
.pg-section { padding-top: 72px; display: flex; flex-direction: column; gap: 28px; }
.pg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.pg-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.pg-head p { margin: 0; max-width: 440px; font: 400 16px/1.5 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pg-platform { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pg-platform-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pg-platform-top > span:first-child { font: 500 12px 'DM Mono', ui-monospace, monospace; color: var(--tx3); }
.pg-pill { height: 24px; padding: 0 10px; border-radius: 12px; font: 500 11px/24px 'DM Mono', ui-monospace, monospace; background: var(--pg-live-bg); color: var(--pg-live); white-space: nowrap; }
.pg-pill.soon { background: var(--pg-soon-bg); color: var(--pg-soon); }
.pg-platform h3, .pg-dark-card h3 { margin: 0; font: 700 28px/1.1 'Funnel Display', sans-serif; letter-spacing: -.03em; }
.pg-facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--pg-row); }
.pg-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--pg-row); font: 400 15px 'Funnel Sans', sans-serif; }
.pg-facts dt { color: var(--tx3); }
.pg-facts dd { margin: 0; font-weight: 600; text-align: right; }
.pg-cta { margin-top: auto; height: 48px; border-radius: 12px; background: var(--tx); color: var(--paper) !important; display: flex; align-items: center; justify-content: center; font: 700 15px 'Funnel Sans', sans-serif; text-align: center; padding: 0 12px; }
.pg-cta.pg-soon { background: transparent; color: var(--tx3) !important; border: 1px dashed var(--pg-field-line); cursor: default; }
.pg-dark-card { padding: 28px; border-radius: 20px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.pg-dark-card .pg-platform-top > span:first-child { color: var(--muted); }
.pg-dark-card p { margin: 0; font: 400 15px/1.55 'Funnel Sans', sans-serif; color: var(--pg-soft); text-wrap: pretty; }
.pg-wait { margin: auto 0 0; display: flex; flex-direction: column; gap: 10px; }
.pg-wait-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-wait .pg-input { flex: 1 1 180px; min-width: 0; height: 48px; background: var(--pg-panel); color: var(--paper); border-color: rgba(255,255,255,.14); font-size: 15px; }
.pg-wait .pg-input[aria-invalid="true"] { border-color: var(--pg-acc); }
.pg-wait button { height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); font: 700 15px 'Funnel Sans', sans-serif; }
.pg-wait button[disabled] { opacity: .6; cursor: progress; }
.pg-wait .pg-hint { color: var(--muted); }
.pg-wait .pg-hint.bad { color: var(--pg-error-dark); }
.pg-joined { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--pg-panel); border: 1px solid rgba(255,255,255,.08); font: 500 15px/1.4 'Funnel Sans', sans-serif; }
.pg-joined i { width: 28px; height: 28px; flex: none; border-radius: 14px; background: var(--pg-ok); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 15px 'Funnel Sans', sans-serif; font-style: normal; }

/* ---- Download: steps and questions */
.pg-steps-card { padding: clamp(28px, 4vw, 48px); border-radius: 24px; display: flex; flex-direction: column; gap: 32px; }
.pg-steps-card > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.pg-steps-card h2, .pg-faq-row > h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.pg-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 40px; }
.pg-steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--tx); }
.pg-steps li > span { font: 500 13px 'DM Mono', ui-monospace, monospace; color: var(--tx3); }
.pg-steps h3 { margin: 0; font: 700 21px/1.2 'Funnel Display', sans-serif; letter-spacing: -.02em; }
.pg-steps p { margin: 0; font: 400 15px/1.55 'Funnel Sans', sans-serif; color: var(--tx3); text-wrap: pretty; }
.pg-faq-row { padding-top: 72px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.pg-faq-row > h2 { flex: 1 1 280px; }
.pg-faq { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--pg-field-line); }
.pg-still { padding-top: 20px; font: 400 15px 'Funnel Sans', sans-serif; color: var(--tx3); }
.pg-still a { font-weight: 600; border-bottom: 1px solid var(--tx); }

@media (max-width: 720px) {
    .pg-in { padding: 0 16px; }
    .pg-band, .pg-hero { padding-top: 48px; padding-bottom: 56px; }
    .pg-form-row, .pg-faq-row { padding-bottom: 72px; }
    .pg-channels, .pg-form-row, .pg-section, .pg-faq-row { padding-top: 40px; }
    .pg-store { min-width: 0; flex: 1 1 100%; }
    .pg-tag-what { padding: 0 12px; gap: 8px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: no-preference) {
    .pg-chip span, .pg-store, .pg-send, .pg-cta { transition: background-color .15s, color .15s, border-color .15s; }
}
