/* Product film: app replica uses the app's own dark tokens. */
.af { --af-bg: #1c1c1c; --af-side: #161616; --af-line: #303030; --af-field: #2a2a2a; --af-text: #ececec; --af-muted: #9b9b9b; --af-dim: #6b6b6b; --af-bubble: #2c2c2c; --af-ok: #4cc38a; --af-acc: #ff6b2b;
  --af-w: 1280; --af-h: 760; container: af / inline-size;
  width: min(100%, 1240px); margin: clamp(8px, 2vw, 24px) auto clamp(56px, 7vw, 104px); }
.af-frame { position: relative; aspect-ratio: var(--af-w) / var(--af-h); overflow: hidden; border-radius: 18px; background:
  radial-gradient(120% 90% at 70% 0%, rgba(255,107,43,.10), transparent 55%),
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 1.4px) 0 0 / 22px 22px, #0e0e0d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.af-stage { position: absolute; left: 0; top: 0; width: calc(var(--af-w) * 1px); height: calc(var(--af-h) * 1px); transform: scale(var(--af-k, 1)); transform-origin: 0 0; }
.af-world { position: absolute; inset: 0; will-change: transform; }
.af-win { position: absolute; left: 70px; top: 54px; width: 1140px; height: 652px; display: grid; grid-template-columns: 236px 1fr; overflow: hidden; border-radius: 14px; background: var(--af-bg); color: var(--af-text);
  font: 400 15px/1.45 Geist, Inter, system-ui, sans-serif; letter-spacing: -.005em; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 9px rgba(255,255,255,.025); }
