/* Motion Copilot's own additions to css/prod.css (2026-11-03): the hero's illustrative After Effects panel (.ae), the
   plain value in the commands board, and the big app icon on the buy page. Everything is sized in em from the stage's
   width, so the panel scales as one piece from a phone to a wide screen. */

/* ---------------------------------------------------------------- the hero panel */
.ph__stage--ae { container-type: inline-size; }
.ae { position: absolute; left: 3%; right: 3%; top: 50%; transform: translateY(-50%); overflow: hidden;
  font-size: clamp(7px, 2.3cqw, 13px); line-height: 1.35; color: var(--body);
  border-radius: 1.2em; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--layer-1) 90%, transparent);
  box-shadow: 0 2.4em 6em -2em rgba(0, 0, 0, .6), inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

.ae__bar { display: flex; align-items: center; gap: .8em; height: 2.6em; padding: 0 1em; border-bottom: 1px solid var(--sep); }
.ae__dots { display: inline-flex; gap: .4em; }
.ae__dots i { width: .66em; height: .66em; border-radius: 50%; background: var(--border); }
.ae__comp { color: var(--label); font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae__comp::before { content: 'Comp · '; color: var(--helper); }
.ae__tag { margin-left: auto; flex: none; padding: .2em .7em; border-radius: 999px; border: 1px solid var(--acc-line); background: var(--acc-badge); color: var(--acc-ink); font-size: .85em; white-space: nowrap; }

.ae__ask { display: flex; gap: .6em; margin: .8em .9em 0; padding: .6em .8em; min-height: calc(2.7em + 1.2em + 2px); border-radius: .7em;
  border: 1px solid var(--acc-line); background: color-mix(in srgb, var(--bg) 65%, transparent); color: var(--ink); font-size: 1em; line-height: 1.35; }
.ae__you { flex: none; color: var(--acc-ink); font-family: var(--mono); font-weight: 600; }
.ae__text::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--acc-ink); animation: ae-blink 1s steps(1) infinite; }
.ae:not(.is-typing) .ae__text::after { opacity: 0; animation: none; }
@keyframes ae-blink { 50% { opacity: 0; } }

