/* ═══════════════════════════════════════════════════════
   StudioRam docs — product-guide layout (scoped)
   Loaded after styles.css. Do not leak unscoped rules.
   ═══════════════════════════════════════════════════════ */

.docs-page {
    --docs-max: 1120px;
    --docs-prose: 40rem;
    --docs-sticky-top: calc(var(--nav-height) - 1px);
    background: var(--bg-primary);
}

.docs-page .brand-logo-img {
    height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.docs-page .nav-link[aria-current="page"] {
    color: var(--text-primary);
}

.docs-page .nav-link[aria-current="page"]::after {
    width: 100%;
}

/* ── Hero ── */
.docs-hero {
    padding: calc(var(--nav-height) + 56px) 24px 28px;
    max-width: var(--docs-max);
    margin: 0 auto;
}

.docs-hero .nav-logo,
.docs-page .nav-logo {
    display: inline-flex;
    align-items: center;
}

.docs-hero-inner {
    max-width: 720px;
}

.docs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    background: var(--cyan-subtle);
    border: 1px solid rgba(0, 206, 209, 0.22);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.docs-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.docs-lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 38rem;
    margin-bottom: 28px;
}

.docs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.docs-hero-actions .btn-primary {
    padding: 14px 28px;
}

.docs-hero-note {
    font-size: 13px;
    color: var(--text-muted);
}

.docs-welcome {
    margin: 36px 0 0;
}

.docs-welcome img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    background: #05050a;
}

/* ── 5-step strip ── */
.docs-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-width: var(--docs-max);
    margin: 8px auto 0;
    padding: 0 24px 8px;
}

.docs-strip a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.docs-strip-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.docs-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.docs-strip-num {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #0891b2);
    color: #041416;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.docs-strip span.label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-strip a:hover .docs-strip-thumb {
    border-color: var(--border-hover);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.docs-strip a:hover span.label {
    color: var(--cyan);
}

/* ── Sticky mini-nav ── */
.docs-mininav {
    position: sticky;
    top: var(--docs-sticky-top);
    z-index: 50;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    margin-top: 28px;
}

.docs-mininav-inner {
    max-width: var(--docs-max);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.docs-mininav-inner::-webkit-scrollbar {
    display: none;
}

.docs-mininav a {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.docs-mininav a:hover,
.docs-mininav a.is-active {
    color: var(--bg-primary);
    background: var(--cyan);
}

/* ── Main column ── */
.docs-main {
    max-width: var(--docs-max);
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.docs-section {
    margin-bottom: 72px;
    scroll-margin-top: 140px;
}

.docs-section > h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.docs-section > .docs-intro {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
    max-width: var(--docs-prose);
    margin-bottom: 28px;
}

/* ── Step cards, left/right rhythm ── */
.docs-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 20px;
    scroll-margin-top: 140px;
}

.docs-step--flip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.docs-step--flip .docs-step-copy {
    order: 2;
}

.docs-step--flip .docs-media {
    order: 1;
}

.docs-step-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.docs-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #0891b2);
    color: #041416;
    font-weight: 800;
    font-size: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.docs-step h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.docs-step p,
.docs-step li {
    color: var(--text-secondary);
    line-height: 1.65;
}

.docs-step p {
    margin-bottom: 12px;
}

.docs-step ul {
    padding-left: 18px;
    margin: 0 0 12px;
}

.docs-step li {
    margin-bottom: 6px;
}

.docs-step strong {
    color: var(--text-primary);
}

.docs-example {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.28);
    border-left: 3px solid var(--cyan);
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
}

.docs-media {
    margin: 0;
}

.docs-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #05050a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.docs-media--phone img {
    max-width: 320px;
    margin: 0 auto;
    display: block;
}

.docs-hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.docs-hint::before {
    content: "Hint · ";
    color: var(--cyan);
    font-weight: 700;
}

/* ── Callouts ── */
.docs-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 206, 209, 0.07);
    border: 1px solid rgba(0, 206, 209, 0.18);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.docs-callout strong {
    color: var(--cyan);
    font-weight: 700;
}

/* ── Feature grid ── */
.docs-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.docs-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 22px 18px;
}

.docs-feature h3 {
    font-size: 17px;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.docs-feature p,
.docs-feature li {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-feature p {
    margin-bottom: 10px;
}

.docs-feature ul {
    padding-left: 18px;
    margin: 0;
}

.docs-feature--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.docs-feature--wide .docs-media {
    margin: 0;
}

/* ── Simple stacks (scenes / quality / credits) ── */
.docs-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 26px;
    max-width: 760px;
}

.docs-panel p,
.docs-panel li {
    color: var(--text-secondary);
    line-height: 1.65;
}

.docs-panel p {
    margin-bottom: 12px;
}

.docs-panel ul {
    padding-left: 18px;
    margin-bottom: 12px;
}

.docs-panel a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.docs-price-list li {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.docs-price-list strong {
    color: var(--text-primary);
}

/* ── Closing CTA ── */
.docs-cta {
    text-align: center;
    padding: 48px 28px;
    border-radius: 24px;
    background:
        radial-gradient(600px 180px at 50% 0%, rgba(0, 206, 209, 0.16), transparent 70%),
        var(--bg-card);
    border: 1px solid rgba(0, 206, 209, 0.18);
}

.docs-cta h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 10px;
}

.docs-cta p {
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto 22px;
}

.docs-cta .btn-primary {
    padding: 16px 32px;
    font-size: 16px;
}

.docs-cta-note {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Footer brand on docs ── */
.docs-page .footer {
    margin-top: 0;
}

.docs-page .footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .docs-step,
    .docs-step--flip,
    .docs-feature--wide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .docs-step--flip .docs-step-copy,
    .docs-step--flip .docs-media {
        order: unset;
    }

    .docs-media--phone img {
        max-width: 280px;
    }

    .docs-features {
        grid-template-columns: 1fr;
    }

    .docs-price-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 720px) {
    .docs-strip {
        grid-template-columns: repeat(5, 120px);
        overflow-x: auto;
        padding-bottom: 16px;
    }

    .docs-hero {
        padding-top: calc(var(--nav-height) + 36px);
    }

    .docs-lede {
        font-size: 16px;
    }

    .docs-step {
        padding: 20px;
    }
}
