* {
    box-sizing: border-box;
}

:root {
    --blue: #1769aa;
    --blue-dark: #0e4775;
    --green: #16834a;
    --ink: #1f2937;
    --muted: #667085;
    --line: #e3e8ef;
    --surface: #ffffff;
    --background: #f3f6f9;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px 16px 48px;
    color: var(--ink);
    background: var(--background);
    font-family: Arial, sans-serif;
}

.page-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.page-shell--narrow {
    width: min(100%, 1040px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.brand img {
    display: block;
    width: min(100%, 210px);
    height: auto;
}

.back-link {
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    text-decoration: underline;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumb a {
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline;
}

.hero-card,
.printer-header-card,
.content-card,
.message-card,
.printer-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.hero-card {
    padding: 34px;
    text-align: center;
}

.printer-header-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
}

.printer-header-copy {
    min-width: 0;
}

.printer-header-copy .eyebrow {
    margin-bottom: 4px;
}

.printer-header-copy h1 {
    margin-bottom: 4px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.printer-header-copy .hero-copy {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.printer-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.printer-facts div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.printer-facts dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.printer-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.35;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    line-height: 1.15;
}

h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.hero-copy {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.printer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.printer-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.printer-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 14px;
    background: #f8fafc;
    transition: transform 0.25s ease;
}

.printer-image-link {
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.printer-image-link:hover .printer-image,
.printer-image-link:focus-visible .printer-image {
    transform: scale(1.045);
}

.printer-image-link:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.45);
    outline-offset: 3px;
}

.printer-preview {
    display: block;
    flex: 0 0 auto;
    width: 88px;
    height: 72px;
    margin: 0;
    object-fit: contain;
    border-radius: 14px;
    background: #f8fafc;
}

.printer-card p,
.message-card p,
.content-card p {
    color: var(--muted);
    line-height: 1.55;
}

.printer-icon,
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: var(--blue);
    font-size: 1.2rem;
    font-weight: 800;
}

.file-label {
    display: inline-block;
    margin-top: 4px;
    color: #475467;
    font-size: 0.86rem;
}

.primary-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.primary-button {
    margin-top: auto;
    color: #fff;
    background: var(--blue);
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--blue-dark);
}

.primary-button--inline {
    margin-top: 12px;
}

.notice,
.small-note {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notice {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #e0a100;
    border-radius: 8px;
    background: #fff9e8;
}

.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 20px;
    margin-top: 22px;
}

.youtube-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #f1b8b8;
    border-radius: 16px;
    background: #fff7f7;
}

.youtube-cta-icon {
    display: grid;
    width: 44px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #e62117;
    font-size: 0.95rem;
}

.youtube-cta-copy {
    min-width: 0;
    flex: 1;
}

.youtube-cta-copy .eyebrow {
    margin-bottom: 4px;
    color: #c51616;
}

.youtube-cta-copy h2 {
    margin-bottom: 4px;
}

.youtube-cta-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.youtube-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 9px;
    color: #fff;
    background: #e62117;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.youtube-cta-button:hover,
.youtube-cta-button:focus-visible {
    background: #b71912;
}

.pending-badge {
    flex: 0 0 auto;
    padding: 9px 11px;
    border-radius: 999px;
    color: #8a4b00;
    background: #fff0c2;
    font-size: 0.78rem;
    font-weight: 800;
}

.related-section {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.related-section .section-heading {
    margin-bottom: 14px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #f8fafc;
    text-decoration: none;
}

.related-card:hover,
.related-card:focus-visible {
    border-color: #9cc3e2;
    background: #f1f8ff;
}

.related-card span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.related-card b {
    margin-top: auto;
    color: var(--blue-dark);
    font-size: 0.82rem;
}

.related-card.is-pending {
    border-style: dashed;
}

.related-card.is-pending b {
    color: #8a4b00;
}

.ad-banner {
    width: 100%;
    margin: 24px auto 0;
}

.ad-banner a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-banner a:hover,
.ad-banner a:focus-visible {
    transform: scale(1.015);
    box-shadow: 0 10px 24px rgba(23, 105, 170, 0.22);
}

.ad-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.ad-banner a:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.45);
    outline-offset: 4px;
}

.content-card,
.message-card {
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading .eyebrow {
    margin-bottom: 4px;
}

.section-heading h2 {
    margin: 0;
}

.video-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #101828;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.placeholder-panel {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px dashed #b9c4d0;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    background: #f8fafc;
}

.placeholder-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 50%;
    color: #fff;
    background: #98a2b3;
}

.file-name {
    padding: 12px;
    border-radius: 10px;
    color: var(--ink) !important;
    font-weight: 700;
    background: #f8fafc;
}

.timer-message {
    min-height: 52px;
}

.progress-track {
    height: 10px;
    margin: 16px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 0.3s ease;
}

.download-button {
    width: 100%;
    color: #fff;
    background: var(--green);
}

.download-button.is-disabled {
    color: #667085;
    background: #e4e7ec;
    cursor: not-allowed;
}

.noscript-warning {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    color: #8a4b00 !important;
    background: #fff5d6;
    font-size: 0.88rem;
}

.small-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
    .printer-image {
        transition: none;
    }

    .ad-banner a {
        transition: none;
    }

    .printer-image-link:hover .printer-image,
    .printer-image-link:focus-visible .printer-image {
        transform: none;
    }

    .ad-banner a:hover,
    .ad-banner a:focus-visible {
        transform: none;
    }
}

@media (max-width: 720px) {
    body {
        padding: 16px 12px 32px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-card,
    .printer-header-card,
    .content-card,
    .message-card,
    .printer-card {
        border-radius: 16px;
    }

    .hero-card,
    .content-card,
    .message-card {
        padding: 22px 18px;
    }

    .printer-header-card {
        gap: 12px;
        padding: 14px 16px;
    }

    .printer-preview {
        width: 64px;
        height: 56px;
        border-radius: 10px;
    }

    .printer-header-copy h1 {
        font-size: 1.25rem;
    }

    .printer-header-copy .hero-copy {
        font-size: 0.82rem;
    }

    .printer-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .youtube-cta {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 16px;
    }

    .youtube-cta-copy {
        flex-basis: calc(100% - 58px);
    }

    .youtube-cta-button,
    .pending-badge {
        width: 100%;
        text-align: center;
    }

    .related-section {
        padding: 18px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .printer-grid,
    .download-layout {
        grid-template-columns: 1fr;
    }
}
