/**
 * /film — SolidMeta for film and series makers.
 *
 * Everything is scoped under .film-page and prefixed fp-. The product mockups
 * (Loom script and storyboard, the board row, the Studio timeline, Deliver,
 * Story Bible, Camera, Fix what's wrong, the agent's plan card) are static
 * HTML modelled on the app on develop; their chrome is aria-hidden.
 */

.film-page {
    --fp-teal: #05c7bb;
    --fp-teal-soft: rgba(5, 199, 187, 0.12);
    --fp-teal-line: rgba(5, 199, 187, 0.35);
    --fp-purple: #d651ff;
    --fp-amber: #f5b450;
    --fp-line: rgba(255, 255, 255, 0.08);
    --fp-line-strong: rgba(255, 255, 255, 0.14);
    --fp-muted: rgba(156, 163, 175, 0.88);
    --fp-dim: rgba(156, 163, 175, 0.62);
    --fp-app: #0e1c25;
    --fp-app-2: #12232e;
    --fp-app-3: #172b37;
    --fp-radius: 1rem;
    --fp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    padding-top: 8.5rem;
    overflow-x: clip;
}

.film-page h1,
.film-page h2,
.film-page h3 {
    text-wrap: balance;
}

/* ---------- Hero ---------- */

.fp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4.5vw, 4rem);
    align-items: center;
}

.fp-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
}

.fp-hero-lead {
    max-width: 34rem;
    font-size: clamp(1.02rem, 1.4vw, 1.125rem);
    line-height: 1.7;
    color: rgba(229, 231, 235, 0.86);
    margin-bottom: 2rem;
}

.fp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.fp-hero-actions--center {
    justify-content: center;
}

.fp-hero-micro {
    margin-top: 0.9rem;
    font-family: var(--fp-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--fp-dim);
}

.fp-hero-visual {
    position: relative;
}

.fp-hero-visual::before {
    content: '';
    position: absolute;
    inset: -12% -8%;
    background: radial-gradient(closest-side, rgba(5, 199, 187, 0.16), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.fp-hero-visual .temp-asset {
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* The five steps, as a strip of anchors under the hero */
.fp-flow {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.fp-flow ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-flow li {
    position: relative;
}

.fp-flow a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fp-line);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.025);
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fp-flow a:hover,
.fp-flow a:focus-visible {
    border-color: var(--fp-teal-line);
    background: var(--fp-teal-soft);
}

.fp-flow-k {
    font-family: var(--fp-mono);
    font-size: 0.7rem;
    color: var(--fp-teal);
}

.fp-flow li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.45rem;
    width: 0.4rem;
    height: 1px;
    background: var(--fp-teal-line);
}

/* ---------- Sections ---------- */

.fp-section {
    position: relative;
}

.fp-section--band {
    background: rgba(8, 21, 29, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fp-section--tight {
    padding-top: clamp(3rem, 7vh, 5rem);
    padding-bottom: clamp(3rem, 7vh, 5rem);
}

/* ---------- Pipeline steps ---------- */

.fp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(3.5rem, 8vw, 6rem);
}

.fp-step {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
    scroll-margin-top: 7rem;
}

.fp-step:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.fp-step:nth-child(even) .fp-step-copy {
    order: 2;
}

.fp-step-k {
    display: inline-block;
    font-family: var(--fp-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fp-teal);
    margin-bottom: 0.85rem;
}

.fp-step-copy h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.85rem;
}

.fp-step-copy p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--fp-muted);
    max-width: 30rem;
}

.fp-step-visual {
    min-width: 0;
}

/* Previs strip */
.fp-previs {
    margin-top: clamp(4rem, 9vw, 6.5rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--fp-line);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.fp-previs h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.fp-previs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.fp-previs-grid article {
    padding: 1.25rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fp-previs-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: var(--fp-teal-soft);
    color: var(--fp-teal);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.fp-previs-grid h4 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.fp-previs-grid p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--fp-muted);
}

/* ---------- Feature blocks (cast, camera, fix, agent) ---------- */

.fp-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.fp-feature--flip {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.fp-feature--flip .fp-feature-copy {
    order: 2;
}

.fp-feature-copy h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.fp-feature-copy .section-lead {
    margin-bottom: 1.5rem;
}

.fp-feature-visual {
    min-width: 0;
}

.fp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.fp-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.97rem;
    line-height: 1.65;
    color: rgba(229, 231, 235, 0.82);
}

.fp-list li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.62em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 2px;
    background: var(--fp-teal);
    transform: rotate(45deg);
}

.fp-aside {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-left: 2px solid var(--fp-purple);
    border-radius: 0 0.6rem 0.6rem 0;
    background: rgba(214, 81, 255, 0.06);
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(229, 231, 235, 0.8);
}

/* ---------- Mock primitives ---------- */

