/* Shared navigation keeps the full product name and every destination available. */
.mobile-nav { display: none; }
.mobile-only { display: none; }
.topbar .brand, .topbar .nav-links, .topbar .nav > .btn { flex-shrink: 0; }
.mobile-nav summary { cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 20px; height: 20px; }
.mobile-nav-panel a:focus-visible,
.mobile-nav summary:focus-visible,
.screenshot-link:focus-visible,
.screenshot-dialog button:focus-visible,
.screenshot-viewport:focus-visible {
    outline: 3px solid #8c9bff;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .mobile-only { display: inline; }
    .desktop-only { display: none; }
    #contactForm input, #contactForm select, #contactForm textarea { font-size: 16px; }
    .topbar .nav { position: relative; width: calc(100% - 32px); height: 76px; gap: 12px; }
    .topbar .brand { flex: 1 1 auto; min-width: 0; gap: 8px; font-size: 16px; line-height: 1.2; white-space: normal; }
    .topbar .brand img { width: 36px; height: 36px; flex: 0 0 36px; }
    .topbar .brand span { flex: 0 1 auto; max-width: 210px; overflow: visible; white-space: normal; }
    .topbar .nav-links, .topbar .nav > .btn { display: none; }
    .mobile-nav { display: block; flex: 0 0 auto; }
    .mobile-nav summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid #626b80; border-radius: 8px; color: #fff; font-weight: 600; }
    .mobile-nav[open] summary { background: #263354; }
    .mobile-nav-panel { position: absolute; top: calc(100% + 1px); right: 0; width: min(340px, 100%); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid #45516c; border-radius: 0 0 12px 12px; background: #0c1730; color: #fff; box-shadow: 0 16px 32px #0005; }
    .mobile-nav-panel > a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; }
    .mobile-nav-panel > a:hover { background: #263354; }
    .mobile-nav-panel > .btn { margin-top: 8px; white-space: normal; text-align: center; }
    .mobile-nav-panel p { margin: 12px 8px 4px; font-size: 14px; color: #cbd5e1; text-align: center; }
}

/* Real screenshots stay intact; the viewer provides a readable full-size view. */
.screenshot-link { display: block; border-radius: 8px; }
.screenshot-enlarge { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 8px; color: #4652c6; font-size: 14px; font-weight: 600; text-decoration: underline; }
.screenshot-enlarge svg { width: 16px; height: 16px; }
.screenshot-dialog { width: min(1200px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #b6c2da; border-radius: 12px; color: #122d42; background: #fff; box-shadow: 0 24px 80px #0006; }
.screenshot-dialog::backdrop { background: #071225cc; }
.screenshot-dialog-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px; border-bottom: 1px solid #dfe4f4; }
.screenshot-dialog h2 { flex: 1 1 180px; margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: normal; }
.screenshot-dialog-actions { display: flex; gap: 8px; }
.screenshot-dialog button { min-height: 44px; padding: 8px 12px; border: 1px solid #b6c2da; border-radius: 6px; background: #f3f5fb; color: #122d42; font: inherit; cursor: pointer; }
.screenshot-viewport { max-height: calc(100dvh - 168px); overflow: auto; overscroll-behavior: contain; background: #edf2f7; }
.screenshot-viewport img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
.screenshot-viewport.is-zoomed img { width: auto; max-width: none; margin: 0; }
body.screenshot-open { overflow: hidden; }

@media (max-width: 760px) {
    .mobile-only { display: inline; }
    .desktop-only { display: none; }
    .hero { padding: 100px 0 64px; }
    .hero-grid { gap: 16px; }
    .hero-copy { display: contents; }
    .hero .eyebrow { order: 0; justify-self: start; margin: 0; padding: 0; min-height: 24px; background: none; border: 0; font-size: 11px; }
    .hero h1 { order: 1; margin: 0; font-size: clamp(32px, 8.7vw, 38px); line-height: 1.1; letter-spacing: -0.8px; }
    .hero-copy > p.hero-summary { order: 2; margin: 0; font-size: 17px; line-height: 1.5; }
    .hero-actions { order: 3; gap: 10px; margin: 0; }
    .hero-actions .btn { min-height: 46px; }
    .hero-visual { order: 4; margin-top: 4px; }
    .hero-copy > p.release-note { order: 5; margin: 0; font-size: 13px; line-height: 1.5; }
    .proof-chips { order: 6; display: flex; gap: 8px 16px; font-size: 13px; }
    .proof-chip { gap: 6px; font-weight: 500; }
    .proof-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
    .workflow-grid figure img { max-height: 400px; }
    .final-grid .mobile-only { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
