/* launchvideomaker.com: page layout on the design-system tokens (theme lvm). Components come from
   /ds (vendored); this file only lays pages out and styles the app-specific pieces. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

html { background: var(--ds-ground); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ds-ground); color: var(--ds-ink-2); font-family: var(--ds-font-sans); overflow-x: hidden; }
main { flex: 1 0 auto; }
img, video { max-width: 100%; }
.wrap { width: 100%; max-width: var(--ds-container-max); margin-inline: auto; padding-inline: 16px; box-sizing: border-box; }
@media (min-width: 720px) { .wrap { padding-inline: var(--ds-space-8); } }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- header / footer */
.site-head { border-block-end: var(--ds-border-width) solid var(--ds-rule); background: color-mix(in srgb, var(--ds-ground) 88%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ds-ink); text-decoration: none; font-family: var(--ds-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word span { color: var(--ds-accent-ink); }
.site-nav { display: flex; align-items: center; gap: var(--ds-space-4); font-size: var(--ds-text-sm); }
.site-nav a { color: var(--ds-ink-muted); text-decoration: none; }
.site-nav a:hover { color: var(--ds-ink); }
.site-nav .nav-hide-sm { display: none; }
@media (min-width: 560px) { .site-nav .nav-hide-sm { display: inline; } }
.site-foot { border-block-start: var(--ds-border-width) solid var(--ds-rule); margin-block-start: var(--ds-space-16, 64px); padding-block: var(--ds-space-8); font-size: var(--ds-text-sm); color: var(--ds-ink-muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--ds-space-4) var(--ds-space-8); justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--ds-space-4); }
.site-foot a { color: var(--ds-ink-muted); }
.site-foot a:hover { color: var(--ds-ink); }

/* ---- type */
.eyebrow { font-family: var(--ds-font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ds-accent-ink); margin: 0 0 var(--ds-space-3); }
.display { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-ink); letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(38px, 10vw, 76px); margin: 0 0 var(--ds-space-5); text-wrap: balance; }
.display em { font-style: normal; color: var(--ds-accent); }
h1.page-title { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-ink); letter-spacing: -0.03em; font-size: clamp(30px, 7vw, 48px); line-height: 1.05; margin: var(--ds-space-10, 40px) 0 var(--ds-space-4); text-wrap: balance; }
h2.sec-title { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-ink); letter-spacing: -0.025em; font-size: clamp(26px, 5.5vw, 40px); line-height: 1.08; margin: 0 0 var(--ds-space-4); text-wrap: balance; }
h3 { color: var(--ds-ink); font-family: var(--ds-font-display); font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.5; color: var(--ds-ink-2); max-width: 60ch; margin: 0 0 var(--ds-space-6); }
.muted { color: var(--ds-ink-muted); }
.small { font-size: var(--ds-text-sm); }
.prose { line-height: 1.65; max-width: 70ch; }
.prose h2 { font-family: var(--ds-font-display); color: var(--ds-ink); font-size: 22px; margin: var(--ds-space-8) 0 var(--ds-space-2); }
.prose a, .link { color: var(--ds-ink-link); }
.mono { font-family: var(--ds-font-mono); }

/* ---- sections */
.sec { padding-block: clamp(48px, 9vw, 96px); border-block-start: var(--ds-border-width) solid var(--ds-rule); }
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 88px); display: grid; gap: var(--ds-space-10, 40px); align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }

/* start form (landing + /app/) */
.start { display: grid; gap: var(--ds-space-3); max-width: 560px; }
.start .row { display: grid; gap: var(--ds-space-3); }
@media (min-width: 560px) { .start .row { grid-template-columns: 1fr auto; } }
.start .ds-text-input { --_w: 100%; --_h: 48px; }
.start .ds-button-primary { --_h: 48px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: var(--ds-text-sm); min-height: 1.4em; margin: 0; }
.form-msg[data-tone="error"] { color: var(--ds-danger-ink); }
.form-msg[data-tone="ok"] { color: var(--ds-success-ink); }
.notice { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-md); padding: var(--ds-space-5); background: var(--ds-surface); }
.notice h3 { margin: 0 0 var(--ds-space-2); font-size: 20px; }
.notice p { margin: 0; }