.fp-mock {
    position: relative;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #dbe4ea;
    user-select: none;
}

.fp-app {
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius);
    background: var(--fp-app);
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.fp-app-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid var(--fp-line);
    background: rgba(255, 255, 255, 0.02);
}

.fp-dots {
    display: inline-flex;
    gap: 5px;
    flex-shrink: 0;
}

.fp-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.fp-crumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
    font-weight: 600;
    color: #e8eef2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-crumb i {
    font-size: 8px;
    color: var(--fp-dim);
}

.fp-chip {
    flex-shrink: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--fp-line-strong);
    font-size: 11px;
    color: #c8d3da;
    white-space: nowrap;
}

.fp-chip--teal {
    border-color: var(--fp-teal-line);
    background: var(--fp-teal-soft);
    color: #7ff0e7;
}

.fp-panel-h {
    display: block;
    font-family: var(--fp-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fp-dim);
    margin-bottom: 0.5rem;
}

.fp-ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 28px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--fp-line-strong);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 600;
    color: #e8eef2;
    white-space: nowrap;
    flex-shrink: 0;
}

.fp-ui-btn i {
    font-size: 10px;
}

.fp-ui-btn--primary {
    border-color: transparent;
    background: var(--fp-teal);
    color: #04201d;
}

.fp-ui-btn--ghost {
    border-color: transparent;
    background: transparent;
    color: #b9c6ce;
}

.fp-ui-btn--block {
    width: 100%;
    height: 32px;
}

.fp-seg {
    display: inline-flex;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fp-line);
}

.fp-seg > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 22px;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    font-size: 11px;
    font-weight: 600;
    color: #93a3ad;
}

.fp-seg > span.is-on {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fp-seg--block {
    display: flex;
    width: 100%;
}

.fp-seg--block > span {
    flex: 1;
    text-align: center;
    padding: 0.25rem 0.45rem;
    line-height: 1.25;
}

.fp-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10.5px;
    font-weight: 600;
    color: #c8d3da;
    white-space: nowrap;
}

.fp-tag--strong {
    background: rgba(5, 199, 187, 0.18);
    color: #7ff0e7;
}

.fp-tag--teal {
    background: var(--fp-teal-soft);
    color: #7ff0e7;
    border: 1px solid var(--fp-teal-line);
}

/* Temp assets inside mocks: small, but still the amber placeholder. */
.fp-mock .temp-asset {
    min-height: 0;
    justify-content: flex-start;
    padding: 0.35rem 0.45rem;
    gap: 0.25rem;
    border-width: 1px;
    border-radius: 0.45rem;
}

.fp-mock .temp-asset__tag {
    position: static;
    align-self: flex-start;
    padding: 0.05rem 0.35rem;
    font-size: 8.5px;
    letter-spacing: 0.06em;
}

.fp-mock .temp-asset__title {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-mock .temp-asset__spec {
    display: none;
}

/* ---------- 01 Loom script ---------- */

.fp-loom {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    min-height: 300px;
}

.fp-binder {
    padding: 0.9rem 0.75rem;
    border-right: 1px solid var(--fp-line);
    background: rgba(255, 255, 255, 0.015);
}

.fp-binder ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.fp-binder li {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 10.5px;
    color: #a9b7c0;
    line-height: 1.3;
}

.fp-binder li.is-on {
    background: var(--fp-teal-soft);
    color: #e8fffd;
}

.fp-binder-n {
    font-family: var(--fp-mono);
    color: var(--fp-teal);
}

.fp-page {
    margin: 1rem 1.25rem 1.25rem;
    padding: 1.35rem 1.5rem 1.6rem 2.2rem;
    border-radius: 0.3rem;
    background: #f4f1ea;
    color: #1d1d1b;
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    font-size: 11.5px;
    line-height: 1.45;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

.fp-page p {
    margin: 0 0 0.6rem;
}

.fp-sp-slug {
    font-weight: 700;
    text-transform: uppercase;
}

.fp-sp-char {
    margin: 0.75rem 0 0 !important;
    padding-left: 38%;
    text-transform: uppercase;
}

.fp-sp-paren {
    margin: 0 !important;
    padding-left: 31%;
}

.fp-sp-dial {
    padding: 0 14% 0 22%;
}

.fp-app-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid var(--fp-line);
    background: rgba(255, 255, 255, 0.02);
}

.fp-foot-label {
    font-family: var(--fp-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fp-dim);
    margin-right: 0.25rem;
}

.fp-person {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.6rem 0.15rem 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-weight: 600;
}

.fp-person b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b8f86;
    font-size: 9px;
    color: #fff;
}

.fp-person--b b { background: #8d4bb0; }
.fp-person--c b { background: #8a6a2a; }

/* ---------- 02 Storyboard ---------- */

.fp-sb {
    padding: 0.9rem;
}

.fp-sb-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.fp-sb-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--fp-mono);
    font-size: 11px;
    font-weight: 700;
}

