/* The cold email quiz, the launch sequence (PM #8473) — page-only rules on top
   of ../../site.css, ../../assets/v3.css and ../ce.css. Rewritten whole on
   12 Oct; nothing here is inherited from the Agentic Agency quiz any more.

   quiz.js copies the screen's data-stage onto the section and sets --ce, the
   stage's colour, on the body. Everything below reads those two. The sky and
   the stars are ../ce.css and ../stars.js. One screen at a time; a screen
   rises in each time it is shown (an animation restarts when display does).
   quiz.js reads only data-* hooks and sets .is-picked, .is-bad, .is-on,
   .is-done, .is-now, .is-beat, .is-lift, .is-shaking and .is-last-minute. */

/* ------------------------------------------------------------ the beat */

body.v3 main > section.b-quiz[id] {
  --b-bg: radial-gradient(60% 50% at 50% 34%, rgba(var(--ce), 0.12), transparent 80%);
  --b-top: calc(var(--header-h) + 72px);
  --b-end: clamp(72px, 9vh, 120px);
  min-height: 100svh;
  /* clip, not hidden: the offer's clock must still stick, and nothing (its
     edge-to-edge band) may widen the page */
  overflow: visible;
  overflow-x: clip;
}
body.ce-quiz-page .b-quiz [hidden] { display: none !important; }

/* ------------------------------------------------------------ the track */
/* seven stages across the top: done ones filled, this one lit and named */

body.ce-quiz-page .ce-track {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 6px;
  width: min(100% - 2 * var(--pad), 920px);
}
body.ce-quiz-page .ce-track li {
  flex: 1;
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
  transition: color 0.6s ease;
}
body.ce-quiz-page .ce-track i {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}
body.ce-quiz-page .ce-track li.is-done i { background: rgba(var(--ce), 0.55); }
body.ce-quiz-page .ce-track li.is-now i { background: rgb(var(--ce)); box-shadow: 0 0 14px rgba(var(--ce), 0.8); }
body.ce-quiz-page .ce-track li.is-now { color: rgb(var(--ce)); }
body.ce-quiz-page .ce-track li.is-done { color: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------ the stage card */
/* a stage's name passes across the screen as the launch moves into it */

body.ce-quiz-page .ce-stagecard {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: 38%;
  display: grid;
  justify-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
}
body.ce-quiz-page .ce-stagecard.is-on { animation: ce-card 1.5s cubic-bezier(.2, .7, .2, 1) both; }
body.ce-quiz-page .b .ce-stagecard p:first-child {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgb(var(--ce));
}
body.ce-quiz-page .b .ce-stagecard p:last-child {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fffaf3;
  text-shadow: 0 0 60px rgba(var(--ce), 0.7), 0 4px 30px rgba(0, 0, 0, 0.9);
}
@keyframes ce-card {
  0%   { opacity: 0; transform: scale(1.12); filter: blur(8px); }
  22%  { opacity: 1; transform: scale(1); filter: blur(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scale(0.96); }
}
/* while the card passes, the screen under it waits a beat before rising */
body.ce-quiz-page .ce-stagecard.is-on ~ .ce-step:not([hidden]) { animation-delay: 0.85s; }

body.ce-quiz-page .ce-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ------------------------------------------------------------ a screen */

body.ce-quiz-page .ce-step {
  display: grid;
  justify-items: center;
  width: min(100%, 720px);
  margin: 0 auto;
  animation: ce-rise 0.6s cubic-bezier(.2, .7, .2, 1) both;
}
body.ce-quiz-page .ce-step h1:focus,
body.ce-quiz-page .ce-step h2:focus { outline: none; }

body.ce-quiz-page .b .ce-hail {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(var(--ce));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}
body.ce-quiz-page .ce-step .display {
  --d: clamp(46px, 6.2vw, 92px);
  text-wrap: balance;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.75));
}
body.ce-quiz-page .b .ce-lede {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: #d4d1cc;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
}
body.ce-quiz-page .ce-step > .pill { margin-top: clamp(36px, 4vw, 52px); padding: 17px 52px; font-size: 19px; }
body.ce-quiz-page button.pill { border: 0; font-family: inherit; cursor: pointer; }
body.ce-quiz-page .ce-step > .pill:not(.ce-deploy):not(.pill-ghost) {
  background: linear-gradient(to bottom, rgba(var(--ce), 0.24), rgba(var(--ce), 0.08)), #0e0f13;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ce)), 0 0 30px -4px rgba(var(--ce), 0.55);
}