.af-side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: var(--af-side); border-right: 1px solid var(--af-line); }
.af-brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 18px; font-weight: 600; font-size: 15px; }
.af-brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--af-text); }
.af-nav { padding: 8px 10px; border-radius: 8px; color: var(--af-text); font-size: 14px; white-space: nowrap; transition: background .3s; }
.af-nav--new { margin-bottom: 6px; background: var(--af-field); }
.af--call-on [data-nav="call"], .af--academy-on [data-nav="academy"], .af--new-on [data-nav="new"] { background: #2e2e2e; box-shadow: inset 2px 0 0 var(--af-acc); }
.af-dim { color: var(--af-muted); }
.af-sep { padding: 18px 10px 6px; color: var(--af-dim); font-size: 12px; }
.af-main { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.af-top { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--af-line); font-size: 14px; color: var(--af-muted); }
.af-top b { color: var(--af-text); font-weight: 500; }
.af-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--af-field); color: var(--af-dim); font-size: 12px; }
.af-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--af-dim); }
.af--live .af-live { color: var(--af-text); }
.af--live .af-live i { background: var(--af-acc); animation: af-pulse 1.2s ease-in-out infinite; }
.af-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--af-text); }
.af-feed { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 40px 30px 40px; max-width: 640px; overflow: hidden; }
.af-msg small { display: block; margin-bottom: 6px; color: var(--af-dim); font-size: 12px; }
.af-msg p { margin: 0; font-size: 19px; line-height: 1.42; }
.af-msg--rep { align-self: flex-end; max-width: 86%; padding: 14px 18px; border-radius: 18px 18px 4px 18px; background: var(--af-bubble); }
.af-msg--rep small { color: var(--af-acc); }
.af-msg--buyer p { font-size: 24px; letter-spacing: -.02em; }
.af-w { display: inline-block; }
.af-tip { position: absolute; right: 26px; top: 86px; width: 300px; padding: 16px 18px; border-radius: 14px; background: #f3f1ec; color: #161616; box-shadow: 0 24px 60px -18px rgba(0,0,0,.7); }
.af-tip__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: #5c5c58; }
.af-tip__mark { width: 8px; height: 8px; border-radius: 2px; background: var(--af-acc); }
.af-tip p { margin: 0; font-size: 16px; line-height: 1.42; }
.af-bar { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--af-line); }
.af-wave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 30px; }
.af-wave i { flex: none; width: 3px; height: 100%; border-radius: 2px; background: var(--af-muted); transform: scaleY(.08); transform-origin: 50% 50%; }
[data-talk="buyer"] .af-wave i { background: var(--af-text); }
[data-talk="rep"] .af-wave i { background: var(--af-acc); }
.af-mic, .af-end { padding: 8px 14px; border-radius: 999px; font-size: 13px; background: var(--af-field); }
.af-end { background: #3a1f1f; color: #ffb3b3; }
.af-score { position: absolute; right: 40px; bottom: 96px; width: 380px; padding: 22px 24px; border-radius: 16px; background: #222; color: var(--af-text); box-shadow: 0 0 0 1px var(--af-line), 0 30px 80px -20px rgba(0,0,0,.8); }
.af-score small { color: var(--af-muted); font-size: 12px; }
.af-score h4 { margin: 6px 0 14px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--af-text); }
.af-score ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.af-score li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.af-score li b { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--af-ok); box-shadow: inset 0 0 0 5px #222; }
.af-score__cta { display: inline-block; margin-top: 18px; padding: 9px 16px; border-radius: 999px; background: var(--af-acc); color: #0b0b0b; font-size: 14px; font-weight: 500; }
.af-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; transform-origin: 20% 10%; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.af-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 1.2; }
.af figcaption { margin-top: 14px; color: var(--sk-ground-muted, #9b9b9b); font-size: 15px; line-height: 1.4; }
/* Guide task scene. */
.af-task { display: grid; grid-template-columns: 1fr 330px; gap: 28px; padding: 30px 36px; min-height: 0; overflow: hidden; }
.af-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; }
.af-steps li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #222; box-shadow: inset 0 0 0 1px var(--af-line); color: var(--af-muted); font-size: 15px; line-height: 1.4; transition: color .3s, box-shadow .3s, background .3s; }
.af-steps li b { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--af-dim); transition: background .3s, box-shadow .3s; }
.af-steps li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.af-steps li.af-now { color: var(--af-text); background: #262626; box-shadow: inset 0 0 0 1px var(--af-acc); }
.af-steps li.af-now b { box-shadow: inset 0 0 0 1.5px var(--af-acc); }
.af-steps li.af-done { color: var(--af-text); }
.af-steps li.af-done b { background: var(--af-ok); box-shadow: inset 0 0 0 5px #222; }
.af-mini { align-self: start; padding: 18px 20px; border-radius: 14px; background: var(--af-bubble); }
.af-mini small { display: block; margin-bottom: 8px; color: var(--af-dim); font-size: 12px; }
.af-mini p { margin: 0 0 14px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.af-wave--mini { flex: none; height: 22px; }
.af-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--af-field); overflow: hidden; }
.af-progress i { display: block; height: 100%; background: var(--af-acc); transform: scaleX(0); transform-origin: 0 50%; }
.af--still .af-progress i { transform: none; }
/* Method setup scene. */
.af-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; padding: 28px 36px; align-content: start; overflow: hidden; }
.af-field { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; background: var(--af-field); }
.af-field small, .af-rules small { display: block; margin-bottom: 8px; color: var(--af-dim); font-size: 12px; }
.af-field p { margin: 0; font-size: 18px; line-height: 1.45; }
.af-profile { display: grid; gap: 12px; align-content: start; }
.af-dial { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--af-muted); }
.af-dots { display: flex; gap: 6px; }
.af-dots i { width: 22px; height: 8px; border-radius: 2px; background: var(--af-field); transition: background .25s; }
.af-dots i.on { background: var(--af-acc); }
.af-rules { display: grid; gap: 8px; align-content: start; }
.af-rules span { padding: 10px 14px; border-radius: 10px; background: #222; box-shadow: inset 0 0 0 1px var(--af-line); font-size: 14px; }
.af-hint { flex: 1; color: var(--af-muted); font-size: 13px; }
.af-start { padding: 9px 18px; border-radius: 999px; background: var(--af-acc); color: #0b0b0b; font-size: 14px; font-weight: 500; }
@keyframes af-pulse { 50% { opacity: .35; } }
/* Before GSAP loads or with reduced motion: one composed still. */
.af:not(.af--still) :is(.af-msg, .af-score, .af-tip, .af-mini, .af-field, .af-rules span) { visibility: hidden; }
.af--still .af-score { visibility: hidden; }
.af--still .af-cursor { display: none; }
@media (max-width: 767px) { .af-frame { border-radius: 12px; } .af { margin-inline: -4px; } }
/* Compact composition (tablet and phone): the app as it lays out on a narrow
   screen. No sidebar, one column, type sized to be read at the frame's real
   width; content scrolls inside the app instead of a camera push-in. The stage
   sizes here must match COMPACT in alive-film.js. */
@container af (max-width: 959px) {
  .af-frame { --af-w: 760; --af-h: 600; }
  .af-win { left: 14px; top: 14px; width: calc(var(--af-w) * 1px - 28px); height: calc(var(--af-h) * 1px - 28px); grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .af-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .af-side, .af-cursor { display: none; }
  .af-top { gap: 10px; padding: 14px 18px; font-size: 14px; }
  .af-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .af-clock { flex: none; }
  .af-live { flex: none; font-size: 13px; }
  .af-msg small, .af-mini small, .af-field small, .af-rules small, .af-score small { font-size: 13px; }
  .af-feed { max-width: none; padding: 22px 20px 120px; gap: 16px; }
  .af-msg p { font-size: 20px; }
  .af-msg--buyer p { font-size: 24px; }
  .af-tip { left: 14px; right: 14px; top: auto; bottom: 76px; width: auto; }
  .af-tip__head { font-size: 13px; }
  .af-tip p { font-size: 18px; }
  .af-bar { padding: 14px 18px; }
  .af-score { left: 14px; right: 14px; bottom: 76px; width: auto; }
  .af-score li { font-size: 17px; }
  .af-task { position: relative; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 18px 28px; align-content: start; }
  .af-mini { order: -1; }
  .af-steps li { font-size: 17px; }
  .af-steps li span { -webkit-line-clamp: 3; }
  .af-setup { position: relative; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 24px; padding: 20px 18px 28px; }
  .af-field p { font-size: 19px; }
  .af-dial { font-size: 16px; }
  .af-rules span { font-size: 16px; }
  .af-hint { font-size: 14px; }
  .af--still .af-tip { display: none; }
}
@container af (max-width: 599px) {
  .af-frame { --af-w: 400; --af-h: 720; }
  .af-dots i { width: 18px; }
}