.fp-sb-slug {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.fp-sb-time {
    font-family: var(--fp-mono);
    font-size: 11px;
    color: var(--fp-dim);
    margin-right: auto;
}

.fp-sb-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.fp-sb-shot {
    min-width: 0;
    padding: 0.4rem;
    border-radius: 0.6rem;
    background: var(--fp-app-2);
    border: 1px solid var(--fp-line);
}

.fp-sb-shot:nth-child(2) {
    border-color: var(--fp-teal-line);
    box-shadow: 0 0 0 1px var(--fp-teal-line);
}

.fp-sb-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: 0.45rem;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    font-size: 10.5px;
    color: var(--fp-dim);
    text-align: center;
    padding: 0.25rem;
}

.fp-sb-meta {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.45rem;
    font-size: 10.5px;
    color: #a9b7c0;
    white-space: nowrap;
    overflow: hidden;
}

.fp-sb-meta b {
    font-family: var(--fp-mono);
    color: #fff;
}

.fp-sb-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-sb-dur {
    margin-left: auto;
    font-family: var(--fp-mono);
    color: var(--fp-dim);
    flex-shrink: 0;
}

.fp-sb-cast {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.fp-sb-cast span {
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(5, 199, 187, 0.12);
    color: #8ff3eb;
    font-size: 10px;
    font-weight: 600;
}

.fp-sb-cast em {
    font-style: normal;
    padding: 0.05rem 0.4rem;
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.07);
    color: #a9b7c0;
    font-size: 10px;
}

.fp-sb-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--fp-line);
}

.fp-sb-style {
    margin-left: auto;
    font-size: 11px;
    color: var(--fp-dim);
}

/* ---------- 03 Board ---------- */

.fp-board {
    display: flex;
    align-items: center;
    gap: 0;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius);
    background-color: #0a161d;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 16px 16px;
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.8);
}

.fp-node {
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid var(--fp-line-strong);
    background: var(--fp-app-2);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}

.fp-node--scene,
.fp-node--video {
    width: 31%;
    min-width: 0;
    flex-shrink: 1;
}

.fp-node--frames {
    width: 26%;
    flex-shrink: 1;
    min-width: 0;
    display: grid;
    gap: 0.5rem;
    padding: 0.55rem;
    background: rgba(18, 35, 46, 0.65);
    border-style: dashed;
}

.fp-node-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--fp-line);
    font-weight: 700;
    color: #fff;
}

.fp-node-head i {
    font-size: 11px;
    color: var(--fp-teal);
}

.fp-node--video .fp-node-head i {
    color: var(--fp-purple);
}

.fp-node-head em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--fp-mono);
    font-size: 10.5px;
    color: var(--fp-dim);
}

.fp-node-rows {
    margin: 0;
    padding: 0.5rem 0.7rem;
    display: grid;
    gap: 0.3rem;
}

.fp-node-rows div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 11px;
}

.fp-node-rows dt {
    color: var(--fp-dim);
}

.fp-node-rows dd {
    margin: 0;
    color: #e8eef2;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-node-ports {
    display: grid;
    gap: 0.25rem;
    padding: 0.45rem 0.7rem 0.6rem;
    border-top: 1px solid var(--fp-line);
}

.fp-node-ports span {
    position: relative;
    padding-right: 0.9rem;
    text-align: right;
    font-size: 10.5px;
    color: #a9b7c0;
}

.fp-node-ports span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--fp-teal);
    box-shadow: 0 0 0 3px rgba(5, 199, 187, 0.2);
}

.fp-keyframe-l {
    display: block;
    font-size: 10px;
    color: #a9b7c0;
    margin-bottom: 0.25rem;
}

.fp-node-run {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem 0.65rem;
    border-top: 1px solid var(--fp-line);
    font-size: 10.5px;
    color: #c8a8ff;
}

.fp-node-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fp-node-bar i {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fp-purple), var(--fp-teal));
}

.fp-wire {
    flex: 1 1 1.5rem;
    min-width: 0.9rem;
    height: 2px;
    background: linear-gradient(90deg, var(--fp-teal), rgba(5, 199, 187, 0.35));
    position: relative;
}

.fp-wire::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--fp-teal);
}

/* ---------- 04 Studio timeline ---------- */

.fp-tl {
    padding: 0.7rem 0.85rem 0.9rem;
}

.fp-tl-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.fp-tl-add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #b9c6ce;
}

.fp-tl-add i {
    font-size: 10px;
}

.fp-tl-grid {
    --fp-lane-label: 6.5rem;
    position: relative;
    display: grid;
    gap: 6px;
}

