/* Funnel and app screens. Same black and white system as the landing. */
.app-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(11, 11, 10, 0.95); border-bottom: 1px solid var(--line); }
.app-nav .nav-in { min-height: 60px; }
.app-tabs { display: flex; gap: 4px; }
.app-tabs a { text-decoration: none; padding: 20px 12px 18px; font-weight: 650; font-size: 15px; color: var(--ink-3); box-shadow: inset 0 -2px 0 transparent; transition: color 0.2s, box-shadow 0.2s; }
.app-tabs a:hover { color: var(--ink); }
.app-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
@media (max-width: 640px) {
  .app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around; background: rgba(11, 11, 10, 0.97); border-top: 1px solid var(--line); padding: 0 8px env(safe-area-inset-bottom, 0px); }
  .app-tabs a { flex: 1; text-align: center; font-size: 13.5px; padding: 14px 4px 13px; box-shadow: inset 0 2px 0 transparent; }
  .app-tabs a[aria-current="page"] { box-shadow: inset 0 2px 0 var(--ink); }
  .app-body { padding-bottom: 90px; }
}
.who-menu { position: relative; }
.who-menu > button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; height: 38px; padding: 0 12px; font-size: 14px; font-weight: 600; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-pop { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; min-width: 230px; display: grid; z-index: 50; }
.who-pop a, .who-pop button { text-align: left; padding: 10px 12px; border-radius: 9px; text-decoration: none; border: 0; background: none; font-size: 15px; font-weight: 550; cursor: pointer; color: var(--ink); }
.who-pop a:hover, .who-pop button:hover { background: var(--card-2); }
.who-pop .faint { padding: 8px 12px 6px; font-size: 13px; }

.page { padding-block: clamp(26px, 4vw, 48px) 80px; }
.page-head { display: grid; gap: 12px; margin-bottom: 28px; }
.page-head .row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.page .h-l { font-size: clamp(30px, 4vw, 52px); }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stat-row b { color: var(--ink); font-weight: 750; font-size: 15px; }
.read-text { font-size: 17.5px; color: var(--ink-2); max-width: 72ch; text-wrap: pretty; padding-left: 14px; border-left: 2px solid var(--line-2); }
.stack { display: grid; gap: 16px; }
.banner { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 15px; margin-bottom: 22px; }
.banner .faint { color: var(--ink-2); }
.banner.warn { background: var(--ink); color: var(--hi-ink); border-color: var(--ink); }
.banner.warn .btn { --bg: var(--hi-ink); --fg: var(--ink); box-shadow: none; }
.empty { border: 1.5px dashed var(--line-2); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }

/* ---------- live read (progress) ---------- */
.live-read { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .live-read { grid-template-columns: minmax(0, 1fr); } }
.live-panel { padding: 20px; display: grid; gap: 14px; }
.live-panel canvas { width: 100%; height: clamp(220px, 28vw, 300px); }
.live-bar { height: 6px; border-radius: 3px; background: var(--card-3); overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 0.8s var(--ease-out); }
.live-msg { font-size: 14px; font-weight: 550; color: var(--ink); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.live-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; font-size: 16px; color: var(--ink-3); transition: background-color 0.3s, color 0.3s; }
.steps-list li .ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.steps-list li.done { color: var(--ink-2); }
.steps-list li.done .ic { background: var(--ink); border-color: var(--ink); color: var(--hi-ink); }
.steps-list li.now { background: var(--card); color: var(--ink); font-weight: 650; border: 1px solid var(--line); }
.steps-list li.now .ic { border-color: var(--ink); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps-list li .mono { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.mail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; }
.mail-card form { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-card .input { flex: 1 1 220px; min-height: 48px; }
.mail-card .btn { min-height: 48px; }
.ok-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ok-line svg { color: var(--ink); margin-top: 3px; flex: 0 0 auto; }

/* ---------- start ---------- */
.start { min-height: calc(100vh - 140px); display: grid; align-content: center; gap: 22px; padding-block: 40px 80px; }
.start .ask { max-width: 680px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--ink-2); }
.sugg button { border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.sugg button:hover { text-decoration-color: var(--ink); }
#ts { min-height: 0; }

/* ---------- result + paywall ---------- */
.res { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1060px) { .res { grid-template-columns: minmax(0, 1fr); } }
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
@media (max-width: 1060px) { .side { position: static; } }
.offer { padding: 22px; display: grid; gap: 14px; }
.offer .h-s { font-size: 21px; }
.offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.offer li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.offer li svg { color: var(--ink); margin-top: 3px; }
.offer .faint { color: var(--ink-2); font-size: 13.5px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(11, 11, 10, 0.97); border-top: 1px solid var(--line); display: none; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform 0.45s var(--ease-out); }
.dock.on { transform: none; }
.dock p { font-size: 14px; line-height: 1.3; } .dock p b { display: block; font-size: 15.5px; }
@media (max-width: 1060px) { .dock { display: flex; } .res-pad { padding-bottom: 96px; } }

/* winners table */
.wtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.wtable th { text-align: left; font-weight: 750; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wtable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wtable tr:last-child td { border-bottom: 0; }
.wtable .frame { width: 44px; border-radius: 6px; }
.wtable .t { max-width: 360px; font-weight: 600; }
.wtable .mono { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wtable a { text-decoration: none; color: inherit; }
.wtable a:hover .t { text-decoration: underline; }

/* niche cards in the app */
.ncards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ncard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; text-decoration: none; color: var(--ink); transition: transform 0.25s var(--ease), border-color 0.25s; min-width: 0; }
.ncard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ncard .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ncard ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.ncard .run { display: grid; gap: 8px; }
.ncard .run .mono { font-size: 12.5px; color: var(--ink-2); }
.add-card { border: 1.5px dashed var(--line-2); border-radius: var(--r-l); padding: 18px; display: grid; gap: 10px; align-content: start; }
.add-card form { display: grid; gap: 8px; }
.meter { display: grid; gap: 6px; }
.meter .bar { height: 8px; border-radius: 4px; background: var(--card-3); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.meter .lbl { display: flex; justify-content: space-between; font-size: 14.5px; }
.meter .lbl .mono { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 16px; min-width: 0; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

/* script */
.script { display: grid; gap: 18px; }
.hook-big { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.sbeats { display: grid; gap: 10px; }
.sbeat { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.sbeat .t { font-size: 13px; font-weight: 750; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.sbeat .say { font-size: 19px; font-weight: 650; line-height: 1.4; }
.sbeat .meta { display: grid; gap: 4px; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.sbeat .meta b { color: var(--ink); font-weight: 650; }
.caption-box { background: var(--card-2); border-radius: var(--r-m); padding: 14px 16px; font-size: 15.5px; white-space: pre-wrap; }

/* teleprompter */
.tp { position: fixed; inset: 0; z-index: 95; background: #000; color: #fff; display: grid; grid-template-rows: 1fr auto; }
.tp-view { overflow: hidden; position: relative; }
.tp-text { position: absolute; left: 0; right: 0; top: 0; padding: 45vh max(24px, 8vw) 60vh; font-family: var(--body); font-weight: 650; line-height: 1.35; font-size: var(--tps, 44px); will-change: transform; }
.tp-text p { margin: 0 0 1.1em; }
.tp-text .tt-t { display: block; font-size: 0.32em; color: #9c9b95; letter-spacing: 0.1em; margin-bottom: 0.3em; font-weight: 750; }
.tp.mirror .tp-text { transform: scaleX(-1); }
.tp-guide { position: absolute; left: 0; right: 0; top: 42vh; height: 2px; background: rgba(255, 255, 255, 0.5); pointer-events: none; }
.tp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #111; border-top: 1px solid #222; }
.tp-bar button { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #333; background: #1b1b1b; color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; }
.tp-bar button.go { background: #f4f3ee; border-color: transparent; color: #0b0b0a; font-weight: 800; min-width: 96px; }
.tp-bar label { display: flex; align-items: center; gap: 8px; color: #aaa; font-size: 13px; font-weight: 600; }
.tp-bar input[type=range] { accent-color: #f4f3ee; }
.tp-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 30vmin; color: #fff; pointer-events: none; }

/* login / welcome */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px var(--gutter) 80px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 18px; }
.auth-card .h-l { font-size: clamp(30px, 6vw, 44px); }
.code-input { font-size: 30px; font-weight: 750; letter-spacing: 0.4em; text-align: center; min-height: 64px; font-variant-numeric: tabular-nums; }
.err { color: var(--bad); font-size: 14.5px; font-weight: 600; }
.welcome-burst { width: 100%; height: 220px; }

/* Stripe's form sits on its own light card inside the dark sheet */
#pw-checkout iframe { border-radius: 14px; }

/* ---------- AI videos ---------- */
.fc-foot .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vids { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.vid { display: grid; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.vid-poster { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.vid-poster img { width: 100%; height: 100%; object-fit: cover; }
.vid-poster .vid-run { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 18px; text-align: center; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.vid-poster .vid-run .live-bar { width: 120px; justify-self: center; }
.vid-poster .vid-d { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 750; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.vid b { font-size: 15px; font-weight: 750; line-height: 1.3; }
.vid span { font-size: 13px; color: var(--ink-2); }
.vid:hover .vid-poster { border-color: var(--line-2); }
.player-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .player-wrap { grid-template-columns: 1fr; } }
.player { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.player video, .player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .vid-run { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 26px; text-align: center; }
.tip { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); padding: 14px 16px; border-radius: var(--r-m); background: var(--card-2); }
.tip b { color: var(--ink); }
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shots li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font-size: 14.5px; }
.shots li span { font-weight: 750; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.shots li q { font-weight: 650; color: var(--ink); quotes: "\201C" "\201D"; }

/* brand kit and photo picking */
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
@media (max-width: 520px) { .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ph-add { font-size: 12px; } }
.ph { position: relative; display: grid; gap: 6px; min-width: 0; }
.ph-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); border: 2px solid transparent; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph select { width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; padding: 0 8px; }
.ph-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ph-add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line-2); display: grid; place-content: center; gap: 6px; text-align: center; cursor: pointer; color: var(--ink-2); font-size: 13.5px; font-weight: 650; padding: 10px; background: transparent; }
.ph-add:hover { border-color: var(--ink-2); color: var(--ink); }
.ph-add b { font-size: 26px; line-height: 1; color: var(--ink); font-weight: 500; }
.ph.pickable { cursor: pointer; }
.ph.pickable .ph-img::after { content: ""; position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.35); }
.ph.picked .ph-img { border-color: var(--ink); }
.ph.picked .ph-img::after { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' stroke='%230b0b0a' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }
.ph .n { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--hi-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.ph-cap { font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-row { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.logo-box { width: 88px; height: 88px; border-radius: 16px; background: var(--card-2); border: 1.5px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--ink-3); font-size: 12.5px; font-weight: 650; text-align: center; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-row input[type=color] { width: 52px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); padding: 4px; cursor: pointer; }
.voices { display: grid; gap: 6px; }
.voice { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; }
.voice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.voice span { color: var(--ink-2); font-size: 13.5px; }
.voice:has(input:checked) { border-color: var(--ink); }
.make { padding: clamp(20px, 3vw, 30px); display: grid; gap: 20px; }
.make-head { display: grid; gap: 8px; padding-right: 40px; }
.make-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