/* the question */
body.ce-quiz-page .q-head {
  max-width: 17em;
  padding-bottom: 0.08em;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fffaf3;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

/* ------------------------------------------------------------ the answers */
/* one glass row each, a number to press, lit in the stage's colour */

body.ce-quiz-page .ce-opts {
  display: grid;
  gap: 12px;
  width: min(100%, 580px);
  margin-top: clamp(32px, 3.6vw, 48px);
}
body.ce-quiz-page .ce-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 52px 17px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.62);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  color: #ece8e1;
  font: inherit;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
body.ce-quiz-page .ce-opt kbd {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #a9adb5;
  transition: background 0.15s, color 0.15s;
}
body.ce-quiz-page .ce-opt::after {
  content: '\2192';
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  color: rgb(var(--ce));
  opacity: 0;
  transition: opacity 0.15s, translate 0.15s;
}
body.ce-quiz-page .ce-opt:hover,
body.ce-quiz-page .ce-opt:focus-visible,
body.ce-quiz-page .ce-opt.is-picked {
  outline: none;
  background:
    radial-gradient(80% 160% at 0% 0%, rgba(var(--ce), 0.3), transparent 70%),
    rgba(14, 14, 20, 0.72);
  box-shadow: inset 0 0 0 1.5px rgba(var(--ce), 0.85), 0 0 34px -10px rgba(var(--ce), 0.7);
  color: #fff;
}
body.ce-quiz-page .ce-opt:hover kbd,
body.ce-quiz-page .ce-opt.is-picked kbd { background: rgb(var(--ce)); color: #14110b; }
body.ce-quiz-page .ce-opt:hover::after,
body.ce-quiz-page .ce-opt:focus-visible::after,
body.ce-quiz-page .ce-opt.is-picked::after { opacity: 1; translate: 4px -50%; }
body.ce-quiz-page .ce-opt:active { transform: scale(0.99); }

body.ce-quiz-page .ce-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: #a9adb5;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  transition: color 0.15s;
}
body.ce-quiz-page .ce-back::before { content: '\2190'; }
body.ce-quiz-page .ce-back:hover,
body.ce-quiz-page .ce-back:focus-visible { color: #fff; }

/* ------------------------------------------------------------ the forms */

body.ce-quiz-page .ce-fields {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  margin-top: clamp(32px, 3.6vw, 44px);
  text-align: left;
}
body.ce-quiz-page .ce-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #b9bcc3;
}
body.ce-quiz-page .ce-fields input {
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.7);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fffaf3;
  font: inherit;
  font-size: 20px;
  transition: box-shadow 0.15s;
}
body.ce-quiz-page .ce-fields input:focus { outline: none; box-shadow: inset 0 0 0 1.5px rgb(var(--ce)), 0 0 30px -8px rgba(var(--ce), 0.6); }
body.ce-quiz-page .ce-fields .is-bad input,
body.ce-quiz-page .ce-fields .is-bad input:focus {
  background: rgba(60, 20, 22, 0.7);
  box-shadow: inset 0 0 0 1.5px #eab0ae;
}
body.ce-quiz-page .ce-fields .is-bad { color: #eab0ae; }
body.ce-quiz-page .b .ce-error { margin-top: 16px; font-size: 15.5px; font-weight: 500; color: #f0b8b4; }

/* ------------------------------------------------------------ ignition */

body.ce-quiz-page .b .ce-count {
  font-size: clamp(160px, 26vw, 320px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: #fffaf3;
  text-shadow: 0 0 80px rgba(var(--ce), 0.9), 0 0 24px rgba(var(--ce), 0.8);
}
body.ce-quiz-page .b .ce-count.is-beat { animation: ce-beat 0.9s cubic-bezier(.2, .7, .2, 1) both; }
body.ce-quiz-page .b .ce-count.is-lift {
  font-size: clamp(72px, 12vw, 168px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff3d6;
  animation: ce-lift 1.5s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes ce-beat {
  0%   { opacity: 0; transform: scale(1.6); filter: blur(10px); }
  30%  { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0.85; transform: scale(0.94); }
}
@keyframes ce-lift {
  0%   { opacity: 0; transform: translateY(40px) scale(0.9); }
  25%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-180px) scale(1.15); filter: blur(6px); }
}
body.ce-quiz-page .b-quiz.is-shaking { animation: ce-shake 0.12s linear infinite; }
@keyframes ce-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
}

/* ------------------------------------------------------------ the summary */
/* the mission read back as a card, and the page's math with their number */

body.ce-quiz-page .ce-card {
  display: grid;
  gap: 18px;
  width: min(100%, 680px);
  margin-top: clamp(28px, 3.4vw, 40px);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 24px;
  background: rgba(10, 12, 18, 0.68);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 60px -20px rgba(var(--ce), 0.45);
  text-align: left;
}
body.ce-quiz-page .ce-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 0;
}
body.ce-quiz-page .ce-mission .ce-wide { grid-column: 1 / -1; }
body.ce-quiz-page .ce-mission dt {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--ce));
}
body.ce-quiz-page .ce-mission dd { margin: 4px 0 0; font-size: 17px; line-height: 1.35; color: #f1ede6; }
body.ce-quiz-page .ce-yours {
  padding-top: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.ce-quiz-page .b .ce-yours-head {
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9bcc3;
}
body.ce-quiz-page .ce-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
body.ce-quiz-page .ce-mini li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
body.ce-quiz-page .ce-mini b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; color: #fffaf3; }
body.ce-quiz-page .ce-mini span { font-size: 12px; line-height: 1.3; color: #a9adb5; }
body.ce-quiz-page .ce-mini i { font-style: normal; }
body.ce-quiz-page .ce-mini .ce-mini-gold { background: rgba(245, 199, 106, 0.14); box-shadow: 0 0 30px -10px rgba(245, 199, 106, 0.6); }
body.ce-quiz-page .ce-mini .ce-mini-gold b { color: #fbe3a8; }
body.ce-quiz-page .b .ce-fine { margin-top: 10px; font-size: 12.5px; color: #8d929b; }

/* ------------------------------------------------------------ the transmission */
/* lines arrive one after another, like a message coming in */

body.ce-quiz-page .b .ce-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(var(--ce));
}
body.ce-quiz-page .ce-signal i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--ce));
  box-shadow: 0 0 12px rgb(var(--ce));
  animation: ce-pulse 1s ease-in-out infinite;
}
body.ce-quiz-page .ce-lines {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  margin-top: clamp(24px, 3vw, 36px);
}
body.ce-quiz-page .b .ce-lines p {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 300;
  line-height: 1.45;
  color: #f1ede6;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
}
body.ce-quiz-page .b .ce-lines b { font-weight: 500; color: rgb(var(--ce)); }
body.ce-quiz-page .ce-transmit [style*="--i"] { animation: ce-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(0.5s + var(--i) * 0.75s); }
body.ce-quiz-page .ce-included { width: min(100%, 620px); margin-top: clamp(28px, 3vw, 40px); }
body.ce-quiz-page .b .ce-sign {
  margin-top: 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #b9bcc3;
}
body.ce-quiz-page .b .ce-sign::before { content: '\2014\00a0'; }

/* ------------------------------------------------------------ the stacks */

body.ce-quiz-page .b .ce-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  text-align: left;
}
body.ce-quiz-page .b .ce-stack li {
  position: relative;
  padding: 13px 18px 13px 48px;
  border-radius: 14px;
  background:
    linear-gradient(to right, rgba(var(--ce), 0.12), transparent 70%),
    rgba(10, 12, 18, 0.66);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: 16.5px;
  line-height: 1.4;
  color: #ece8e1;
  text-wrap: pretty;
}
body.ce-quiz-page .b .ce-stack li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5' fill='none' stroke='%2314110b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), rgb(var(--ce));
}

