/* Product pages (ghost, fama, vermeer, ...): the eight beats. Generated by tools/gen-product.mjs. */

/* 1. the product world: the S2 template in site.css puts the painted room first, full width under the nav; a clean navy band beneath carries the copy */
.phero .wrap { position: relative; z-index: 2; padding: clamp(26px, 4.5vh, 48px) 0 clamp(18px, 3vh, 28px); display: grid; grid-template-columns: 1.1fr .9fr 200px; gap: 10px 40px; align-items: end; }
/* the host: the page's own Uwee stands in the copy band on the navy, a still with alpha, nothing painted over it; the view transition carries it in */
.phero .host { width: 200px !important; justify-self: end; }
.phero .kicker { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; margin: 0 0 6px; color: var(--on-dark); }
.phero .kicker .label { color: rgba(246,243,236,.7); }
.phero h1 { margin: 0; color: #fff; max-width: 16ch; }
.phero .lede { margin: 0 0 14px; color: var(--on-dark-2); max-width: 48ch; }
/* P4 (rule 9): on a wide screen the h1 takes the full measure on one or two lines, the lede and doors sit in one row under it, the host stands to the right of both; no tall stack beside empty navy */
@media (min-width: 861px) {
  .phero .wrap { grid-template-columns: minmax(0, 1fr) 200px; gap: 14px 40px; }
  .phero h1 { grid-column: 1; grid-row: 2; max-width: 26ch; font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
  .phero .lede-block { grid-column: 1; grid-row: 3; display: flex; gap: 12px 36px; align-items: center; flex-wrap: wrap; }
  .phero .lede-block .lede { margin: 0; }
  .phero .host { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
}
@media (max-width: 860px) {
  .phero .wrap { grid-template-columns: 1fr 96px; gap: 8px 12px; padding: 24px 0 20px; }
  .phero .kicker, .phero .lede-block { grid-column: 1 / -1; }
  .phero .host { width: 96px !important; grid-column: 2; grid-row: 2; align-self: end; }
  .phero .lede { font-size: 1.1rem; }
}

/* 2. its step, and who works here */
.promise .grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
.loop-row { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.loop-row li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 12px; opacity: .8; }
.loop-row li p { grid-column: 2; margin: 0; font-size: .95rem; color: var(--muted); }
.loop-row li .n { font-family: var(--ui); font-size: .8rem; color: var(--muted); }
.loop-row li b { font-family: var(--head); font-size: 1.1rem; }
.loop-row li.is-on { opacity: 1; background: var(--card); box-shadow: inset 4px 0 0 var(--amber); }
.crew-row { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.crew-row li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 8px 10px; border-radius: 14px; background: var(--card); cursor: default; transition: background-color .2s var(--ease); }
.crew-row li.is-hot { background: #fff; }
.crew-row li b { font-family: var(--head); font-size: 1rem; margin-top: 6px; }
.crew-row li .small { font-size: .78rem; line-height: 1.25; }
.crew-row [data-actor] { display: block; width: 100%; }
.crew-row [data-actor] .uwee { width: 100% !important; max-width: 150px; }
.crew-scene .grid { grid-template-columns: .9fr 1.1fr; }
.crew-scene .scene-col h3 { margin: 0 0 4px; }
.crew-scene .plate { margin-top: 12px; cursor: pointer; }
.crew-scene .plate video { display: none; }
.crew-scene .plate.is-acting video { display: block; }
.crew-scene .plate .plate-loop { position: absolute; left: 4%; bottom: 2%; width: 26%; z-index: 3; }
.crew-scene .plate .plate-loop video { display: block; } /* H26, H36: the plate's own-clip rule above also hid this loop Uwee, so it never showed or played */
.crew-legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.crew-legend li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card); transition: background-color .2s var(--ease); }
.crew-legend li.is-hot { background: #fff; }
.crew-legend li b { font-family: var(--head); font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crew-legend .small { font-size: .78rem; line-height: 1.25; }
.crew-legend .moves { color: var(--amber-ink); }
.chip--lead { min-height: 22px; padding: 0 8px; font-size: .7rem; background: var(--amber); border-color: var(--amber); color: var(--navy); }
.crew-scene .also { margin: 10px 0 0; }
@media (max-width: 860px) { .promise .grid, .crew-scene .grid { grid-template-columns: 1fr; } .crew-legend { grid-template-columns: 1fr 1fr; } }

/* 3. the deliverable: the sign band (Content) and the caught line (template) */
.sign .grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
.sign .draft, .caught .draft { width: min(460px, 100%); }
.out { margin: 24px 0 0; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.out img { width: 100%; height: auto; border-radius: 8px; display: block; }
.out figcaption { font-family: var(--ui); font-size: .8rem; color: var(--ink-2); padding: 8px 6px 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.caught .grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
.caught-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 4px; }
.caught-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; opacity: .8; }
.caught-steps li.is-on { opacity: 1; background: var(--card); box-shadow: inset 4px 0 0 var(--amber); }
.caught-steps li p { grid-column: 2; margin: 0; font-size: .92rem; color: var(--muted); }
.caught-steps .n { font-family: var(--ui); font-size: .8rem; color: var(--muted); }
.caught-stage { display: grid; gap: 16px; }
@media (max-width: 860px) { .sign .grid, .caught .grid { grid-template-columns: 1fr; } }

/* 5. in, through, out: the fields on the left, the finished piece large on the right */
.how .io-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.out--large { margin: 0; padding: 10px; }
.out--large img { max-height: none; }
.out--large figcaption { font-size: .9rem; padding: 10px 6px 4px; }
.how .side .io { display: grid; gap: 8px; margin: 0 0 16px; }
.how .side .io div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); transition: background-color .2s var(--ease); }
.how .side .io div.is-hot { background: #fff; }
.how .side .io dt { font-family: var(--ui); font-size: .8rem; color: var(--muted); padding-top: 3px; }
.how .side .io dd { margin: 0; }
.how .side .chip { margin-right: 4px; }
.how .vt-row { margin-top: 18px; }
@media (max-width: 860px) { .how .io-grid { grid-template-columns: 1fr; } }

/* 6. plans */
.plans-band table.plans td { vertical-align: top; }
.plans-band table.plans td:nth-child(2) { white-space: nowrap; }
.plans-band .trial { font-family: var(--serif-accent); font-style: italic; font-size: 1.15rem; margin: 20px 0 8px; }

/* 7. Pockets */
.trust .grid { grid-template-columns: .7fr 1.3fr; align-items: center; }
.trust .pockets-stage { display: grid; justify-items: center; }
.trust .pockets-stage .uwee { width: min(360px, 100%); }
.trust .said { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; margin: 10px 0 20px; color: var(--paper); display: inline-block; }
@media (max-width: 860px) { .trust .grid { grid-template-columns: 1fr; } }

/* 8. the close: Astra's final doors (X20 pattern) on butter, the doors and this page's cast side by side (P4: the x-close scene is the site's one shared still, rule 7) */
.p-close { padding-block: clamp(48px, 6vw, 80px); }
.p-close .grid { grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; }
.p-close h2 { margin: 0 0 8px; }
.p-close .lede { margin: 0 0 18px; color: var(--ink-2); }
.p-close .btn--primary { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.p-close .cast { list-style: none; padding: 0; margin: 8px 0 0; columns: 2; column-gap: 20px; font-family: var(--ui); font-size: .9rem; color: var(--ink); }
.p-close .cast li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(21,23,28,.14); break-inside: avoid; }
.p-close .cast li .uwee.mini { flex: 0 0 44px; } /* rule 11: each name in the cast list shows its Uwee */
.p-close .cast li .nm { flex: 0 0 auto; font-weight: 700; }
.p-close .cast li span:last-child:not(.nm) { margin-left: auto; color: var(--ink-2); text-align: right; font-family: var(--body); font-size: .9em; }
@media (max-width: 860px) { .p-close .grid { grid-template-columns: 1fr; } .p-close .cast { columns: 1; } }

/* the pieces (rule 3, S4): one quiet line per section, then the deliverable as the customer would see it */
.p-quiet { margin: 0 0 10px; }
.caught-stage .p-quiet { margin: 0; }
#watch > .wrap .p-quiet { margin: 0; padding: 14px 0 12px; } /* S4: the one quiet line above the traveler */
.p-dlv { display: grid; gap: 12px; }
.p-dlv .p-quiet { margin: 4px 6px 0; }
.p-dlv .dlv-art { margin: 0; }
.p-dlv .dlv-art img { border-radius: 8px; }
.p-dlv .dlv-art--pair, .p-dlv .dlv-art--film { display: flex; gap: 8px; }
.p-dlv .dlv-art--pair img, .p-dlv .dlv-art--film img { min-width: 0; }
.p-dlv-meta { padding: 2px 8px 6px; display: grid; gap: 6px; }
.p-dlv-meta .dlv-brand { margin: 0; font-family: var(--ui); font-size: .8rem; color: var(--ink-3); }
.p-dlv-meta h3 { margin: 0; font-size: 1.15rem; }
.p-dlv-meta .dlv-lines { margin: 4px 0 0; }
.p-dlv-fallback { margin: 0; }
.draft .dh .dh-brand { font-weight: 600; color: var(--ink-2); }