/* the reel mock: a CSS-only 9:16 frame with type bars and a playhead (decorative) */
.reel-mock { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 22px; background: linear-gradient(160deg, var(--ds-surface-2), var(--ds-ground-2)); border: 1px solid var(--ds-rule-strong); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.reel-mock__rec { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--ds-font-mono); color: var(--ds-ink-muted); letter-spacing: .08em; }
.reel-mock__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-accent); animation: rec 1.6s ease-in-out infinite; }
.reel-mock__stage { position: absolute; inset: 22% 10% 26%; display: grid; align-content: center; gap: 10px; }
.reel-mock__bar { height: 22px; border-radius: 4px; background: var(--ds-ink); transform-origin: left center; animation: bar 4.8s cubic-bezier(.2,.8,.2,1) infinite; }
.reel-mock__bar:nth-child(1) { width: 92%; }
.reel-mock__bar:nth-child(2) { width: 70%; animation-delay: .12s; background: var(--ds-accent); }
.reel-mock__bar:nth-child(3) { width: 48%; height: 10px; animation-delay: .24s; background: var(--ds-ink-muted); }
.reel-mock__chip { justify-self: start; margin-top: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ds-accent-2); color: var(--ds-accent-2-ink); font: 500 11px/1 var(--ds-font-mono); animation: fade 4.8s ease infinite; animation-delay: .4s; }
.reel-mock__timeline { position: absolute; left: 10%; right: 10%; bottom: 9%; height: 4px; border-radius: 2px; background: var(--ds-rule-strong); overflow: hidden; }
.reel-mock__timeline::after { content: ""; position: absolute; inset: 0; background: var(--ds-accent); transform-origin: left; animation: play 4.8s linear infinite; }
.reel-mock__ticks { position: absolute; left: 10%; right: 10%; bottom: calc(9% + 12px); display: flex; justify-content: space-between; font: 400 10px/1 var(--ds-font-mono); color: var(--ds-ink-faint); }
@keyframes bar { 0% { transform: scaleX(0); opacity: 0; } 12% { transform: scaleX(1); opacity: 1; } 78% { transform: scaleX(1); opacity: 1; } 90%, 100% { transform: scaleX(1) translateY(-8px); opacity: 0; } }
@keyframes fade { 0%, 15% { opacity: 0; } 25%, 78% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .reel-mock *, .reel-mock *::before, .reel-mock *::after { animation: none !important; } }

/* steps grid */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: var(--ds-border-width) solid var(--ds-rule); border-radius: var(--ds-radius-md); overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: var(--ds-space-6); border-block-end: var(--ds-border-width) solid var(--ds-rule); }
@media (min-width: 720px) { .steps li { border-inline-end: var(--ds-border-width) solid var(--ds-rule); } }
.steps .n { font: 500 12px/1 var(--ds-font-mono); color: var(--ds-accent-ink); letter-spacing: .08em; }
.steps h3 { margin: var(--ds-space-3) 0 var(--ds-space-2); font-size: 20px; }
.steps p { margin: 0; color: var(--ds-ink-muted); line-height: 1.55; }