/* ------------------------------------------------------------ touchdown */

body.ce-quiz-page .ce-landing .ce-hail { animation: ce-pulse 0.9s ease-in-out 3; }
body.ce-quiz-page .ce-landing .display { animation: ce-touch 1.4s cubic-bezier(.2, .7, .2, 1) 1s both; }
@keyframes ce-touch {
  0%   { opacity: 0; transform: translateY(-60px) scale(1.1); filter: blur(10px); }
  60%  { opacity: 1; transform: translateY(4px) scale(1); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ the offer */
/* The offer's own look is ../ce.css (.ce-ob), shared with the order page.
   Here: how the reveal is laid out around it, and the clock riding along. */

body.ce-quiz-page .ce-offer > .ce-clock,
body.ce-quiz-page .ce-offer > .ce-hail { animation: ce-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
body.ce-quiz-page .ce-offer > .ce-close-out { display: grid; justify-items: center; animation: ce-rise 0.7s cubic-bezier(.2, .7, .2, 1) 1.1s both; }
body.ce-quiz-page .ce-offer .ce-deploy { margin-top: clamp(24px, 3vw, 36px); animation: ce-glow 2.4s ease-in-out 2s infinite; }
body.ce-quiz-page button.pill.ce-deploy { border: 0; cursor: pointer; }

/* the clock rides along as the offer scrolls, so it is on screen beside Deploy */
body.ce-quiz-page .ce-offer .ce-clock { position: sticky; z-index: 5; top: 14px; padding-right: 22px; margin-bottom: clamp(26px, 3vw, 36px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9); }
body.ce-quiz-page .ce-offer .ce-clock::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -100vw;
  right: -100vw;
  top: -14px;
  bottom: -30px;
  background: linear-gradient(to bottom, #02060d 74%, rgba(2, 6, 13, 0));
  pointer-events: none;
}
body.ce-quiz-page .b .ce-what {
  max-width: 30em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: #f1ede6;
  text-wrap: balance;
}
body.ce-quiz-page .b .ce-shift {
  margin-top: clamp(32px, 3.4vw, 44px);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  color: #fffaf3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95);
}
body.ce-quiz-page .b .ce-shift span { display: block; }
body.ce-quiz-page .b .ce-shift span + span { color: rgb(var(--ce)); }

body.ce-quiz-page .ce-home::after { content: none; }

/* ------------------------------------------------------------ phones */

@media (max-width: 760px) {
  body.v3 main > section.b-quiz[id] { --b-top: calc(var(--header-h) + 52px); --b-end: 64px; }

  body.ce-quiz-page .ce-track { gap: 4px; }
  body.ce-quiz-page .ce-track span { display: none; }

  body.ce-quiz-page .ce-step .display { --d: clamp(38px, 10.6vw, 50px); }
  body.ce-quiz-page .ce-step .display span { display: block; }
  body.ce-quiz-page .ce-step > .pill { width: 100%; max-width: 340px; padding: 16px 24px; font-size: 18px; }
  body.ce-quiz-page .q-head { font-size: clamp(27px, 7.6vw, 34px); }

  body.ce-quiz-page .ce-opts { gap: 10px; margin-top: 26px; }
  body.ce-quiz-page .ce-opt { gap: 12px; padding: 14px 40px 14px 12px; border-radius: 16px; font-size: 16.5px; }
  body.ce-quiz-page .ce-opt kbd { display: none; }
  body.ce-quiz-page .ce-opt { padding-left: 18px; }
  body.ce-quiz-page .ce-opt::after { right: 16px; }

  body.ce-quiz-page .ce-mission { grid-template-columns: 1fr; gap: 12px; }
  body.ce-quiz-page .ce-mini { grid-template-columns: 1fr 1fr; }

  body.ce-quiz-page .ce-offer .ce-clock { padding-right: 16px; letter-spacing: 0.14em; }
}

@media (hover: none) {
  body.ce-quiz-page .ce-opt kbd { display: none; }
}

/* a name set inside a headline line stays in the line */
body.ce-quiz-page .b .display span span,
body.ce-quiz-page .ce-step .display span span { display: inline; width: auto; padding: 0; margin: 0; }

@media (min-width: 900px) {
  body.ce-quiz-page .ce-included { width: min(100%, 860px); }
  body.ce-quiz-page .ce-included .ce-stack { grid-template-columns: 1fr 1fr; }
}


