/* Studio landing (templates/core/index.html). Scoped under .studio so the
   shared styles.css (footer, policy pages) is untouched. Bump the ?v= in the
   template when this file changes. */

main:has(.studio) { align-items: flex-start; }

.studio {
    width: 100%;
    color: #ececf1;
    overflow-x: hidden;
    /* The shared pv-* card renderer (admin_panel/workflow_preview_css.html)
       reads the panel's tokens; define them for this page. */
    --border: rgba(255,255,255,0.14);
    --text-dim: #8e8e93;
}

/* ---------------------------------------------------------- top area video */
.st-top { position: relative; overflow: hidden; }
.st-top-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.st-top-veil {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(5,5,10,0.78) 0%, rgba(5,5,10,0.62) 45%, rgba(5,5,10,0.92) 100%);
}
.st-top > header, .st-top > section { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- top bar */
.st-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto; padding: 22px 28px 0;
}
.st-wordmark { height: 26px; width: auto; }
.st-topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.st-topnav a {
    color: #b9b9c6; text-decoration: none; font-size: 0.85rem;
    letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.st-topnav a:hover { color: #fff; }
.st-topnav .st-pill {
    color: #0a0a0f; background: #fff; border-radius: 999px;
    padding: 8px 16px; text-transform: none; letter-spacing: 0;
    font-size: 0.85rem;
}
.st-topnav .st-pill:hover { background: #d9e2ff; color: #0a0a0f; }

/* -------------------------------------------------------------------- hero */
.st-hero {
    max-width: 1200px; margin: 0 auto; padding: 84px 28px 72px;
    text-align: left; width: 100%;
    /* No media frame below the CTAs anymore: the hero itself carries the
       background video, so give it room to breathe. */
    display: flex; flex-direction: column; justify-content: center;
    min-height: 56vh;
}
.st-eyebrow {
    color: #8f9bff; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px;
}
.st-headline {
    font-size: clamp(3rem, 9vw, 6.2rem);
    line-height: 0.98; letter-spacing: -0.03em;
    font-weight: 800; color: #fff; margin-bottom: 26px;
}
.st-sub { color: #a9a9b8; max-width: 560px; font-size: 1.05rem; margin-bottom: 32px; }
.st-cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.st-store img { height: 48px; width: auto; display: block; }
.st-btn {
    display: inline-block; color: #fff; text-decoration: none; font-weight: 650;
    padding: 12px 22px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
}
.st-btn:hover { border-color: #fff; background: rgba(255,255,255,0.06); }


/* ------------------------------------------------------------------ ticker */
.st-ticker {
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 14px 0; margin: 30px 0;
    overflow: hidden; white-space: nowrap;
}
.st-ticker-track {
    display: inline-flex; width: max-content;
    animation: st-scroll 42s linear infinite;
}
.st-ticker-group { display: inline-flex; align-items: center; }
.st-chip {
    display: inline-flex; align-items: center; gap: 12px;
    color: #e4e4ee; text-decoration: none;
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
}
a.st-chip:hover .st-chip-label { color: #8f9bff; }
.st-chip img {
    height: 44px; width: auto; border-radius: 8px; display: block;
    border: 1px solid rgba(255,255,255,0.15);
}
.st-dot { color: #5b8cff; font-size: 0.5rem; margin: 0 26px; vertical-align: middle; }

@keyframes st-scroll { to { transform: translateX(-50%); } }

/* Every sliding strip fades out at both edges instead of cutting hard. */
.st-ticker, .st-reel, .st-words-row {
    -webkit-mask-image: linear-gradient(to right,
        transparent, #000 64px, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(to right,
        transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

/* ---------------------------------------------------------------- sections */
.st-section { max-width: 1200px; margin: 0 auto; padding: 72px 28px; }
.st-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff;
    letter-spacing: -0.02em; margin-bottom: 14px;
}
.st-section-sub { color: #a9a9b8; max-width: 640px; margin-bottom: 30px; }

/* ------------------------------------------------------------------- reel */
.st-made { padding-bottom: 36px; }
.st-reel { overflow: hidden; margin: 0 -28px; padding: 6px 0 18px; }
.st-reel-track {
    display: inline-flex; width: max-content;
    animation: st-scroll 60s linear infinite;
}
.st-reel-group { display: inline-flex; gap: 20px; padding-right: 20px; }
.st-card {
    /* The reel is vertical social work: 9:16 portrait cards, muted. */
    position: relative; display: block; flex: none;
    width: min(280px, 62vw); aspect-ratio: 9 / 16;
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: #101016; text-decoration: none;
}
.st-card img, .st-card video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
a.st-card:hover { border-color: rgba(143,155,255,0.6); }
.st-reel-note { color: #6f6f7c; font-size: 0.8rem; margin-top: 2px; }

/* ------------------------------------------- workflow + actor card reels */
/* Each slot holds one REAL card (the shared pv-* renderer, the app's own
   card at its device width); the strip just shelves them. */
.st-slot { flex: none; }
.st-wf-reel .st-reel-group, .st-actor-reel .st-reel-group { align-items: flex-start; }
.st-wf-reel .st-reel-track { animation-duration: 70s; }
.st-actor-reel .st-reel-track { animation-duration: 60s; }
.st-actor-reel { padding-bottom: 6px; }
.st-actor-reel-b .st-reel-track { animation-duration: 68s; }
.st-actor-reel-b { padding-top: 14px; padding-bottom: 18px; }
.st-track-reverse { animation-direction: reverse; }

/* ------------------------------------------------------------------ stages */
.st-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.st-stage {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 26px 22px;
}
.st-stage-num {
    display: block; color: #5b8cff; font-weight: 800; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 14px;
}
.st-stage h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.st-stage p { color: #a9a9b8; font-size: 0.92rem; margin: 0; }

/* -------------------------------------------------------------------- grid */
.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.st-cell {
    border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
    padding: 26px 22px; background: rgba(255,255,255,0.03);
}
.st-cell h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.st-cell p { color: #a9a9b8; font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------------------- core tools */
/* "Full control comes standard": the Apple Pencil note, then one section per
   Core tool, its words beside (wide) or above (narrow) an animated iPad. */
.st-pencil {
    display: flex; align-items: flex-start; gap: 18px; max-width: 860px; margin: 6px 0 12px;
    padding: 20px 22px; border: 1px solid rgba(167,139,250,0.28); border-radius: 16px;
    background: linear-gradient(120deg, rgba(124,104,220,0.14), rgba(255,255,255,0.02));
}
.st-pencil-tag {
    flex: none; margin-top: 2px; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
    border: 1px solid rgba(167,139,250,0.55); color: #c4b5fd;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.st-pencil p { color: #d6d4e3; font-size: 1rem; line-height: 1.6; margin: 0; }
.st-tool {
    display: grid; grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr); gap: 44px;
    align-items: center; padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.st-tool:first-of-type { border-top: 0; }
.st-tool-num { display: block; color: #a78bfa; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 10px; }
.st-tool h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.st-tool p { color: #a9a9b8; font-size: 0.98rem; line-height: 1.65; margin: 0 0 16px; }
.st-tool ul { list-style: none; margin: 0; padding: 0; }
.st-tool li { position: relative; padding: 7px 0 7px 20px; color: #d6d4e3; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.06); }
.st-tool li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; }
.st-tool-visual { min-width: 0; }
/* Holds an iPad's shape until the drawing reports its own height. */
.st-tool-frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: transparent; }
.st-tool-frame.is-sized { aspect-ratio: auto; }
@media (max-width: 900px) {
    .st-pencil { flex-direction: column; gap: 12px; }
    .st-tool { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
}

.st-free { text-align: center; }
.st-free .st-section-sub { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------- chip wall */
.st-wall { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.st-wall-chip {
    display: inline-block; color: #e4e4ee; font-weight: 650; font-size: 0.92rem;
    padding: 9px 16px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
    white-space: nowrap;
}
.st-wall-hot {
    color: #0a0a0f; background: #8f9bff; border-color: #8f9bff; font-weight: 750;
}
.st-wall-more { color: #8f9bff; border-style: dashed; background: none; }

/* --------------------------------------------------------- model word wall */
/* Full-bleed rows of huge ghosted names; alternate rows run the other way,
   a few names carry a highlight. */
.st-words {
    margin: 18px -28px 0;
    display: flex; flex-direction: column; gap: 2px;
}
.st-words-row { overflow: hidden; white-space: nowrap; }
.st-words-track {
    display: inline-flex; width: max-content;
    animation: st-scroll 48s linear infinite;
}
.st-words-rev .st-words-track { animation-direction: reverse; }
.st-words-group {
    display: inline-flex; align-items: baseline;
    gap: 56px; padding-right: 56px;
}
.st-word {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
    color: rgba(236,236,241,0.15); white-space: nowrap;
    transition: color 1.4s ease;
}
.st-word-hot { color: #8f9bff; }
.st-word-lit { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .st-words-track { animation: none; }
    .st-words-row { overflow-x: auto; }
}

.st-closing { text-align: center; padding-bottom: 96px; }
.st-closing-sub { margin-left: auto; margin-right: auto; }
.st-closing .st-cta-row { justify-content: center; margin-top: 10px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 860px) {
    .st-stages { grid-template-columns: 1fr; }
    .st-grid { grid-template-columns: 1fr; }
    .st-hero { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .st-ticker-track, .st-reel-track { animation: none; }
    .st-ticker, .st-reel { overflow-x: auto; }
}