/* pricing */
.tiers { display: grid; gap: var(--ds-space-4); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-lg); padding: var(--ds-space-6); display: flex; flex-direction: column; gap: var(--ds-space-3); background: var(--ds-surface); }
.tier[data-featured] { border-color: var(--ds-accent); }
.tier h3 { margin: 0; font-size: 22px; }
.tier .price { font-family: var(--ds-font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; color: var(--ds-ink); line-height: 1; }
.tier ul { margin: 0; padding-inline-start: 1.1em; color: var(--ds-ink-2); line-height: 1.7; }
.tier p { margin: 0; color: var(--ds-ink-muted); }

.split { display: grid; gap: var(--ds-space-8); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.both-card { border: 1px dashed var(--ds-accent-soft); border-radius: var(--ds-radius-lg); padding: var(--ds-space-6); background: var(--ds-accent-tint); }
.both-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-3); margin-top: var(--ds-space-4); }
.both-card .pair div { aspect-ratio: 9 / 12; border-radius: var(--ds-radius-md); border: 1px solid var(--ds-rule-strong); background: var(--ds-surface); display: grid; place-items: end start; padding: var(--ds-space-3); font: 500 12px/1.3 var(--ds-font-mono); color: var(--ds-ink-muted); }
.faq dt { color: var(--ds-ink); font-weight: 600; margin-top: var(--ds-space-5); }
.faq dd { margin: var(--ds-space-2) 0 0; color: var(--ds-ink-muted); line-height: 1.6; max-width: 70ch; }

/* ---- app: order list */
.orders { list-style: none; padding: 0; margin: 0; border: var(--ds-border-width) solid var(--ds-rule); border-radius: var(--ds-radius-md); overflow: hidden; }
.orders li + li { border-block-start: var(--ds-border-width) solid var(--ds-rule); }
.orders a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-1) var(--ds-space-3); padding: var(--ds-space-4); color: inherit; text-decoration: none; }
.orders a:hover { background: var(--ds-hover-bg); }
.orders .site { color: var(--ds-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders .meta { grid-column: 1 / -1; font-size: var(--ds-text-sm); color: var(--ds-ink-muted); }

/* ---- order page */
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-3); margin: var(--ds-space-8) 0 var(--ds-space-2); }
.order-head h1 { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-ink); font-size: clamp(24px, 6vw, 36px); letter-spacing: -0.025em; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.stepper { list-style: none; margin: var(--ds-space-5) 0 var(--ds-space-8); padding: 0; display: flex; gap: 6px; counter-reset: s; }
.stepper li { flex: 1 1 0; min-width: 0; }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--ds-rule-strong); margin-block-end: 8px; }
.stepper li[data-state="done"]::before { background: var(--ds-accent-soft); }
.stepper li[data-state="current"]::before { background: var(--ds-accent); }
.stepper span { display: block; font: 500 11px/1.2 var(--ds-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li[data-state="current"] span { color: var(--ds-ink); }
@media (max-width: 480px) { .stepper li:not([data-state="current"]) span { visibility: hidden; } }
.panel h2 { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-ink); font-size: clamp(22px, 5vw, 30px); letter-spacing: -0.02em; margin: 0 0 var(--ds-space-2); }
.panel > p.lede { margin-bottom: var(--ds-space-5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); align-items: center; margin-block-start: var(--ds-space-6); }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin-inline: -16px; padding: var(--ds-space-3) 16px; background: color-mix(in srgb, var(--ds-ground) 92%, transparent); border-block-start: var(--ds-border-width) solid var(--ds-rule); backdrop-filter: blur(8px); display: flex; flex-wrap: wrap; gap: var(--ds-space-3); align-items: center; justify-content: space-between; }
.sticky-actions .count { font-size: var(--ds-text-sm); color: var(--ds-ink-muted); }

/* progress log */
.log { list-style: none; margin: var(--ds-space-5) 0 0; padding: 0; border-inline-start: 2px solid var(--ds-rule-strong); }
.log li { position: relative; padding: 0 0 var(--ds-space-4) var(--ds-space-5); }
.log li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ds-rule-strong); }
.log li:last-child::before { background: var(--ds-accent); box-shadow: 0 0 0 4px var(--ds-accent-tint); }
.log time { display: block; font: 400 11px/1.4 var(--ds-font-mono); color: var(--ds-ink-faint); }
.log .msg { color: var(--ds-ink-2); }
.working { display: flex; align-items: center; gap: var(--ds-space-3); color: var(--ds-ink); font-weight: 500; }
.working::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ds-accent); animation: rec 1.2s ease-in-out infinite; flex: none; }

