/* Reelquill AI — "Try it in your browser" (try.html): a real recording fixed in four clicks, the way the app does it.
   Loaded after styles.css and uses its tokens, buttons, nav, CTA and footer. js/try.js plays the recording with its
   cuts, the re-voiced line, the zoom, the look and the captions, and keeps the coach, the four steps and the
   timeline in step. Plain CSS, no build step; the site's CSP allows no inline styles (js/try.js sets CSS variables). */

.try-page .section { padding-block: clamp(52px, 6.5vw, 96px); }
.try-page .cta { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 560px) { .try-page .nav-back { display: none; } .try-page .nav-cta-why { margin-left: auto; } }
@media (max-width: 420px) { .try-page .nav-why { display: none; } }

/* ---------- hero ---------- */
.try-hero { position: relative; padding: clamp(104px, 13vh, 140px) 0 clamp(20px, 3vw, 34px); text-align: center; isolation: isolate; }
.try-hero::before { content: ""; position: absolute; inset: 0 0 -40% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(91, 140, 255, .2), transparent 70%), radial-gradient(40% 50% at 80% 10%, rgba(255, 95, 162, .12), transparent 70%); }
.try-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; max-width: 100%;
  background: rgba(10, 14, 30, .55); border: 1px solid var(--line-2); color: var(--text); font-size: .9rem; font-weight: 500; animation: fadeUp .9s .05s var(--ease) both; }
