/* =====================================================================
   The ClipQuest page (/clipquest/). The page sits in the site's retro
   world (retro.css: sky, meadow, Aqua windows); everything ClipQuest's
   own wears the app's look: cream paper windows with ink pixel outlines,
   dark insets for the video and the timeline, one colour per agent.
   Colours and the notched outline are the app's tokens.css.
   ===================================================================== */
.cq-page {
  --cq-ink: #1a1830; --cq-ink-2: #2b2848; --cq-ink-3: #454168;
  --cq-paper: #fff9ea; --cq-paper-2: #f4ead2; --cq-paper-3: #e6d8b6; --cq-mute: #7a7393;
  --cq-well: #171629; --cq-well-2: #211f3a; --cq-well-line: #3a3763; --cq-well-text: #cfcbe8;
  --cq-lime: #b8f03c; --cq-pink: #ff5c8a; --cq-sun: #ffd23f; --cq-teal: #2fd4b0; --cq-violet: #8b6cf6;
  --u: 3px;
  --font-tag: "Silkscreen", "Pixelify Sans", monospace;
}

/* the app's notched pixel outline: four offset shadows leave the corners open */
.cqw {
  background: var(--cq-paper); color: var(--cq-ink);
  box-shadow: calc(var(--u) * -1) 0 0 0 var(--cq-ink), var(--u) 0 0 0 var(--cq-ink), 0 calc(var(--u) * -1) 0 0 var(--cq-ink), 0 var(--u) 0 0 var(--cq-ink),
    var(--u) calc(var(--u) * 3) 0 0 rgba(26, 24, 48, .28), calc(var(--u) * 2) calc(var(--u) * 2) 0 0 rgba(26, 24, 48, .28);
}
.cq-btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 14px/1 var(--font-pixel); letter-spacing: .02em; padding: 6px 12px 7px; background: var(--cq-paper); color: var(--cq-ink);
  box-shadow: calc(var(--u) * -1) 0 0 0 var(--cq-ink), var(--u) 0 0 0 var(--cq-ink), 0 calc(var(--u) * -1) 0 0 var(--cq-ink), 0 var(--u) 0 0 var(--cq-ink),
    inset 0 calc(var(--u) * -1) 0 0 rgba(26, 24, 48, .16), 0 calc(var(--u) * 2) 0 0 var(--cq-ink);
}
button.cq-btn:hover { background: #fff; }
button.cq-btn:active { transform: translateY(var(--u)); }
.cq-btn--lime { background: var(--cq-lime); }
.cq-label { margin: 0 0 6px; font: 400 10px/1.2 var(--font-tag); letter-spacing: .06em; text-transform: uppercase; color: var(--cq-mute); }
.cq-chip {
  border: 0; cursor: pointer; font: 500 13px/1.25 var(--font-mono); letter-spacing: 0; text-align: left; padding: 7px 10px; color: var(--cq-ink);
  background: var(--cq-paper-2); box-shadow: 0 0 0 2px var(--cq-paper-3);
}
.cq-chip:hover { background: var(--cq-lime); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-chip.on { background: var(--cq-sun); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-chip:focus-visible, .cq-look:focus-visible, button.cq-btn:focus-visible { outline: 3px solid var(--cq-violet); outline-offset: 3px; }
.cq-av { display: block; }

/* ---------- hero ---------- */
.cq-hero { --hill-h: 34%; --fade-bottom-h: 140px; --fade-to: var(--r-paper); padding: calc(var(--menubar-h) + 64px) var(--gutter) 90px; text-align: center; }
/* a grid item grows to fit unbreakable text inside it (the typed link) unless told it may shrink */
.cq-hero .rp-hero-in, .cq-studio-wrap, .cq-studio { min-width: 0; }
.cq-hero .px-title { font-size: clamp(38px, 5.4vw, 78px); max-width: 15em; margin-inline: auto; }
.cq-hero .px-sub { margin-inline: auto; max-width: 40em; }
.cq-hero .rp-cta { justify-content: center; }
.cq-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 7px; font: 600 14px/1 var(--font-pixel); background: var(--cq-paper); color: var(--cq-ink);
  box-shadow: calc(var(--u) * -1) 0 0 0 var(--cq-ink), var(--u) 0 0 0 var(--cq-ink), 0 calc(var(--u) * -1) 0 0 var(--cq-ink), 0 var(--u) 0 0 var(--cq-ink); }
.cq-kicker i { width: 12px; height: 12px; background: var(--cq-pink); box-shadow: inset -3px -3px 0 rgba(26, 24, 48, .25); }
.cq-studio-wrap { position: relative; max-width: 1080px; margin: 54px auto 0; text-align: left; }
.cq-studio-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 0; font-size: 13.5px; color: rgba(0, 0, 0, .62); }
/* the line under the hero says what was just watched: the real studio (wide screens) or the drawn one */
.cq-studio-cap .cq-if-live { display: none; max-width: 62em; text-align: center; }
.cq-page.cq-live-on .cq-studio-cap .cq-if-live { display: inline; }
.cq-page.cq-live-on .cq-studio-cap .cq-if-drawn { display: none; }
.cq-studio-cap button { border: 0; background: none; cursor: pointer; padding: 0; font: 600 14px/1 var(--font-pixel); color: var(--r-select); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the real studio, in a frame ---------- */
/* clipquest/studio/ is the app's own interface built for the web. It lays out at one fixed size
   (the app's window); the frame is scaled to the width there is, so it stays sharp. */
.cq-page.cq-live-on .cq-studio-wrap { --cq-w: min(1456px, calc(100vw - 48px)); max-width: none; width: var(--cq-w); margin-left: calc((100% - var(--cq-w)) / 2); }
.cq-page.cq-live-on .cq-studio { display: none; }
.cq-live { position: relative; width: 100%; aspect-ratio: 1456 / 886; overflow: hidden; background: #58b4f2;
  box-shadow: calc(var(--u) * -1) 0 0 0 var(--cq-ink), var(--u) 0 0 0 var(--cq-ink), 0 calc(var(--u) * -1) 0 0 var(--cq-ink), 0 var(--u) 0 0 var(--cq-ink),
    var(--u) calc(var(--u) * 3) 0 0 rgba(26, 24, 48, .28), calc(var(--u) * 2) calc(var(--u) * 2) 0 0 rgba(26, 24, 48, .28); }
.cq-live[hidden] { display: none; }
.cq-live iframe { position: absolute; left: 0; top: 0; width: 1456px; height: 886px; border: 0; transform-origin: 0 0; transform: scale(var(--cq-scale, 1)); }
.cq-live-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 600 16px/1 var(--font-pixel); color: var(--cq-ink); pointer-events: none; }
.cq-live.ready .cq-live-wait { display: none; }

/* ---------- the studio ---------- */
.cq-studio { position: relative; padding: 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0; user-select: none; -webkit-user-select: none; }
.cq-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.cq-logo { display: inline-flex; align-items: center; gap: 7px; font: 700 19px/1 var(--font-pixel); white-space: nowrap; }
.cq-logo b { color: var(--cq-pink); font-weight: 700; }
.cq-logo i { width: 18px; height: 18px; background: #f0493e; box-shadow: 0 0 0 2px var(--cq-ink); position: relative; }
.cq-logo i::after { content: ""; position: absolute; left: 6px; top: 4px; border: 5px solid transparent; border-left: 7px solid #fff; }
.cq-link { flex: 1; min-width: 0; display: flex; align-items: center; height: 30px; padding: 0 9px; background: #fff; overflow: hidden; white-space: nowrap; box-shadow: 0 0 0 3px var(--cq-ink), inset 0 3px 0 rgba(26, 24, 48, .1); }
.cq-caret { width: 7px; height: 15px; margin-left: 1px; background: var(--cq-ink); animation: cq-blink 1s steps(2) infinite; }
@keyframes cq-blink { 50% { opacity: 0; } }
.cq-crewrow { display: flex; gap: 5px; }
.cq-crewrow > span { display: block; transition: transform .2s steps(3); }
.cq-crewrow > span.busy { transform: translateY(-4px); }
.cq-mid { display: grid; grid-template-columns: minmax(150px, 25%) minmax(0, 1fr); gap: 14px; }
.cq-stage { position: relative; aspect-ratio: 9 / 16; background: #000; box-shadow: 0 0 0 3px var(--cq-ink); overflow: hidden; }
.cq-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cq-stamp { position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -7deg; padding: 8px 12px 9px; text-align: center; white-space: nowrap; font: 700 clamp(13px, 1.5vw, 19px)/1 var(--font-pixel); background: var(--cq-lime); color: var(--cq-ink); box-shadow: 0 0 0 3px var(--cq-ink), 5px 6px 0 rgba(26, 24, 48, .45); animation: cq-stamp .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.cq-stamp small { display: block; margin-top: 4px; font: 400 9px/1 var(--font-tag); text-transform: uppercase; letter-spacing: .05em; }
@keyframes cq-stamp { from { scale: 2.2; opacity: 0; } }
.cq-side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; align-content: start; }
.cq-panel { padding: 10px 11px 11px; background: #fff; box-shadow: 0 0 0 2px var(--cq-paper-3); }
.cq-side > .cq-panel:first-child { grid-column: 1 / -1; }
.cq-steps { display: flex; flex-wrap: wrap; gap: 7px 5px; }
.cq-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 5px 5px; font: 600 13px/1 var(--font-pixel); background: var(--cq-paper-2); color: var(--cq-mute); box-shadow: 0 0 0 2px var(--cq-paper-3); }
.cq-step i { width: 13px; height: 13px; background: #fff; box-shadow: 0 0 0 2px var(--cq-paper-3); }
.cq-step.doing { color: var(--cq-ink); background: #fff; box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-step.doing i { background: var(--c); box-shadow: 0 0 0 2px var(--cq-ink); animation: cq-blink .5s steps(2) infinite; }
.cq-step.done { color: var(--cq-ink); background: var(--c); color: var(--on); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-step.done i { background: var(--cq-ink); box-shadow: none; position: relative; }
.cq-step.done i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--font-mono); color: #fff; }
.cq-moment { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 7px; margin-top: 6px; background: var(--cq-paper); box-shadow: 0 0 0 2px var(--cq-paper-3); opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s; }
.cq-moment.on { opacity: 1; translate: 0 0; }
.cq-moment.pick { background: var(--cq-sun); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-moment b { font: 700 16px/1 var(--font-pixel); text-align: center; padding: 4px 0 5px; background: var(--cq-ink); color: var(--cq-lime); }
.cq-moment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-moment small { color: var(--cq-mute); font-size: 10.5px; }
.cq-score { display: flex; align-items: center; gap: 10px; }
.cq-score b { font: 700 34px/1 var(--font-pixel); min-width: 1.6em; }
.cq-meter { flex: 1; height: 14px; background: var(--cq-paper-2); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-meter i { display: block; height: 100%; width: 0; background: var(--cq-lime); transition: width .1s linear; }
.cq-note { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: var(--cq-mute); }
.cq-tl { position: relative; margin-top: 14px; padding: 8px 8px 9px 0; background: var(--cq-well); box-shadow: 0 0 0 3px var(--cq-ink), inset 0 3px 0 rgba(0, 0, 0, .35); }
.cq-track { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; height: 26px; border-top: 1px solid var(--cq-well-line); }
.cq-track:first-child { border-top: 0; }
.cq-tname { padding-left: 10px; font: 400 9px/1 var(--font-tag); letter-spacing: .05em; color: var(--cq-well-text); border-left: 4px solid var(--c); margin-left: 8px; height: 14px; display: flex; align-items: center; }
.cq-lane { position: relative; height: 100%; }
.cq-clip { position: absolute; top: 4px; bottom: 4px; padding: 0 6px; overflow: hidden; white-space: nowrap; font: 400 9px/18px var(--font-tag); color: var(--cq-ink); background: var(--c); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(26, 24, 48, .55); animation: cq-drop .22s cubic-bezier(.34, 1.56, .64, 1) both; transition: left .35s cubic-bezier(.22, 1, .36, 1); }
.cq-clip.c { background: transparent; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--cq-pink); }
.cq-clip.m { background: transparent; color: #cfc3ff; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--cq-violet); }
.cq-clip.m.thin { top: 8px; bottom: 8px; font-size: 0; }
.cq-clip.a { background: transparent; color: #a9e47f; box-shadow: inset 0 0 0 2px #74c63f; }
.cq-clip.a.sfx { background: #74c63f; top: 6px; bottom: 6px; }
@keyframes cq-drop { from { scale: 1 .2; opacity: 0; } }
.cq-head { position: absolute; left: 84px; top: 4px; bottom: 4px; width: 2px; background: #fff; animation: cq-head 7.6s linear infinite; }
@keyframes cq-head { to { left: calc(100% - 10px); } }
.cq-cursors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cq-cur { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; opacity: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .25s; will-change: transform; z-index: 2; }
.cq-cur.on { opacity: 1; }
.cq-cur svg { width: 15px; height: 20px; flex: none; margin: -2px 0 0 -2px; filter: drop-shadow(2px 2px 0 rgba(26, 24, 48, .35)); }
.cq-cur b { margin: 12px 0 0 -2px; padding: 3px 6px 4px; font: 700 11px/1 var(--font-pixel); letter-spacing: .03em; background: var(--c); color: var(--on); box-shadow: 0 0 0 2px var(--cq-ink); white-space: nowrap; }
.cq-cur i { margin: 12px 0 0 6px; padding: 3px 7px 4px; font: 500 11px/1.2 var(--font-mono); font-style: normal; background: var(--cq-ink); color: #fff; white-space: nowrap; }
.cq-cur.flip { flex-direction: row-reverse; translate: -100% 0; }
.cq-cur.flip svg { scale: -1 1; margin: -2px -2px 0 0; }
.cq-cur.flip b { margin: 12px -2px 0 0; }
.cq-cur.flip i { margin: 12px 6px 0 0; }
.cq-cur.tap svg { animation: cq-tap .28s steps(3); }
@keyframes cq-tap { 40% { transform: scale(.72); } }

/* ---------- section furniture ---------- */
.cq-count { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.cq-count div { padding: 14px 16px 15px; }
.cq-count b { display: block; font: 700 34px/1 var(--font-pixel); }
.cq-count span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.35; color: var(--cq-ink-3); }
.cq-fine { margin: 14px 0 0; font-size: 13px; color: rgba(0, 0, 0, .55); max-width: 46em; }
.rp-sec--aqua .cq-fine { color: rgba(255, 255, 255, .75); }

/* the crew */
.cq-crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; margin-top: 46px; }
.cq-agent { padding: 16px 16px 18px; border-top: 8px solid var(--c); transition: translate .18s steps(3); }
.cq-agent:hover { translate: 0 -6px; }
.cq-agent-face { display: inline-grid; place-items: center; width: 72px; height: 72px; background: var(--cq-well-2); box-shadow: 0 0 0 3px var(--cq-ink); }
.cq-agent h3 { margin: 14px 0 0; font: 700 24px/1 var(--font-pixel); }
.cq-agent-role { margin: 5px 0 10px !important; font: 400 10px/1.35 var(--font-tag) !important; text-transform: uppercase; letter-spacing: .04em; color: var(--cq-mute) !important; }
.cq-agent p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cq-ink-2); }

/* ask in plain words */
.cq-ask { padding: 14px; }
.cq-askbar { display: flex; gap: 10px; align-items: stretch; }
.cq-askbox { flex: 1; min-height: 62px; padding: 9px 11px; background: #fff; font: 500 14px/1.4 var(--font-mono); letter-spacing: 0; box-shadow: 0 0 0 3px var(--cq-ink), inset 0 3px 0 rgba(26, 24, 48, .1); }
.cq-askbox:empty::before { content: "ask the crew for anything…"; color: #a79fbd; }
.cq-askbar .cq-btn { align-self: flex-end; background: var(--cq-pink); color: #fff; }
.cq-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.cq-feed { margin-top: 14px; padding: 12px; min-height: 250px; background: var(--cq-well); color: var(--cq-well-text); box-shadow: 0 0 0 3px var(--cq-ink), inset 0 3px 0 rgba(0, 0, 0, .35); font: 500 13px/1.4 var(--font-mono); letter-spacing: 0; }
.cq-feed:empty::before { content: "the run shows here: who did what, and what it changed."; color: #7d79a6; }
.cq-you { margin: 0 0 10px; padding: 8px 10px; background: var(--cq-well-2); color: #fff; box-shadow: inset 3px 0 0 var(--cq-sun); }
.cq-run { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 9px; align-items: center; margin-top: 5px; padding: 6px 8px 6px 6px; background: var(--cq-well-2); box-shadow: inset 0 0 0 1px var(--cq-well-line); animation: cq-drop .2s both; }
.cq-who { padding: 3px 6px 4px; font: 700 11px/1 var(--font-pixel); letter-spacing: .03em; background: var(--c); color: var(--on); }
.cq-run em { font-style: normal; font-size: 11.5px; color: #9d98c4; white-space: nowrap; }
.cq-run i { width: 14px; height: 14px; display: grid; place-items: center; font: 700 11px/1 var(--font-mono); font-style: normal; }
.cq-run.doing i { background: var(--c); animation: cq-blink .4s steps(2) infinite; }
.cq-run.done i::after { content: "✓"; color: var(--cq-lime); }
.cq-run.undone { opacity: .45; text-decoration: line-through; }
.cq-reply { display: flex; gap: 12px; align-items: flex-end; margin-top: 10px; padding: 10px; background: var(--cq-paper); color: var(--cq-ink); animation: cq-drop .2s both; }
.cq-reply p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.5; }
.cq-reply b { padding: 2px 5px 3px; margin-right: 4px; font: 700 11px/1 var(--font-pixel); background: var(--cq-ink); color: var(--cq-paper); }
@media (max-width: 520px) { .cq-run { grid-template-columns: auto minmax(0, 1fr) 16px; } .cq-run em { display: none; } .cq-reply { flex-direction: column; align-items: flex-start; } }

/* the caption looks */
.cq-looks { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 44px; }
.cq-phone { position: relative; aspect-ratio: 9 / 16; background: #000; box-shadow: 0 0 0 4px var(--cq-ink), 8px 10px 0 rgba(26, 24, 48, .25); overflow: hidden; }
.cq-phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cq-look-info { padding: 14px 16px 16px; }
.cq-look-info h3 { margin: 0; font: 700 28px/1 var(--font-pixel); }
.cq-look-info p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--cq-ink-2); }
.cq-look-info p + p { font-size: 13px; color: var(--cq-mute); }
.cq-look-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.cq-look { border: 0; cursor: pointer; padding: 7px 11px 8px; font: 600 15px/1 var(--font-pixel); color: var(--cq-ink); background: var(--cq-paper); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-look:hover { background: var(--cq-lime); }
.cq-look.on { background: var(--cq-ink); color: var(--cq-paper); box-shadow: 0 0 0 2px var(--cq-ink), 4px 4px 0 var(--cq-pink); }
.cq-accents { display: flex; align-items: center; gap: 8px; margin-top: 22px; font: 400 10px/1 var(--font-tag); text-transform: uppercase; letter-spacing: .05em; color: rgba(0, 0, 0, .55); }
.cq-accents button { width: 26px; height: 26px; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-accents button:hover { translate: 0 -2px; }
.cq-knobs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cq-knobs span { padding: 5px 9px 6px; font-size: 13px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); border-radius: 999px; color: #1d1d1f; }

/* make your own agent */
.cq-maker { padding: 14px; }
.cq-maker-top { display: flex; gap: 10px; align-items: stretch; }
.cq-made { margin-top: 14px; padding: 14px; min-height: 330px; background: #fff; box-shadow: 0 0 0 3px var(--cq-ink), inset 0 8px 0 var(--c, var(--cq-paper-3)); transition: opacity .2s; }
.cq-made.drafting { opacity: .45; }
.cq-made:empty::before { content: "the agent it drafts shows here."; color: #a79fbd; font: 500 13px/1 var(--font-mono); }
.cq-made-head { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; }
.cq-made-head .cq-agent-face { width: 62px; height: 62px; flex: none; }
.cq-made-head h3 { margin: 0; font: 700 26px/1 var(--font-pixel); }
.cq-made-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--cq-ink-3); }
.cq-brief { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--cq-ink-2); }
.cq-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cq-tools span { padding: 4px 8px 5px; font: 600 13px/1 var(--font-pixel); background: var(--cq-lime); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-when { margin: 0 0 14px; font: 600 15px/1 var(--font-pixel); }
.cq-made-foot { display: flex; gap: 12px; }

/* yours stays yours */
.cq-flow { display: grid; gap: 10px; }
.cq-flow div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 12px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); font-size: 14.5px; color: #1d1d1f; }
.cq-flow b { font: 600 15px/1.2 var(--font-pixel); }

/* plans */
.cq-bill { display: inline-flex; margin-top: 26px; box-shadow: 0 0 0 3px var(--cq-ink); }
.cq-bill button { border: 0; cursor: pointer; padding: 8px 16px 9px; font: 600 15px/1 var(--font-pixel); background: var(--cq-paper); color: var(--cq-ink); }
.cq-bill button.on { background: var(--cq-ink); color: var(--cq-paper); }
.cq-bill small { margin-left: 6px; font: 400 9px/1 var(--font-tag); text-transform: uppercase; color: var(--cq-pink); }
.cq-bill button.on small { color: var(--cq-lime); }
.cq-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; margin-top: 34px; text-align: left; }
.cq-plan { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.cq-plan--go { border-top: 10px solid var(--cq-pink); }
.cq-plan h3 { margin: 0; font: 700 30px/1 var(--font-pixel); }
.cq-plan .cq-sum { margin: 6px 0 0; font-size: 14.5px; color: var(--cq-ink-3); }
.cq-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.cq-price b { font: 700 54px/1 var(--font-pixel); }
.cq-price span { font-size: 14px; color: var(--cq-ink-3); }
.cq-plan ul { margin: 16px 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; line-height: 1.4; }
.cq-plan li { position: relative; padding-left: 24px; }
.cq-plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; background: var(--cq-lime); box-shadow: 0 0 0 2px var(--cq-ink); }
.cq-plan .cq-btn { margin-top: auto; height: 46px; font-size: 17px; text-decoration: none; }
.cq-plan .cq-btn[aria-disabled="true"] { background: var(--cq-paper-2); color: var(--cq-ink-3); }
.cq-plan--go .cq-btn { background: var(--cq-pink); color: #fff; }

/* get it */
.cq-get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.cq-os .mw-body { display: flex; flex-direction: column; gap: 12px; min-height: 170px; }
.cq-os h3 { margin: 0; font: 600 24px/1 var(--font-pixel); }
.cq-os p { margin: 0; font-size: 14px; color: #333; }
.cq-os .mw-btn { align-self: flex-start; height: 42px; padding: 0 22px; font-size: 16px; margin-top: auto; }
.cq-os .mw-btn[aria-disabled="true"] { opacity: .6; }
.cq-first { margin-top: 26px; }
.cq-first-tabs { display: inline-flex; gap: 8px; margin-bottom: 12px; }
.cq-first-tabs button { border: 0; cursor: pointer; padding: 6px 12px 7px; font: 600 14px/1 var(--font-pixel); background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); color: #111; }
.cq-first-tabs button.on { background: var(--r-select); color: #fff; box-shadow: none; }
.cq-first ol[hidden] { display: none; }
.cq-first ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; color: #1d1d1f; }

/* after paying */
.cq-key { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }
.cq-key code { flex: 1; min-width: 0; padding: 12px 14px; font: 500 16px/1.3 var(--font-mono); letter-spacing: 0; word-break: break-all; background: #fff; box-shadow: 0 0 0 3px var(--cq-ink), inset 0 3px 0 rgba(26, 24, 48, .1); }
.cq-thanks { max-width: 760px; margin: 0 auto; padding: 26px; text-align: left; }
.cq-thanks h1 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1.05 var(--font-pixel); }
.cq-thanks p, .cq-thanks li { font-size: 16px; line-height: 1.55; color: var(--cq-ink-2); }
.cq-thanks ol { padding-left: 22px; display: grid; gap: 6px; }

@media (max-width: 1040px) {
  .cq-crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cq-side { grid-template-columns: minmax(0, 1fr); }
  .cq-side > .cq-panel:first-child { grid-column: auto; }
}
@media (max-width: 860px) {
  .cq-looks { grid-template-columns: minmax(0, 1fr); }
  .cq-phone { max-width: 300px; margin: 0 auto; width: 100%; }
  .cq-plans, .cq-get { grid-template-columns: minmax(0, 1fr); }
  .cq-crewrow { display: none; }
}
@media (max-width: 640px) {
  .cq-hero { padding-bottom: 60px; }
  .cq-studio { padding: 9px; }
  .cq-mid { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 9px; }
  .cq-logo { font-size: 15px; } .cq-logo i { display: none; }
  .cq-top { gap: 8px; }
  .cq-moments { display: none; }
  .cq-track { grid-template-columns: 22px minmax(0, 1fr); } .cq-tname { font-size: 0; padding: 0; } .cq-head { left: 22px; }
  .cq-cur i { display: none; }
  .cq-crew { grid-template-columns: minmax(0, 1fr); }
  .cq-flow div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .cq-askbar, .cq-maker-top { flex-direction: column; } .cq-askbar .cq-btn, .cq-maker-top .cq-btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cq-head, .cq-caret, .cq-clip, .cq-stamp, .cq-run, .cq-reply { animation: none; }
  .cq-cur { transition: none; }
}

/* "mac and windows" wording shows once the Windows installer is out (clipquest.js sets .cq-win-out from config.js) */
.cq-page .if-win { display: none; }
.cq-page.cq-win-out .if-win { display: inline; }
.cq-page.cq-win-out .if-no-win { display: none; }

/* ---------- the way to creator ---------- */
/* the creator button: the app's pink pixel button, bigger, wherever the page asks for the sale */
.cq-buy-big {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px 2px; border: 0; cursor: pointer;
  font: 700 17px/1 var(--font-pixel); letter-spacing: .02em; color: #fff; background: var(--cq-pink, #ff5c8a); text-decoration: none; white-space: nowrap;
  box-shadow: -3px 0 0 0 #1a1830, 3px 0 0 0 #1a1830, 0 -3px 0 0 #1a1830, 0 3px 0 0 #1a1830, inset 0 -3px 0 0 rgba(26, 24, 48, .22), 0 6px 0 0 #1a1830;
  transition: transform 80ms steps(2), background 120ms;
}
.cq-buy-big::before { content: "▶"; font-size: .7em; }
.cq-buy-big:hover { background: #ff7aa0; transform: translateY(-1px); }
.cq-buy-big:active { transform: translateY(3px); box-shadow: -3px 0 0 0 #1a1830, 3px 0 0 0 #1a1830, 0 -3px 0 0 #1a1830, 0 3px 0 0 #1a1830, 0 3px 0 0 #1a1830; }
.cq-buy-big:focus-visible { outline: 3px solid var(--cq-violet, #8b6cf6); outline-offset: 4px; }
.cq-buy-big[aria-disabled="true"] { background: #c9c2d8; }
.cq-hero-cta { align-items: center; }
.rp-final .rp-cta { align-items: center; }

/* menubar */
.menubar .cq-nav-buy { color: #fff; background: #ff5c8a; box-shadow: inset 0 1px 0 #ffffff55, 0 2px 6px rgba(255, 92, 138, .35); margin-right: 6px; }
.menubar .cq-nav-buy:hover { background: #ff7aa0; }
.menu-sheet .cq-buy-big { margin: 6px 0; }

/* bands between sections */
.cq-band { background: var(--r-paper, #fff9ea); padding: 34px var(--gutter, 24px); }
.cq-band-in { max-width: 980px; margin: 0 auto; padding: 22px 26px; display: flex; align-items: center; gap: 24px; border-left: 10px solid var(--cq-pink); }
.cq-band-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cq-band-copy b { font: 700 clamp(20px, 2.2vw, 26px)/1.15 var(--font-pixel); }
.cq-band-copy span { font-size: 15px; color: var(--cq-ink-3); }
.cq-band-act { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cq-band-more { background: none; border: 0; cursor: pointer; font: 400 10px/1 var(--font-tag); text-transform: uppercase; letter-spacing: .06em; color: var(--cq-mute); text-decoration: underline; }
@media (max-width: 720px) { .cq-band-in { flex-direction: column; align-items: stretch; text-align: left; } .cq-band-act { align-items: stretch; } }

/* pricing */
.cq-plan--go { position: relative; transform: scale(1.03); }
.cq-ribbon { position: absolute; top: -24px; right: 16px; padding: 6px 9px 5px; font: 400 10px/1 var(--font-tag); text-transform: uppercase; letter-spacing: .06em; background: var(--cq-lime); color: var(--cq-ink); box-shadow: 0 0 0 3px var(--cq-ink); }
.cq-plan .cq-buy-big { margin-top: auto; }
.cq-trust { margin: 10px 0 0; font: 400 9.5px/1.4 var(--font-tag); text-transform: uppercase; letter-spacing: .04em; color: var(--cq-mute); text-align: center; }
.cq-btn--quiet { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .cq-plan--go { transform: none; } }

/* the bar that follows the reader */
.cq-stick { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 60; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; animation: cq-rise 260ms cubic-bezier(.22, 1, .36, 1); }
.cq-stick[hidden] { display: none; }
.cq-stick-in { pointer-events: auto; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; max-width: 720px; width: 100%; }
.cq-stick-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cq-stick-copy b { font: 700 17px/1.1 var(--font-pixel); }
.cq-stick-copy span { font-size: 13px; color: var(--cq-ink-3); }
.cq-stick-x { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--cq-mute); padding: 4px 6px; }
.cq-stick-x:hover { color: var(--cq-ink); }
@media (max-width: 560px) { .cq-stick-copy span { display: none; } .cq-stick .cq-buy-big { font-size: 15px; padding: 0 14px 2px; } }
@keyframes cq-rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the sheet beside a download */
.cq-dlsheet { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(400px, calc(100vw - 36px)); animation: cq-rise 260ms cubic-bezier(.22, 1, .36, 1); }
.cq-dlsheet[hidden] { display: none; }
.cq-dlsheet-in { position: relative; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid var(--cq-pink); }
.cq-dlsheet-in > b { font: 700 20px/1.15 var(--font-pixel); padding-right: 24px; }
.cq-dlsheet-in > p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--cq-ink-3); }
.cq-dlsheet-in .cq-label { margin: 0; }
.cq-dlsheet .cq-stick-x { position: absolute; top: 6px; right: 6px; }
.cq-dlsheet-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* the page after checkout */
.cq-activate { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
.cq-activate span { font-size: 14px; color: var(--cq-ink-3); }
.cq-dl-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.cq-dl-row .cq-btn { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .cq-stick, .cq-dlsheet { animation: none; } }

/* prices: Silkscreen's 2 is open where Pixelify's closes into something like an 8, so "$12" never reads as "$18" */
.cq-num, .cq-price b { font-family: "Silkscreen", "Pixelify Sans", monospace; font-weight: 700; letter-spacing: 0; }
.cq-price b { font-size: 48px; }
.cq-buy-big .cq-num, .cq-price span .cq-num { margin-right: -0.22em; }