.fp-tl-ruler {
    display: grid;
    grid-template-columns: var(--fp-lane-label) repeat(4, 1fr) 0;
    font-family: var(--fp-mono);
    font-size: 9.5px;
    color: var(--fp-dim);
    padding-bottom: 0.2rem;
}

.fp-tl-ruler span:last-child {
    position: relative;
    left: -1.6rem;
}

.fp-tl-lane {
    display: grid;
    grid-template-columns: var(--fp-lane-label) minmax(0, 1fr);
    align-items: center;
}

.fp-tl-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 600;
    color: #a9b7c0;
}

.fp-tl-name i {
    font-size: 9px;
    color: var(--fp-dim);
}

.fp-tl-track {
    position: relative;
    height: 34px;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
}

.fp-clip {
    position: absolute;
    top: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    padding: 0 0.45rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(5, 199, 187, 0.45);
    background: linear-gradient(180deg, rgba(5, 199, 187, 0.32), rgba(5, 199, 187, 0.16));
    font-family: var(--fp-mono);
    font-size: 10px;
    font-weight: 700;
    color: #e8fffd;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.35);
}

.fp-clip--audio {
    border-color: rgba(120, 160, 255, 0.5);
    background:
        repeating-linear-gradient(90deg, rgba(160, 190, 255, 0.35) 0 2px, transparent 2px 5px) center / 100% 45% no-repeat,
        rgba(80, 120, 230, 0.22);
}

.fp-clip--vo {
    border-color: rgba(214, 81, 255, 0.5);
    background:
        repeating-linear-gradient(90deg, rgba(230, 160, 255, 0.35) 0 2px, transparent 2px 6px) center / 100% 40% no-repeat,
        rgba(214, 81, 255, 0.18);
}

.fp-clip--fix {
    border-color: rgba(245, 180, 80, 0.7);
    background: linear-gradient(180deg, rgba(245, 180, 80, 0.4), rgba(245, 180, 80, 0.2));
    color: #fff5e0;
}

.fp-tl-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--fp-lane-label) + 34%);
    width: 2px;
    background: #ff5a6a;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 90, 106, 0.6);
}

.fp-tl-playhead::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -4px;
    width: 10px;
    height: 8px;
    border-radius: 2px;
    background: #ff5a6a;
}

/* ---------- 05 Deliver ---------- */

.fp-deliver {
    padding: 1rem 1.1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.fp-deliver-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.fp-deliver-head i {
    color: var(--fp-teal);
    font-size: 12px;
}

.fp-field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.fp-field-l {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #93a3ad;
}

.fp-field-v {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid var(--fp-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: #e8eef2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-file {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(5, 199, 187, 0.07);
    border: 1px solid rgba(5, 199, 187, 0.2);
    min-width: 0;
}

.fp-file i {
    color: var(--fp-teal);
}

.fp-file span {
    flex: 1;
    min-width: 0;
    font-family: var(--fp-mono);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-file em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--fp-dim);
}

.fp-people {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    display: grid;
    gap: 2px;
    border-radius: 0.5rem;
    border: 1px solid var(--fp-line-strong);
    background: rgba(255, 255, 255, 0.03);
}

.fp-people li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.35rem;
    min-width: 0;
}

.fp-people li > span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-people em {
    font-style: normal;
    flex-shrink: 0;
    padding: 0.1rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10.5px;
    color: #c8d3da;
}

.fp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #0b8f86;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.fp-avatar--b { background: #5b5fc7; }
.fp-avatar--c { background: #7a8691; }

.fp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.fp-deliver-foot {
    display: flex;
    justify-content: flex-end;
}

/* ---------- Story Bible ---------- */

.fp-bible-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.fp-bible-ref {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0.5rem;
    align-items: center;
}

.fp-bible-fields {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.fp-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.6rem;
    border-radius: 0.5rem;
    background: var(--fp-teal-soft);
    border: 1px solid var(--fp-teal-line);
    font-weight: 600;
    color: #e8fffd;
}

.fp-check-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--fp-teal);
    color: #04201d;
    font-size: 9px;
}

.fp-looks {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.fp-looks li {
    display: grid;
    gap: 0.1rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--fp-line);
}

.fp-looks b {
    font-size: 11px;
    color: #fff;
}

.fp-looks span {
    font-size: 11px;
    color: #a9b7c0;
}

.fp-bible-note {
    font-size: 11.5px;
    color: #c8d3da;
    font-style: italic;
}

.fp-bible-shots {
    padding: 0.8rem 1rem 1rem;
    border-top: 1px solid var(--fp-line);
    background: rgba(255, 255, 255, 0.015);
}

.fp-bible-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

/* ---------- Camera ---------- */

.fp-cam {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    column-gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius);
    background:
        radial-gradient(circle at 20% 0%, rgba(5, 199, 187, 0.08), transparent 55%),
        var(--fp-app);
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.8);
}

