/* Shared styles for /playbooks/ (index + one page per product).
   Brand elements come from ../styles.css; this file only adds the subpage layout. */

.sub-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}

.eyebrow {
    display: inline-block;
    background: #0a0a0a;
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.sub-hero h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: #222;
}

.hl {
    background: linear-gradient(transparent 58%, rgba(255, 215, 0, 0.6) 58%);
}

.sub-hero .intro {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    max-width: 30rem;
}

.actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.text-link {
    color: #333;
    font-weight: 600;
}

.small {
    color: #777;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Black "file" card: shows what the buyer gets */
.file-card {
    background: #0a0a0a;
    color: #d1d5db;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.65;
}

.file-card::after {
    content: '🐯';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
}

.file-card .bar {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #262626;
    color: #9ca3af;
}

.file-card .bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3f3f46;
    display: inline-block;
}

.file-card .bar span {
    margin-left: 0.5rem;
}

.file-card pre {
    margin: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    white-space: pre-wrap;
    font: inherit;
}

.file-card .h { color: #fff; font-weight: 700; }
.file-card .k { color: gold; }
.file-card .c { color: #6b7280; }

/* White panel */
.panel {
    background: #fff;
    border-radius: 20px;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 3rem 2rem;
}

.panel h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.gets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gets div {
    background: #f7f7f5;
    border-radius: 14px;
    padding: 1.25rem;
}

.gets b {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gets span {
    color: #666;
}

.excerpt {
    background: #0a0a0a;
    color: #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.92rem;
}

.excerpt table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
}

.excerpt th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
    padding: 0 0.75rem 0.5rem 0;
}

.excerpt td {
    border-top: 1px solid #262626;
    padding: 0.6rem 0.75rem 0.6rem 0;
    vertical-align: top;
}

.excerpt code {
    font-family: ui-monospace, Menlo, monospace;
    color: #fcd34d;
    font-size: 0.85rem;
}

/* Price + FAQ side by side */
.close {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.faq details {
    border-top: 1px solid #e5e5e5;
    padding: 0.9rem 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq details p {
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Index: product cards */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.product {
    background: #f7f7f5;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.product.paid {
    background: #0a0a0a;
    color: #fff;
}

.product .tag {
    font-size: 0.8rem;
    color: #777;
}

.product.paid .tag {
    color: gold;
}

.product h3 {
    font-size: 1.3rem;
}

.product p {
    color: #666;
    line-height: 1.5;
}

.product.paid p {
    color: #d1d5db;
}

.product.soon {
    opacity: 0.55;
}

@media screen and (max-width: 900px) {
    .sub-hero,
    .close,
    .gets {
        grid-template-columns: 1fr;
    }

    .sub-hero {
        padding: 3rem 1rem 2rem;
        gap: 2rem;
    }

    .panel {
        padding: 2rem 1rem;
        margin: 0 0 1.5rem;
    }
}

/* FAQ accordion (transitions.dev "accordion expand"): smooth open where the
   browser supports ::details-content, plain open/close everywhere else */
.faq details {
    interpolate-size: allow-keywords;
}
.faq details::details-content {
    height: 0;
    overflow: hidden;
    transition: height var(--duration-fast) var(--ease-smooth-out), content-visibility var(--duration-fast) allow-discrete;
}
.faq details[open]::details-content {
    height: auto;
}
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .faq details::details-content, .faq summary::after { transition: none; }
}

/* Deck pages: slides stacked on a fixed 1920x1080 canvas, speaker notes as text below */
.deck {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.deck-slide {
    margin: 0;
    scroll-margin-top: 1rem;
}
.deck-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.deck-frame {
    --s: 0.5;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.deck-frame > section {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    transform: scale(var(--s));
    transform-origin: 0 0;
    box-sizing: border-box;
    animation: none;
}
.deck-frame > section * { margin: 0; box-sizing: border-box; }
.deck-frame > section div { display: flex; flex-direction: column; }
.deck-frame h1 { font-size: 96px; font-weight: 600; line-height: 1.1; }
.deck-frame h2 { font-size: 64px; font-weight: 600; line-height: 1.15; }
.deck-frame h3 { font-size: 44px; font-weight: 600; line-height: 1.2; }
.deck-frame p { font-size: 32px; font-weight: 400; line-height: 1.4; }
.deck-frame img, .deck-frame svg { max-width: none; flex: none; }
.deck-slide figcaption {
    color: #555;
    line-height: 1.6;
    max-width: 46rem;
    margin-top: 1rem;
}
.deck-close { text-align: center; }
.deck-close p { color: #555; margin-bottom: 1.5rem; }

/* YouTube: thumbnail with play button, swapped for the player on click */
.yt {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.yt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0a0a0a;
    transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.yt-play::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 17px;
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent gold;
}
.yt:hover .yt-play { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
    .yt-play { transition: none; }
    .yt:hover .yt-play { transform: none; }
}