.try-title { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.042em; font-weight: 750; text-wrap: balance; animation: fadeUp 1s .15s var(--ease) both; }
.try-grad { background-image: linear-gradient(100deg, #5ff0d6, #8fb3ff 38%, #b79cff 68%, #ff8cc0); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
.try-sub { max-width: 720px; margin: 18px auto 0; font-size: clamp(1.02rem, 1.45vw, 1.17rem); line-height: 1.62; color: #c3cbe2; animation: fadeUp 1s .3s var(--ease) both; }

/* ---------- the studio ---------- */
.try-studio-wrap { padding-bottom: clamp(30px, 5vw, 60px); }
.studio { position: relative; padding: 14px; border-radius: 26px; background: linear-gradient(180deg, rgba(18, 24, 46, .95), rgba(9, 13, 26, .97));
  border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02) inset; animation: fadeUp 1.1s .35s var(--ease) both; }
.studio::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 27px; opacity: .5; filter: blur(22px); pointer-events: none;
  background: linear-gradient(120deg, rgba(46, 230, 197, .35), rgba(91, 140, 255, .3), rgba(255, 95, 162, .3)); }

/* the four steps */
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.st-track { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-track button { display: inline-flex; align-items: center; gap: 8px; height: 36px; white-space: nowrap; padding: 0 13px 0 6px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--text-3); font: 600 .84rem/1 var(--body); cursor: pointer; transition: color .3s, border-color .3s, background-color .3s, box-shadow .3s; }
.st-track button:hover { color: var(--text); border-color: var(--line-2); }
.st-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text-2); font: 800 .78rem/1 var(--display); transition: background .3s, color .3s; }
.st-track li.now button { color: var(--text); border-color: rgba(246, 196, 83, .6); background: rgba(246, 196, 83, .08); box-shadow: 0 0 0 4px rgba(246, 196, 83, .08); }
.st-track li.now .st-n { background: #f6c453; color: #1b1406; }
.st-track li.ok button { color: #9ff5e3; border-color: rgba(46, 230, 197, .4); background: rgba(46, 230, 197, .07); }
.st-track li.ok .st-n { background: linear-gradient(135deg, #2ee6c5, #33c481); color: #04221c; font-size: 0; }
.st-track li.ok .st-n::before { content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.st-track li.ok.pop .st-n { animation: stPop .5s var(--ease) 1; }
@keyframes stPop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: none; } }
.st-head-r { display: flex; align-items: center; gap: 8px; }
.st-auto { border: 1px solid rgba(143, 176, 255, .4); background: linear-gradient(135deg, rgba(91, 140, 255, .18), rgba(139, 92, 246, .18)); color: var(--text); }
.st-auto:hover { background: linear-gradient(135deg, rgba(91, 140, 255, .3), rgba(139, 92, 246, .3)); transform: translateY(-1px); }
.st-auto .ico { width: 17px; height: 17px; }
.st-auto[disabled] { opacity: .55; cursor: default; transform: none; }
.st-reset { display: inline-flex; align-items: center; gap: 6px; height: 36px; white-space: nowrap; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: 500 .84rem/1 var(--body); cursor: pointer; }
.st-reset:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.st-reset .ico { width: 16px; height: 16px; }

/* the coach: what to do next */
.st-coach { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 16px;
  background: linear-gradient(100deg, rgba(246, 196, 83, .12), rgba(246, 196, 83, .04)); border: 1px solid rgba(246, 196, 83, .35); }
.st-coach-n { flex: none; padding: 5px 9px; border-radius: 999px; background: #f6c453; color: #1b1406; font: 800 .74rem/1 var(--display); }
.st-coach p { flex: 1; min-width: 0; color: #ffe8b5; font-size: .95rem; line-height: 1.45; }
.st-coach p b { color: #fff; }
.st-coach-go { flex: none; }
.st-coach.all { background: linear-gradient(100deg, rgba(46, 230, 197, .14), rgba(91, 140, 255, .08)); border-color: rgba(46, 230, 197, .4); }
.st-coach.all .st-coach-n { background: linear-gradient(135deg, #2ee6c5, #33c481); color: #04221c; }
.st-coach.all p { color: #c9fbef; }
.st-coach.flash { animation: stCoach .6s var(--ease) 1; }
@keyframes stCoach { 0% { transform: translateY(-4px); opacity: .4; } 100% { transform: none; opacity: 1; } }

.st-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-top: 12px; }

/* the stage: the picture, its look, the zoom, the captions */
.st-left { min-width: 0; }
.st-stage { --pad: 0; --rad: 0px; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #05070e; container-type: inline-size; isolation: isolate; }
.st-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); background: var(--look-bg, linear-gradient(135deg, #3b5bdb, #7c4dff 55%, #c85ad8)); }
.st-stage.bg::before { opacity: 1; }
.st-frame { position: absolute; inset: calc(var(--pad) * 100%); overflow: hidden; border-radius: var(--rad); background: #000;
  transition: inset .7s var(--ease), border-radius .7s var(--ease), box-shadow .7s var(--ease); }
.st-stage.bg { --pad: var(--look-pad, .06); --rad: var(--look-rad, 14px); }
.st-stage.bg .st-frame { box-shadow: var(--look-shadow, 0 24px 60px -18px rgba(0, 0, 0, .8)); }
.st-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.st-zoom.glide { transition: transform .7s var(--ease); }
.st-zoom video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* captions, as the app draws them on the whole picture (lib/captions.js, its numbers in demo.json: sizes are shares
   of the picture's height, here in cqi of the stage's width, h = w * 9/16) */
.st-cap { position: absolute; left: 6%; right: 6%; bottom: 6.9%; z-index: 3; display: flex; justify-content: center; pointer-events: none; text-align: center; }
.st-cap[hidden] { display: none; }
.st-cap .cl { display: inline; max-width: 100%; color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-cap.boxed .cl, .st-cap.highlight .cl { font: 900 3.54cqi/1.3 "Segoe UI Black", "Segoe UI", var(--body); letter-spacing: -.005em; }
.st-cap.boxed .cl { padding: .84cqi 1.2cqi; background: var(--cap-box, rgba(0, 0, 0, .749)); }
.st-cap .cw.on { color: var(--cap-hi, #ffd400); }
.st-cap.highlight .cl { -webkit-text-stroke: .34cqi #000; paint-order: stroke fill; text-shadow: .17cqi .17cqi 0 rgba(0, 0, 0, .5); }
.st-cap.classic { bottom: 5.6%; }
.st-cap.classic .cl { display: inline-block; padding: .79cqi 1.1cqi; background: rgba(0, 0, 0, .78); font: 600 2.76cqi/1.32 "Segoe UI Semibold", "Segoe UI", var(--body); }
.st-cap.classic .cw.on { color: inherit; }
.st-cap .cw { transition: color .1s; }

.st-bigplay { position: absolute; left: 50%; top: 50%; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 16px; border: 0; border-radius: 999px;
  transform: translate(-50%, -50%); background: rgba(8, 11, 22, .82); color: #fff; font: 700 1rem/1 var(--body); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 20px 50px -14px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s; }
.st-bigplay:hover { transform: translate(-50%, -50%) scale(1.04); background: rgba(14, 18, 34, .9); }
.st-bigplay .ico { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--grad); color: #07101f; box-sizing: content-box; }
.st-bigplay[hidden] { display: none; }
.st-toast { position: absolute; left: 50%; top: 14px; z-index: 6; padding: 8px 14px; border-radius: 999px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, #2ee6c5, #33c481); color: #04221c; font: 700 .86rem/1.2 var(--body); white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(46, 230, 197, .7);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
.st-badge { position: absolute; left: 12px; top: 12px; z-index: 6; padding: 5px 10px; border-radius: 8px; background: rgba(8, 11, 22, .82); color: #ffd77d; font: 700 .74rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.st-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: var(--text-3); font-size: .9rem; background: #05070e; }
.st-loading[hidden] { display: none; }

/* play bar */
.st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.st-play, .st-mute { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; }
.st-play { background: var(--grad); color: #07101f; box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .9); }
.st-play .ico { width: 18px; height: 18px; }
.st-mute { width: 36px; height: 36px; margin-left: auto; background: rgba(255, 255, 255, .05); color: var(--text-2); }
.st-mute .ico { width: 18px; height: 18px; }
.st-time { color: var(--text-3); font-size: .86rem; font-variant-numeric: tabular-nums; }
.st-time b { color: var(--text); font-weight: 600; }
.st-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.st-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: 600 .8rem/1 var(--body); cursor: pointer; transition: background-color .25s, color .25s; }
.st-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }
#modeRaw[aria-pressed="true"] { background: rgba(246, 196, 83, .16); color: #ffd77d; }
.st-dur { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text-2); font: 600 .86rem/1 var(--body); font-variant-numeric: tabular-nums; }
.st-dur b { color: #9ff5e3; font: 800 1.05rem/1 var(--display); }
.st-dur s { color: var(--text-3); font-weight: 500; }
.st-dur.drop b { animation: stDrop .6s var(--ease) 1; }
@keyframes stDrop { 0% { transform: translateY(-6px); color: #fff; } 100% { transform: none; } }

/* the timeline: pieces of the recording; cut ones shrink away */
.st-timeline { position: relative; height: 34px; margin-top: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); overflow: hidden; cursor: pointer; }
.st-tl-row { position: absolute; inset: 4px; display: flex; gap: 0; }
.st-tl-row i { --g: 1; flex: var(--g) 1 0; min-width: 0; height: 100%; background: linear-gradient(180deg, rgba(91, 140, 255, .55), rgba(91, 140, 255, .3));
  transition: flex-grow .8s var(--ease), background-color .4s, opacity .4s; }
.st-tl-row i + i { box-shadow: inset 1px 0 0 rgba(5, 7, 14, .55); }
.st-tl-row i.sp { background: rgba(255, 255, 255, .06); }
.st-tl-row i.fl { background: linear-gradient(180deg, rgba(246, 196, 83, .7), rgba(246, 196, 83, .4)); }
.st-tl-row i.ps { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 4px, rgba(255, 255, 255, .05) 4px 8px); }
.st-tl-row i.cut { --g: 0 !important; opacity: .3; background: repeating-linear-gradient(135deg, rgba(255, 95, 162, .8) 0 4px, rgba(255, 95, 162, .3) 4px 8px); }
.st-tl-row i.rw { background: linear-gradient(180deg, rgba(183, 156, 255, .9), rgba(139, 92, 246, .6)); }
.st-tl-row i.hold { background: repeating-linear-gradient(90deg, rgba(183, 156, 255, .55) 0 3px, rgba(139, 92, 246, .25) 3px 6px); }
.st-head-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: 4px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); transform: translateX(var(--x, 0px)); pointer-events: none; }

/* the look bar (step 4) */
.st-look { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.st-style { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid rgba(183, 156, 255, .5); border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(139, 92, 246, .26), rgba(255, 95, 162, .18)); color: var(--text); font: 650 .88rem/1 var(--body); transition: transform .25s var(--ease), box-shadow .25s; }
.st-style:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(139, 92, 246, .9); }
.st-style .ico { width: 16px; height: 16px; color: #ffd0ea; }
.st-look-or { color: var(--text-3); font-size: .8rem; }
.st-tog { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .03); color: var(--text-2); font: 600 .84rem/1 var(--body); transition: color .25s, border-color .25s, background-color .25s; }
.st-tog:hover { color: var(--text); }
.st-tog .ico { width: 16px; height: 16px; }
.st-tog[aria-pressed="true"] { color: #9ff5e3; border-color: rgba(46, 230, 197, .5); background: rgba(46, 230, 197, .09); }
.st-tog[aria-pressed="true"]::after { content: "On"; margin-left: 2px; padding: 3px 6px; border-radius: 6px; background: rgba(46, 230, 197, .18); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.st-tog b { padding: 2px 7px; border-radius: 999px; background: rgba(246, 196, 83, .18); color: #ffd77d; font-size: .74rem; }
.st-capstyles { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.st-capstyles[hidden] { display: none; }
.st-capstyles button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font: 600 .78rem/1 var(--body); cursor: pointer; }
.st-capstyles button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }

/* the right: Edit by text */
.st-right { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.st-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-panel-t { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 700 1rem/1 var(--display); }
.st-panel-t .ico { width: 18px; height: 18px; color: var(--teal); }
.st-panel-s { color: var(--text-3); font-size: .8rem; }
.st-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.st-tog-s { height: 32px; padding: 0 10px; font-size: .8rem; }
.st-text { flex: 1; margin-top: 12px; padding: 4px 2px; color: var(--text); font-size: 1rem; line-height: 2; overflow-wrap: anywhere; }
.st-text .sen { position: relative; border-radius: 6px; transition: background-color .3s, box-shadow .3s; }
.st-text .w { display: inline; padding: 0 .08em; margin: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; line-height: inherit; cursor: pointer;
  text-decoration: line-through transparent; text-decoration-thickness: 2px; transition: color .25s, background-color .2s, text-decoration-color .25s, opacity .25s; }
.st-text .w:hover { background: rgba(255, 255, 255, .08); }
.st-text .w:focus-visible { outline: 2px solid #8fb3ff; outline-offset: 1px; }
.st-text .w.now { background: rgba(91, 140, 255, .32); }
.st-text .w.x { color: #ff8fb8; text-decoration-color: #ff5fa2; opacity: .75; }
.st-text .w.fill { padding: 0 .3em; border: 1px solid rgba(246, 196, 83, .5); background: rgba(246, 196, 83, .1); color: #ffd77d; }
.st-text .w.fill.x { border-color: rgba(255, 95, 162, .45); background: rgba(255, 95, 162, .08); }
.st-text .gap { display: inline-block; margin: 0 .2em; padding: 0 .35em; border-radius: 6px; border: 1px dashed rgba(160, 175, 220, .45); color: var(--text-3); font-size: .82em; line-height: 1.5; vertical-align: .05em; transition: opacity .3s, transform .3s; }
.st-text .gap.x { opacity: .35; text-decoration: line-through; border-color: rgba(255, 95, 162, .45); color: #ff8fb8; }
/* the outdated step and line, pointed out by the coach */
.st-text .sen.mark { background: rgba(246, 196, 83, .14); box-shadow: 0 0 0 2px rgba(246, 196, 83, .55); animation: stMark 1.6s ease-in-out infinite; }
@keyframes stMark { 50% { box-shadow: 0 0 0 4px rgba(246, 196, 83, .25); } }
.st-text .sen .tag { display: inline-block; margin-right: .35em; padding: .1em .45em; border-radius: 6px; vertical-align: .12em; background: #f6c453; color: #1b1406; font: 700 .7rem/1.4 var(--body); letter-spacing: .02em; white-space: nowrap; }
.st-text .sen.rw { color: #d9ccff; }
.st-text .sen.rw .new { display: inline; padding: .05em .2em; border-radius: 5px; background: rgba(139, 92, 246, .22); }
.st-text .said { display: block; margin: -.15em 0 .35em; color: var(--text-3); font-size: .82rem; line-height: 1.45; }
.st-text .said button { margin-left: 6px; padding: 0; border: 0; background: none; color: #a9c1ff; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.st-text .rwbtn { display: inline-flex; align-items: center; gap: 5px; margin-left: .35em; padding: .1em .5em; border: 1px solid rgba(183, 156, 255, .55); border-radius: 7px; vertical-align: .1em;
  background: rgba(139, 92, 246, .16); color: #e2d7ff; font: 650 .74rem/1.5 var(--body); cursor: pointer; }
.st-text .rwbtn .ico { width: 13px; height: 13px; }
.st-text .rwbtn:hover { background: rgba(139, 92, 246, .3); }

.st-pick { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(183, 156, 255, .4); animation: stCoach .4s var(--ease) 1; }
.st-pick[hidden] { display: none; }
.st-pick-h { display: flex; align-items: center; gap: 7px; color: #e2d7ff; font: 700 .86rem/1.3 var(--body); }
.st-pick-h .ico { width: 16px; height: 16px; }
.st-pick-h span { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: .78rem; }
.st-pick-list { display: grid; gap: 6px; margin-top: 10px; }
.st-pick-list button { display: block; width: 100%; padding: 9px 11px; border: 1px solid rgba(183, 156, 255, .3); border-radius: 10px; background: rgba(8, 11, 22, .55);
  color: var(--text); font: 500 .9rem/1.4 var(--body); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.st-pick-list button:hover { border-color: rgba(183, 156, 255, .7); background: rgba(139, 92, 246, .18); }
.st-pick-list button[aria-pressed="true"] { border-color: #b79cff; background: rgba(139, 92, 246, .28); }
.st-pick-list small { display: block; margin-top: 2px; color: var(--text-3); font-size: .74rem; }
.st-pick-note { margin-top: 8px; color: var(--text-3); font-size: .76rem; }
.st-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; color: var(--text-3); font-size: .74rem; }
.st-legend span { padding: 0 .4em; border-radius: 5px; }
.lg-fill { border: 1px solid rgba(246, 196, 83, .5); color: #ffd77d; }
.lg-pause { border: 1px dashed rgba(160, 175, 220, .45); }
.lg-cut { color: #ff8fb8; text-decoration: line-through; text-decoration-color: #ff5fa2; }

/* the AI assistant's run: over the right column */
.st-agent { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: calc((100% - 14px) * (1 / 2.55)); padding: 14px; overflow: auto; border-radius: 16px;
  background: linear-gradient(180deg, #141b32, #0a0e1c); border: 1px solid rgba(143, 176, 255, .35); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  isolation: isolate; animation: agIn .4s var(--ease) 1; }
@keyframes agIn { 0% { transform: translateY(-4px); } 100% { transform: none; } }
.st-agent[hidden] { display: none; }
.ag-msg { display: grid; gap: 6px; padding: 11px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.ag-msg + .ag-msg { margin-top: 10px; }
.ag-you { margin-left: 12%; background: linear-gradient(135deg, rgba(91, 140, 255, .26), rgba(139, 92, 246, .22)); border: 1px solid rgba(143, 176, 255, .35); }
.ag-ai { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ag-who { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font: 600 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.ag-who .ico { width: 14px; height: 14px; color: var(--teal); }
.ag-tools { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ag-tools li { display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text-2); font-size: .8rem; animation: stCoach .35s var(--ease) 1; }
.ag-tools code { padding: 2px 6px; border-radius: 6px; background: rgba(46, 230, 197, .1); color: #8ff3dd; font: 600 .74rem/1.2 var(--mono); }
.ag-tools li > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ag-tools li::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue); border-right-color: transparent; justify-self: end; animation: agSpin .7s linear infinite; }
.ag-tools li.ok { border-color: rgba(46, 230, 197, .3); background: rgba(46, 230, 197, .05); }
.ag-tools li.ok::after { border: 0; animation: none; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%2304221c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes agSpin { to { transform: rotate(360deg); } }

.st-small { margin-top: 12px; padding: 0 4px; color: var(--text-3); font-size: .76rem; line-height: 1.5; }

/* ---------- done ---------- */
.st-done { position: relative; isolation: isolate; overflow: hidden; margin-top: 18px; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px); border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(14, 30, 36, .95), rgba(9, 13, 26, .97)); border: 1px solid rgba(46, 230, 197, .4); animation: fadeUp .8s var(--ease) both; }
.st-done[hidden] { display: none; }
.st-done:focus { outline: none; }
.dn-glow { position: absolute; inset: -40% -10% auto; z-index: -1; height: 120%; pointer-events: none; background: radial-gradient(50% 50% at 50% 30%, rgba(46, 230, 197, .22), transparent 70%); }
.dn-k { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(46, 230, 197, .12); color: #9ff5e3; font: 700 .82rem/1 var(--body); }
.dn-k .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.st-done h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.dn-arrow { color: var(--text-3); font-weight: 500; }
.dn-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; padding: 0; max-width: 820px; list-style: none; }
.dn-list li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font-size: .86rem; }
.dn-list li .ico { width: 15px; height: 15px; color: var(--teal); stroke-width: 2.4; }
.dn-app { max-width: 720px; margin: 22px auto 0; }
.dn-app[hidden] { display: none; }
.dn-app video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #05070e; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95); }
.dn-app figcaption { margin-top: 10px; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.dn-app figcaption b { color: var(--text); }
.dn-lead { max-width: 640px; margin: 18px auto 0; color: var(--text-2); font-size: 1.04rem; line-height: 1.6; }
.dn-ctas { justify-content: center; margin-top: 24px; }
.dn-note { margin-top: 14px; color: var(--text-3); font-size: .84rem; }
.dn-again { padding: 0; border: 0; background: none; color: #a9c1ff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- what each fix is ---------- */
.what-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.what-card { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.what-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #07101f; font: 800 .9rem/1 var(--display); }
.what-card h3 { margin-top: 14px; font-size: 1.08rem; }
.what-card p { margin-top: 8px; font-size: .92rem; line-height: 1.55; }
.what-more { max-width: 820px; margin: 26px auto 0; color: var(--text-2); font-size: .98rem; line-height: 1.65; text-align: center; }
.what-more a { color: #a9c1ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .st-body { grid-template-columns: minmax(0, 1fr); }
  .st-agent { position: relative; width: auto; margin-top: 0; }
  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .studio { padding: 10px; border-radius: 20px; }
  .st-track { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .st-track::-webkit-scrollbar { display: none; }
  .st-track button { padding-right: 10px; }
  .st-head-r { width: 100%; justify-content: space-between; }
  .st-coach { flex-wrap: wrap; }
  .st-coach-go { width: 100%; justify-content: center; }
  .st-bigplay { padding: 10px 16px 10px 12px; font-size: .9rem; }
  .st-mute { margin-left: 0; }
  .what-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- reduced motion: no glides ---------- */
@media (prefers-reduced-motion: reduce) {
  .st-frame, .st-stage::before, .st-tl-row i, .st-toast { transition: none !important; }
  .st-text .sen.mark { animation: none; }
}
@media (forced-colors: active) {
  .try-grad { -webkit-text-fill-color: currentColor; background: none; }
  .st-text .w.x { text-decoration-color: CanvasText; }
  .st-track li.now button, .st-coach { border-color: Highlight; }
}