/* claims */
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-3); }
.claim { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-md); padding: var(--ds-space-4); background: var(--ds-surface); display: grid; gap: var(--ds-space-3); }
.claim[data-status="approved"] { border-color: color-mix(in srgb, var(--ds-success) 55%, var(--ds-rule)); }
.claim[data-status="rejected"] { opacity: .72; }
.claim[data-status="rejected"] .claim__text { text-decoration: line-through; text-decoration-color: var(--ds-ink-faint); }
.claim__top { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); align-items: center; }
.claim__text { color: var(--ds-ink); font-size: 18px; font-weight: 500; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.claim blockquote { margin: 0; padding: var(--ds-space-2) var(--ds-space-3); border-inline-start: 3px solid var(--ds-accent-soft); color: var(--ds-ink-muted); font-size: var(--ds-text-sm); line-height: 1.55; overflow-wrap: anywhere; }
.claim__src { font-size: var(--ds-text-sm); color: var(--ds-ink-link); overflow-wrap: anywhere; }
.claim__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-2); }
.decide { min-height: 44px; border-radius: var(--ds-radius-button, 8px); border: 1px solid var(--ds-border); background: var(--ds-surface-2); color: var(--ds-ink-2); font: 500 15px/1 var(--ds-font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.decide:hover { border-color: var(--ds-border-strong); }
.decide:focus-visible { outline: var(--ds-ring-width, 2px) solid var(--ds-ring); outline-offset: 2px; }
.decide[data-kind="approve"][aria-pressed="true"] { background: var(--ds-success-tint); border-color: var(--ds-success); color: var(--ds-success-ink); }
.decide[data-kind="reject"][aria-pressed="true"] { background: var(--ds-danger-tint); border-color: var(--ds-danger); color: var(--ds-danger-ink); }

/* style picker */
.auto-card { position: relative; border: 2px solid var(--ds-rule-strong); border-radius: var(--ds-radius-lg); padding: var(--ds-space-5); background: var(--ds-surface); cursor: pointer; display: grid; gap: var(--ds-space-3); }
.auto-card:has(input:checked) { border-color: var(--ds-accent); background: linear-gradient(180deg, var(--ds-accent-tint), var(--ds-surface) 70%); }
.auto-card:has(input:focus-visible) { outline: 2px solid var(--ds-ring); outline-offset: 2px; }
.auto-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.auto-card h3 { margin: 0; font-size: 22px; }
.auto-card p { margin: 0; }
.pick { border-top: 1px solid var(--ds-rule); padding-top: var(--ds-space-3); }
.pick strong { color: var(--ds-ink); }
.pick .why { color: var(--ds-ink-muted); font-size: var(--ds-text-sm); margin-top: 4px; line-height: 1.5; }
.delight { font-family: var(--ds-font-display); font-weight: 700; color: var(--ds-accent-ink); font-size: 18px; }
.or { display: flex; align-items: center; gap: var(--ds-space-3); color: var(--ds-ink-faint); font: 500 12px/1 var(--ds-font-mono); letter-spacing: .08em; text-transform: uppercase; margin: var(--ds-space-8) 0 var(--ds-space-4); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--ds-rule); }
.grid-dirs { display: grid; gap: var(--ds-space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-dirs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-dirs { grid-template-columns: 1fr 1fr 1fr; } }
.grid-dirs .ds-choice-card { align-items: start; }
.grid-dirs .ds-choice-card__label { font-size: 16px; }
.sub-title { font-family: var(--ds-font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ds-ink-muted); margin: var(--ds-space-6) 0 var(--ds-space-3); }

/* package */
.tier-pick { display: grid; gap: var(--ds-space-3); }
@media (min-width: 760px) { .tier-pick { grid-template-columns: repeat(3, 1fr); } }
.tier-pick .ds-choice-card { align-items: start; }
.tier-pick .amt { font-family: var(--ds-font-display); font-weight: 700; font-size: 28px; color: var(--ds-ink); }
.seg { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ds-border); background: var(--ds-surface); color: var(--ds-ink-2); font-weight: 500; cursor: pointer; }
.seg input:checked + span { border-color: var(--ds-accent); background: var(--ds-accent-tint); color: var(--ds-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ds-ring); outline-offset: 2px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.ratio { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.ratio[data-r="9:16"] { width: 9px; height: 16px; } .ratio[data-r="16:9"] { width: 18px; height: 10px; } .ratio[data-r="4:5"] { width: 12px; height: 15px; }

/* summary */
.summary { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-md); margin: 0; }
.summary > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); }
.summary > div + div { border-top: 1px solid var(--ds-rule); }
.summary dt { color: var(--ds-ink-muted); font-size: var(--ds-text-sm); }
.summary dd { margin: 0; color: var(--ds-ink); overflow-wrap: anywhere; }
.summary .total dd { font-family: var(--ds-font-display); font-weight: 700; font-size: 24px; }

