/* Product-page layout only. Shared navigation, theme and payment code stay shared. */
body.copilot-product {
    --cp-surface: #ffffff;
    --cp-background: #f4f7fa;
    --cp-ink: #172638;
    --cp-muted: #526477;
    --cp-border: #dce5ed;
    --cp-accent: #137d4d;
    background: var(--cp-background);
    color: var(--cp-ink);
    overflow: auto;
    min-height: 100vh;
}

body.copilot-product.dark-mode {
    --cp-surface: #111e2e;
    --cp-background: #09121e;
    --cp-ink: #eef4fa;
    --cp-muted: #a8b9cb;
    --cp-border: #26394d;
    --cp-accent: #70d6a6;
}

body.copilot-product main#main-content.container {
    display: block;
    height: auto;
    min-height: 100vh;
    max-width: 1220px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 86px 28px 128px;
}

.copilot-product .cp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 38px;
    padding: 10px 0 46px;
    border-bottom: 1px solid var(--cp-border);
}

.copilot-product .cp-release-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    color: var(--cp-accent);
    background: color-mix(in srgb, var(--cp-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--cp-accent) 28%, transparent);
    border-radius: 5px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.copilot-product .page-main-title {
    font-size: clamp(2.15rem, 3.8vw, 3rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.copilot-product .cp-intro {
    color: var(--cp-muted);
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 540px;
}

.copilot-product .cta-buttons {
    justify-content: flex-start;
    margin: 24px 0 14px !important;
}

.copilot-product .cta-buttons a {
    padding: 14px 20px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    border-radius: 6px;
}

.copilot-product .cta-buttons a.cp-btn-download {
    background: #147b46;
    color: #ffffff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}

.copilot-product .cta-buttons a.cp-btn-download:hover {
    background: #106138;
}

.copilot-product .cta-buttons a.cp-btn-donate {
    background: var(--cp-surface);
    color: var(--cp-ink);
    border: 2px solid #d97706;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
}

.copilot-product .cta-buttons a.cp-btn-donate:hover {
    background: color-mix(in srgb, #d97706 14%, var(--cp-surface));
    border-color: #f59e0b;
}

.copilot-product .cp-download-meta {
    margin: 10px 0 8px;
    color: var(--cp-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.copilot-product .cp-checksum {
    margin: 6px 0 0;
    max-width: 540px;
    font-size: 0.82rem;
    color: var(--cp-muted);
}

.copilot-product .cp-checksum summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--cp-ink);
}

.copilot-product .cp-checksum pre {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.76rem;
    line-height: 1.55;
    color: var(--cp-ink);
}

.copilot-product .cp-support-box {
    max-width: 920px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-left: 4px solid #d97706;
    border-radius: 0 8px 8px 0;
    padding: 24px 24px;
}

.copilot-product .cp-support-box h2 {
    margin-top: 0;
}
.copilot-product a:focus-visible,
.copilot-product button:focus-visible,
.copilot-product input:focus-visible { outline: 3px solid #459eff; outline-offset: 4px; }

.copilot-product .legal-note {
    max-width: 510px;
    margin: 0;
    opacity: 1;
    color: var(--cp-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.copilot-product .cp-dashboard-shot { min-width: 0; margin: 0; }
.copilot-product .cp-dashboard-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    background: #101a24;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.copilot-product figcaption {
    margin-top: 10px;
    color: var(--cp-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.copilot-product .cp-content-block { padding: 36px 0; }
.copilot-product .cp-content-block + .cp-content-block { border-top: 1px solid var(--cp-border); }
.copilot-product h2 {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.copilot-product .cp-content-block > p { max-width: 920px; }
.copilot-product .cp-content-block p { line-height: 1.75; }
.copilot-product .cp-highlights,
.copilot-product .cp-installation ol { padding-left: 24px; margin: 20px 0; }
.copilot-product li { line-height: 1.7; }
.copilot-product .cp-highlights li,
.copilot-product .cp-installation li { margin: 10px 0; padding-left: 4px; }

.copilot-product .cp-overlay-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    padding-left: 25px;
    margin: 22px 0;
}

.copilot-product .cp-overlay-steps li { padding-left: 4px; }
.copilot-product .cp-overlay-steps li::marker { color: var(--cp-accent); font-weight: 750; }
.copilot-product .cp-note,
.copilot-product .cp-update-note {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-left: 3px solid #318bca;
    border-radius: 0 6px 6px 0;
    padding: 16px 18px;
    color: var(--cp-muted);
    margin-top: 22px;
    font-size: 0.94rem;
}

.copilot-product .cp-update-note { border-left-color: #258750; }
.copilot-product .cp-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 30px 0 0;
}

.copilot-product .cp-gallery figure { min-width: 0; }
.copilot-product .cp-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #101a24;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
}

.copilot-product .cp-gallery figcaption { opacity: 1; text-align: left; }
.copilot-product .cp-requirements { color: var(--cp-muted); font-size: 0.92rem; margin-top: 20px; }
.copilot-product .install-note { margin-top: 10px; color: var(--cp-muted); font-size: 0.9rem; }
.copilot-product .cp-resend { max-width: 920px; }
.copilot-product #resend-email {
    color: var(--cp-ink);
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 5px;
    font: inherit;
    max-width: 100%;
}

.copilot-product #resend-btn { font: inherit; border: 0; }
.copilot-product #resend-status { margin-top: 12px; }
.copilot-product footer .container { gap: 8px 22px; flex-wrap: wrap; padding: 0 20px; }
.copilot-product footer p { line-height: 1.5; }

@media (max-width: 900px) {
    .copilot-product .cp-hero-grid { gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .copilot-product .page-main-title { font-size: 2.2rem; }
    .copilot-product .cp-intro { font-size: 0.98rem; }
    .copilot-product .cp-gallery { gap: 16px; }
}

@media (max-width: 720px) {
    body.copilot-product main#main-content.container { padding: 78px 20px 136px; }
    .copilot-product .cp-hero-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
    .copilot-product .page-main-title { font-size: clamp(2.1rem, 8vw, 2.7rem); }
    .copilot-product .cp-content-block { padding: 30px 0; }
    .copilot-product .cp-overlay-steps { grid-template-columns: 1fr; gap: 12px; }
    .copilot-product .cp-gallery { grid-template-columns: 1fr; gap: 26px; }
    .copilot-product .cp-gallery img { max-height: 380px; }
    .copilot-product footer .container { gap: 2px; flex-direction: column; }
}