/* the composition viewer (its own navy background, like the comp's background layer) */
.ae__view { position: relative; container-type: inline-size; margin: .8em .9em 0; aspect-ratio: 16 / 7; overflow: hidden; border-radius: .6em;
  border: 1px solid var(--sep); background: radial-gradient(90% 130% at 50% 0, #2747C4 0, #13226B 52%, #080F33 100%); color: #fff; }
.ae__view::after { content: ''; position: absolute; inset: 7% 5%; border: 1px dashed rgba(255, 255, 255, .1); border-radius: 2px; pointer-events: none; }
.ae__view.is-flash { box-shadow: inset 0 0 0 2px #8DB6FF; }
.aev { position: absolute; inset: 0; display: grid; place-items: center; }
.aev .is-off { opacity: 0 !important; }

/* a title */
.aev__glow { position: absolute; left: 50%; top: 50%; width: 70cqw; height: 40cqw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(141, 182, 255, .45), transparent); }
.aev__words { position: relative; display: flex; gap: .26em; font-size: 10.5cqw; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.aev__words span { display: inline-block; }
.aev__words span:last-child { color: #A9C6FF; }
.aev__line { position: absolute; left: 50%; top: calc(50% + 8cqw); width: 30cqw; height: 1.1cqw; margin-left: -15cqw; border-radius: 1cqw; background: #8DB6FF; transform-origin: left; }

/* a Figma card */
.aev__card { position: relative; display: grid; gap: 1.6cqw; width: 46cqw; padding: 3.4cqw; border-radius: 2.4cqw; background: #F4F7FF; box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .5); }
.aev__card b { display: block; height: 2.8cqw; width: 72%; border-radius: .8cqw; background: #0E1A4F; }
.aev__card i { display: block; height: 1.5cqw; border-radius: .8cqw; background: #A6B2D6; }
.aev__card i + i { width: 62%; }
.aev__card span { display: block; justify-self: start; width: 15cqw; height: 4.6cqw; margin-top: 1cqw; border-radius: 99px; background: #2B48D2; }

/* an icon */
.aev svg { width: 28cqw; height: 28cqw; overflow: visible; }
.aev__ring { fill: rgba(141, 182, 255, .14); stroke: #8DB6FF; stroke-width: 5; transform-origin: 50px 50px; }
.aev__chk { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }

/* a storyboard */
.aev--plan { display: flex; justify-content: center; align-items: center; gap: 2.4cqw; padding-inline: 4cqw; }
.aev--plan figure { margin: 0; display: grid; gap: 1.4cqw; justify-items: center; width: 19cqw; }
.aev--plan figure > span { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border-radius: 1cqw; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.aev--plan figure.is-on > span { border-color: #A9C6FF; background: rgba(141, 182, 255, .22); box-shadow: 0 0 0 .5cqw rgba(141, 182, 255, .25); }
.aev--plan figcaption { font-size: 2.5cqw; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.aev--plan figure > span.sk { display: flex; }
.sk { display: flex; align-items: center; justify-content: center; gap: 1cqw; flex-direction: column; }
.sk--row { flex-direction: row; }
.sk i { display: block; border-radius: .6cqw; background: rgba(255, 255, 255, .7); }
.sk .c { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }
.sk .l { width: 10cqw; height: 1.2cqw; }
.sk .s { width: 7cqw; height: .9cqw; opacity: .6; }
.sk .q { width: 3.4cqw; height: 3.4cqw; }

/* the timeline */
.ae__tl { position: relative; margin: .8em .9em 0; padding-top: .2em; border-top: 1px solid var(--sep); }
.ae__ruler, .ae__row { display: grid; grid-template-columns: 1.6em 7.6em minmax(0, 1fr); align-items: center; column-gap: .5em; }
.ae__ruler { height: 1.9em; color: var(--helper); }
.ae__ruler > span { font-size: .85em; white-space: nowrap; }
.ae__ticks { display: flex; justify-content: space-between; font-family: var(--mono); }
.ae__rows { height: calc(5 * 1.85em); }
.ae__row { height: 1.85em; opacity: 0; transform: translateX(-.6em); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ae__row.is-in { opacity: 1; transform: none; }
.ae__row > span:first-child { color: var(--helper); font-family: var(--mono); font-size: .85em; }
.ae__lname { display: flex; align-items: center; gap: .5em; min-width: 0; color: var(--label); font-size: .92em; }
.ae__lname i { flex: none; width: .72em; height: .72em; border-radius: 2px; background: var(--c); }
.ae__lname em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae__track { position: relative; height: 1.15em; }
.ae__track b { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: .3em; transform-origin: left; transform: scaleX(0);
  background: color-mix(in srgb, var(--c) 32%, transparent); border: 1px solid color-mix(in srgb, var(--c) 72%, transparent); transition: transform .45s var(--ease); }
.ae__row.is-in .ae__track b { transform: none; }
.ae__track s { position: absolute; top: 50%; left: var(--x); width: .6em; height: .6em; margin: -.3em 0 0 -.3em; background: var(--label);
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); transition-delay: calc(.25s + var(--k, 0) * 70ms); }
.ae__row.is-in .ae__track s { transform: rotate(45deg) scale(1); }
.ae__ctiw { position: absolute; top: 0; bottom: 0; left: 10.2em; right: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.ae.is-play .ae__ctiw { opacity: 1; }
.ae__cti { position: absolute; left: 0; top: .35em; bottom: 0; width: 1px; background: var(--acc); }
.ae__cti::before { content: ''; position: absolute; left: -.4em; top: 0; width: .8em; height: .8em; border-radius: .15em .15em 50% 50%; background: var(--acc); }

/* the status line */
.ae__status { display: flex; align-items: center; gap: .7em; margin: .7em .9em .8em; padding-top: .7em; min-height: 2.2em; border-top: 1px solid var(--sep); }
.ae__msg { min-width: 0; color: var(--label); font-size: .92em; }
.ae__msg b { color: var(--acc-ink); font-weight: 600; }
.ae__msg .ae__ok { display: inline-flex; align-items: center; gap: .3em; margin-left: .4em; padding: .1em .6em; border-radius: 999px; border: 1px solid var(--acc-line); background: var(--acc-badge); color: var(--acc-ink); font-size: .95em; }
.ae__msg .ae__ok.is-done { background: var(--acc); border-color: var(--acc); color: #fff; }
.ae__frames { display: inline-flex; flex: none; gap: .3em; }
.ae__frames i { width: 1.7em; height: 1.05em; border-radius: .2em; border: 1px solid var(--sep); background: var(--layer-2); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.ae__frames i.is-ok { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 45%, transparent); }
.ae.is-plan .ae__frames { display: none; }
.ae__ill { margin-left: auto; flex: none; color: var(--helper); font-size: .82em; }

.reduce-motion .ae *, .reduce-motion .ae *::before, .reduce-motion .ae *::after { transition: none !important; animation: none !important; }

@media (max-width: 959px) {
  .ph__stage.ph__stage--ae { width: min(94vw, 520px); }
  .ae { left: 0; right: 0; }
}

/* ---------------------------------------------------------------- the commands board */
.keys .keys__plain { color: var(--body); font-size: 14px; }
.pg-card code, .pg-facts code, .fx__panel code { color: var(--acc-ink); }

/* ---------------------------------------------------------------- the buy page */
.buy__icon { position: absolute; inset: 0; display: grid; place-items: center; }
.buy__icon .appicon { --ai: clamp(120px, 38cqw, 180px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px -24px rgba(43, 72, 210, .8); }
.buy__stage--mc { container-type: inline-size; }
.buy__stage--mc .ph__halo { inset: 14%; }
.buy__safe { text-wrap: balance; }