.fp-cam-panel {
    border-radius: 0.8rem;
    border: 1px solid var(--fp-line-strong);
    background: var(--fp-app-2);
    overflow: hidden;
}

.fp-cam-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--fp-line);
    font-weight: 700;
    color: #fff;
}

.fp-cam-head i {
    color: var(--fp-teal);
    font-size: 11px;
}

.fp-cam-head em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--fp-mono);
    font-size: 10.5px;
    color: var(--fp-dim);
}

.fp-cam-rows {
    margin: 0;
    padding: 0.6rem 0.8rem;
    display: grid;
    gap: 0.4rem;
}

.fp-cam-rows div {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.fp-cam-rows dt {
    font-size: 11px;
    color: var(--fp-dim);
}

.fp-cam-rows dd {
    margin: 0;
    padding: 0.3rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 11.5px;
    color: #e8eef2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-cam-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-top: 1px solid var(--fp-line);
    font-size: 10.5px;
    color: var(--fp-dim);
}

.fp-cam-code code {
    font-family: var(--fp-mono);
    font-size: 10.5px;
    color: #7ff0e7;
    white-space: nowrap;
}



.fp-cam-models {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-self: stretch;
    gap: 0.5rem;
}

.fp-cam-models li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--fp-line-strong);
    background: var(--fp-app-2);
    font-weight: 700;
    font-size: 12.5px;
    color: #fff;
}

.fp-cam-models li::before {
    content: '';
    position: absolute;
    right: calc(100% + 1px);
    top: 50%;
    width: clamp(2rem, 5vw, 3.5rem);
    height: 2px;
    margin-top: -1px;
    background: linear-gradient(90deg, rgba(5, 199, 187, 0.15), var(--fp-teal));
}

.fp-cam-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fp-purple);
    flex-shrink: 0;
}

.fp-cam-models em {
    margin-left: auto;
    font-style: normal;
    font-size: 10px;
    color: var(--fp-teal);
}

/* ---------- Fix what's wrong ---------- */

.fp-fix {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
}

.fp-fix-view {
    padding: 0.9rem;
    border-right: 1px solid var(--fp-line);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.fp-tl--mini {
    padding: 0;
}

.fp-tl--mini .fp-tl-grid {
    --fp-lane-label: 3.5rem;
}

.fp-fix-panel {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    background: rgba(255, 255, 255, 0.015);
}

.fp-fix-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--fp-line);
    margin-bottom: 0.3rem;
}

.fp-fix-tabs span {
    padding: 0 0.1rem 0.5rem;
    font-weight: 600;
    color: #93a3ad;
}

.fp-fix-tabs span.is-on {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--fp-teal);
}

.fp-fix-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    border: 1px solid var(--fp-teal-line);
    background: var(--fp-teal-soft);
    margin-bottom: 0.2rem;
}

.fp-fix-card i {
    color: var(--fp-teal);
}

.fp-fix-card span {
    display: grid;
}

.fp-fix-card b {
    color: #fff;
    font-size: 12px;
}

.fp-fix-card em {
    font-style: normal;
    font-size: 10.5px;
    color: #a9b7c0;
}

.fp-textarea {
    min-height: 3.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid var(--fp-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: #e8eef2;
}

.fp-fix-find {
    display: flex;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(245, 180, 80, 0.08);
    border: 1px solid rgba(245, 180, 80, 0.25);
    font-size: 11px;
    color: #f8deb0;
}

.fp-fix-find i {
    margin-top: 2px;
    color: var(--fp-amber);
    font-size: 10px;
}

/* ---------- Agent ---------- */

.fp-agent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem;
    padding: clamp(0.9rem, 2vw, 1.25rem);
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius);
    background: var(--fp-app);
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.8);
}

.fp-agent-chat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    min-width: 0;
}

.fp-bubble {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.8rem;
    background: var(--fp-app-2);
    border: 1px solid var(--fp-line);
    color: #dbe4ea;
}

.fp-bubble--user {
    align-self: flex-end;
    max-width: 85%;
    background: rgba(5, 199, 187, 0.16);
    border-color: var(--fp-teal-line);
    color: #e8fffd;
    font-weight: 600;
}

.fp-bubble-q {
    font-weight: 700;
    color: #fff;
}

.fp-bubble--ask {
    border-color: rgba(5, 199, 187, 0.3);
}

.fp-bubble-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.fp-plan {
    min-width: 0;
    padding: 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid var(--fp-line-strong);
    background: var(--fp-app-2);
}

.fp-plan-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.fp-agent-mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 6px;
    background: conic-gradient(from 200deg, var(--fp-teal), var(--fp-purple), var(--fp-teal));
    box-shadow: 0 0 12px rgba(5, 199, 187, 0.45);
}

.fp-plan-title {
    font-weight: 700;
    color: #fff;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-count {
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--fp-mono);
    font-size: 10px;
    color: #c8d3da;
}

