/* Screenshot figures: a cropped view of one operation, click to see the whole screen */
.ot-shot {
    display: block;
    position: relative;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ot-line);
    box-shadow: 0 24px 48px -30px rgba(15, 23, 42, 0.3);
    cursor: zoom-in;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ot-shot img { display: block; width: 100%; height: auto; border-radius: 6px; background: #f8fafc; }
.ot-shot:hover { border-color: var(--ot-cyan); box-shadow: 0 24px 48px -26px rgba(6, 182, 212, 0.45); }
.ot-shot:focus-visible { outline: 2px solid var(--ot-blue); outline-offset: 3px; }
.ot-shot-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(12, 20, 40, 0.78);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.ot-shot-zoom .ot-i { width: 14px; height: 14px; }
.ot-shot:hover .ot-shot-zoom,
.ot-shot:focus-visible .ot-shot-zoom,
.ot-shot-card:hover .ot-shot-zoom,
.ot-shot-card:focus-visible .ot-shot-zoom { opacity: 1; transform: none; }
@media (hover: none) { .ot-shot-zoom { opacity: 1; transform: none; } }
.ot-shot-figure { margin: 24px 0 28px; }
.ot-shot-figure--narrow { max-width: 440px; }
.ot-shot-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ot-muted); line-height: 1.55; }
.ot-shot-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px 0 28px; }
.ot-shot-grid .ot-shot-figure { margin: 0; }
@media (min-width: 768px) { .ot-shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ot-shot-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lightbox */
.ot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 56px 16px 20px;
    background: rgba(7, 11, 24, 0.92);
}
.ot-lightbox.is-open { display: flex; }
.ot-lightbox img {
    max-width: min(100%, 1400px);
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.ot-lightbox-caption { max-width: 900px; text-align: center; color: #cbd5e1; font-size: 14px; line-height: 1.5; }
.ot-lightbox-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.ot-lightbox-btn:hover { background: rgba(255, 255, 255, 0.2); }
.ot-lightbox-btn .ot-i { width: 20px; height: 20px; }
.ot-lightbox-close { top: 12px; right: 12px; }
.ot-lightbox-prev { left: 12px; top: 50%; margin-top: -22px; }
.ot-lightbox-next { right: 12px; top: 50%; margin-top: -22px; }
@media (max-width: 767px) {
    .ot-lightbox-prev, .ot-lightbox-next { top: auto; bottom: 12px; margin-top: 0; }
}
body.ot-lightbox-lock { overflow: hidden; }

/* Screenshot cards: the screen at 1:1, pinned to the top-left corner and cut off at the right and bottom */
.ot-shot-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .ot-shot-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ot-shot-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ot-shot-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ot-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: zoom-in;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ot-shot-card:hover { border-color: #a5e9f5; box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35); }
.ot-shot-card:focus-visible { outline: 2px solid var(--ot-blue); outline-offset: 3px; }
.ot-shot-card-media {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    background:
        radial-gradient(420px 220px at 0% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
        linear-gradient(135deg, #e6edfb 0%, #eef3f9 55%, #e7f6fa 100%);
    border-bottom: 1px solid var(--ot-line);
}
.ot-shot-card--lg .ot-shot-card-media { height: 360px; }
.ot-shot-card--sm .ot-shot-card-media { height: 250px; }
.ot-shot-card-media img {
    position: absolute;
    left: 32px;
    top: 32px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    max-width: none;
    object-fit: none; /* natural size: 1 screenshot pixel = 1 CSS pixel, so text stays sharp */
    border-radius: 10px 0 0 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-right: 0;
    border-bottom: 0;
    box-shadow: -10px -10px 36px -18px rgba(15, 23, 42, 0.35);
    transition: transform .35s ease;
}
.ot-shot-card:hover .ot-shot-card-media img { transform: translate(-4px, -4px); }
.ot-shot-card-body { display: block; padding: 20px 24px 24px; }
.ot-shot-card-title { display: block; font-family: var(--ot-font-display); font-weight: 600; font-size: 1.08rem; color: var(--ot-text); }
.ot-shot-card-desc { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--ot-muted); }
@media (max-width: 767px) {
    .ot-shot-card-media, .ot-shot-card--lg .ot-shot-card-media { height: 240px; }
    .ot-shot-card-media img { left: 20px; top: 20px; width: calc(100% - 20px); height: calc(100% - 20px); }
}

/* Hero illustration: at most half the hero width */
.ot-app-hero { width: 100%; max-width: 640px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(6, 182, 212, 0.15)); }
.ot-app-hero img { display: block; width: 100%; height: auto; }
