/*
 * Blueprints first (Theran, Nov 8 — "our big feature… formats that already work,
 * and everything is laid out for you… all you do is film"), in the shared
 * blueprint page's words: the example with who made each part along its top,
 * You do / Lever does under it, the playing one lit (server/lib/share/look.ts).
 * No brand on the home (Theran, Nov 8 — not Higgsfield).
 */

.bp, .reuse { position: relative; padding: 80px var(--inset) 40px; overflow: hidden; }
.bp .cloud, .reuse .cloud { left: 0; top: -40px; opacity: .8; }
.bp .fade, .reuse .fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), transparent 22%, transparent 45%, var(--bg) 80%); }
.bp .copy, .reuse .copy { position: relative; text-align: center; }
.bp .title, .reuse .title { margin-top: 16px; }
.bp .under, .reuse .under { margin: 14px auto 0; max-width: 460px; }

/* The example, building itself: her clip, then each of Lever's parts dropping into its place. */
/* On a phone the example and what Lever does sit side by side, so a line lights as its part lands. */
.bp .stage { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 14px; max-width: 420px; margin: 28px auto 0; }
.ex { position: relative; width: 46vw; max-width: 200px; aspect-ratio: 9 / 16; border-radius: var(--r-panel); overflow: hidden; background: #000 center / cover no-repeat; container-type: inline-size; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 70px rgba(0,0,0,.6), 0 0 120px var(--lime-glow); }
.ex .strip { position: absolute; z-index: 4; left: 4cqw; right: 4cqw; top: 4cqw; height: 2.6cqw; display: flex; gap: 2px; }
.ex .strip i { height: 100%; border-radius: 3px; }
.ex .strip .head { position: absolute; top: -1.3cqw; width: 1cqw; height: 5.2cqw; transition: left .4s ease; border-radius: 2px; background: var(--text); box-shadow: 0 0 8px var(--text); translate: -50% 0; left: 0; }
.you { background: var(--text); }
.lever { background: var(--lime); }
.layer { position: absolute; z-index: 2; opacity: 0; transform: scale(1.08); transition: opacity .3s ease, transform .6s var(--spring), box-shadow .9s ease; }
.layer.on { opacity: 1; transform: none; }
.layer.landed { box-shadow: 0 0 0 2px var(--lime), 0 0 30px var(--lime-light); }
/* Her clip; Lever's zoom punches in on her face as a line lands. */
.ex .her { position: absolute; inset: 0; background: #000 center / cover no-repeat; transform-origin: 50% 30%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ex .her.on { transform: scale(1.16); }
/* The hook's text: one line in the open space under the product, above the captions — never across her face or what she holds. */
.layer.text { left: 4%; right: 4%; top: 12.5%; text-align: center; white-space: nowrap; }
.layer.text span { display: inline; padding: .14em .4em; border-radius: 1.4cqw; background: #fff; color: #000; font-family: 'TikTok Sans', sans-serif; font-weight: 600; font-size: 5.6cqw; line-height: 1.5; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.layer.text.landed { box-shadow: none; }
.layer.text.landed span { box-shadow: 0 0 0 2px var(--lime), 0 0 30px var(--lime-light); }
.layer.song { left: 4cqw; top: 10cqw; display: flex; align-items: center; gap: 2cqw; height: 9cqw; padding: 0 3.6cqw; font-size: 4.2cqw; border-radius: var(--r-pill); background: rgba(20,18,23,.6); border: 1px solid var(--hair); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); }
.layer.song em { display: flex; align-items: flex-end; gap: .7cqw; height: 3.6cqw; }
.layer.song em i { width: .7cqw; height: 100%; border-radius: 1px; background: var(--lime); animation: beat .9s ease-in-out infinite alternate; }
.layer.song em i:nth-child(2) { animation-delay: -.3s; }
.layer.song em i:nth-child(3) { animation-delay: -.6s; }
@keyframes beat { from { transform: scaleY(.3); } to { transform: none; } }
.layer.caps { left: 4%; right: 4%; top: 78%; translate: 0 -50%; text-align: center; font-family: 'TikTok Sans', sans-serif; font-weight: 600; color: #fff; font-size: 7.5cqw; line-height: 1.15; -webkit-text-stroke: 1.1cqw #000; paint-order: stroke fill; }
.layer.caps.landed { box-shadow: none; }

/* What's on screen and who made it, under the example. */
.tag { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: 16px; background: rgba(20,18,23,.72); border: 1px solid var(--hair); }
.tag p { font-size: var(--t-subhead); line-height: 1.3; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--t-caption); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); flex: none; }

.cols { display: grid; gap: 14px; align-self: center; }
.cols .h { font-size: var(--t-caption); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.cols .l .h { color: var(--lime-label); }
.cols .i { position: relative; padding: 5px 0 5px 14px; font-size: 14px; line-height: 1.3; color: var(--dim); transition: color .2s; }
.cols .i::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.cols .l .i::before { background: var(--lime); }
.cols .i.on { color: var(--text); font-weight: 600; }
.cols .l .i.on { color: var(--lime-words); }

/* ── Your clips, filmed once and in every video ──────────────── */
.reuse .board { position: relative; max-width: 860px; margin: 30px auto 0; }
.reuse .shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 330px; margin: 0 auto; }
.reuse .shelf figure { text-align: center; }
.reuse .shelf .vid { width: 100%; }
.reuse .shelf figcaption { margin-top: 8px; font-size: var(--t-footnote); color: var(--lime-words); font-weight: 600; }
.reuse .rows { display: grid; gap: 8px; margin-top: 26px; }
.reuse .row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.reuse .row > span { font-size: var(--t-footnote); color: var(--faint); font-variant-numeric: tabular-nums; }
.reuse .line { display: flex; gap: 3px; height: 30px; }
.reuse .clip { height: 100%; border-radius: 6px; transition: transform .6s var(--spring), opacity .4s ease; }
/* Her reused clips show as themselves, edged in lime; what she films new stays quiet. */
.reuse .clip.fresh { background: rgba(240, 236, 228, 0.1); }
.reuse .clip.kept { background: #000 center / cover no-repeat; box-shadow: inset 0 0 0 1.5px var(--lime-edge), 0 0 14px var(--lime-glow); }
.reuse .board:not(.on) .clip.kept { transform: translateY(-26px); opacity: 0; }
.reuse .key { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: var(--t-footnote); color: var(--faint); }
.reuse .key .you { background: rgba(240, 236, 228, 0.1); }
.reuse .key .lever { background: none; box-shadow: inset 0 0 0 1.5px var(--lime-edge); }
.reuse .key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.reuse .row:nth-child(n+6) { display: none; }

/* A blueprint, as the app shows one: its lines, what Lever lays on each, Film this one. */
.plan { background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 16% 7% 8%; }
.plan small { font-size: 3.2cqw; font-weight: 600; letter-spacing: .8cqw; text-transform: uppercase; color: var(--lime-label); }
.plan h3 { margin-top: 2cqw; font-size: 7.4cqw; font-weight: 300; letter-spacing: -.2cqw; }
.plan .meta { margin-top: 1cqw; font-size: 3.8cqw; color: var(--faint); }
.plan .lines { list-style: none; width: 100%; margin-top: 7cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.plan .lines li { display: grid; grid-template-columns: 6cqw 1fr; column-gap: 2cqw; padding: 3cqw 3.6cqw; border-radius: var(--r-control); background: rgba(240,236,228,.05); border: 1px solid var(--hair); font-size: 4cqw; line-height: 1.3; }
.plan .lines i { font-style: normal; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.plan .lines em { grid-column: 2; margin-top: .8cqw; font-style: normal; font-size: 3.2cqw; font-weight: 600; color: var(--lime-words); }
.plan .go { margin-top: auto; width: 100%; height: 13cqw; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--lime); color: var(--ink); font-size: 4.6cqw; font-weight: 600; box-shadow: inset 0 1px 0 var(--rim); }

@media (min-width: 900px) {
  .bp, .reuse { padding: 140px 48px 80px; }
  .bp .cloud, .reuse .cloud { left: 50%; top: -260px; transform: scale(2.4) translateX(-50%); }
  .bp .title, .reuse .title { font-size: var(--t-hero); letter-spacing: -1.6px; }
  /* On a computer the words and lists sit left and the example right, as the phone section does. */
  .bp { display: grid; grid-template-columns: minmax(0, 520px) auto; grid-template-rows: auto auto 1fr; justify-content: center; column-gap: 110px; min-height: 100vh; align-content: center; }
  .bp .copy { grid-column: 1; grid-row: 1; text-align: left; }
  .bp .under { margin-left: 0; }
  .bp .stage { display: contents; }
  .ex { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: min(360px, calc((100vh - 200px) * 0.5625)); max-width: none; }
  .tag { grid-column: 1; grid-row: 2; margin-top: 36px; width: 420px; }
  .cols { grid-column: 1; grid-row: 3; align-self: start; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 20px; width: 420px; }
  .cols .i { font-size: var(--t-body); padding: 7px 0 7px 16px; }
  .cols .i::before { top: 15px; }
  .reuse .board { margin-top: 56px; }
  .reuse .shelf { max-width: 420px; gap: 16px; }
  .reuse .line { height: 36px; }
  .reuse .row:nth-child(n+6) { display: grid; }
}