.fp-progress {
    display: block;
    height: 4px;
    margin: 0.6rem 0 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fp-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fp-teal);
}

.fp-plan-now {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    font-size: 11.5px;
}

.fp-plan-now span {
    font-family: var(--fp-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fp-teal);
}

.fp-plan-now b {
    color: #fff;
}

.fp-plan-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
}

.fp-plan-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.3rem;
    border-radius: 0.4rem;
    font-size: 11.5px;
    color: #8597a2;
}

.fp-plan-steps li.is-done {
    color: #c8d3da;
}

.fp-plan-steps li.is-wait {
    background: rgba(5, 199, 187, 0.08);
    color: #fff;
    font-weight: 600;
}

.fp-plan-steps li .fp-tag {
    margin-left: auto;
}

.fp-mark {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.is-done .fp-mark {
    border-color: var(--fp-teal);
    background: var(--fp-teal);
}

.is-done .fp-mark::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 1.5px;
    width: 4px;
    height: 7px;
    border: solid #04201d;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.is-wait .fp-mark {
    border-color: var(--fp-teal);
    box-shadow: 0 0 0 3px rgba(5, 199, 187, 0.2);
}

.is-wait .fp-mark::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--fp-teal);
}

/* ---------- Loom card ---------- */

.fp-loom-card,
.fp-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: 1.4rem;
    border: 1px solid var(--fp-line-strong);
}

.fp-loom-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(5, 199, 187, 0.14), transparent 55%),
        rgba(255, 255, 255, 0.025);
}

.fp-loom-card h2,
.fp-price h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.fp-loom-card p,
.fp-price p {
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fp-muted);
}

.fp-loom-card .hero-cta,
.fp-price .hero-cta {
    flex-shrink: 0;
}

.fp-price {
    background:
        radial-gradient(circle at 100% 100%, rgba(214, 81, 255, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.02);
}

/* ---------- Proof ---------- */

.fp-proof {
    display: grid;
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
    gap: 1.25rem;
    align-items: start;
}

.fp-proof-real {
    border-radius: 1.1rem;
    border: 1px solid var(--fp-line-strong);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.fp-proof-video {
    aspect-ratio: 9 / 16;
    background: #000;
}

.fp-proof-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-proof-cap {
    padding: 1rem 1.1rem 1.15rem;
}

.fp-proof-cap .fp-tag {
    margin-bottom: 0.55rem;
}

.fp-proof-cap h3,
.fp-proof-item h3 {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.fp-proof-cap p,
.fp-proof-item p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--fp-muted);
}

.fp-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.fp-proof-item--wide {
    grid-column: 1 / -1;
}

.fp-proof-item .temp-asset {
    margin-bottom: 0.75rem;
}

/* ---------- Microdramas: episode plan → 9:16 phone ---------- */
/* The template, the conversion and the agent recut are tagged "Coming";
   the phone plays a real vertical clip. */

.fp-md-reads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--fp-line);
    border-bottom: 1px solid var(--fp-line);
}

.fp-md-reads dt {
    font-family: var(--fp-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.fp-md-reads dd {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--fp-muted);
}

.fp-md-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.fp-md-steps li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
}

.fp-md-k {
    font-family: var(--fp-mono);
    font-size: 0.8rem;
    line-height: 1.75rem;
    color: var(--fp-teal);
}

.fp-md-steps h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
}

.fp-md-steps p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: rgba(229, 231, 235, 0.8);
}

.fp-md-today {
    margin-top: 1.4rem;
    padding: 0.85rem 1rem;
    border-left: 2px solid var(--fp-teal);
    border-radius: 0 0.5rem 0.5rem 0;
    background: var(--fp-teal-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(229, 231, 235, 0.86);
}

.fp-md-source {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--fp-dim);
}

.fp-md-source a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fp-md-source a:hover {
    color: #fff;
}

.fp-md-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11.5rem;
    gap: 1.25rem;
    align-items: center;
}

.fp-md-body {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
}

.fp-md-convert .fp-panel-h {
    margin-bottom: 0.35rem;
}

.fp-md-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 11.5px;
    color: #a9b7c0;
}

.fp-md-flow i {
    font-size: 9px;
    color: var(--fp-dim);
}

.fp-md-flow b {
    font-weight: 600;
    color: #fff;
}

/* The five episodes, each ending on its cliffhanger mark */
.fp-md-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}

.fp-md-rail li {
    position: relative;
    display: grid;
    gap: 1px;
    padding: 0.35rem 0.3rem 0.4rem;
    border: 1px solid var(--fp-line);
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--fp-mono);
    line-height: 1.2;
}