/* videos */
.videos { display: grid; gap: var(--ds-space-6); }
@media (min-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-lg); padding: var(--ds-space-3); background: var(--ds-surface); display: grid; gap: var(--ds-space-3); }
.video video { width: 100%; max-height: 72vh; border-radius: var(--ds-radius-md); background: #000; display: block; }
.video .row { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); align-items: center; justify-content: space-between; }
.video .title { color: var(--ds-ink); font-weight: 600; }
.skel { height: 88px; border-radius: var(--ds-radius-md); background: var(--ds-skeleton); animation: rec 1.4s ease-in-out infinite; }
.app-skel { margin-top: 48px; }
.app-note { margin: 16px 0 24px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ds-ink-link); text-decoration: underline; }

/* ---- gallery (#examples): 2 columns on phones, 3 on tablets, 4 on desktop; the 9:16 frame is sized
   before the poster loads, so nothing shifts */
.gallery { list-style: none; margin: var(--ds-space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-5) var(--ds-space-3); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-6) var(--ds-space-4); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reel { min-width: 0; }
.reel__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--ds-radius-md); overflow: hidden; background: var(--ds-surface-2); border: var(--ds-border-width) solid var(--ds-rule-strong); }
.reel__btn { position: absolute; inset: 0; display: block; color: #fff; }
.reel__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__btn:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: -2px; }
.reel__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); transition: transform .15s ease, background .15s ease; }
.reel__play svg { width: 22px; height: 22px; margin-left: 3px; }
.reel__btn:hover .reel__play { transform: scale(1.08); background: var(--ds-accent); }
.reel__len { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.6); font: 500 11px/1 var(--ds-font-mono); letter-spacing: .04em; }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel__frame.is-preview .reel__video { pointer-events: none; }
.reel__frame.is-preview .reel__play, .reel__frame.is-preview .reel__len { opacity: 0; }
.reel__cap { margin: var(--ds-space-2) 0 0; font-size: var(--ds-text-sm); line-height: 1.35; }
.reel__look { display: block; color: var(--ds-ink); font-weight: 600; }
.reel__meta { display: block; color: var(--ds-ink-muted); }
.gallery-note { margin: var(--ds-space-6) 0 0; max-width: 70ch; }

