/* AE MCP Credits - public pages. Colours borrow After Effects' layer label colours; type is Archivo,
   wide for headings (like title-sequence lettering) and normal width for reading. */
:root {
  --ink: #17152e;
  --panel: #211e3d;
  --raised: #2a2650;
  --line: #3a3566;
  --text: #edebf8;
  --muted: #aba7cb;
  --lav: #a9a9ca;
  --aqua: #a9cbc7;
  --peach: #e7c19e;
  --sand: #a89677;
  --yellow: #e4d84c;
  --blue: #6f86ea;
  --bad: #f08a8a;
  --good: #9fd8a8;
  --radius: 10px;
  --wide: "wdth" 125;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  font-variation-settings: "wdth" 100;
}
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 650; }
.small { color: var(--muted); font-size: 0.9375rem; }
.fine { color: var(--muted); font-size: 0.8125rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- frame */
.top, main, .foot { width: min(1120px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.wordmark { color: var(--text); text-decoration: none; font-weight: 800; font-variation-settings: var(--wide); letter-spacing: 0.01em; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 72px; color: var(--muted); font-size: 0.9375rem; }
.foot p { margin: 0 0 8px; max-width: 72ch; }

/* ---------- type */
h1, h2, h3 { margin: 0; font-variation-settings: var(--wide); }
h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 0.98; font-weight: 820; letter-spacing: -0.012em; max-width: 14ch; }
h1.page { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: none; margin: 24px 0 28px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.08; font-weight: 760; margin-bottom: 18px; max-width: 24ch; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 680; font-variation-settings: "wdth" 110; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; margin: 22px 0 0; }

.button {
  display: inline-block; background: var(--yellow); color: var(--ink); text-decoration: none; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--font); font-variation-settings: "wdth" 112; padding: 15px 22px; border-radius: 8px;
}
.button:hover { background: #f0e66a; color: var(--ink); }
.quiet { background: none; border: 0; padding: 0; color: var(--aqua); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 0; }

/* ---------- hero + timeline */
.hero { padding: 40px 0 24px; }
.timeline { margin: 56px 0 0; }
.prompt { display: flex; gap: 14px; align-items: baseline; max-width: 760px; margin-bottom: 14px; }
.prompt .who { flex: none; font-weight: 700; color: var(--yellow); font-variation-settings: "wdth" 112; }
.prompt p { margin: 0; color: var(--text); }
.tl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 16px; overflow: hidden; }
.ruler { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: end; height: 30px; margin-bottom: 6px; }
.tc { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 650; font-size: 0.9375rem; }
.ticks { height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)); }
.playhead { position: absolute; top: 0; bottom: -400px; left: 150px; width: 2px; background: var(--blue); z-index: 2; animation: play 4.2s cubic-bezier(.45, 0, .2, 1) .4s both; transform-origin: top; }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 10px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes play { from { left: 150px; } to { left: calc(150px + (100% - 150px) * 0.62); } }
.track { display: grid; grid-template-columns: 150px 1fr; align-items: center; height: 34px; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.layer { display: flex; align-items: center; gap: 9px; font-size: 0.875rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.lane { position: relative; height: 18px; }
.bar { position: absolute; top: 1px; bottom: 1px; left: var(--s); width: calc(var(--e) - var(--s)); border-radius: 3px; opacity: 0.82; transform-origin: left; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i) * .22s); }
.key { position: absolute; top: 50%; left: var(--k); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--text); transform: rotate(45deg); animation: pop .35s ease-out both; animation-delay: calc(.8s + var(--i) * .22s + var(--j) * .12s); box-shadow: 0 0 0 2px var(--panel); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
.lav { background: var(--lav); } .aqua { background: var(--aqua); } .peach { background: var(--peach); } .sand { background: var(--sand); } .yellow { background: var(--yellow); }
.timeline figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .bar, .key, .playhead { animation: none; }
  .playhead { left: calc(150px + (100% - 150px) * 0.62); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .playhead { left: calc(96px + (100% - 96px) * 0.62); }
}

/* ---------- bands */
.band { padding: 72px 0 0; }
.abilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; margin: 8px 0 0; max-width: 980px; }
.abilities dt { font-weight: 680; font-variation-settings: "wdth" 110; font-size: 1.125rem; }
.abilities dd { margin: 4px 0 0; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 22px; display: grid; gap: 22px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step); grid-row: span 2; font-weight: 820; font-variation-settings: var(--wide); font-size: 2rem; line-height: 1; color: var(--yellow); }
.steps p { margin: 6px 0 0; color: var(--muted); }
.steps b { color: var(--text); }

.prices { width: 100%; max-width: 900px; border-collapse: collapse; margin: 26px 0; font-size: 0.9375rem; }
.prices th, .ledger th { text-align: left; color: var(--muted); font-weight: 560; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.prices td, .ledger td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.prices th.num, .ledger th.num { text-align: right; }
.offers { display: flex; gap: 56px; flex-wrap: wrap; margin: 6px 0 18px; }
.plain { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.plain span { color: var(--muted); margin-left: 6px; }

/* ---------- account */
.narrow { max-width: 760px; }
.keyform label { display: block; font-weight: 650; margin-bottom: 8px; }
.keyform .row { display: flex; gap: 10px; flex-wrap: wrap; }
input:not([type]), input[type="password"], input[type="text"], input[type="search"], input[type="number"], input[type="email"], textarea, select {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.keyform input { flex: 1 1 260px; min-width: 0; }
.msg { min-height: 1.6em; color: var(--muted); }
.msg.bad { color: var(--bad); }
.balance { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.big { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 820; font-variation-settings: var(--wide); line-height: 1; font-variant-numeric: tabular-nums; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-bottom: 18px; }
.ledger .pos { color: var(--good); }
#acct h2 { margin-top: 44px; font-size: 1.4rem; }

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .abilities { grid-template-columns: 1fr; }
  .ruler, .track { grid-template-columns: 96px 1fr; }
  .playhead { left: 96px; }
  @keyframes play { from { left: 96px; } to { left: calc(96px + (100% - 96px) * 0.62); } }
  .layer { font-size: 0.75rem; gap: 6px; }
  .prices { font-size: 0.875rem; }
  .prices td:nth-child(2), .prices th:nth-child(2) { display: none; }
  .steps li { grid-template-columns: 38px 1fr; }
}

/* ---------- sign-up, keys, one-line install */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.keyform label.second { margin-top: 16px; }
.keyform input#name { width: 100%; }
.keybox { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.keybox code { flex: 1; overflow-wrap: anywhere; font-size: 0.9375rem; }
.keybox.big code { font-size: 1.0625rem; color: var(--yellow); }
.button.small { padding: 9px 13px; font-size: 0.875rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
kbd { font: 600 0.875em var(--font); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: var(--panel); }
.oneliner p { margin: 10px 0 0; }
.steps.compact { margin-top: 4px; }
#keyPanel h2 { margin-top: 36px; font-size: 1.4rem; }