.fp-md-rail li.is-on {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Episode names wrap onto two lines rather than lose their ends */
.fp-md-ep-name {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: #e8eef2;
}

/* Beside the copy on a narrow desktop the cells get too small for names;
   the selected episode's name is in its header */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .fp-md-ep-name {
        display: none;
    }
}

.fp-md-ep-n,
.fp-md-ep-t {
    font-size: 9px;
    font-weight: 400;
    color: var(--fp-dim);
}

/* The cliffhanger: the last stretch of every episode */
.fp-md-ep-hook {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 36%;
    height: 2px;
    border-radius: 0 0 0.3rem 0;
    background: var(--fp-amber);
}

.fp-md-ep {
    border: 1px solid var(--fp-line);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.fp-md-ep-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--fp-line);
}

.fp-md-ep-k,
.fp-md-ep-d {
    font-family: var(--fp-mono);
    font-size: 10px;
    color: var(--fp-dim);
}

.fp-md-ep-head b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fp-md-beats {
    display: flex;
    gap: 3px;
    padding: 0.6rem 0.7rem 0;
}

.fp-md-beat {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0.3rem 0.4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

/* Hook and cliffhanger take what their label needs; the turn fills the middle */
.fp-md-beat--hook,
.fp-md-beat--cliff { flex: 0 0 auto; }
.fp-md-beat--turn { flex: 1 1 0; }
.fp-md-beat--hook { border-top-color: var(--fp-teal); }
.fp-md-beat--cliff { border-top-color: var(--fp-amber); }

.fp-md-beat b {
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 600;
    color: #e8eef2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fp-md-beat i {
    font-family: var(--fp-mono);
    font-style: normal;
    font-size: 9px;
    color: var(--fp-dim);
}

/* Before and after: the screenplay page and the same lines as episode 1 */
.fp-md-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.7rem;
}

.fp-md-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fp-md-col .fp-panel-h {
    margin-bottom: 0.35rem;
}