/* ---- guides */
.crumbs { margin-top: var(--ds-space-8); font-size: var(--ds-text-sm); color: var(--ds-ink-faint); }
.crumbs a { color: var(--ds-ink-muted); }
.crumbs + h1.page-title { margin-top: var(--ds-space-3); }
.guide h2 { scroll-margin-top: 80px; }
.guide ul, .guide ol { padding-inline-start: 1.25em; }
.guide li { margin-block: var(--ds-space-2); }
.guide .lede { max-width: none; }
.table-scroll { overflow-x: auto; margin-block: var(--ds-space-4); border: var(--ds-border-width) solid var(--ds-rule); border-radius: var(--ds-radius-md); }
.guide table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--ds-text-sm); line-height: 1.45; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: var(--ds-space-3); border-block-end: var(--ds-border-width) solid var(--ds-rule); }
.guide thead th { color: var(--ds-ink); font-family: var(--ds-font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.guide tbody th { color: var(--ds-ink); white-space: nowrap; }
.guide tr:last-child > * { border-block-end: 0; }
.sources li { overflow-wrap: anywhere; }
.guide-more { margin-top: var(--ds-space-10, 40px); padding-top: var(--ds-space-6); border-block-start: var(--ds-border-width) solid var(--ds-rule); }
.guide-more h2 { margin-top: 0; }
.guide-list { list-style: none; margin: var(--ds-space-6) 0 0; padding: 0; display: grid; gap: var(--ds-space-3); }
.guide-list a { display: block; padding: var(--ds-space-5); border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-md); background: var(--ds-surface); color: inherit; text-decoration: none; }
.guide-list a:hover { border-color: var(--ds-accent); }
.guide-list h2 { margin: 0 0 var(--ds-space-2); font-family: var(--ds-font-display); color: var(--ds-ink); font-size: 20px; letter-spacing: -0.01em; }
.guide-list p { margin: 0; color: var(--ds-ink-muted); line-height: 1.55; }

/* ready: one block per reel, versions (the undo) + the chat-edit thread (Phase 5) */
.reel-block + .reel-block { margin-block-start: var(--ds-space-8); padding-block-start: var(--ds-space-6); border-block-start: var(--ds-border-width) solid var(--ds-rule); }
.reel-grid { display: grid; gap: var(--ds-space-6); }
.reel-media { display: grid; gap: var(--ds-space-4); align-content: start; min-width: 0; }
.reel-media .videos { grid-template-columns: 1fr; }
@media (min-width: 900px) { .reel-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.versions { border: var(--ds-border-width) solid var(--ds-rule); border-radius: var(--ds-radius-md); padding: var(--ds-space-3) var(--ds-space-4); background: var(--ds-surface); }
.versions summary { cursor: pointer; color: var(--ds-ink); font-weight: 600; }
.versions ul { list-style: none; margin: var(--ds-space-3) 0 0; padding: 0; display: grid; gap: var(--ds-space-3); }
.versions li { display: grid; gap: var(--ds-space-2); padding-block-start: var(--ds-space-3); border-block-start: var(--ds-border-width) solid var(--ds-rule); }
.versions li[data-current="true"] strong { color: var(--ds-accent-ink, var(--ds-ink)); }
.versions__btns { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-4); align-items: center; }
.thread { border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-lg); padding: var(--ds-space-4); background: var(--ds-surface); display: grid; gap: var(--ds-space-3); min-width: 0; }
.thread__title { margin: 0; font-family: var(--ds-font-display); font-size: 20px; color: var(--ds-ink); }
.thread p { margin: 0; }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-4); }
.chat:empty { display: none; }
.chat li { display: grid; gap: var(--ds-space-2); }
.bubble { max-width: 88%; padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-lg); line-height: 1.5; overflow-wrap: anywhere; display: grid; gap: var(--ds-space-2); }
.bubble--you { justify-self: end; background: var(--ds-accent-tint); color: var(--ds-ink); border-end-end-radius: 4px; white-space: pre-wrap; }
.bubble--us { justify-self: start; background: var(--ds-surface-2); color: var(--ds-ink-2); border-end-start-radius: 4px; }
.bubble--us strong { color: var(--ds-ink); }
.bubble--us[data-status="declined"], .bubble--us[data-status="failed"] { border: 1px solid color-mix(in srgb, var(--ds-warning, #d97706) 45%, transparent); }
.bubble--us .working { font-weight: 500; }
.bubble .muted.small:empty { display: none; }
.composer { display: grid; gap: var(--ds-space-2); }
.composer__box { height: auto; padding-block: var(--ds-space-2); }
.composer__box textarea { resize: vertical; min-height: 5.5em; width: 100%; font: inherit; line-height: 1.5; }
.composer__row { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); align-items: center; justify-content: space-between; }
.composer__row .count { font-size: var(--ds-text-sm); color: var(--ds-ink-muted); }
.composer__buy { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); }
.bubble .linkish { justify-self: start; }

/* ---- Phase 6 guided builder (/order/ while builder_draft; assets/builder.js) */
.bld-sec { border-block-start: var(--ds-border-width) solid var(--ds-rule); padding-block: var(--ds-space-6); display: grid; gap: var(--ds-space-4); min-width: 0; }
.bld-sec > h3 { margin: 0; font-size: 20px; }
.bld-field { display: grid; gap: var(--ds-space-2); min-width: 0; }
.bld-field .ds-text-input { --_w: 100%; --_h: 44px; }
.bld-field[data-invalid] .ds-text-input, .bld-field[data-invalid] .bld-select { border-color: var(--ds-danger, #e5484d); }
.bld-label { color: var(--ds-ink); font-weight: 600; font-size: 15px; }
.bld-opt { color: var(--ds-ink-muted); font-weight: 400; }
.bld-hint { margin: 0; color: var(--ds-ink-muted); font-size: var(--ds-text-sm); line-height: 1.5; max-width: 60ch; }
.bld-under { display: flex; justify-content: space-between; gap: var(--ds-space-3); min-height: 0; }
.bld-err { margin: 0; color: var(--ds-danger-ink); font-size: var(--ds-text-sm); }
.bld-err:empty { display: none; }
.bld-count { margin-inline-start: auto; font: 400 12px/1.4 var(--ds-font-mono); color: var(--ds-ink-faint); }
.bld-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bld-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ds-border); background: var(--ds-surface); color: var(--ds-ink-2); font: 500 14px/1 var(--ds-font-sans); cursor: pointer; }
.bld-chip:hover { border-color: var(--ds-border-strong); }
.bld-chip[aria-pressed="true"] { background: var(--ds-accent-tint); border-color: var(--ds-accent); color: var(--ds-ink); }
.bld-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-3); counter-reset: f; }
.bld-fact { counter-increment: f; }
.bld-fact__row { display: flex; align-items: center; gap: 8px; }
.bld-fact__row::before { content: counter(f); flex: none; width: 22px; font: 500 12px/1 var(--ds-font-mono); color: var(--ds-ink-faint); text-align: right; }
.bld-fact__row .ds-text-input { flex: 1 1 auto; }
.bld-x { flex: none; width: 44px; height: 44px; border-radius: var(--ds-radius-sm, 6px); border: 1px solid var(--ds-border); background: var(--ds-surface); color: var(--ds-ink-muted); cursor: pointer; }
.bld-x:hover { color: var(--ds-ink); border-color: var(--ds-border-strong); }
.bld-look { display: grid; gap: var(--ds-space-6); min-width: 0; }
@media (min-width: 900px) { .bld-look { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .bld-look__pv { position: sticky; top: 80px; } }
.bld-look__form { display: grid; gap: var(--ds-space-5); min-width: 0; }
.bld-look__pv { display: grid; gap: var(--ds-space-2); min-width: 0; }
.bld-logo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-4); }
.bld-logo__img { width: 96px; height: 96px; object-fit: contain; border-radius: var(--ds-radius-md); border: 1px solid var(--ds-border); background: repeating-conic-gradient(#2a2a34 0% 25%, #22222b 0% 50%) 50% / 16px 16px; padding: 8px; box-sizing: border-box; }
.bld-logo__btns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-4); }
.bld-check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; color: var(--ds-ink-2); }
.bld-check input { width: 20px; height: 20px; accent-color: var(--ds-accent); }
.bld-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-3); }
.bld-color { display: grid; gap: 6px; justify-items: start; cursor: pointer; min-width: 0; }
.bld-color__name { display: block; font-size: var(--ds-text-sm); color: var(--ds-ink-2); }
.bld-hex { font-size: 12px; color: var(--ds-ink-muted); }
.bld-swatch { width: 100%; height: 44px; padding: 2px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-sm, 6px); background: var(--ds-surface); cursor: pointer; box-sizing: border-box; }
.bld-fonts { display: grid; gap: var(--ds-space-4); }
@media (min-width: 560px) { .bld-fonts { grid-template-columns: 1fr 1fr; } }
.bld-select { width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--ds-radius-sm, 6px); border: 1px solid var(--ds-border); background: var(--ds-surface); color: var(--ds-ink); font: 400 15px/1 var(--ds-font-sans); }
.bld-pv { --pv-bg: #fff; --pv-ink: #111; --pv-accent: #ff5a1f; aspect-ratio: 9 / 12; max-width: 340px; width: 100%; box-sizing: border-box; border-radius: var(--ds-radius-md); background: var(--pv-bg); color: var(--pv-ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; justify-content: center; border: 1px solid var(--ds-border); overflow: hidden; }
.bld-pv__logo { max-height: 48px; max-width: 60%; object-fit: contain; align-self: flex-start; }
.bld-pv__name { font: 700 28px/1.05 var(--pv-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bld-pv__line { font: 400 15px/1.4 var(--pv-body); opacity: .85; overflow-wrap: anywhere; }
.bld-pv__fact { font: 700 18px/1.25 var(--pv-display); border-inline-start: 4px solid var(--pv-accent); padding-inline-start: 10px; overflow-wrap: anywhere; }
.bld-pv__btn { align-self: flex-start; margin-block-start: 8px; background: var(--pv-accent); color: var(--pv-bg); font: 700 14px/1 var(--pv-body); padding: 10px 14px; border-radius: 999px; max-width: 100%; overflow-wrap: anywhere; }
.bld-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-4); }
@media (min-width: 720px) { .bld-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bld-shots:empty { display: none; }
.bld-shot { display: grid; gap: 8px; min-width: 0; }
.bld-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ds-radius-sm, 6px); border: 1px solid var(--ds-border); background: var(--ds-surface); }
.bld-shot .ds-text-input { --_w: 100%; }
.bld-shot .linkish { justify-self: start; font-size: var(--ds-text-sm); }
.bld-drop { display: block; border: 2px dashed var(--ds-border-strong); border-radius: var(--ds-radius-md); padding: var(--ds-space-6) var(--ds-space-4); text-align: center; color: var(--ds-ink-muted); cursor: pointer; line-height: 1.5; }
.bld-drop strong { color: var(--ds-ink); }
.bld-drop:hover, .bld-drop[data-over], .bld-drop:focus-visible { border-color: var(--ds-accent); background: var(--ds-accent-tint); outline: none; }
.bld-save { min-width: 0; }
/* /app/: the second path */
.scratch { margin-block-start: var(--ds-space-6); border: var(--ds-border-width) solid var(--ds-rule-strong); border-radius: var(--ds-radius-md); padding: var(--ds-space-5); background: var(--ds-surface); display: grid; gap: var(--ds-space-3); max-width: 560px; }
.scratch h3 { margin: 0; font-size: 18px; }
.scratch p { margin: 0; }
.scratch[data-focus] { border-color: var(--ds-accent); }
.hero-alt { margin: var(--ds-space-4) 0 0; font-size: var(--ds-text-sm); color: var(--ds-ink-muted); }
@media (max-width: 480px) { .stepper:has(li:nth-child(8)) li[data-state="current"] { flex-grow: 3; } }