.fp-md-page,
.fp-md-epage {
    flex: 1;
    margin: 0;
    border-radius: 0.3rem;
    background: #f4f1ea;
    color: #1d1d1b;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

.fp-md-page {
    padding: 0.75rem 0.7rem 0.8rem 0.9rem;
    font-size: 9px;
    line-height: 1.4;
}

.fp-md-page p {
    margin: 0 0 0.35rem;
}

.fp-md-page .fp-sp-char {
    margin: 0.45rem 0 0 !important;
    padding-left: 34%;
}

.fp-md-page .fp-sp-paren {
    padding-left: 24%;
}

.fp-md-page .fp-sp-dial {
    margin-bottom: 0 !important;
    padding: 0 6% 0 16%;
}

/* Lines the episode drops */
.fp-md-cutlines {
    opacity: 0.38;
    text-decoration: line-through;
    text-decoration-color: rgba(29, 29, 27, 0.7);
}

.fp-md-epage {
    padding: 0.75rem 0.8rem 0.8rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 9.5px;
    line-height: 1.45;
}

.fp-md-epage p {
    margin: 0 0 0.3rem;
}

.fp-md-epage b {
    display: block;
    font-weight: 700;
}

.fp-md-et {
    font-size: 11px;
    font-weight: 700;
}

.fp-md-tc {
    margin-top: 0.45rem !important;
    font-family: var(--fp-mono);
    font-size: 9px;
    font-weight: 600;
    color: #5b6670;
}

/* The phone: a real vertical clip */
.fp-md-phone {
    margin: 0;
}

.fp-md-screen {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 6px solid #05090c;
    border-radius: 1.6rem;
    background: #000;
    box-shadow: 0 0 0 1px var(--fp-line-strong), 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

.fp-md-screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-md-phone figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.fp-md-res {
    font-family: var(--fp-mono);
    font-size: 11px;
    color: var(--fp-muted);
}

@media (max-width: 767.98px) {
    .fp-md-visual {
        grid-template-columns: minmax(0, 1fr) 7.5rem;
        gap: 0.75rem;
    }

    .fp-md-reads dt {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .fp-md-visual {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-md-pages {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-md-ep-name {
        display: none;
    }

    .fp-md-phone {
        width: 10rem;
        justify-self: center;
    }
}

/* ---------- FAQ ---------- */

.fp-faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.fp-faq {
    border-top: 1px solid var(--fp-line);
}

.fp-faq details {
    border-bottom: 1px solid var(--fp-line);
}

.fp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.02rem;
    color: #fff;
}

.fp-faq summary::-webkit-details-marker {
    display: none;
}

.fp-faq summary::after {
    content: '+';
    flex-shrink: 0;
    font-family: var(--fp-mono);
    font-size: 1.1rem;
    color: var(--fp-teal);
    transition: transform 0.2s ease;
}

.fp-faq details[open] summary::after {
    transform: rotate(45deg);
}

.fp-faq summary:focus-visible {
    outline: 2px solid var(--fp-teal);
    outline-offset: 4px;
    border-radius: 4px;
}

.fp-faq details p {
    padding: 0 2rem 1.25rem 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--fp-muted);
}

/* ---------- Closing ---------- */

.fp-close {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
    border-radius: 1.6rem;
    border: 1px solid var(--fp-teal-line);
    background:
        radial-gradient(circle at 50% 0%, rgba(5, 199, 187, 0.18), transparent 65%),
        rgba(255, 255, 255, 0.02);
}

.fp-close h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.fp-close p:not(.fp-hero-micro) {
    max-width: 32rem;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--fp-muted);
}

/* ---------- Motion ---------- */

.fp-motion .film-page [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-motion .film-page [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.fp-tl-playhead {
    animation: fp-playhead 9s linear infinite;
}

@keyframes fp-playhead {
    from { left: var(--fp-lane-label); }
    to { left: calc(100% - 2px); }
}

.fp-node-bar i {
    animation: fp-gen 3.2s ease-in-out infinite;
}

@keyframes fp-gen {
    0% { width: 8%; }
    80% { width: 92%; }
    100% { width: 92%; }
}

.is-wait .fp-mark {
    animation: fp-pulse 1.8s ease-in-out infinite;
}

@keyframes fp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(5, 199, 187, 0.2); }
    50% { box-shadow: 0 0 0 5px rgba(5, 199, 187, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
    .fp-motion .film-page [data-reveal],
    .fp-motion .film-page [data-reveal].is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fp-tl-playhead,
    .fp-node-bar i,
    .is-wait .fp-mark {
        animation: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023.98px) {
    .film-page {
        padding-top: 7.5rem;
    }

    .fp-hero,
    .fp-step,
    .fp-step:nth-child(even),
    .fp-feature,
    .fp-feature--flip,
    .fp-faq-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-step:nth-child(even) .fp-step-copy,
    .fp-feature--flip .fp-feature-copy {
        order: 0;
    }

    .fp-step-copy p {
        max-width: none;
    }

    .fp-proof {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 767.98px) {
    .fp-flow ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-flow li:last-child {
        grid-column: 1 / -1;
    }

    .fp-flow li::after {
        display: none;
    }

    .fp-hero-actions .hero-cta {
        flex: 1 1 100%;
    }

    /* Placeholders with long notes: let the box grow instead of clipping the note. */
    .fp-hero-visual .temp-asset,
    .fp-proof-item .temp-asset {
        aspect-ratio: auto !important;
        min-height: 12rem;
        justify-content: space-between;
    }

    .fp-hero-visual .temp-asset__tag,
    .fp-proof-item .temp-asset__tag {
        position: static;
        align-self: flex-start;
        margin-bottom: 2.5rem;
    }

    .fp-previs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-loom-card,
    .fp-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-proof,
    .fp-proof-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-proof-real {
        max-width: 22rem;
        width: 100%;
        margin: 0 auto;
    }

    /* Mocks reflow for phones */
    .fp-loom {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-binder {
        display: none;
    }

    .fp-page {
        margin: 0.75rem;
        padding: 1rem 1rem 1.1rem 1.25rem;
        font-size: 10.5px;
    }

    .fp-sb-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-sb-head .fp-ui-btn {
        display: none;
    }

    .fp-sb-style {
        display: none;
    }

    .fp-app-bar .fp-seg,
    .fp-app-bar .fp-chip {
        display: none;
    }

    .fp-board {
        flex-direction: column;
        align-items: stretch;
    }

    .fp-node--scene,
    .fp-node--video,
    .fp-node--frames {
        width: 100%;
    }

    .fp-node--frames {
        grid-template-columns: 1fr 1fr;
    }

    .fp-wire {
        flex: 0 0 1.25rem;
        width: 2px;
        height: 1.25rem;
        min-width: 0;
        align-self: center;
        background: linear-gradient(180deg, var(--fp-teal), rgba(5, 199, 187, 0.35));
    }

    .fp-wire::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2px;
        margin: 0 0 0 -3px;
    }

    .fp-tl-grid {
        --fp-lane-label: 4.6rem;
    }

    .fp-tl-name {
        font-size: 10px;
    }

    .fp-bible-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-cam {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .fp-cam-models li::before {
        display: none;
    }

    .fp-cam-models {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fp-cam-models li {
        flex: 1 1 40%;
    }

    .fp-fix {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-fix-view {
        border-right: 0;
        border-bottom: 1px solid var(--fp-line);
    }

    .fp-agent {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-faq details p {
        padding-right: 0;
    }
}

@media (max-width: 420px) {
    .fp-field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-bible-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-bible-strip .temp-asset:last-child {
        display: none;
    }
}

/* Microline contrast at least 4.5:1 */
.film-page .fp-hero-micro {
    color: rgba(229, 231, 235, 0.78);
}
